This commit is contained in:
hayu 2025-09-03 20:51:54 +08:00
parent af9225d66f
commit e2e9527f4d
1 changed files with 3 additions and 4 deletions

View File

@ -133,7 +133,7 @@
phone,
result
FROM ws_ma_info wmi
WHERE is_active = '1'
WHERE 1=1
<if test="keyWord != null and keyWord != ''">
and ( ma_name like concat('%', #{keyWord}, '%') or
ma_model like concat('%', #{keyWord}, '%') or
@ -185,7 +185,6 @@
WHERE ma_code = #{maCode}
and ma_name = #{maName}
and ma_model = #{maModel}
and is_active = '1'
</select>
<select id="getInfoByTypeAndModelAndCode" resultType="com.bonus.material.codeCollection.domain.WsMaInfo">
SELECT id,
@ -213,10 +212,10 @@
</insert>
<insert id="addWsMaInfoData">
INSERT INTO ws_ma_info (ma_name, ma_model, ma_code, this_check_time, next_check_time,
repair_man, check_man, phone, result, model_id, is_active, opt_user, opt_time)
repair_man, check_man, phone, result, model_id, opt_user, opt_time)
VALUES (#{maName}, #{maModel}, #{maCode}, #{thisCheckTime},
#{nextCheckTime},
#{repairMan}, #{checkMan}, #{phone}, #{result}, #{modelId}, '1', #{optUser}, now())
#{repairMan}, #{checkMan}, #{phone}, #{result}, #{modelId}, #{optUser}, now())
</insert>
<update id="update" parameterType="com.bonus.material.codeCollection.domain.WsMaInfo">