Browse Source

取消入区核放核注权限验证

wenjinbiao 2 months ago
parent
commit
f4b0fa809e

+ 10 - 0
snowy-plugin/snowy-plugin-biz/src/main/java/vip/xiaonuo/biz/modular/qysecondlinehzdrqtz/controller/QySecondlineHzdRqTzController.java

@@ -27,8 +27,10 @@ import vip.xiaonuo.biz.modular.qyrecardbody.param.QyRecardBodyIdParam;
 import vip.xiaonuo.biz.modular.qyrecordinfo.entity.QyRecordInfo;
 import vip.xiaonuo.biz.modular.qyrecordproduct.entity.QyRecordProduct;
 import vip.xiaonuo.biz.modular.qysecondlinehzdlist.entity.QySecondlineHzdList;
+import vip.xiaonuo.biz.modular.qysecondlinehzdproduct.entity.QySecondlineHzdProduct;
 import vip.xiaonuo.biz.modular.qysecondlinehzdqd.entity.QySecondlineHzdQd;
 import vip.xiaonuo.biz.modular.qysecondlinehzdrqlist.entity.QySecondlineHzdRqList;
+import vip.xiaonuo.biz.modular.qysecondlinehzdrqproduct.entity.QySecondlineHzdRqProduct;
 import vip.xiaonuo.biz.modular.qysecondlinehzdrqqd.entity.QySecondlineHzdRqQd;
 import vip.xiaonuo.biz.modular.qysecondlinehzdrqtz.param.*;
 import vip.xiaonuo.biz.modular.qysecondlinehzdrqtz.vo.QySecondlineRqHzdDetailVo;
@@ -221,4 +223,12 @@ public class QySecondlineHzdRqTzController {
     public CommonResult<List<QySecondlineHzdRqList>> getHzListByTzId(@Valid QySecondlineHzdRqTzIdParam qySecondlineHzdTzIdParam) {
         return CommonResult.data(qySecondlineHzdRqTzService.getHzListByTzId(qySecondlineHzdTzIdParam.getId(),null));
     }
+
+
+    @Operation(summary = "根据海关编号获取商品列表")
+//    @SaCheckPermission("/biz/qysecondlinehzdtz/detail")
+    @GetMapping("/biz/qysecondlinehzdrqtz/getProductByHgHzdCode")
+    public CommonResult<List<QySecondlineHzdRqProduct>> getProductByHgHzdCode(@Valid QySecondlineHzdRqTzIdParam qySecondlineHzdTzIdParam) {
+        return CommonResult.data(qySecondlineHzdRqTzService.getProductByHgHzdCode(qySecondlineHzdTzIdParam));
+    }
 }

+ 2 - 0
snowy-plugin/snowy-plugin-biz/src/main/java/vip/xiaonuo/biz/modular/qysecondlinehzdrqtz/param/QySecondlineHzdRqTzIdParam.java

@@ -34,4 +34,6 @@ public class QySecondlineHzdRqTzIdParam {
     private String id;
 
     private String tzCode;
+
+    private String hgHzCode;
 }

+ 3 - 0
snowy-plugin/snowy-plugin-biz/src/main/java/vip/xiaonuo/biz/modular/qysecondlinehzdrqtz/service/QySecondlineHzdRqTzService.java

@@ -19,6 +19,7 @@ import vip.xiaonuo.biz.modular.qyrecardbody.param.QyRecardBodyIdParam;
 import vip.xiaonuo.biz.modular.qyrecordinfo.entity.QyRecordInfo;
 import vip.xiaonuo.biz.modular.qysecondlinehzdlist.entity.QySecondlineHzdList;
 import vip.xiaonuo.biz.modular.qysecondlinehzdrqlist.entity.QySecondlineHzdRqList;
+import vip.xiaonuo.biz.modular.qysecondlinehzdrqproduct.entity.QySecondlineHzdRqProduct;
 import vip.xiaonuo.biz.modular.qysecondlinehzdrqqd.entity.QySecondlineHzdRqQd;
 import vip.xiaonuo.biz.modular.qysecondlinehzdrqtz.entity.QySecondlineHzdRqTz;
 import vip.xiaonuo.biz.modular.qysecondlinehzdrqtz.param.*;
@@ -94,4 +95,6 @@ public interface QySecondlineHzdRqTzService extends IService<QySecondlineHzdRqTz
     List<QySecondlineHzdRqQd> hzdQdList();
 
     List<QySecondlineHzdRqList> getHzListByTzId(String tzId, String hzdId);
+
+    List<QySecondlineHzdRqProduct> getProductByHgHzdCode(QySecondlineHzdRqTzIdParam qySecondlineHzdTzIdParam);
 }

+ 13 - 0
snowy-plugin/snowy-plugin-biz/src/main/java/vip/xiaonuo/biz/modular/qysecondlinehzdrqtz/service/impl/QySecondlineHzdRqTzServiceImpl.java

@@ -265,6 +265,19 @@ public class QySecondlineHzdRqTzServiceImpl extends ServiceImpl<QySecondlineHzdR
     }
 
     @Override
+    public List<QySecondlineHzdRqProduct> getProductByHgHzdCode(QySecondlineHzdRqTzIdParam qySecondlineHzdTzIdParam) {
+        QueryWrapper<QySecondlineHzdRqTz> queryWrapper = new QueryWrapper<QySecondlineHzdRqTz>().checkSqlInjection();
+        queryWrapper.lambda().eq(QySecondlineHzdRqTz::getHgHzdCode,qySecondlineHzdTzIdParam.getHgHzCode());
+        QySecondlineHzdRqTz hzdTz = this.getOne(queryWrapper);
+
+        QueryWrapper<QySecondlineHzdRqProduct> productWrapper = new QueryWrapper<QySecondlineHzdRqProduct>().checkSqlInjection();
+        productWrapper.lambda().eq(QySecondlineHzdRqProduct::getHzdId,hzdTz.getHzdId());
+
+        List<QySecondlineHzdRqProduct> list = qySecondlineHzdRqProductService.list(productWrapper);
+        return list;
+    }
+
+    @Override
     public QySecondlineHzdRqTz queryEntity(String id) {
         QySecondlineHzdRqTz qySecondlineHzdRqTz = this.getById(id);
         if(ObjectUtil.isEmpty(qySecondlineHzdRqTz)) {