龚焕茏
2024-04-01 68a37e86d0bfa43e9d4aa0379f47eecee7a0b9c1
ycl-server/src/main/resources/mapper/zgyw/DefaultAuditingMapper.xml
@@ -6,6 +6,8 @@
    <resultMap id="BaseResultMap" type="com.ycl.platform.domain.vo.DefaultAuditingVO">
        <result column="id" property="id" />
        <result column="create_time" property="createTime" />
        <result column="score" property="score" />
        <result column="check_publish_id" property="checkPublishId" />
        <result column="default_id" property="defaultId" />
        <result column="auditing_status" property="auditingStatus" />
        <result column="remark" property="remark" />
@@ -13,11 +15,14 @@
        <result column="nick_name" property="auditingUserName" />
        <result column="rule_name" property="defaultRuleName" />
        <result column="unit_name" property="unitName" />
        <result column="create_by" property="createBy" />
    </resultMap>
    <select id="page" resultMap="BaseResultMap">
        SELECT
               tda.id,
               tda.score,
               tda.check_publish_id,
               tda.create_time,
               tda.default_id,
               tda.auditing_status,
@@ -25,6 +30,7 @@
               tda.auditing_time,
               tda.auditing_user,
               su.nick_name,
               tda.create_by,
               (SELECT unit_name FROM t_yw_unit WHERE id = tdr.unit_id AND deleted = 0) as unit_name,
               (SELECT rule_name FROM t_default_rule WHERE id = tdr.default_rule_id AND deleted = 0) as rule_name
        FROM