| | |
| | | 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; |
| | |
| | | private LtkjExamJcsqdService ltkjExamJcsqdService; |
| | | @Autowired |
| | | private LtkjExamJcbgdService ltkjExamJcbgdService; |
| | | @Autowired |
| | | private PacsApiMethodService pacsApiMethodService; |
| | | |
| | | // 体检开检查申请单调用此接口推送给pacs服务 |
| | | public boolean OrderAdd(String tjNumber) |
| | |
| | | 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); |
| | |
| | | return XmlUtil.mapToXmlStr(hashMap) |
| | | .replaceAll("<","<").replaceAll(">",">"); |
| | | } |
| | | |
| | | @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"; |
| | | } |
| | | } |