gaodd 1 rok temu
rodzic
commit
789cf70825

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

@@ -15,6 +15,7 @@ package com.chinaitop.depot.sqr.controller;
15 15
 
16 16
 import com.chinaitop.depot.sqr.model.BizSqrEnterprise;
17 17
 import com.chinaitop.depot.sqr.model.BizSqrEnterpriseApply;
18
+import com.chinaitop.depot.sqr.model.vo.BizSqrEnterpriseApplyVO;
18 19
 import com.chinaitop.depot.sqr.service.BizSqrEnterpriseService;
19 20
 import com.github.pagehelper.PageHelper;
20 21
 import com.github.pagehelper.PageInfo;
@@ -61,6 +62,16 @@ public class BizSqrEnterpriseController {
61 62
         return list;
62 63
     }
63 64
 
65
+    
66
+    @ApiOperation("粮承储资格企业详情")
67
+    @GetMapping("/findById")
68
+    @ApiImplicitParams({
69
+            @ApiImplicitParam(name = "id", value = "主键", paramType = "query")
70
+    })
71
+    public BizSqrEnterprise findById(String id) {
72
+
73
+        return bizSqrEnterpriseService.findById(id);
74
+    }
64 75
 
65 76
 
66 77
 

+ 2 - 0
src/main/java/com/chinaitop/depot/sqr/mapper/BizSqrEnterpriseMapper.java

@@ -38,4 +38,6 @@ public interface BizSqrEnterpriseMapper {
38 38
     List<BizSqrEnterprise> TreeList();
39 39
 
40 40
     BizSqrEnterprise fibdByEnterprise(String unitInfoId);
41
+
42
+	BizSqrEnterprise findById(String id);
41 43
 }

+ 32 - 0
src/main/java/com/chinaitop/depot/sqr/mapper/BizSqrEnterpriseMapper.xml

@@ -101,4 +101,36 @@
101 101
     </select>
102 102
 
103 103
 
104
+   <select id="findById" parameterType="java.lang.String" resultMap="BaseResultMap">
105
+   		SELECT A.dwmc,
106
+               A.id  unitInfoId,
107
+               A.dwdm,
108
+               A.fddbr,
109
+               A.dwlx,
110
+               A.zcdz,
111
+               A.cfs,
112
+               A.ygs,
113
+               A.DICT_LABEL,
114
+               bse.certified_storekeeper_count,
115
+               bse.certified_inspector_count,
116
+               bse.warehouse_facility_situation,
117
+               bse.full_time_staff_count,
118
+               bse.storage_expire_time,
119
+               bse.attachment attachment,
120
+               bse.id
121
+        FROM province_all.biz_sqr_enterprise bse
122
+                 LEFT JOIN (select bui.id,
123
+                             bui.dwmc,
124
+                             bui.dwdm,
125
+                             bui.fddbr,
126
+                             bui.dwlx,
127
+                             bui.zcdz,
128
+                             bui.cfs,
129
+                             bui.ygs,
130
+                             dict.DICT_LABEL
131
+                      from province_all.biz_unit_info bui
132
+                               left join province_all.dev_dict dict on bui.dwlx = dict.id
133
+        ) A ON bse.unit_info_id = A.id where A.id = #{id}
134
+   </select>
135
+
104 136
 </mapper>

+ 2 - 0
src/main/java/com/chinaitop/depot/sqr/service/BizSqrEnterpriseService.java

@@ -38,5 +38,7 @@ public interface BizSqrEnterpriseService {
38 38
 
39 39
     List<BizSqrEnterprise> TreeList();
40 40
 
41
+	BizSqrEnterprise findById(String id);
42
+
41 43
 
42 44
 }

+ 6 - 0
src/main/java/com/chinaitop/depot/sqr/service/impl/BizSqrEnterpriseServiceImpl.java

@@ -55,5 +55,11 @@ public class BizSqrEnterpriseServiceImpl implements BizSqrEnterpriseService {
55 55
         return bizSqrEnterpriseMapper.TreeList();
56 56
     }
57 57
 
58
+	@Override
59
+	public BizSqrEnterprise findById(String id) {
60
+		// TODO Auto-generated method stub
61
+		return bizSqrEnterpriseMapper.findById(id);
62
+	}
63
+
58 64
 
59 65
 }