Przeglądaj źródła

打印模板-模板设置

zhangxiaomu 2 lat temu
rodzic
commit
8be053f426

+ 9 - 0
src/main/java/com/dk/mdm/controller/common/CommonController.java

@@ -714,6 +714,15 @@ public class CommonController extends BaseController<Map<String, Object>> {
     public ResponseResultVO<List<Map<String, Object>>> getInventoryByList(@RequestBody Map<String, Object> param) {
         return commonService.getInventoryByList(param);
     }
+
+    @ApiOperation(
+            value = "查询标签打印项目",
+            notes = "查询标签打印项目"
+    )
+    @PostMapping("get_label_print_item")
+    public ResponseResultVO<List<Map<String, Object>>> getLabelPrintItem(@RequestBody Map<String, Object> param) {
+        return commonService.getLabelPrintItem(param);
+    }
 }
 
 

+ 2 - 0
src/main/java/com/dk/mdm/mapper/common/CommonMapper.java

@@ -507,4 +507,6 @@ public interface CommonMapper extends BaseMapper<Map<String, Object>> {
      */
     List<Map<String, Object>> getPurviewType(Map param);
     List<Map<String, Object>> getInventoryByList(Map param);
+
+    List<Map<String,Object>> getLabelPrintItem(Map param);
 }

+ 18 - 0
src/main/java/com/dk/mdm/mapper/common/CommonMapper.xml

@@ -1617,5 +1617,23 @@
             </if>
         </foreach>
     </select>
+    <!--  查询标签打印项目  -->
+    <select id="getLabelPrintItem" resultType="java.util.Map">
+        select
+        item_code as "itemCode",
+        sys.f_get_name_i18n(item_name_i18n,#{i18n}) as "itemName",
+        doc_name as "docName",
+        item_type as "itemType",
+        item_style as "itemStyle",
+        item_sample as "itemSample",
+        data_key as "dataKey",
+        remarks as "remarks"
+        from sys.t_label_print_item
+        where flg_valid
+        <if test="docName">
+            and doc_name = #{docName}
+        </if>
+        order by display_no
+    </select>
 
 </mapper>

+ 5 - 0
src/main/java/com/dk/mdm/service/common/CommonService.java

@@ -949,4 +949,9 @@ public class CommonService extends BaseService<Map<String, Object>> {
         return ResponseResultUtil.success(list);
 
     }
+
+    public ResponseResultVO<List<Map<String, Object>>> getLabelPrintItem(Map<String, Object> param) {
+        return ResponseResultUtil.success(commonMapper.getLabelPrintItem(param));
+    }
+
 }