Procházet zdrojové kódy

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

傅行帆 před 5 roky
rodič
revize
fc0b71f191

+ 4
- 2
src/main/java/com/huiju/estateagents/eContract/controller/TaCompanyController.java Zobrazit soubor

@@ -549,8 +549,10 @@ public class TaCompanyController extends BaseController {
549 549
         taCompanySealQueryWrapper.eq("company_id", taCompany.getCompanyId());
550 550
         taCompanySealQueryWrapper.eq("default_seal", CommConstant.STATUS_NORMAL);
551 551
         TaCompanySeal oldDefaultSeal = iTaCompanySealService.getOne(taCompanySealQueryWrapper);
552
-        oldDefaultSeal.setDefaultSeal(CommConstant.STATUS_UNACCALIMED);
553
-        iTaCompanySealService.updateById(oldDefaultSeal);
552
+        if (oldDefaultSeal != null){
553
+            oldDefaultSeal.setDefaultSeal(CommConstant.STATUS_UNACCALIMED);
554
+            iTaCompanySealService.updateById(oldDefaultSeal);
555
+        }
554 556
 
555 557
         //更新默认章
556 558
         taCompanySeal.setDefaultSeal(CommConstant.STATUS_NORMAL);

+ 1
- 0
src/main/java/com/huiju/estateagents/eContract/service/impl/TaCompanyServiceImpl.java Zobrazit soubor

@@ -221,6 +221,7 @@ public class TaCompanyServiceImpl extends ServiceImpl<TaCompanyMapper, TaCompany
221 221
         QueryWrapper<TaContract> taContractQueryWrapper = new QueryWrapper<>();
222 222
         taContractQueryWrapper.eq("target_type", CommConstant.AUTH);
223 223
         taContractQueryWrapper.eq("company_id", companyId);
224
+        taContractQueryWrapper.eq("status", CommConstant.STATUS_NORMAL);
224 225
         TaContract taContract = taContractMapper.selectOne(taContractQueryWrapper);
225 226
 
226 227
         TaCompany taCompany = taCompanyMapper.selectById(companyId);

+ 3
- 2
src/main/resources/mapper/eContract/TaContractMapper.xml Zobrazit soubor

@@ -32,7 +32,7 @@
32 32
                     AND t.signatory_time = NULL
33 33
                 </when>
34 34
                 <when test="signatoryStatus == 1">
35
-                    AND t.signatory_time &lt;&gt; NULL
35
+                    AND t.signatory_time is not NULL
36 36
                 </when>
37 37
                 <otherwise></otherwise>
38 38
             </choose>
@@ -41,7 +41,7 @@
41 41
                     AND t.customer_time = NULL
42 42
                 </when>
43 43
                 <when test="customerStatus == 1">
44
-                    AND t.customer_time &lt;&gt; NULL
44
+                    AND t.customer_time is not NULL
45 45
                 </when>
46 46
                 <otherwise></otherwise>
47 47
             </choose>
@@ -65,6 +65,7 @@
65 65
             LEFT JOIN ta_channel_app_relation t5 ON t.org_id = t5.org_id
66 66
             LEFT JOIN ta_channel_proxy t6 ON t5.channel_id = t6.channel_id
67 67
         <where>
68
+            t.target_type != 'auth'
68 69
             <if test=" bo.companyName != null and bo.companyName != ''">
69 70
                 AND t2.company_name like CONCAT('%',#{bo.companyName} , '%')
70 71
             </if>