|
|
@@ -1,5 +1,6 @@
|
|
|
package com.dk.mdm.service.mst;
|
|
|
|
|
|
+import com.alibaba.fastjson.JSONObject;
|
|
|
import com.dk.common.exception.BaseBusinessException;
|
|
|
import com.dk.common.infrastructure.annotaiton.Pagination;
|
|
|
import com.dk.common.infrastructure.constant.Constant;
|
|
|
@@ -107,6 +108,9 @@ public class StaffService extends BaseService<Staff> {
|
|
|
@Autowired
|
|
|
WarehouseMapper warehouseMapper;
|
|
|
|
|
|
+ @Autowired
|
|
|
+ PrintLayoutMapper printLayoutMapper;
|
|
|
+
|
|
|
|
|
|
/**
|
|
|
* @desc : 条件查询
|
|
|
@@ -371,6 +375,23 @@ public class StaffService extends BaseService<Staff> {
|
|
|
}
|
|
|
goodsCategoryMapper.insertBatch(listG);
|
|
|
|
|
|
+ // 打印票据
|
|
|
+ List<Map<String, Object>> listPrintLayout = map.get("printLayout");
|
|
|
+ List<PrintLayout> listP = new ArrayList<>();
|
|
|
+ for (int i = 0; i < listPrintLayout.size(); i++) {
|
|
|
+ Map<String, Object> m = listPrintLayout.get(i);
|
|
|
+ PrintLayout printLayout = new PrintLayout();
|
|
|
+ printLayout.setLayoutName(m.get("layoutName") + "");
|
|
|
+ printLayout.setLayoutData(JSONObject.parseObject(JSONObject.toJSONString(m.get("layoutData"))));
|
|
|
+ printLayout.setDisplayNo((Integer) m.get("displayNo"));
|
|
|
+ printLayout.setDocName(m.get("docName")+ "" );
|
|
|
+ printLayout.setCpId(cpId);
|
|
|
+ printLayout.setOpCreateUserId(m.get("opCreateUserId").toString());
|
|
|
+ listP.add(printLayout);
|
|
|
+ }
|
|
|
+ printLayoutMapper.insertBatch(listP);
|
|
|
+
|
|
|
+
|
|
|
return ResponseResultUtil.success();
|
|
|
}
|
|
|
|