核货时带出商品

master
erzhongxmu 2020-12-27 20:56:19 +08:00
parent 2d331cac7e
commit 3b539353ee
4 changed files with 41 additions and 6 deletions

View File

@ -2666,7 +2666,7 @@ public class WmOmNoticeHController extends BaseController {
String hql="from WmOmNoticeHEntity ";
List<WmOmNoticeHEntity> listWaveToDowns =new ArrayList<>();
List<WmOmNoticeHEntity> listWaveToDownsnew =new ArrayList<>();
List<WmOmNoticeHEntity> listWaveToDownsnew =new ArrayList<>();
if(StringUtil.isNotEmpty(searchstr)&&!"null".equals(searchstr)){
hql="from WmOmNoticeHEntity where omSta <> ? and reMember = ? and omNoticeId = ?";
listWaveToDowns = wmOmNoticeHService.findHql(hql,"复核完成",username,searchstr);
@ -2713,8 +2713,29 @@ public class WmOmNoticeHController extends BaseController {
}catch (Exception e){
}
listWaveToDownsnew.add(t);
}
for(WmOmNoticeIEntity dt2: listWaveToDowndetial){
WmOmNoticeHEntity tout = new WmOmNoticeHEntity();
try{
MyBeanUtils.copyBean2Bean(tout,t);
}catch (Exception e){
}
tout.setId(dt2.getId());//设置ID
if(StringUtil.isNotEmpty(searchstr2)){
try{
if (!(StringUtil.strPos(dt2.getGoodsId(), searchstr2)||StringUtil.strPos(dt2.getBarCode(),searchstr2))) {
continue;
}
}catch (Exception e){
}
}
tout.setPiMaster(dt2.getGoodsId()+ dt2.getGoodsName());
tout.setPiClass(dt2.getBaseGoodscount()+ dt2.getBaseUnit());
listWaveToDownsnew.add(tout);
}
}
D0.setObj(listWaveToDownsnew);
@ -2733,7 +2754,7 @@ public class WmOmNoticeHController extends BaseController {
// hql="from WmImNoticeIEntity where noticeiSta <> ? and omNoticeId = ?";
// listWaveToDowns = wmOmNoticeHService.findHql(hql,"已核货",searchstr);
// hql="from WmOmNoticeIEntity ";
hql="from WmOmNoticeIEntity where omNoticeId = ? and omSta <> ? order by chpShuXing";
hql="from WmOmNoticeIEntity where id = ? and omSta <> ? order by chpShuXing";
// listWaveToDowns = wmOmNoticeHService.findHql(hql);
listWaveToDowns = wmOmNoticeHService.findHql(hql, omnoticeid,"复核完成");
D0.setObj(listWaveToDowns);

View File

@ -123,7 +123,8 @@ public class WmOmNoticeIEntity implements java.io.Serializable {
/**产品属性*/
@Excel(name="产品属性")
private java.lang.String chpShuXing;
@Excel(name="商品条码")
private java.lang.String barCode;
/**
*: java.lang.String
*@return: java.lang.String
@ -683,4 +684,16 @@ public class WmOmNoticeIEntity implements java.io.Serializable {
this.chpShuXing = chpShuXing;
}
@Column(name ="BARCODE",nullable=true,length=32)
public java.lang.String getBarCode(){
return this.barCode;
}
/**
*: java.lang.String
*@param: java.lang.String
*/
public void setBarCode(java.lang.String barCode){
this.barCode = barCode;
}
}

View File

@ -56,7 +56,7 @@ public class WmOmNoticeHServiceImpl extends CommonServiceImpl implements WmOmNot
huowu=huowu+mvgoods.getGoodsName();
wmOmNoticeI.setGoodsName(mvgoods.getGoodsName());
wmOmNoticeI.setChpShuXing(mvgoods.getChpShuXing());//产品属性
wmOmNoticeI.setBarCode(mvgoods.getShpTiaoMa());//商品条码
try{
wmOmNoticeI.setBaseUnit(mvgoods.getBaseunit());
wmOmNoticeI.setGoodsUnit(mvgoods.getShlDanWei());

View File

@ -20,6 +20,7 @@ validationQuery.sqlserver=SELECT 1
jdbc.url.jeecg=jdbc:mysql://127.0.0.1:3306/wms?useUnicode=true&characterEncoding=UTF-8
jdbc.username.jeecg=root
#jdbc.password.jeecg=Qwer12345
jdbc.password.jeecg=Zzerp123
jdbc.dbType=mysql