oms执行单修改
This commit is contained in:
@@ -25,38 +25,50 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
|
||||
|
||||
<sql id="selectExecuteOrderPo">
|
||||
select ID, REAL_CREATE_BY, REAL_CREATE_NAME, CREATE_BY, CREATE_COMPANY_ID, CREATE_TIME, UPDATE_BY, UPDATE_TIME, DEL_FLAG, GOODS_NUMBER, ORG_NAME, ORGANIZATION_ID, BUSINESS_DOCUMENT_ID, BUSINESS_DOCUMENT_NUMBER, ORGANIZATION_NAME, TOP_ORGANIZATION_ID from execute_order
|
||||
select * from execute_order
|
||||
</sql>
|
||||
|
||||
<sql id="selectExecuteOrderPo1">
|
||||
<where>
|
||||
<if test="id != null ">
|
||||
and ID = #{id}
|
||||
</if>
|
||||
<if test="realCreateBy != null and realCreateBy != ''">
|
||||
and REAL_CREATE_BY = #{realCreateBy}
|
||||
</if>
|
||||
<if test="realCreateName != null and realCreateName != ''">
|
||||
and REAL_CREATE_NAME like concat('%', #{realCreateName}, '%')
|
||||
</if>
|
||||
<if test="createBy != null and createBy != ''">
|
||||
and CREATE_BY = #{createBy}
|
||||
</if>
|
||||
<if test="createCompanyId != null and createCompanyId != ''">
|
||||
and CREATE_COMPANY_ID = #{createCompanyId}
|
||||
</if>
|
||||
<if test="createTime != null ">
|
||||
and CREATE_TIME = #{createTime}
|
||||
</if>
|
||||
<if test="updateBy != null and updateBy != ''">
|
||||
and UPDATE_BY = #{updateBy}
|
||||
</if>
|
||||
<if test="updateTime != null ">
|
||||
and UPDATE_TIME = #{updateTime}
|
||||
</if>
|
||||
<if test="delFlag != null ">
|
||||
and DEL_FLAG = #{delFlag}
|
||||
</if>
|
||||
<!-- <if test="id != null ">-->
|
||||
<!-- and ID = #{id}-->
|
||||
<!-- </if>-->
|
||||
<!-- <if test="realCreateBy != null and realCreateBy != ''">-->
|
||||
<!-- and REAL_CREATE_BY = #{realCreateBy}-->
|
||||
<!-- </if>-->
|
||||
<!-- <if test="realCreateName != null and realCreateName != ''">-->
|
||||
<!-- and REAL_CREATE_NAME like concat('%', #{realCreateName}, '%')-->
|
||||
<!-- </if>-->
|
||||
<!-- <if test="createBy != null and createBy != ''">-->
|
||||
<!-- and CREATE_BY = #{createBy}-->
|
||||
<!-- </if>-->
|
||||
<!-- <if test="createCompanyId != null and createCompanyId != ''">-->
|
||||
<!-- and CREATE_COMPANY_ID = #{createCompanyId}-->
|
||||
<!-- </if>-->
|
||||
<!-- <if test="createTime != null ">-->
|
||||
<!-- and CREATE_TIME = #{createTime}-->
|
||||
<!-- </if>-->
|
||||
<!-- <if test="updateBy != null and updateBy != ''">-->
|
||||
<!-- and UPDATE_BY = #{updateBy}-->
|
||||
<!-- </if>-->
|
||||
<!-- <if test="updateTime != null ">-->
|
||||
<!-- and UPDATE_TIME = #{updateTime}-->
|
||||
<!-- </if>-->
|
||||
<!-- <if test="delFlag != null ">-->
|
||||
<!-- and DEL_FLAG = #{delFlag}-->
|
||||
<!-- </if>-->
|
||||
<if test="createStartTime != null">
|
||||
and CREATE_TIME >= #{createStartTime}
|
||||
</if>
|
||||
<if test="createEndTime != null">
|
||||
and CREATE_TIME <= #{createEndTime} + 1 - 1/86400
|
||||
</if>
|
||||
<if test="issueStartTime != null">
|
||||
and ISSUE_TIME >= #{issueStartTime}
|
||||
</if>
|
||||
<if test="issueEndTime != null">
|
||||
and ISSUE_TIME <= #{issueEndTime} + 1 - 1/86400
|
||||
</if>
|
||||
<if test="goodsNumber != null and goodsNumber != ''">
|
||||
and GOODS_NUMBER = #{goodsNumber}
|
||||
</if>
|
||||
@@ -84,5 +96,6 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
<select id="queryList" parameterType="com.mhd.oms.domain.executeOrder.repository.todo.ExecuteOrderDO" resultMap="ExecuteOrderResult">
|
||||
<include refid="selectExecuteOrderPo"/>
|
||||
<include refid="selectExecuteOrderPo1"/>
|
||||
order by CREATE_TIME desc
|
||||
</select>
|
||||
</mapper>
|
||||
Reference in New Issue
Block a user