配件管理日期搜索修改

This commit is contained in:
wcy 2024-10-11 10:09:10 +08:00
parent ce95d607c9
commit 3036658c32
1 changed files with 5 additions and 3 deletions

View File

@ -43,7 +43,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<if test="remark != null and remark != ''">remark,</if>
<if test="createBy != null and createBy != ''">create_by,</if>
<if test="companyId != null and companyId != ''">company_id,</if>
create_time
create_time,
year
) values (
<if test="paId != null and paId != 0">#{paId},</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="createBy != null and createBy != ''">#{createBy},</if>
<if test="companyId != null and companyId != ''">#{companyId},</if>
sysdate()
sysdate(),
YEAR(CURDATE())
)
</insert>
<update id="updateById">
@ -113,7 +115,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
OR t3.pa_name LIKE CONCAT('%', #{paName}, '%'))
</if>
<if test="year != null and year != ''">
AND year = #{year}
AND t1.year = #{year}
</if>