|
@@ -58,11 +58,14 @@ public class PurchaseWarehousingServiceImpl extends ServiceImpl<PurchaseWarehous
|
|
|
for(Map<String,Object> map:mapList){
|
|
|
//获取主表最大编码
|
|
|
map.put("ID", oConvertUtils.addOne(getMaxId("ID","RdRecord01")));
|
|
|
+
|
|
|
System.out.println(map.get("ID"));
|
|
|
//获取最大code
|
|
|
String cCode=oConvertUtils.addOne(this.baseMapper.getMaxCode("cCode","RdRecord01"));
|
|
|
+
|
|
|
if(cCode!=null){
|
|
|
map.put("cCode",cCode);
|
|
|
+ this.baseMapper.updateVoucherHistoryCNumber(oConvertUtils.maxNumber(String.valueOf(map.get("cCode"))),"24");
|
|
|
}else{
|
|
|
throw new RuntimeException("获取入库单号失败");
|
|
|
}
|
|
@@ -81,10 +84,12 @@ public class PurchaseWarehousingServiceImpl extends ServiceImpl<PurchaseWarehous
|
|
|
//采购入库
|
|
|
map.put("cRdCode","11");
|
|
|
map.put("cPTCode","01");
|
|
|
+ map.put("cSource","采购订单");
|
|
|
}else{
|
|
|
//委外入库
|
|
|
map.put("cRdCode","12");
|
|
|
map.put("cPTCode","01");
|
|
|
+ map.put("cSource","委外订单");
|
|
|
}
|
|
|
//获取部门编码
|
|
|
if(map.get("cPersonCode")!=null){
|
|
@@ -320,6 +325,7 @@ public class PurchaseWarehousingServiceImpl extends ServiceImpl<PurchaseWarehous
|
|
|
transVouchMao.put("ID",oConvertUtils.addOne(getMaxId("ID","TransVouch")));
|
|
|
//获取最大编码
|
|
|
transVouchMao.put("cTVCode",oConvertUtils.addOne(getMaxId("cTVCode","TransVouch")));
|
|
|
+ this.baseMapper.updateVoucherHistoryCNumber(oConvertUtils.maxNumber(String.valueOf(transVouchMao.get("cTVCode"))),"0304");
|
|
|
//单据日期
|
|
|
Date date=new Date();
|
|
|
SimpleDateFormat formatter = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
|