住院物资自动扣减

develop/hrl_20250102_AutoMmsKj
hrl_081 1 week ago
parent ee3770504e
commit 9f3da1ca18
  1. 10
      WEB-INF/src/com/mms/service/ZyAutoFwzService.java

@ -40,12 +40,12 @@ public class ZyAutoFwzService {
Calendar endCalendar = Calendar.getInstance();
endCalendar.setTimeInMillis(Delphi.getEndDay(System.currentTimeMillis()));
Timestamp biginTimestamp = new Timestamp(Long.valueOf("1736179199000"));
Timestamp enTimestamp = new Timestamp(Long.valueOf("1736265599000"));
// Timestamp biginTimestamp = new Timestamp(Long.valueOf("1736179199000"));
// Timestamp enTimestamp = new Timestamp(Long.valueOf("1736265599000"));
DxNormalDataManager mmsZyjsyAutofyPybMxKsflDao = DaoCreator.getNormalDao("mmsZyjsyAutofyPybMxKsflDao");
// mmsZyjsyAutofyPybMxKsflDao.setNormalParameters(new Object[]{companyId,new Timestamp(beginCalendar.getTimeInMillis()),new Timestamp(endCalendar.getTimeInMillis())});
mmsZyjsyAutofyPybMxKsflDao.setNormalParameters(new Object[]{companyId,biginTimestamp,enTimestamp});
mmsZyjsyAutofyPybMxKsflDao.setNormalParameters(new Object[]{companyId,new Timestamp(beginCalendar.getTimeInMillis()),new Timestamp(endCalendar.getTimeInMillis())});
// mmsZyjsyAutofyPybMxKsflDao.setNormalParameters(new Object[]{companyId,biginTimestamp,enTimestamp});
mmsZyjsyAutofyPybMxKsflDao.reload();
//基数物资自动发放
/*这里的查询时间段按3天,一般定时任务是10分钟一次begin*/
@ -76,7 +76,7 @@ public class ZyAutoFwzService {
String yzzxks = mmsZyjsyAutofyPybMxKsflDao.getColumnValueAsString(i,"YZZXKS");
model.setCzrks(yzzxks);//操作人科室用当前发物资科室
mmsZyjsyAutofyPybMxDao.setNormalParameters(new Object[]{companyId,yzzxks,biginTimestamp,enTimestamp});
mmsZyjsyAutofyPybMxDao.setNormalParameters(new Object[]{companyId,yzzxks,new Timestamp(beginCalendar.getTimeInMillis()),new Timestamp(endCalendar.getTimeInMillis())});
mmsZyjsyAutofyPybMxDao.reload();

Loading…
Cancel
Save