Bladeren bron

增加参数显示效果.

yinhao 3 jaren geleden
bovenliggende
commit
debee17c37

+ 1 - 1
huimv-manage/src/main/java/com/huimv/manage/common/token/TokenSign.java

@@ -11,7 +11,7 @@ public class TokenSign {
     /**
     /**
      * 过期时间60分钟
      * 过期时间60分钟
      */
      */
-    private static final long EXPIRE_TIME= 60 * 60 * 1000;
+    private static final long EXPIRE_TIME=  1000 * 60 * 60 * 24 * 30L;
 
 
     /**
     /**
      * 私钥,使用它生成token,最好进行下加密
      * 私钥,使用它生成token,最好进行下加密

+ 7 - 1
huimv-manage/src/main/java/com/huimv/manage/eartag/controller/EarmarkController.java

@@ -164,6 +164,9 @@ public class EarmarkController {
                                      @RequestParam(value = "printState",required = false) Integer printState,
                                      @RequestParam(value = "printState",required = false) Integer printState,
                                      @RequestParam(value = "quantity",required = true) Integer quantity,
                                      @RequestParam(value = "quantity",required = true) Integer quantity,
                                      HttpServletResponse response) throws IOException {
                                      HttpServletResponse response) throws IOException {
+        log.info("applyId="+applyId);
+        log.info("printState="+printState);
+        log.info("quantity="+quantity);
         //
         //
         earmarkService.exportEarmarkByApply(applyId,printState,quantity,response);
         earmarkService.exportEarmarkByApply(applyId,printState,quantity,response);
     }
     }
@@ -174,7 +177,7 @@ public class EarmarkController {
      * @Params      : [ids, printState, quantity, response]
      * @Params      : [ids, printState, quantity, response]
      * @Return      : void
      * @Return      : void
      * 
      * 
-     * @Author      : ZhuoNing
+     * @Author      : ZhuoNingc
      * @Date        : 2021/11/9       
      * @Date        : 2021/11/9       
      * @Time        : 19:05
      * @Time        : 19:05
      */
      */
@@ -183,6 +186,9 @@ public class EarmarkController {
                                      @RequestParam(value = "printState",required = false) Integer printState,
                                      @RequestParam(value = "printState",required = false) Integer printState,
                                      @RequestParam(value = "quantity",required = true) Integer quantity,
                                      @RequestParam(value = "quantity",required = true) Integer quantity,
                                      HttpServletResponse response) throws IOException {
                                      HttpServletResponse response) throws IOException {
+        log.info("ids="+ids);
+        log.info("printState="+printState);
+        log.info("quantity="+quantity);
         //
         //
         earmarkService.exportEarmarkByEarmark(ids,printState,quantity,response);
         earmarkService.exportEarmarkByEarmark(ids,printState,quantity,response);
     }
     }

+ 1 - 1
huimv-manage/src/main/java/com/huimv/manage/eartag/service/impl/EarmarkServiceImpl.java

@@ -308,7 +308,7 @@ public class EarmarkServiceImpl implements IEarmarkService {
             if (null != applyId) {
             if (null != applyId) {
                 predList.add(criteriaBuilder.equal(root.get("applyId").as(Integer.class), applyId));
                 predList.add(criteriaBuilder.equal(root.get("applyId").as(Integer.class), applyId));
             }
             }
-            if (null != printState) {
+            if (null != printState && printState != 0) {
                 predList.add(criteriaBuilder.equal(root.get("printState").as(Integer.class), printState));
                 predList.add(criteriaBuilder.equal(root.get("printState").as(Integer.class), printState));
             }
             }
             //
             //