集成bms服务模块
This commit is contained in:
@@ -0,0 +1,76 @@
|
||||
<?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.bms.domain.billManage.repository.mapper.BillManageMapper">
|
||||
|
||||
|
||||
|
||||
<select id="queryList" parameterType="com.mhd.bms.domain.billManage.repository.todo.BillManageDO" resultType="com.mhd.bms.domain.billManage.repository.po.BillManagePO">
|
||||
select
|
||||
*
|
||||
from bill_manage
|
||||
where del_flag = 1
|
||||
<include refid="common_where"/>
|
||||
ORDER BY create_time DESC
|
||||
</select>
|
||||
|
||||
<sql id="common_where">
|
||||
<if test="billManageDO.createTimeStart != null and billManageDO.createTimeStart != ''">
|
||||
AND date_format(create_time,'%Y-%m-%d') <![CDATA[>=]]> #{billManageDO.createTimeStart}
|
||||
</if>
|
||||
<if test="billManageDO.createTimeEnd != null and billManageDO.createTimeEnd != ''">
|
||||
AND date_format(create_time,'%Y-%m-%d') <![CDATA[<=]]> #{billManageDO.createTimeEnd}
|
||||
</if>
|
||||
<if test="billManageDO.createByName != null and billManageDO.createByName != ''">
|
||||
AND create_by_name like concat('%', #{billManageDO.createByName}, '%')
|
||||
</if>
|
||||
<if test="billManageDO.topOrganizationId != null and billManageDO.topOrganizationId != ''">
|
||||
AND top_organization_id = #{billManageDO.topOrganizationId}
|
||||
</if>
|
||||
<if test="billManageDO.updateTimeStart != null and billManageDO.updateTimeStart != ''">
|
||||
AND date_format(update_time,'%Y-%m-%d') <![CDATA[>=]]> #{billManageDO.updateTimeStart}
|
||||
</if>
|
||||
<if test="billManageDO.updateTimeEnd != null and billManageDO.updateTimeEnd != ''">
|
||||
AND date_format(update_time,'%Y-%m-%d') <![CDATA[<=]]> #{billManageDO.updateTimeEnd}
|
||||
</if>
|
||||
<if test="billManageDO.updateByName != null and billManageDO.updateByName != ''">
|
||||
AND update_by_name like concat('%', #{billManageDO.updateByName}, '%')
|
||||
</if>
|
||||
<if test="billManageDO.billNumber != null and billManageDO.billNumber != ''">
|
||||
AND bill_number like concat('%', #{billManageDO.billNumber}, '%')
|
||||
</if>
|
||||
<if test="billManageDO.belongModule != null and billManageDO.belongModule != ''">
|
||||
AND belong_module like concat('%', #{billManageDO.belongModule}, '%')
|
||||
</if>
|
||||
<if test="billManageDO.settlementEntity != null and billManageDO.settlementEntity != ''">
|
||||
AND settlement_entity like concat('%', #{billManageDO.settlementEntity}, '%')
|
||||
</if>
|
||||
<if test="billManageDO.billState != null">
|
||||
AND bill_state = #{billManageDO.billState}
|
||||
</if>
|
||||
<if test="billManageDO.reconciliationStatus != null">
|
||||
AND reconciliation_status = #{billManageDO.reconciliationStatus}
|
||||
</if>
|
||||
<if test="billManageDO.billType != null">
|
||||
AND bill_type = #{billManageDO.billType}
|
||||
</if>
|
||||
<if test="billManageDO.queryParam != null and billManageDO.queryParam == 1">
|
||||
AND bill_state <![CDATA[<]]> 5
|
||||
</if>
|
||||
<if test="billManageDO.queryParam != null and billManageDO.queryParam == 2">
|
||||
AND bill_state = 5
|
||||
</if>
|
||||
<if test="billManageDO.queryParam != null and billManageDO.queryParam == 3">
|
||||
AND bill_state = 6
|
||||
</if>
|
||||
<if test="billManageDO.billManageIdSet != null and billManageDO.billManageIdSet.size() > 0">
|
||||
and bill_manage_id in
|
||||
<foreach item="id" collection="billManageDO.billManageIdSet" open="(" separator="," close=")">
|
||||
#{id}
|
||||
</foreach>
|
||||
</if>
|
||||
|
||||
</sql>
|
||||
|
||||
</mapper>
|
||||
Reference in New Issue
Block a user