This commit is contained in:
parent
af9225d66f
commit
e2e9527f4d
|
|
@ -133,7 +133,7 @@
|
||||||
phone,
|
phone,
|
||||||
result
|
result
|
||||||
FROM ws_ma_info wmi
|
FROM ws_ma_info wmi
|
||||||
WHERE is_active = '1'
|
WHERE 1=1
|
||||||
<if test="keyWord != null and keyWord != ''">
|
<if test="keyWord != null and keyWord != ''">
|
||||||
and ( ma_name like concat('%', #{keyWord}, '%') or
|
and ( ma_name like concat('%', #{keyWord}, '%') or
|
||||||
ma_model like concat('%', #{keyWord}, '%') or
|
ma_model like concat('%', #{keyWord}, '%') or
|
||||||
|
|
@ -185,7 +185,6 @@
|
||||||
WHERE ma_code = #{maCode}
|
WHERE ma_code = #{maCode}
|
||||||
and ma_name = #{maName}
|
and ma_name = #{maName}
|
||||||
and ma_model = #{maModel}
|
and ma_model = #{maModel}
|
||||||
and is_active = '1'
|
|
||||||
</select>
|
</select>
|
||||||
<select id="getInfoByTypeAndModelAndCode" resultType="com.bonus.material.codeCollection.domain.WsMaInfo">
|
<select id="getInfoByTypeAndModelAndCode" resultType="com.bonus.material.codeCollection.domain.WsMaInfo">
|
||||||
SELECT id,
|
SELECT id,
|
||||||
|
|
@ -213,10 +212,10 @@
|
||||||
</insert>
|
</insert>
|
||||||
<insert id="addWsMaInfoData">
|
<insert id="addWsMaInfoData">
|
||||||
INSERT INTO ws_ma_info (ma_name, ma_model, ma_code, this_check_time, next_check_time,
|
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},
|
VALUES (#{maName}, #{maModel}, #{maCode}, #{thisCheckTime},
|
||||||
#{nextCheckTime},
|
#{nextCheckTime},
|
||||||
#{repairMan}, #{checkMan}, #{phone}, #{result}, #{modelId}, '1', #{optUser}, now())
|
#{repairMan}, #{checkMan}, #{phone}, #{result}, #{modelId}, #{optUser}, now())
|
||||||
</insert>
|
</insert>
|
||||||
|
|
||||||
<update id="update" parameterType="com.bonus.material.codeCollection.domain.WsMaInfo">
|
<update id="update" parameterType="com.bonus.material.codeCollection.domain.WsMaInfo">
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue