配件管理日期搜索修改
This commit is contained in:
parent
ce95d607c9
commit
3036658c32
|
|
@ -43,7 +43,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||||
<if test="remark != null and remark != ''">remark,</if>
|
<if test="remark != null and remark != ''">remark,</if>
|
||||||
<if test="createBy != null and createBy != ''">create_by,</if>
|
<if test="createBy != null and createBy != ''">create_by,</if>
|
||||||
<if test="companyId != null and companyId != ''">company_id,</if>
|
<if test="companyId != null and companyId != ''">company_id,</if>
|
||||||
create_time
|
create_time,
|
||||||
|
year
|
||||||
) values (
|
) values (
|
||||||
<if test="paId != null and paId != 0">#{paId},</if>
|
<if test="paId != null and paId != 0">#{paId},</if>
|
||||||
<if test="paName != null and paName != ''">#{paName},</if>
|
<if test="paName != null and paName != ''">#{paName},</if>
|
||||||
|
|
@ -57,7 +58,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||||
<if test="remark != null and remark != ''">#{remark},</if>
|
<if test="remark != null and remark != ''">#{remark},</if>
|
||||||
<if test="createBy != null and createBy != ''">#{createBy},</if>
|
<if test="createBy != null and createBy != ''">#{createBy},</if>
|
||||||
<if test="companyId != null and companyId != ''">#{companyId},</if>
|
<if test="companyId != null and companyId != ''">#{companyId},</if>
|
||||||
sysdate()
|
sysdate(),
|
||||||
|
YEAR(CURDATE())
|
||||||
)
|
)
|
||||||
</insert>
|
</insert>
|
||||||
<update id="updateById">
|
<update id="updateById">
|
||||||
|
|
@ -113,7 +115,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||||
OR t3.pa_name LIKE CONCAT('%', #{paName}, '%'))
|
OR t3.pa_name LIKE CONCAT('%', #{paName}, '%'))
|
||||||
</if>
|
</if>
|
||||||
<if test="year != null and year != ''">
|
<if test="year != null and year != ''">
|
||||||
AND year = #{year}
|
AND t1.year = #{year}
|
||||||
</if>
|
</if>
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue