ZeroLiYi hai 1 ano
pai
achega
728f080b8f

+ 36 - 0
src/main/java/com/chinaitop/depot/sqr/controller/BizSqrEnterpriseController.java

@@ -13,13 +13,21 @@
13 13
 package com.chinaitop.depot.sqr.controller;
14 14
 
15 15
 
16
+import com.chinaitop.depot.sqr.model.BizSqrEnterpriseApply;
16 17
 import com.chinaitop.depot.sqr.service.BizSqrEnterpriseService;
18
+import com.github.pagehelper.PageHelper;
19
+import com.github.pagehelper.PageInfo;
17 20
 import io.swagger.annotations.Api;
21
+import io.swagger.annotations.ApiImplicitParam;
22
+import io.swagger.annotations.ApiImplicitParams;
23
+import io.swagger.annotations.ApiOperation;
18 24
 import org.springframework.validation.annotation.Validated;
25
+import org.springframework.web.bind.annotation.GetMapping;
19 26
 import org.springframework.web.bind.annotation.RestController;
20 27
 
21 28
 
22 29
 import javax.annotation.Resource;
30
+import java.util.List;
23 31
 
24 32
 /**
25 33
  * 粮食储备-承储资格企业控制器
@@ -37,6 +45,34 @@ public class BizSqrEnterpriseController {
37 45
 
38 46
 
39 47
     /**
48
+     * 下拉获取粮承储资格企业
49
+     *
50
+     * @author ZeroLiYi
51
+     * @date  2024/04/28 10:01
52
+     */
53
+//    @ApiOperation("承储资格申请分页")
54
+//    @GetMapping("/page")
55
+//    @ApiImplicitParams({
56
+//            @ApiImplicitParam(name = "pageNum", value = "页码", paramType = "query"),
57
+//            @ApiImplicitParam(name = "pageSize", value = "每页条数", paramType = "query"),
58
+//            @ApiImplicitParam(name = "dwdm", value = "单位代码", paramType = "query"),
59
+//            @ApiImplicitParam(name = "applyType", value = "申请类型", paramType = "query")
60
+//
61
+//    })
62
+//    public PageInfo<BizSqrEnterpriseApply> page(Integer pageNum, Integer pageSize, String dwdm, Integer applyType) {
63
+//
64
+//        if (pageNum!=null && pageSize!=null) {
65
+//            PageHelper.startPage(pageNum, pageSize);
66
+//        }
67
+//        List<BizSqrEnterpriseApply> list = bizGrQeApplyService.findByPage(dwdm,applyType);
68
+//        PageInfo<BizSqrEnterpriseApply> pageInfo = new PageInfo<BizSqrEnterpriseApply>(list);
69
+//        return pageInfo;
70
+//    }
71
+
72
+
73
+
74
+
75
+    /**
40 76
      * 添加粮食储备-承储资格企业
41 77
      *
42 78
      * @author ZeroLiYi

+ 10 - 2
src/main/java/com/chinaitop/depot/sqr/mapper/BizSqrEnterpriseApplyMapper.xml

@@ -107,10 +107,18 @@
107 107
     </select>
108 108
     <select id="findById" resultType="Map" resultMap="BaseResultMap">
109 109
         SELECT
110
-            A.dwmc,A.id unitInfoId, A.dwdm,A.fddbr,A.dwlx,A.zcdz,A.cfs,A.ygs,A.DICT_LABEL,bgqa.*
110
+            A.dwmc,A.id unitInfoId, A.dwdm,A.fddbr,A.dwlx,A.zcdz,A.cfs,A.ygs,A.DICT_LABEL,bgqa.apply_status,bgqa.apply_type,
111
+               bse.certified_storekeeper_count ,bse.certified_inspector_count ,bse.warehouse_facility_situation ,
112
+               bse.full_time_staff_count ,bse.storage_expire_time ,bse.attachment attachment
111 113
         FROM
112 114
             province_all.biz_sqr_enterprise_apply bgqa
113
-                left join(select bui.id,bui.dwmc,bui.dwdm,bui.fddbr,bui.dwlx,bui.zcdz,bui.cfs,bui.ygs,dict.DICT_LABEL  from province_all.biz_unit_info bui left join province_all.dev_dict dict on bui.dwlx = dict.id where bui.id =#{unitInfoId,jdbcType=VARCHAR})A  on bgqa.unit_info_id = A.id
115
+            left join province_all.biz_sqr_enterprise  bse on bgqa.sqr_enterprise_id =bse.id
116
+                left join(select bui.id,bui.dwmc,bui.dwdm,bui.fddbr,bui.dwlx,bui.zcdz,bui.cfs,bui.ygs,dict.DICT_LABEL  from province_all.biz_unit_info bui left join province_all.dev_dict dict on bui.dwlx = dict.id
117
+        <if test="unitInfoId != null and unitInfoId != ''">
118
+            where bui.id =#{unitInfoId,jdbcType=VARCHAR}
119
+        </if>
120
+
121
+                    )A  on bgqa.unit_info_id = A.id
114 122
         where bgqa.id=#{id,jdbcType=INTEGER} and bgqa.apply_type=#{applyType,jdbcType=INTEGER}
115 123
 
116 124
     </select>

+ 2 - 0
src/main/java/com/chinaitop/depot/sqr/model/BizSqrEnterpriseApply.java

@@ -236,4 +236,6 @@ public class BizSqrEnterpriseApply {
236 236
     public void setStatus(Integer status) {
237 237
         this.status = status;
238 238
     }
239
+
240
+
239 241
 }