客户进货需要审核

master
erzhongxmu 2022-03-18 17:35:35 +08:00
parent 0eb985522f
commit df4bc30a15
2 changed files with 4 additions and 20 deletions

View File

@ -2353,15 +2353,12 @@ public class WmImNoticeHController extends BaseController {
for (WmImNoticeIEntity wmImNoticeIEntity : wmImNoticeIList) { for (WmImNoticeIEntity wmImNoticeIEntity : wmImNoticeIList) {
if(!StringUtil.isEmpty(wmImNoticeIEntity.getGoodsCode())){ if(!StringUtil.isEmpty(wmImNoticeIEntity.getGoodsCode())){
try { try {
String goodsId = wmImNoticeIEntity.getGoodsCode().split("-")[0]; String goodsId = wmImNoticeIEntity.getGoodsCode().split("-")[0];
if(goodsId.endsWith("l")){ if(goodsId.endsWith("l")){
goodsId = goodsId.substring(0,goodsId.lastIndexOf("l")); goodsId = goodsId.substring(0,goodsId.lastIndexOf("l"));
} }
MvGoodsEntity mvgoods = systemService.findUniqueByProperty(MvGoodsEntity.class,"goodsId",goodsId); MvGoodsEntity mvgoods = systemService.findUniqueByProperty(MvGoodsEntity.class,"goodsId",goodsId);
// String date[]=wmImNoticeIEntity.getGoodsCode().split("-"); // String date[]=wmImNoticeIEntity.getGoodsCode().split("-");
long hiti = 0; long hiti = 0;
try { try {
if(StringUtil.isEmpty(wmImNoticeIEntity.getBinPlan())){ if(StringUtil.isEmpty(wmImNoticeIEntity.getBinPlan())){
@ -2370,7 +2367,6 @@ public class WmImNoticeHController extends BaseController {
} }
} catch (Exception e) { } catch (Exception e) {
} }
wmImNoticeIEntity.setGoodsCode(mvgoods.getGoodsCode()); wmImNoticeIEntity.setGoodsCode(mvgoods.getGoodsCode());
wmImNoticeIEntity.setGoodsName(mvgoods.getShpMingCheng()); wmImNoticeIEntity.setGoodsName(mvgoods.getShpMingCheng());
} catch (Exception e) { } catch (Exception e) {

View File

@ -9,6 +9,7 @@ import com.zzjee.wm.entity.WmImNoticeHEntity;
import com.zzjee.wm.entity.WmImNoticeIEntity; import com.zzjee.wm.entity.WmImNoticeIEntity;
import com.zzjee.wm.entity.WmInQmIEntity; import com.zzjee.wm.entity.WmInQmIEntity;
import org.jeecgframework.web.system.sms.util.Constants;
import org.springframework.stereotype.Service; import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional; import org.springframework.transaction.annotation.Transactional;
@ -120,22 +121,9 @@ public class WmImNoticeHServiceImpl extends CommonServiceImpl implements WmImNot
}else{ }else{
wmImNoticeI.setBinPre("N"); wmImNoticeI.setBinPre("N");
wmImNoticeI.setGoodsQmCount("0"); wmImNoticeI.setGoodsQmCount("0");
TSUser user = ResourceUtil.getSessionUserName(); if(wmImNoticeH.getImSta().equals(Constants.wm_sta0)){
String roles = ""; wmImNoticeI.setBinPre("I");
if (user != null) { }
List<TSRoleUser> rUsers = this.findByProperty(TSRoleUser.class, "TSUser.id", user.getId());
for (TSRoleUser ru : rUsers) {
TSRole role = ru.getTSRole();
roles += role.getRoleCode() + ",";
}
if (roles.length() > 0) {
roles = roles.substring(0, roles.length() - 1);
}
if(roles.equals("CUS")){
wmImNoticeI.setBinPre("I");
}
}
wmImNoticeI.setImNoticeId(wmImNoticeH.getNoticeId()); wmImNoticeI.setImNoticeId(wmImNoticeH.getNoticeId());
wmImNoticeI.setImBeizhu(wmImNoticeH.getImBeizhu()); wmImNoticeI.setImBeizhu(wmImNoticeH.getImBeizhu());
wmImNoticeI.setImCusCode(wmImNoticeH.getImCusCode()); wmImNoticeI.setImCusCode(wmImNoticeH.getImCusCode());