add:模板新增时间和监区
This commit is contained in:
@@ -433,6 +433,7 @@ public class PdaIosInServiceImpl implements PdaIosInService {
|
||||
dtl.put("pcsn", plateDao.getPcsn());
|
||||
dtl.put("contract_code", plateDao.getContract_code());
|
||||
dtl.put("cust_code", plateDao.getCust_code());
|
||||
dtl.put("prison_area", plateDao.getPrison_area());
|
||||
dtl.put("qty_unit_id", plateDao.getQty_unit_id());
|
||||
dtl.put("qty_unit_name", plateDao.getQty_unit_name());
|
||||
dtl.put("qty", String.valueOf(total_qty));
|
||||
|
||||
@@ -83,6 +83,12 @@ public enum IOSEnum {
|
||||
// 销售单状态
|
||||
SALE_STATUS(MapOf.of("生成", "1", "审核", "2", "下发", "3", "完成", "9")),
|
||||
|
||||
// 监区
|
||||
PRISON_AREA(MapOf.of("A1", "一监区", "A2", "二监区", "A3", "三监区", "A4", "四监区"
|
||||
, "A5", "五监区", "A6", "六监区", "A7", "七监区", "A9", "九监区"
|
||||
, "A10", "十监区", "A11", "十一监区", "A12", "十二监区", "A14", "十四监区"
|
||||
)),
|
||||
|
||||
;
|
||||
|
||||
private Map<String, String> code;
|
||||
|
||||
@@ -132,4 +132,9 @@ public class IOStorInvDis implements Serializable {
|
||||
*/
|
||||
private String contract_code;
|
||||
|
||||
/**
|
||||
* 监区
|
||||
*/
|
||||
private String prison_area;
|
||||
|
||||
}
|
||||
|
||||
@@ -228,6 +228,7 @@ public class RawAssistIStorServiceImpl extends ServiceImpl<IOStorInvMapper, IOSt
|
||||
dis.put("plan_qty", row.get("plan_qty"));
|
||||
dis.put("cust_code", row.get("cust_code"));
|
||||
dis.put("contract_code", row.get("contract_code"));
|
||||
dis.put("prison_area", row.get("prison_area"));
|
||||
|
||||
ioStorInvDisMapper.insert(dis.toJavaObject(IOStorInvDis.class));
|
||||
}
|
||||
@@ -881,7 +882,15 @@ public class RawAssistIStorServiceImpl extends ServiceImpl<IOStorInvMapper, IOSt
|
||||
WriteSheet sheet = EasyExcel.writerSheet(sheetInt).build();
|
||||
// 单组填充
|
||||
HashMap<String, Object> oneMap = new HashMap<>();
|
||||
// 总数量
|
||||
oneMap.put("sum_qty", sum_qty);
|
||||
// 时间
|
||||
oneMap.put("time", DateUtil.today());
|
||||
// 监区(只有入库有)
|
||||
if (mstDao.getIo_type().equals(IOSEnum.IO_TYPE.code("入库"))) {
|
||||
IOStorInvDis ioStorInvDis = disDaoList.get(0);
|
||||
oneMap.put("prison_area", IOSEnum.PRISON_AREA.code(ioStorInvDis.getPrison_area()));
|
||||
}
|
||||
workBook.fill(oneMap, sheet);
|
||||
|
||||
// 多组填充
|
||||
|
||||
Reference in New Issue
Block a user