|
@ -31,26 +31,26 @@ |
|
|
</resultMap> |
|
|
</resultMap> |
|
|
<select id="list" resultMap="dataConfigList"> |
|
|
<select id="list" resultMap="dataConfigList"> |
|
|
SELECT |
|
|
SELECT |
|
|
ID AS id, |
|
|
c.ID AS id, |
|
|
DEPT_CODE AS deptCode, |
|
|
c.DEPT_CODE AS deptCode, |
|
|
DEPT_NAME AS deptName, |
|
|
c.DEPT_NAME AS deptName, |
|
|
DATA_NAME AS dataName, |
|
|
c.DATA_NAME AS dataName, |
|
|
switch_status AS switchStatus, |
|
|
c.switch_status AS switchStatus, |
|
|
sort AS sort, |
|
|
c.sort AS sort, |
|
|
data_code AS dataCode, |
|
|
c.data_code AS dataCode, |
|
|
customer_id as customerId |
|
|
c.customer_id as customerId |
|
|
FROM data_sync_config |
|
|
FROM data_sync_config c |
|
|
WHERE DEL_FLAG = 0 |
|
|
WHERE c.DEL_FLAG = 0 |
|
|
<if test="switchStatus != null and switchStatus != ''"> |
|
|
<if test="switchStatus != null and switchStatus != ''"> |
|
|
AND switch_status = #{switchStatus} |
|
|
AND c.switch_status = #{switchStatus} |
|
|
</if> |
|
|
</if> |
|
|
<if test='null != customerId and customerId != "" '> |
|
|
<if test='null != customerId and customerId != "" '> |
|
|
AND CUSTOMER_ID = #{customerId} |
|
|
AND c.CUSTOMER_ID = #{customerId} |
|
|
</if> |
|
|
</if> |
|
|
<if test="dataCode != null and dataCode != ''"> |
|
|
<if test="dataCode != null and dataCode != ''"> |
|
|
AND data_code = #{dataCode} |
|
|
AND c.data_code = #{dataCode} |
|
|
</if> |
|
|
</if> |
|
|
order by sort |
|
|
order by CONVERT(c.DEPT_NAME USING gbk),c.sort asc |
|
|
</select> |
|
|
</select> |
|
|
|
|
|
|
|
|
<!-- 范围查询 --> |
|
|
<!-- 范围查询 --> |
|
|