| | |
| | | <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" /> |
| | |
| | | <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, |
| | |
| | | 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 |