app-退料接收

This commit is contained in:
bns_han 2023-12-24 01:29:03 +08:00
parent a9c0ee9585
commit f7501db4a5
2 changed files with 1 additions and 90 deletions

View File

@ -30,8 +30,6 @@ public interface BackReceiveMapper {
int addWxTaskAgreement(BackApplyInfo bean);
int addRepairDetails(BackApplyInfo bean);
int updateTaskStatus(@Param("taskId") int taskId, @Param("status") int status);
int updateMaStatus(@Param("maId") int maId,@Param("maStatus") String maStatus);

View File

@ -213,90 +213,6 @@
)
</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 into repair_apply_details
(
@ -706,7 +622,6 @@
mt.type_name typeCode,
mt2.type_name AS typeName,
bad.audit_num as num,
mm.ma_code as maCode,
mt.manage_type as manageType
FROM
back_apply_details bad
@ -715,9 +630,7 @@
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 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
bai.id=#{id}
</select>