zhaowenxuan
2025-06-05 b7adb9e5316030aabfb90a8ff1b43c848aa550ec
ltkj-admin/src/main/java/com/ltkj/web/controller/pacs/PacsServiceController.java
@@ -17,10 +17,7 @@
import com.sun.org.apache.xpath.internal.operations.Bool;
import jodd.util.StringUtil;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import org.springframework.web.bind.annotation.*;
import java.security.PrivateKey;
import java.text.SimpleDateFormat;
@@ -58,6 +55,8 @@
    private LtkjExamJcsqdService ltkjExamJcsqdService;
    @Autowired
    private LtkjExamJcbgdService ltkjExamJcbgdService;
    @Autowired
    private PacsApiMethodService pacsApiMethodService;
    //    体检开检查申请单调用此接口推送给pacs服务
    public boolean OrderAdd(String tjNumber)
@@ -232,7 +231,7 @@
        return XmlUtil.mapToXmlStr(hashMap);
    }
    //@PostMapping("QueryOrder")
//    @PostMapping("QueryOrder")
    private String queryOrder(@RequestBody String json){
        Map<String, Object> map = XmlUtil.xmlToMap(json);
        JSONObject parseObj = JSONUtil.parseObj(map);
@@ -380,4 +379,14 @@
        return XmlUtil.mapToXmlStr(hashMap)
                .replaceAll("&lt;","<").replaceAll("&gt;",">");
    }
    @GetMapping("test")
    public String test(){
        TjCustomer tjCustomer = customerService.getById(1870373229901938690L);
        LambdaQueryWrapper<TjOrder> wrapper = new LambdaQueryWrapper<>();
        wrapper.eq(TjOrder::getUserId,tjCustomer.getCusId());
        TjOrder order = tjOrderService.getOne(wrapper);
        pacsApiMethodService.OrderAdd(tjCustomer,order);
        return "1111";
    }
}