Explorar el Código

加入打印标签尺寸配置

liuhong hace 3 semanas
padre
commit
07fad78a66

+ 1 - 1
src/main/java/com/sy/coinage/sys/service/IDictService.java

@@ -30,5 +30,5 @@ public interface IDictService extends IService<Dict> {
     void adminaAdd(AdminDictAddReq req);
 
     Dict getByVal(Object tag, Object val, Integer tenantId);
-
+    public  Dict getByTagAndStatus(Object tag,int status);
 }

+ 11 - 0
src/main/java/com/sy/coinage/sys/service/impl/DictServiceImpl.java

@@ -95,6 +95,8 @@ public class DictServiceImpl extends ServiceImpl<DictDao, Dict> implements IDict
         return resp;
     }
 
+
+
     @Override
     @Transactional
     public void batchAdd(DictBatchAddReq req) {
@@ -168,6 +170,15 @@ public class DictServiceImpl extends ServiceImpl<DictDao, Dict> implements IDict
 //        }
         return resp;
     }
+    @Override
+    public  Dict getByTagAndStatus(Object tag,int status){
+        LambdaQueryWrapper<Dict> queryWrapper = new LambdaQueryWrapper<>();
+        queryWrapper.ne(Dict::getPid, 0);
+        queryWrapper.eq(Dict::getStatus, status);
+        queryWrapper.eq(Dict::getTag, tag);
+        Dict resp = this.getOne(queryWrapper);
+        return resp;
+    }
 
     private void baseAdd(DictBatchAddVO dictBatchAddVO, Integer tenantId) {
 //        if (tenantId == null) {

+ 8 - 1
src/main/java/com/sy/coinage/workshop/controller/WorkshopOutboundController.java

@@ -1,9 +1,11 @@
 package com.sy.coinage.workshop.controller;
 
+import com.sy.coinage.core.annotation.LoginNotRequired;
 import com.sy.coinage.core.exception.RetException;
 import com.sy.coinage.core.redis.RedisService;
 import com.sy.coinage.core.util.DateUtils;
 import com.sy.coinage.sys.req.DeptReq;
+import com.sy.coinage.util.printer.ZplImgConvertPrinter;
 import com.sy.coinage.workshop.req.vo.BaseInfoVO;
 import com.sy.coinage.workshop.service.IBaseInfoService;
 import com.sy.coinage.workshop.service.IProductService;
@@ -242,5 +244,10 @@ public class WorkshopOutboundController extends BaseController {
         this.workshopOutboundService.shopOut(req, user);
         return "";
     }
-
+    @RequestMapping("/testTagSize")
+    @LoginNotRequired
+    public Object testTagSize() {
+        ZplImgConvertPrinter.getZplDataBlank();
+        return "";
+    }
 }