OMS-GW-企业国别
This commit is contained in:
@@ -3,22 +3,20 @@
|
||||
<mapper namespace="com.mhd.oms.domain.erpCountry.repository.mapper.ErpCountryMapper">
|
||||
|
||||
<select id="queryList" resultType="com.mhd.oms.domain.erpCountry.repository.po.ErpCountryPO">
|
||||
SELECT ID, ERP_COUNTRY_CODE, ERP_COUNTRY_NAME, REMARK, PUSH_STATUS, PUSH_TIME, PUSH_BY,
|
||||
ORGANIZATION_ID, TOP_ORGANIZATION_ID, ORGANIZATION_NAME,
|
||||
CREATE_BY, CREATE_BY_NAME, CREATE_TIME, UPDATE_BY, UPDATE_BY_NAME, UPDATE_TIME, DEL_FLAG
|
||||
SELECT *
|
||||
FROM ERP_COUNTRY
|
||||
WHERE DEL_FLAG = 1
|
||||
<if test="erpCountryDTO.pushStatus != null">
|
||||
AND PUSH_STATUS = #{dto.pushStatus}
|
||||
AND PUSH_STATUS = #{erpCountryDTO.pushStatus}
|
||||
</if>
|
||||
<if test="erpCountryDTO.pushTimeFrom != null and erpCountryDTO.pushTimeFrom != ''">
|
||||
AND DATE_FORMAT(PUSH_TIME, '%Y-%m-%d') >= #{dto.pushTimeFrom}
|
||||
AND DATE_FORMAT(PUSH_TIME, '%Y-%m-%d') >= #{erpCountryDTO.pushTimeFrom}
|
||||
</if>
|
||||
<if test="erpCountryDTO.pushTimeTo != null and erpCountryDTO.pushTimeTo != ''">
|
||||
AND DATE_FORMAT(PUSH_TIME, '%Y-%m-%d') <= #{dto.pushTimeTo}
|
||||
AND DATE_FORMAT(PUSH_TIME, '%Y-%m-%d') <= #{erpCountryDTO.pushTimeTo}
|
||||
</if>
|
||||
<if test="erpCountryDTO.organizationId != null">
|
||||
AND ORGANIZATION_ID = #{dto.organizationId}
|
||||
AND ORGANIZATION_ID = #{erpCountryDTO.organizationId}
|
||||
</if>
|
||||
ORDER BY CREATE_TIME DESC
|
||||
</select>
|
||||
|
||||
Reference in New Issue
Block a user