| | |
| | | import com.ltkj.hosp.service.ITjOrderDetailService; |
| | | import com.ltkj.hosp.service.ITjOrderService; |
| | | import com.ltkj.hosp.vodomain.ShenGaoTiZhongVo; |
| | | import com.ltkj.system.service.ISysConfigService; |
| | | import com.ltkj.web.controller.system.TjCheckController; |
| | | import com.ltkj.web.controller.system.TjReportController; |
| | | import io.swagger.annotations.ApiOperation; |
| | |
| | | import javax.servlet.http.HttpServletResponse; |
| | | import java.io.File; |
| | | import java.io.IOException; |
| | | import java.text.ParseException; |
| | | import java.text.SimpleDateFormat; |
| | | import java.util.ArrayList; |
| | | import java.util.Date; |
| | | import java.util.List; |
| | | import java.util.Map; |
| | | |
| | |
| | | private ITjOrderService tjOrderService; |
| | | @Autowired |
| | | private ITjOrderDetailService detailService; |
| | | @Autowired |
| | | private ISysConfigService sysConfigService; |
| | | |
| | | /** |
| | | * 提供给三方调用的报告查看接口 |
| | |
| | | JSONObject entries = JSONUtil.parseObj(json); |
| | | String card = entries.getStr("card"); |
| | | // TjCustomer customer = tjCustomerMapper.getCusInfo(card); |
| | | List<Map<String ,Object>> customer = tjCustomerMapper.getCusInfoList(card); |
| | | String key = sysConfigService.selectConfigByKey("h5OrXcxQueryDate"); |
| | | if (StrUtil.isBlank(key)){ |
| | | key = "2025-05-01"; |
| | | } |
| | | SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd"); |
| | | try { |
| | | Date date = sdf.parse(key); |
| | | List<Map<String ,Object>> customer = tjCustomerMapper.getCusInfoList(card,date); |
| | | return AjaxResult.success(customer); |
| | | } catch (ParseException e) { |
| | | return AjaxResult.error(); |
| | | } |
| | | } |
| | | |
| | | /** |