入库字段增补,逻辑修改
This commit is contained in:
@@ -82,12 +82,29 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
<select id="selectRkInfoList" parameterType="RkInfo" resultMap="RkInfoResult">
|
||||
<include refid="selectRkInfoVo"/>
|
||||
<where>
|
||||
|
||||
and is_chuku = 0
|
||||
|
||||
<if test="keyword != null and keyword != ''">
|
||||
and (
|
||||
xm_no like concat('%', #{keyword}, '%')
|
||||
or xm_ms like concat('%', #{keyword}, '%')
|
||||
or wl_no like concat('%', #{keyword}, '%')
|
||||
or wl_ms like concat('%', #{keyword}, '%')
|
||||
or gys_no like concat('%', #{keyword}, '%')
|
||||
or gys_mc like concat('%', #{keyword}, '%')
|
||||
or sap_no like concat('%', #{keyword}, '%')
|
||||
)
|
||||
</if>
|
||||
|
||||
<if test="rkType != null and rkType != ''"> and rk_type = #{rkType}</if>
|
||||
<if test="wlType != null and wlType != ''"> and wl_type = #{wlType}</if>
|
||||
<if test="cangku != null and cangku != ''"> and cangku = #{cangku}</if>
|
||||
<if test="rkTime != null "> and rk_time = #{rkTime}</if>
|
||||
<if test="lihuoY != null and lihuoY != ''"> and lihuo_y = #{lihuoY}</if>
|
||||
<if test="isChuku != null and isChuku != ''"> and is_chuku = #{isChuku}</if>
|
||||
<!-- ✅ 删除这个条件,否则会与强制条件冲突 -->
|
||||
<!-- <if test="isChuku != null and isChuku != ''"> and is_chuku = #{isChuku}</if> -->
|
||||
|
||||
<if test="xj != null and xj != ''"> and xj = #{xj}</if>
|
||||
<if test="xmNo != null and xmNo != ''"> and xm_no = #{xmNo}</if>
|
||||
<if test="xmMs != null and xmMs != ''"> and xm_ms = #{xmMs}</if>
|
||||
|
||||
Reference in New Issue
Block a user