OMS-GW-企业单位
This commit is contained in:
@@ -0,0 +1,39 @@
|
||||
<?xml version="1.0" encoding="UTF-8" ?>
|
||||
<!DOCTYPE mapper
|
||||
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="com.mhd.oms.domain.erpEnterpriseUnit.repository.mapper.ErpEnterpriseUnitMapper">
|
||||
|
||||
|
||||
<select id="queryList" resultType="com.mhd.oms.domain.erpEnterpriseUnit.repository.po.ErpEnterpriseUnitPO">
|
||||
SELECT *
|
||||
FROM erp_enterprise_unit
|
||||
WHERE del_flag = 1
|
||||
<if test="erpEnterpriseUnitDO.erpCode != null and erpEnterpriseUnitDO.erpCode != ''">
|
||||
AND erp_code LIKE CONCAT('%', #{do.erpCode}, '%')
|
||||
</if>
|
||||
<if test="erpEnterpriseUnitDO.erpName != null and erpEnterpriseUnitDO.erpName != ''">
|
||||
AND erp_name LIKE CONCAT('%', #{do.erpName}, '%')
|
||||
</if>
|
||||
<if test="erpEnterpriseUnitDO.pushStatus != null">
|
||||
AND push_status = #{do.pushStatus}
|
||||
</if>
|
||||
<if test="erpEnterpriseUnitDO.pushTimeFrom != null and erpEnterpriseUnitDO.pushTimeFrom != ''">
|
||||
AND DATE_FORMAT(push_time, '%Y-%m-%d') >= #{do.pushTimeFrom}
|
||||
</if>
|
||||
<if test="erpEnterpriseUnitDO.pushTimeTo != null and erpEnterpriseUnitDO.pushTimeTo != ''">
|
||||
AND DATE_FORMAT(push_time, '%Y-%m-%d') <= #{do.pushTimeTo}
|
||||
</if>
|
||||
<if test="erpEnterpriseUnitDO.organizationId != null">
|
||||
AND organization_id = #{do.organizationId}
|
||||
</if>
|
||||
<if test="erpEnterpriseUnitDO.createTimeFrom != null and erpEnterpriseUnitDO.createTimeFrom != ''">
|
||||
AND DATE_FORMAT(create_time, '%Y-%m-%d') >= #{do.createTimeFrom}
|
||||
</if>
|
||||
<if test="erpEnterpriseUnitDO.createTimeTo != null and erpEnterpriseUnitDO.createTimeTo != ''">
|
||||
AND DATE_FORMAT(create_time, '%Y-%m-%d') <= #{do.createTimeTo}
|
||||
</if>
|
||||
ORDER BY create_time DESC
|
||||
</select>
|
||||
|
||||
</mapper>
|
||||
Reference in New Issue
Block a user