Quellcode durchsuchen

Merge branch 'dev' of http://git.ycjcjy.com/zhiyuxing/estateagents into dev

傅行帆 vor 5 Jahren
Ursprung
Commit
9f5a051dcc

+ 2
- 0
src/main/java/com/huiju/estateagents/common/CommConstant.java Datei anzeigen

@@ -806,6 +806,8 @@ public class CommConstant {
806 806
      */
807 807
     public static final String AUTO_AUTH_STATUS = "3000";
808 808
 
809
+    public static final String AUTO_UNAUTH_STATUS = "3001";
810
+
809 811
     public static final String  AUTH_SUCCESS_DESC = "签章成功";
810 812
 
811 813
     /**

+ 8
- 2
src/main/java/com/huiju/estateagents/eContract/controller/TaCompanyController.java Datei anzeigen

@@ -133,7 +133,7 @@ public class TaCompanyController extends BaseController {
133 133
         try {
134 134
             //使用分页插件
135 135
             IPage<TaCompany> pg = new Page<>(pageNum, pageSize);
136
-            IPage<TaCompany> result = iTaCompanyService.selectListByOrgId(pg, companyCode, companyName, getOrgId(request));
136
+            IPage<TaCompany> result = iTaCompanyService.selectListByOrgId(pg, companyName, companyCode, getOrgId(request));
137 137
             List<TaCompany> taCompanyList = result.getRecords();
138 138
             for (TaCompany taCompany : taCompanyList){
139 139
                 QueryWrapper<TaCompanySeal> sealQueryWrapper = new QueryWrapper<>();
@@ -173,7 +173,13 @@ public class TaCompanyController extends BaseController {
173 173
             queryWrapper.like(StringUtils.isNotBlank(companyName), "company_name", companyName);
174 174
             queryWrapper.like(StringUtils.isNotBlank(companyCode), "company_code", companyCode);
175 175
             queryWrapper.eq(StringUtils.isNotBlank(status), "status", status);
176
-            queryWrapper.eq(StringUtils.isNotBlank(authorizeStatus), "authorize_status", authorizeStatus);
176
+            if (CommConstant.AUTO_AUTH_STATUS.equals(authorizeStatus)){
177
+                queryWrapper.eq(StringUtils.isNotBlank(authorizeStatus), "authorize_status", authorizeStatus);
178
+            }
179
+            if (CommConstant.AUTO_UNAUTH_STATUS.equals(authorizeStatus)){
180
+                queryWrapper.nested(i -> i.eq("authorize_status", CommConstant.AUTO_UNAUTH_STATUS).or().isNull("authorize_status"));
181
+            }
182
+
177 183
             queryWrapper.ne("status", CommConstant.STATUS_DELETE);
178 184
             queryWrapper.orderByDesc("create_date");
179 185
 

+ 2
- 2
src/main/resources/mapper/eContract/TaCompanyMapper.xml Datei anzeigen

@@ -13,10 +13,10 @@
13 13
         left join ta_company_org a on t.company_id = a.company_id
14 14
         where a.org_id = #{orgId}
15 15
         <if test="companyCode != null and companyCode!=''">
16
-            and t.company_code = #{companyCode}
16
+            and t.company_code like CONCAT('%', #{companyCode}, '%')
17 17
         </if>
18 18
         <if test="companyName != null and companyName!=''">
19
-            and t.company_name = #{companyName}
19
+            and t.company_name like CONCAT('%', #{companyName}, '%')
20 20
         </if>
21 21
         and t.status = 4
22 22
         order by t.create_date desc