he2802 2 gadi atpakaļ
vecāks
revīzija
6ef7107196

+ 1 - 1
zhongzheng-common/src/main/java/com/zhongzheng/common/type/EncryptHandler.java

@@ -17,7 +17,7 @@ public class EncryptHandler  implements TypeHandler<String> {
 
     private static final byte[] KEYS = "base20230213zzkj".getBytes(StandardCharsets.UTF_8);
 
-    public static final boolean ENCRYPT_STATUS = true; //是否开启字段加密
+    public static final boolean ENCRYPT_STATUS = false; //是否开启字段加密
 
 
 

+ 1 - 0
zhongzheng-framework/src/main/java/com/zhongzheng/framework/mybatisplus/CustomTenantLineHandler.java

@@ -54,6 +54,7 @@ public class CustomTenantLineHandler implements TenantLineHandler {
         add("columns");
         add("sys_logininfor");
         add("sys_old_org");
+        add("top_sys_tenant_register");
     }};
 
     /**

+ 1 - 0
zhongzheng-system/src/main/java/com/zhongzheng/modules/top/bo/TopSysTenantRegisterAddBo.java

@@ -30,6 +30,7 @@ public class TopSysTenantRegisterAddBo {
 
     /** 机构名称 */
     @ApiModelProperty("机构名称")
+    @NotBlank(message = "机构名称不能为空")
     private String tenantName;
     /** PC域名 */
     @ApiModelProperty("PC域名")

+ 1 - 35
zhongzheng-system/src/main/resources/mapper/modules/collect/CollectQuestionMapper.xml

@@ -138,41 +138,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
         e.exam_id
         ORDER BY
         create_time desc
-        UNION ALL
-        SELECT
-        e.exam_id,
-        e.exam_name,
-        e.create_time,
-        COUNT( cq.question_id ) question_num,
-        3 AS do_mode
-        FROM
-        collect_question cq
-        LEFT JOIN exam_simulate e ON cq.exam_id = e.exam_id
-        LEFT JOIN exam_paper ep ON ep.paper_id = e.exam_paper_id
-        LEFT JOIN goods g ON g.goods_id = cq.goods_id
-        WHERE
-        1 = 1
-        AND cq.do_mode = 3
-        AND cq.user_id = #{userId}
-        <if test="paperId != null and paperId != ''">
-            AND e.exam_paper_id = #{paperId}
-        </if>
-        <if test="goodsId != null and goodsId != ''">
-            AND cq.goods_id = #{goodsId}
-        </if>
-        <if test="orderGoodsId != null and orderGoodsId != ''">
-            AND cq.order_goods_id = #{orderGoodsId}
-        </if>
-        <if test="businessId != null and businessId != ''">
-            AND g.business_id = #{businessId}
-        </if>
-        <if test="educationTypeId != null and educationTypeId != ''">
-            AND g.education_type_id = #{educationTypeId}
-        </if>
-        GROUP BY
-        e.exam_id
-        ORDER BY
-        create_time desc
+       
     </select>
 
     <select id="selectExamQuestionList" parameterType="com.zhongzheng.modules.collect.bo.CollectQuestionQueryBo"  resultMap="QuestionResultVo">