diff --git a/platform-biz-service/src/main/resources/mainOrm/master/CouponMapper.xml b/platform-biz-service/src/main/resources/mainOrm/master/CouponMapper.xml index 83b3e82..b0b3cbe 100644 --- a/platform-biz-service/src/main/resources/mainOrm/master/CouponMapper.xml +++ b/platform-biz-service/src/main/resources/mainOrm/master/CouponMapper.xml @@ -244,6 +244,7 @@ from organization a, coupon_info b, coupon_template c, coupon_type d where a.id = b.used_hospital_id and b.coupon_template_id = c.id and c.type_id = d.id and a.id = #{hid} + and b.status = 2 and d.type in #{type} @@ -261,6 +262,7 @@ from organization a, coupon_info b, coupon_template c, coupon_type d where a.id = b.used_hospital_id and b.coupon_template_id = c.id and c.type_id = d.id and a.id = #{hid} + and b.status = 2 and d.type in #{type} @@ -337,6 +339,7 @@ select a.used_hospital_id, c.type, b.coupon_order, a.sequence_id, d.name as send_hospital, a.use_date, a.used_id, a.operator_use_id from coupon_info a, coupon_template b, coupon_type c, organization d where a.coupon_template_id = b.id and b.type_id = c.id and a.create_hospital_id = d.id + and a.status = 2 and a.used_hospital_id in #{hid} @@ -363,7 +366,7 @@ select count(1) from ( select a.used_hospital_id, c.type, b.coupon_order, a.sequence_id, d.name as send_hospital, a.use_date, a.used_id, a.operator_use_id from coupon_info a, coupon_template b, coupon_type c, organization d - where a.coupon_template_id = b.id and b.type_id = c.id and a.create_hospital_id = d.id + where a.coupon_template_id = b.id and b.type_id = c.id and a.create_hospital_id = d.id and a.status = 2 and a.used_hospital_id in #{hid} diff --git a/platform-operate-api/src/main/java/com/lyms/platform/operate/web/service/impl/ReportServiceImpl.java b/platform-operate-api/src/main/java/com/lyms/platform/operate/web/service/impl/ReportServiceImpl.java index 0ba97e7..4fd67ae 100644 --- a/platform-operate-api/src/main/java/com/lyms/platform/operate/web/service/impl/ReportServiceImpl.java +++ b/platform-operate-api/src/main/java/com/lyms/platform/operate/web/service/impl/ReportServiceImpl.java @@ -1256,7 +1256,7 @@ public class ReportServiceImpl extends BaseServiceImpl implements IReportService tempMap.put("HIGH_RISK_GRADE", mongoUtil.findName(examinationModel.getRiskScore())); tempMap.put("HIGH_RISK_FACTOR", mongoUtil.findName(examinationModel.getRiskFactor())); // tempMap.put("EDD_DATE", examinationModel.); - tempMap.put("LAST_EXAMINE_DATE", examinationModel.getLastMenses()); + tempMap.put("LAST_EXAMINE_DATE", DateUtil.getyyyy_MM_dd(examinationModel.getLastMenses())); String prodDoctor = examinationModel.getCheckDoctor(); if(StringUtils.isNotBlank(prodDoctor)) { Users users = usersService.getUsers(Integer.parseInt(prodDoctor)); @@ -1269,7 +1269,7 @@ public class ReportServiceImpl extends BaseServiceImpl implements IReportService tempMap.put("HIGH_RISK_GRADE", mongoUtil.findName(antExChuModel.getHighriskSocre())); /** 高危等级 */ tempMap.put("HIGH_RISK_FACTOR", mongoUtil.findName(antExChuModel.getHighrisk())); /** 风险因素 */ tempMap.put("EDD_DATE", antExChuModel.getDueDate()); - tempMap.put("LAST_EXAMINE_DATE", antExChuModel.getCheckTime()); + tempMap.put("LAST_EXAMINE_DATE", DateUtil.getyyyy_MM_dd(antExChuModel.getCheckTime())); String prodDoctor = antExChuModel.getProdDoctor(); if(StringUtils.isNotBlank(prodDoctor)) { Users users = usersService.getUsers(Integer.parseInt(prodDoctor));