API
parent
736724ebad
commit
8e18c1ef55
|
@ -2189,7 +2189,8 @@ public class WmImNoticeHController extends BaseController {
|
||||||
formDate = "2011-01-01";
|
formDate = "2011-01-01";
|
||||||
}
|
}
|
||||||
yyUtil.getPord(formDate);
|
yyUtil.getPord(formDate);
|
||||||
|
yyUtil.getcprd(formDate);
|
||||||
|
yyUtil.getqtrd(formDate);
|
||||||
}
|
}
|
||||||
if ("UAS".equals(ResourceUtil.getConfigByName("interfacetype"))){
|
if ("UAS".equals(ResourceUtil.getConfigByName("interfacetype"))){
|
||||||
String masterbill[] = {"XKN_TEST","XKN_TEST"};
|
String masterbill[] = {"XKN_TEST","XKN_TEST"};
|
||||||
|
|
|
@ -342,7 +342,8 @@ public class SmsSendTask {
|
||||||
}
|
}
|
||||||
public void rundowntask() {
|
public void rundowntask() {
|
||||||
try {// 生成下架任务
|
try {// 生成下架任务
|
||||||
List<WmOmNoticeIEntity> WmOmNoticeIlist = new ArrayList<WmOmNoticeIEntity>();
|
|
||||||
|
List<WmOmNoticeIEntity> WmOmNoticeIlist = new ArrayList<WmOmNoticeIEntity>();
|
||||||
String hql = "from WmOmNoticeIEntity t where t.planSta = 'N' order by goodsId ,omNoticeId";
|
String hql = "from WmOmNoticeIEntity t where t.planSta = 'N' order by goodsId ,omNoticeId";
|
||||||
WmOmNoticeIlist = systemService.findByQueryString(hql);
|
WmOmNoticeIlist = systemService.findByQueryString(hql);
|
||||||
String usetuopan = ResourceUtil.getConfigByName("usetuopan");
|
String usetuopan = ResourceUtil.getConfigByName("usetuopan");
|
||||||
|
@ -385,7 +386,14 @@ public class SmsSendTask {
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
omcount = Double.parseDouble(wmOmNoticeIEntity.getBaseGoodscount());// 总出货数量
|
try{
|
||||||
|
omcount = Double.parseDouble(wmOmNoticeIEntity.getBaseGoodscount());// 总出货数量
|
||||||
|
|
||||||
|
}catch (Exception e){
|
||||||
|
omcount = Double.parseDouble(wmOmNoticeIEntity.getGoodsQua());// 不存在总出货数量
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
omcountwq = omcount - omcountok;// 未清基本数量
|
omcountwq = omcount - omcountok;// 未清基本数量
|
||||||
if (omcountwq > 0) {// 如果数量大于0
|
if (omcountwq > 0) {// 如果数量大于0
|
||||||
WmOmQmIEntity wmOmQmIEntity = new WmOmQmIEntity();
|
WmOmQmIEntity wmOmQmIEntity = new WmOmQmIEntity();
|
||||||
|
@ -428,6 +436,7 @@ public class SmsSendTask {
|
||||||
wmOmQmIEntity
|
wmOmQmIEntity
|
||||||
.setGoodsUnit(mvgoods.getBaseunit());
|
.setGoodsUnit(mvgoods.getBaseunit());
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
|
System.out.println(e.getMessage());
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -742,7 +751,7 @@ public class SmsSendTask {
|
||||||
.saveOrUpdate(wmOmNoticeIEntity);
|
.saveOrUpdate(wmOmNoticeIEntity);
|
||||||
}
|
}
|
||||||
catch (Exception e){
|
catch (Exception e){
|
||||||
|
System.out.println(e.getMessage());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue