|
@@ -1396,7 +1396,10 @@ public class YBJServiceImpl implements YBJService {
|
|
|
*/
|
|
|
@Override
|
|
|
public void thisMonthDataBase(String formInstId){
|
|
|
- log.info("开始生成当月数据库未上报护理计划:{}",new Date());
|
|
|
+ LocalDate currentDate = LocalDate.now();
|
|
|
+ // 数据库当月数据日期
|
|
|
+ String dataMonth = currentDate.getYear() +"-"+ String.format("%02d", currentDate.getMonthValue());
|
|
|
+ log.info("开始生成当月数据库未上报护理计划:{}",dataMonth);
|
|
|
//根据实例ID 查询护理计划
|
|
|
YDParam ydParam = YDParam.builder()
|
|
|
.formInstId(formInstId)
|
|
@@ -1712,9 +1715,11 @@ public class YBJServiceImpl implements YBJService {
|
|
|
*/
|
|
|
@SneakyThrows
|
|
|
public void syncPlanStatus() {
|
|
|
- String formId = getFormId(dataMonth);
|
|
|
-
|
|
|
LocalDate currentDate = LocalDate.now();
|
|
|
+
|
|
|
+ // 数据库当月数据日期
|
|
|
+ String dataMonth = currentDate.getYear() +"-"+ String.format("%02d", currentDate.getMonthValue());
|
|
|
+ String formId = getFormId(dataMonth);
|
|
|
//获取需要更新的护理任务 护理日期是当天 且状态为未上报
|
|
|
YDParam ydParam = YDParam.builder()
|
|
|
.formUuid(formId)
|