app-退料接收
This commit is contained in:
parent
a9c0ee9585
commit
f7501db4a5
|
|
@ -30,8 +30,6 @@ public interface BackReceiveMapper {
|
||||||
|
|
||||||
int addWxTaskAgreement(BackApplyInfo bean);
|
int addWxTaskAgreement(BackApplyInfo bean);
|
||||||
|
|
||||||
int addRepairDetails(BackApplyInfo bean);
|
|
||||||
|
|
||||||
int updateTaskStatus(@Param("taskId") int taskId, @Param("status") int status);
|
int updateTaskStatus(@Param("taskId") int taskId, @Param("status") int status);
|
||||||
|
|
||||||
int updateMaStatus(@Param("maId") int maId,@Param("maStatus") String maStatus);
|
int updateMaStatus(@Param("maId") int maId,@Param("maStatus") String maStatus);
|
||||||
|
|
|
||||||
|
|
@ -213,90 +213,6 @@
|
||||||
)
|
)
|
||||||
</insert>
|
</insert>
|
||||||
|
|
||||||
<insert id="addRepairDetails">
|
|
||||||
insert into repair_apply_details
|
|
||||||
(
|
|
||||||
<if test="taskId != null">
|
|
||||||
task_id,
|
|
||||||
</if>
|
|
||||||
<if test="maId != null">
|
|
||||||
ma_id,
|
|
||||||
</if>
|
|
||||||
<if test="typeId != null">
|
|
||||||
type_id,
|
|
||||||
</if>
|
|
||||||
<if test="repairNum != null">
|
|
||||||
repair_num,
|
|
||||||
</if>
|
|
||||||
<if test="repairedNum != null">
|
|
||||||
repaired_num,
|
|
||||||
</if>
|
|
||||||
<if test="scrapNum != null">
|
|
||||||
scrap_num,
|
|
||||||
</if>
|
|
||||||
<if test="status != null">
|
|
||||||
status,
|
|
||||||
</if>
|
|
||||||
<if test="createBy != null and createBy != ''">
|
|
||||||
create_by,
|
|
||||||
</if>
|
|
||||||
<if test="createBy != null and createBy != ''">
|
|
||||||
update_by,
|
|
||||||
</if>
|
|
||||||
update_time,
|
|
||||||
<if test="remark != null and remark != ''">
|
|
||||||
remark,
|
|
||||||
</if>
|
|
||||||
<if test="companyId != null">
|
|
||||||
company_id,
|
|
||||||
</if>
|
|
||||||
<if test="backId != null">
|
|
||||||
back_id,
|
|
||||||
</if>
|
|
||||||
<if test="repairer != null">
|
|
||||||
repairer,
|
|
||||||
</if>
|
|
||||||
create_time
|
|
||||||
)
|
|
||||||
values (
|
|
||||||
<if test="taskId != null">
|
|
||||||
#{taskId},
|
|
||||||
</if>
|
|
||||||
<if test="maId != null">
|
|
||||||
#{maId},
|
|
||||||
</if>
|
|
||||||
<if test="typeId != null">
|
|
||||||
#{typeId},
|
|
||||||
</if>
|
|
||||||
<if test="repairNum != null">
|
|
||||||
#{repairNum},
|
|
||||||
</if>
|
|
||||||
<if test="repairedNum != null">
|
|
||||||
#{repairedNum},
|
|
||||||
</if>
|
|
||||||
<if test="scrapNum != null">
|
|
||||||
#{scrapNum},
|
|
||||||
</if>
|
|
||||||
<if test="scrapNum != null">
|
|
||||||
#{scrapNum},
|
|
||||||
</if>
|
|
||||||
<if test="createBy != null and createBy != ''">
|
|
||||||
#{createBy},
|
|
||||||
</if>
|
|
||||||
<if test="createBy != null and createBy != ''">
|
|
||||||
#{createBy},
|
|
||||||
</if>
|
|
||||||
NOW(),
|
|
||||||
<if test="remark != null and remark != ''">
|
|
||||||
#{remark},
|
|
||||||
</if>
|
|
||||||
<if test="companyId != null">
|
|
||||||
#{companyId},
|
|
||||||
</if>
|
|
||||||
NOW()
|
|
||||||
)
|
|
||||||
</insert>
|
|
||||||
|
|
||||||
<insert id="insertRAD">
|
<insert id="insertRAD">
|
||||||
insert into repair_apply_details
|
insert into repair_apply_details
|
||||||
(
|
(
|
||||||
|
|
@ -706,7 +622,6 @@
|
||||||
mt.type_name typeCode,
|
mt.type_name typeCode,
|
||||||
mt2.type_name AS typeName,
|
mt2.type_name AS typeName,
|
||||||
bad.audit_num as num,
|
bad.audit_num as num,
|
||||||
mm.ma_code as maCode,
|
|
||||||
mt.manage_type as manageType
|
mt.manage_type as manageType
|
||||||
FROM
|
FROM
|
||||||
back_apply_details bad
|
back_apply_details bad
|
||||||
|
|
@ -715,9 +630,7 @@
|
||||||
LEFT JOIN ma_type mt on mt.type_id=bad.type_id
|
LEFT JOIN ma_type mt on mt.type_id=bad.type_id
|
||||||
LEFT JOIN ma_type mt1 ON mt1.type_id=bad.type_id
|
LEFT JOIN ma_type mt1 ON mt1.type_id=bad.type_id
|
||||||
LEFT JOIN ma_type mt2 ON mt2.type_id=mt1.parent_id
|
LEFT JOIN ma_type mt2 ON mt2.type_id=mt1.parent_id
|
||||||
LEFT JOIN ma_type mt3 ON mt3.type_id=mt2.parent_id
|
|
||||||
LEFT JOIN ma_type mt4 ON mt4.type_id=mt3.parent_id
|
|
||||||
LEFT JOIN ma_machine mm on mm.type_id=bad.type_id
|
|
||||||
WHERE
|
WHERE
|
||||||
bai.id=#{id}
|
bai.id=#{id}
|
||||||
</select>
|
</select>
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue