代码结构优化
parent
b28a7289c0
commit
84aeb1253e
|
@ -339,15 +339,6 @@ public class WmOmQmIController extends BaseController {
|
||||||
message = "下架任务删除成功";
|
message = "下架任务删除成功";
|
||||||
try{
|
try{
|
||||||
wmOmQmIService.delete(wmOmQmI);
|
wmOmQmIService.delete(wmOmQmI);
|
||||||
// List<WmOmNoticeIEntity> WmOmNoticeIlist = new ArrayList<WmOmNoticeIEntity>();
|
|
||||||
// String hql = null;
|
|
||||||
// hql = "from WmOmNoticeIEntity t where t.id = '"+ wmOmQmI.getIomNoticeItem() +"'" ;
|
|
||||||
// WmOmNoticeIlist = systemService.findByQueryString(hql);
|
|
||||||
// for (WmOmNoticeIEntity WmOmNoticeIentity : WmOmNoticeIlist) {
|
|
||||||
// WmOmNoticeIentity.setPlanSta("N");
|
|
||||||
// systemService.saveOrUpdate(WmOmNoticeIentity);
|
|
||||||
// }
|
|
||||||
|
|
||||||
systemService.addLog(message, Globals.Log_Type_DEL, Globals.Log_Leavel_INFO);
|
systemService.addLog(message, Globals.Log_Type_DEL, Globals.Log_Leavel_INFO);
|
||||||
}catch(Exception e){
|
}catch(Exception e){
|
||||||
e.printStackTrace();
|
e.printStackTrace();
|
||||||
|
@ -409,12 +400,7 @@ public class WmOmQmIController extends BaseController {
|
||||||
return j;
|
return j;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 批量删除下架任务
|
* 批量删除下架任务
|
||||||
*
|
*
|
||||||
|
@ -521,16 +507,6 @@ public class WmOmQmIController extends BaseController {
|
||||||
return j;
|
return j;
|
||||||
}else{
|
}else{
|
||||||
double goods = Double.parseDouble(wmOmQmI.getBaseGoodscount());
|
double goods = Double.parseDouble(wmOmQmI.getBaseGoodscount());
|
||||||
// double goodsold = Double.parseDouble(t.getBaseGoodscount());
|
|
||||||
// if(goods < goodsold){
|
|
||||||
// WmOmQmIEntity wmOmQmInew = new WmOmQmIEntity();
|
|
||||||
// MyBeanUtils.copyBeanNotNull2Bean(t,wmOmQmInew);
|
|
||||||
// wmOmQmInew.setId(null);
|
|
||||||
// wmOmQmInew.setBaseGoodscount(Double.toString(goods-goods));
|
|
||||||
// wmOmQmInew.setOmQuat(wmOmQmInew.getBaseGoodscount());
|
|
||||||
// wmOmQmInew.setQmOkQuat(wmOmQmInew.getBaseGoodscount());
|
|
||||||
// wmOmQmIService.save(wmOmQmInew);
|
|
||||||
// }
|
|
||||||
wmOmQmI.setQmOkQuat(wmOmQmI.getBaseGoodscount());
|
wmOmQmI.setQmOkQuat(wmOmQmI.getBaseGoodscount());
|
||||||
wmOmQmI.setOmQuat(wmOmQmI.getBaseGoodscount());
|
wmOmQmI.setOmQuat(wmOmQmI.getBaseGoodscount());
|
||||||
MyBeanUtils.copyBeanNotNull2Bean(wmOmQmI, t);
|
MyBeanUtils.copyBeanNotNull2Bean(wmOmQmI, t);
|
||||||
|
|
Loading…
Reference in New Issue