| | |
| | | import io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiOperation; |
| | | import io.swagger.annotations.ApiParam; |
| | | import lombok.extern.slf4j.Slf4j; |
| | | import lombok.var; |
| | | import org.aspectj.weaver.AjAttribute; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | |
| | | import java.util.*; |
| | | import java.util.stream.Collectors; |
| | | |
| | | import static com.ltkj.framework.datasource.DynamicDataSourceContextHolder.log; |
| | | import static org.apache.poi.hemf.record.emfplus.HemfPlusRecordType.save; |
| | | import static org.apache.poi.hemf.record.emfplus.HemfPlusRecordType.setClipRect; |
| | | |
| | |
| | | @RestController |
| | | @RequestMapping ("/check") |
| | | @Api (tags = "总检医师相关接口") |
| | | @Slf4j |
| | | public class TjCheckController { |
| | | @Resource |
| | | private ITjOrderService orderService; |
| | |
| | | AjaxResult results = jcsqdService.getTjJcProByHisCall("体检中心",order.getCardId(),"''",100,1,"'1'"); |
| | | DynamicDataSourceContextHolder.clearDataSourceType(); |
| | | |
| | | log.info("检查项目查询返回值: "+results.toString()); |
| | | |
| | | if (Integer.parseInt(results.get("code").toString()) == 200) { |
| | | List<Map<String, Object>> datas = (List<Map<String, Object>>) results.get("data"); |
| | | if(null !=datas && datas.size()>0){ |
| | | jcsqdService.deletedLtkjJcsqdByTjhAndTmh(order.getCardId()); |
| | | jcbgdService.deletedLtkjJcbgdByTjhAndTmh(order.getCardId()); |
| | | for (Map<String, Object> objectMap : datas) { |
| | | LtkjExamJcsqd jybgid = jcsqdService.getLtkjJcsqdByTjhAndTmh(order.getCardId(), objectMap.get("JCBGID").toString()); |
| | | if (null != jybgid) { |
| | | jcsqdService.deletedLtkjJcsqdByTjhAndTmh(order.getCardId(), objectMap.get("JCBGID").toString()); |
| | | jcbgdService.deletedLtkjJcbgdByTjhAndTmh(jybgid.getTmh()); |
| | | } |
| | | // LtkjExamJcsqd jybgid = jcsqdService.getLtkjJcsqdByTjhAndTmh(order.getCardId(), objectMap.get("JCBGID").toString()); |
| | | // if (null != jybgid) { |
| | | // jcsqdService.deletedLtkjJcsqdByTjhAndTmh(order.getCardId(), objectMap.get("JCBGID").toString()); |
| | | // jcbgdService.deletedLtkjJcbgdByTjhAndTmh(jybgid.getTmh()); |
| | | // } |
| | | LtkjExamJcbgd jcbgd=new LtkjExamJcbgd(); |
| | | jcbgd.setTjh(order.getCardId()); |
| | | if(null !=objectMap.get("JCBGID") || !objectMap.get("JCBGID").equals("")) |