修改物料编码规则
This commit is contained in:
parent
d4c5e58b2b
commit
c8146fe70f
|
@ -353,12 +353,12 @@ public class ZjMaterielSynchronizationEventServiceImpl extends BaseService<ZjMat
|
||||||
if(maxnum == null){
|
if(maxnum == null){
|
||||||
entity.setDataSourceCode(zju8);
|
entity.setDataSourceCode(zju8);
|
||||||
String num = zjMaterielSynchronizationEventDao.queryMaxLsh(entity);
|
String num = zjMaterielSynchronizationEventDao.queryMaxLsh(entity);
|
||||||
num = num.substring(entity.getField0043code().length()+1,entity.getField0043code().length()+4);
|
num = num.substring(entity.getField0043code().length(),entity.getField0043code().length()+4);
|
||||||
maxnum = Integer.valueOf(num);
|
maxnum = Integer.valueOf(num);
|
||||||
}
|
}
|
||||||
String formattedNum = String.format("%03d", ++maxnum);
|
String formattedNum = String.format("%04d", ++maxnum);
|
||||||
lsh.put(entity.getField0043code(),maxnum);
|
lsh.put(entity.getField0043code(),maxnum);
|
||||||
wlcode.append(entity.getField0043code()).append("0").append(formattedNum);
|
wlcode.append(entity.getField0043code()).append(formattedNum);
|
||||||
if(entity.getField0008code() != null && !"".equals(entity.getField0008code())){
|
if(entity.getField0008code() != null && !"".equals(entity.getField0008code())){
|
||||||
wlcode.append("01");
|
wlcode.append("01");
|
||||||
}else {
|
}else {
|
||||||
|
|
Loading…
Reference in New Issue