Browse Source

Merge branch 'dev' of depot-qinghai/depot-system-qinghai into master

gdd 6 months ago
parent
commit
70d8bb07a8

+ 2 - 2
src/main/java/com/chinaitop/depot/sqr/controller/BizSqrEnterpriseApplyController.java

@@ -63,12 +63,12 @@ public class BizSqrEnterpriseApplyController {
63 63
             @ApiImplicitParam(name = "applyType", value = "申请类型", paramType = "query")
64 64
 
65 65
     })
66
-    public PageInfo<BizSqrEnterpriseApply> page(Integer pageNum, Integer pageSize,String dwmc,Integer applyType) {
66
+    public PageInfo<BizSqrEnterpriseApply> page(Integer pageNum, Integer pageSize,String dwmc,Integer applyType,String unitInfoId) {
67 67
 
68 68
         if (pageNum!=null && pageSize!=null) {
69 69
             PageHelper.startPage(pageNum, pageSize);
70 70
         }
71
-        List<BizSqrEnterpriseApply> list = bizGrQeApplyService.findByPage(dwmc,applyType);
71
+        List<BizSqrEnterpriseApply> list = bizGrQeApplyService.findByPage(dwmc,applyType,unitInfoId);
72 72
         PageInfo<BizSqrEnterpriseApply> pageInfo = new PageInfo<BizSqrEnterpriseApply>(list);
73 73
         return pageInfo;
74 74
     }

+ 5 - 1
src/main/java/com/chinaitop/depot/sqr/mapper/BizSqrEnterpriseApplyMapper.xml

@@ -101,8 +101,12 @@
101 101
                 LEFT JOIN province_all.biz_audit_request bgq ON bgqa.id = bgq.request_id
102 102
         where bgqa.apply_type=#{applyType,jdbcType=INTEGER}
103 103
         <if test="dwmc != null and dwmc != ''">
104
-            and bui.dwmc LIKE concat('%', #{dwmc}, '%')
104
+            and A.dwmc LIKE concat('%', #{dwmc}, '%')
105 105
         </if>
106
+        <if test="unitInfoId != null and unitInfoId != ''">
107
+            and A.id=#{unitInfoId}
108
+        </if>
109
+
106 110
         ORDER BY bgqa.id desc
107 111
         
108 112
 

+ 1 - 1
src/main/java/com/chinaitop/depot/sqr/service/BizSqrEnterpriseApplyService.java

@@ -36,7 +36,7 @@ public interface BizSqrEnterpriseApplyService {
36 36
      * @author ZeroLiYi
37 37
      * @date  2024/04/28 10:01
38 38
      */
39
-    List<BizSqrEnterpriseApply>findByPage(String dwmc,Integer applyType);
39
+    List<BizSqrEnterpriseApply>findByPage(String dwmc,Integer applyType,String unitInfoId);
40 40
 
41 41
 
42 42
     BizSqrEnterpriseApplyVO findById(Integer applyType,String unitInfoId,Integer id);

+ 5 - 3
src/main/java/com/chinaitop/depot/sqr/service/impl/BizSqrEnterpriseApplyServiceImpl.java

@@ -78,10 +78,11 @@ public class BizSqrEnterpriseApplyServiceImpl implements BizSqrEnterpriseApplySe
78 78
 
79 79
 
80 80
     @Override
81
-    public  List<BizSqrEnterpriseApply> findByPage(String dwmc,Integer applyType){
81
+    public  List<BizSqrEnterpriseApply> findByPage(String dwmc,Integer applyType,String unitInfoId){
82 82
         Map map=new HashMap<>();
83 83
         map.put("dwmc",dwmc);
84 84
         map.put("applyType",applyType);
85
+        map.put("unitInfoId",unitInfoId);
85 86
        return bizSqrEnterpriseApplyMapper.findByPage(map);
86 87
     }
87 88
 
@@ -116,6 +117,7 @@ public class BizSqrEnterpriseApplyServiceImpl implements BizSqrEnterpriseApplySe
116 117
         Integer orgId = null;
117 118
         String userName = "";
118 119
         Map<String, Object> modelMap1 = new HashMap<String, Object>();
120
+        String msg= "该企业已有承储资格,请勿重复申请";
119 121
         //获取单位信息
120 122
         String dwbm = "";
121 123
         String ajbm ="";
@@ -151,7 +153,7 @@ public class BizSqrEnterpriseApplyServiceImpl implements BizSqrEnterpriseApplySe
151 153
                 }else{
152 154
                     if(bizSqrEnterpriseApply.getApplyType()==1){
153 155
                         if(bizSqrEnterprise!=null){
154
-                            modelMap.put("error", "该企业已有承储资格,请勿重复申请");
156
+                            modelMap.put("error", msg);
155 157
                             return modelMap;
156 158
                         }
157 159
                     }
@@ -184,7 +186,7 @@ public class BizSqrEnterpriseApplyServiceImpl implements BizSqrEnterpriseApplySe
184 186
                     if(bizSqrEnterpriseApply.getApplyType()!=4){
185 187
                         if(bizSqrEnterpriseApply.getApplyType()==1){
186 188
                             if(bizSqrEnterprise!=null){
187
-                                modelMap.put("error", "该企业已有承储资格,请勿重复申请");
189
+                                modelMap.put("error", msg);
188 190
                                 return modelMap;
189 191
                             }
190 192
                         }

+ 15 - 0
src/main/java/com/chinaitop/depot/system/controller/FuncInfoController.java

@@ -70,6 +70,21 @@ public class FuncInfoController {
70 70
 		return pageInfo;
71 71
 	}
72 72
 
73
+	
74
+	
75
+	/**
76
+	 * 查找功能信息
77
+	 * @return
78
+	 */
79
+	@RequestMapping(value="/getFuncList", method = RequestMethod.GET)
80
+	@ApiOperation(value="功能列表", notes = "查询功能列表")
81
+	public List<FuncInfo> getFuncInfo() {
82
+		FuncInfoExample example = new FuncInfoExample();
83
+		Criteria criteria = example.createCriteria();
84
+		return funcInfoService.queryByExample(example);	
85
+	}
86
+	
87
+	
73 88
 	/**
74 89
 	 * 根据编号查找功能信息
75 90
 	 * @param funcId	编号