|
@@ -76,15 +76,17 @@ public class MedicalLaboratoryController {
|
|
|
if (null == body.getPublishTime()) {
|
|
|
return ResultVoUtil.fail(ExceptionEnum.LOGICAL_ERROR, "报告状态为[发布]时,发布时间不能为空。");
|
|
|
}
|
|
|
- pushWxMessage(body);
|
|
|
}
|
|
|
MedicalLaboratoryState existOne = dao.selectById(body.getReqNo());
|
|
|
if (null == existOne) {
|
|
|
body.setCreateTime(new Date());
|
|
|
dao.insert(body);
|
|
|
- return ResultVoUtil.success(body.getReqNo());
|
|
|
+ } else {
|
|
|
+ dao.updateById(body);
|
|
|
+ }
|
|
|
+ if (body.getReportState() == State.PUBLISHED) {
|
|
|
+ pushWxMessage(body);
|
|
|
}
|
|
|
- dao.updateById(body);
|
|
|
return ResultVoUtil.success(body.getReqNo());
|
|
|
}
|
|
|
|