Commit 198d25a5 by duanhq

技工库存详情 v 1.2.0

git-svn-id: svn://192.168.3.233/frms/code/car-service/trunk/car-service@22067 aeb6102e-e053-11e5-9fec-f9ebc45caf4b
1 parent e0e5970e
......@@ -41,7 +41,5 @@ public interface SysDeviceRepertoryMapper {
List<SysDevice> getRepertoryDetailByUserId(Map<String, Object> params);
int updateDeviceNum(@Param("userId") int userId, @Param("deviceNum") int deviceNum, @Param("version") int version, @Param("deviceType")String deviceType);
List<MechanicRepertoryReq> getMechanicRepertoryList(Map<String, Object> params);
}
\ No newline at end of file
......@@ -336,7 +336,7 @@
LEFT JOIN sys_user su ON sd.user_id = su.id
LEFT JOIN sys_dict_data sdd ON sd.device_type = sdd.data_key
LEFT JOIN sys_indent si ON sd.indent_no = si.indent_no
WHERE si.indent_status = 40
WHERE ( (si.indent_status = 40 AND sd.device_source = 1) OR sd.device_source IN (2,3))
AND sd.device_status = 1
AND
sd.user_id IN (
......@@ -368,7 +368,7 @@
sys_device sd
LEFT JOIN sys_dict_data sdd ON sd.device_type = sdd.data_key
LEFT JOIN sys_indent si ON sd.indent_no = si.indent_no
WHERE si.indent_status = 40
WHERE ( (si.indent_status = 40 AND sd.device_source = 1) OR sd.device_source IN (2,3))
AND sd.device_status = 1
AND sd.user_id = #{userId}
<if test="deviceNo != null">
......@@ -383,11 +383,6 @@
ORDER BY sd.stock_time DESC
</select>
<update id="updateDeviceNum">
UPDATE sys_device_repertory
SET device_num = (#{deviceNum} - 1), version = (#{version} + 1)
WHERE user_id = #{userId} AND version = #{version} AND device_type = #{deviceType}
</update>
<select id="getMechanicRepertoryList" parameterType="java.util.Map"
resultType="com.glsx.ordercenter.dto.MechanicRepertoryReq">
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!