获取领料申请-详情列表
This commit is contained in:
parent
04de103666
commit
d19284f996
|
|
@ -64,6 +64,8 @@
|
||||||
<if test="companyId!= null">
|
<if test="companyId!= null">
|
||||||
company_id,
|
company_id,
|
||||||
</if>
|
</if>
|
||||||
|
create_time,
|
||||||
|
update_time
|
||||||
</trim>
|
</trim>
|
||||||
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
||||||
<if test="parentId!= null">
|
<if test="parentId!= null">
|
||||||
|
|
@ -93,6 +95,8 @@
|
||||||
<if test="companyId!= null">
|
<if test="companyId!= null">
|
||||||
#{companyId},
|
#{companyId},
|
||||||
</if>
|
</if>
|
||||||
|
NOW(),
|
||||||
|
NOW()
|
||||||
</trim>
|
</trim>
|
||||||
</insert>
|
</insert>
|
||||||
|
|
||||||
|
|
@ -100,7 +104,7 @@
|
||||||
UPDATE
|
UPDATE
|
||||||
ma_type
|
ma_type
|
||||||
SET
|
SET
|
||||||
num = num - #{record.outNum}
|
num = num - #{record.outNum} ,update_time = NOW()
|
||||||
WHERE
|
WHERE
|
||||||
type_id = #{record.typeId}
|
type_id = #{record.typeId}
|
||||||
</update>
|
</update>
|
||||||
|
|
@ -109,7 +113,7 @@
|
||||||
UPDATE
|
UPDATE
|
||||||
ma_machine
|
ma_machine
|
||||||
SET
|
SET
|
||||||
ma_status = '16'
|
ma_status = '16' , create_time = NOW()
|
||||||
<where>
|
<where>
|
||||||
type_id = #{record.typeId}
|
type_id = #{record.typeId}
|
||||||
<if test="record.maId != null and record.maId != ''">
|
<if test="record.maId != null and record.maId != ''">
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue