|
@@ -3,13 +3,14 @@
|
|
|
<mapper namespace="com.lantone.daqe.mapper.ColumnVerifyMapper">
|
|
|
|
|
|
<select id="getColumnVerifyPage" resultType="com.lantone.daqe.dto.GetColumnVerifyPageDTO">
|
|
|
+ SELECT * from(
|
|
|
SELECT
|
|
|
a.column_id,
|
|
|
a.table_cname,
|
|
|
a.table_ename,
|
|
|
a.column_cname,
|
|
|
a.column_ename,
|
|
|
- GROUP_CONCAT(a.nonnull SEPARATOR ';') nonnull,
|
|
|
+ GROUP_CONCAT(a.isRequired SEPARATOR ';') isRequired,
|
|
|
GROUP_CONCAT(a.standardvalue SEPARATOR ';') standardvalue,
|
|
|
GROUP_CONCAT(a.regular SEPARATOR ';') regular,
|
|
|
a.description
|
|
@@ -23,7 +24,7 @@
|
|
|
dcv.column_ename,
|
|
|
dcv.type,
|
|
|
dcv.description,
|
|
|
- CASE dcv.type WHEN 1 THEN dcv.verify_val ELSE NULL END nonnull,
|
|
|
+ CASE dcv.type WHEN 1 THEN dcv.verify_val ELSE NULL END isRequired,
|
|
|
CASE dcv.type WHEN 2 THEN dcv.verify_val ELSE NULL END standardvalue,
|
|
|
CASE dcv.type WHEN 3 THEN dcv.verify_val ELSE NULL END regular
|
|
|
FROM
|
|
@@ -43,9 +44,13 @@
|
|
|
AND dcv.column_ename= #{getColumnVerifyPageVO.columnEname}
|
|
|
</if>
|
|
|
) a
|
|
|
+
|
|
|
+ GROUP BY
|
|
|
+ a.column_id
|
|
|
+ )a
|
|
|
where
|
|
|
1=1
|
|
|
- <if test="getColumnVerifyPageVO.nonnull != null and getColumnVerifyPageVO.nonnull != ''">
|
|
|
+ <if test="getColumnVerifyPageVO.isRequired != null and getColumnVerifyPageVO.isRequired != ''">
|
|
|
AND a.column_ename = #{getColumnVerifyPageVO.columnEname}
|
|
|
</if>
|
|
|
<if test="getColumnVerifyPageVO.regularName != null and getColumnVerifyPageVO.regularName != ''">
|
|
@@ -54,8 +59,6 @@
|
|
|
<if test="getColumnVerifyPageVO.standardValue != null and getColumnVerifyPageVO.standardValue != ''">
|
|
|
AND a.standardvalue LIKE CONCAT('%',#{getColumnVerifyPageVO.regularName},'%')
|
|
|
</if>
|
|
|
- GROUP BY
|
|
|
- a.column_id
|
|
|
</select>
|
|
|
|
|
|
</mapper>
|