|
|
@@ -1,5 +1,10 @@
|
|
|
package com.dk.mdm.service.mst;
|
|
|
|
|
|
+import com.alibaba.fastjson.JSONArray;
|
|
|
+import com.alibaba.fastjson.JSONObject;
|
|
|
+import com.dk.common.model.pojo.PageList;
|
|
|
+import com.dk.common.response.ResponseResultUtil;
|
|
|
+import com.dk.common.response.ResponseResultVO;
|
|
|
import com.dk.mdm.model.pojo.mst.PrintLayout;
|
|
|
import com.dk.mdm.mapper.mst.PrintLayoutMapper;
|
|
|
import com.dk.common.service.BaseService;
|
|
|
@@ -8,6 +13,11 @@ import org.springframework.stereotype.Service;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.transaction.annotation.Transactional;
|
|
|
|
|
|
+import java.util.ArrayList;
|
|
|
+import java.util.HashMap;
|
|
|
+import java.util.List;
|
|
|
+import java.util.Map;
|
|
|
+
|
|
|
@Service
|
|
|
@Transactional
|
|
|
public class PrintLayoutService extends BaseService<PrintLayout> {
|
|
|
@@ -25,4 +35,14 @@ public class PrintLayoutService extends BaseService<PrintLayout> {
|
|
|
@Autowired
|
|
|
private PrintLayoutMapper printLayoutMapper;
|
|
|
|
|
|
+ /**
|
|
|
+ * @desc : 获取打印数据
|
|
|
+ * @author : 周兴
|
|
|
+ * @date : 2024/4/22 15:28
|
|
|
+ */
|
|
|
+ public ResponseResultVO<?> getPrintData(Map<String, Object> param) {
|
|
|
+ Map<String, Object> map = printLayoutMapper.getPrintData(param);
|
|
|
+ JSONObject obj = JSONObject.parseObject(map.get("f_get_print_data").toString());
|
|
|
+ return ResponseResultUtil.success(obj.get("data"));
|
|
|
+ }
|
|
|
}
|