移动退料审核
This commit is contained in:
parent
e9cfbe9f29
commit
6c5d6fa6ea
|
|
@ -96,6 +96,23 @@ public class BackApplyController extends BaseController {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 退料审核明细
|
||||||
|
*
|
||||||
|
* @param record 查询条件
|
||||||
|
* @return AjaxResult对象
|
||||||
|
*/
|
||||||
|
@Log(title = "退料审核明细", businessType = BusinessType.QUERY)
|
||||||
|
@GetMapping("examineView")
|
||||||
|
public AjaxResult examineView(@RequestBody BackApplyInfo record) {
|
||||||
|
try {
|
||||||
|
List<BackApplyInfo> list =backApplyService.examineView(record);
|
||||||
|
return success(list);
|
||||||
|
} catch (Exception e) {
|
||||||
|
throw new RuntimeException(e);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 删除
|
* 删除
|
||||||
*
|
*
|
||||||
|
|
@ -236,4 +253,23 @@ public class BackApplyController extends BaseController {
|
||||||
return code;
|
return code;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 退料审核列表
|
||||||
|
*
|
||||||
|
* @param record 查询条件
|
||||||
|
* @return AjaxResult对象
|
||||||
|
*/
|
||||||
|
@Log(title = "退料审核列表", businessType = BusinessType.QUERY)
|
||||||
|
@PostMapping("examineList")
|
||||||
|
public AjaxResult examineList(@RequestBody BackApplyInfo record) {
|
||||||
|
try {
|
||||||
|
List<BackApplyInfo> list =backApplyService.examineList(record);
|
||||||
|
return success(list);
|
||||||
|
} catch (Exception e) {
|
||||||
|
throw new RuntimeException(e);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -77,4 +77,8 @@ public class BackApplyInfo {
|
||||||
private String updateBy;
|
private String updateBy;
|
||||||
private String updateTime;
|
private String updateTime;
|
||||||
private String remark;
|
private String remark;
|
||||||
|
/**
|
||||||
|
* 审核备注
|
||||||
|
*/
|
||||||
|
private String directAuditRemark;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -36,4 +36,8 @@ public interface BackApplyMapper {
|
||||||
List<BackApplyInfo> view(BackApplyInfo record);
|
List<BackApplyInfo> view(BackApplyInfo record);
|
||||||
|
|
||||||
int del(BackApplyInfo record);
|
int del(BackApplyInfo record);
|
||||||
|
|
||||||
|
List<BackApplyInfo> examineList(BackApplyInfo record);
|
||||||
|
|
||||||
|
List<BackApplyInfo> examineView(BackApplyInfo record);
|
||||||
}
|
}
|
||||||
|
|
@ -39,4 +39,8 @@ public interface BackApplyService {
|
||||||
List<BackApplyInfo> view(BackApplyInfo record);
|
List<BackApplyInfo> view(BackApplyInfo record);
|
||||||
|
|
||||||
int del(BackApplyInfo record);
|
int del(BackApplyInfo record);
|
||||||
|
|
||||||
|
List<BackApplyInfo> examineList(BackApplyInfo record);
|
||||||
|
|
||||||
|
List<BackApplyInfo> examineView(BackApplyInfo record);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -71,4 +71,14 @@ public class BackApplyServiceImpl implements BackApplyService {
|
||||||
return backApplyMapper.del(record);
|
return backApplyMapper.del(record);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public List<BackApplyInfo> examineList(BackApplyInfo record) {
|
||||||
|
return backApplyMapper.examineList(record);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public List<BackApplyInfo> examineView(BackApplyInfo record) {
|
||||||
|
return backApplyMapper.examineView(record);
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -404,6 +404,55 @@
|
||||||
WHERE
|
WHERE
|
||||||
bai.id=#{id}
|
bai.id=#{id}
|
||||||
</select>
|
</select>
|
||||||
|
<select id="examineList" resultType="com.bonus.sgzb.app.domain.BackApplyInfo">
|
||||||
|
SELECT
|
||||||
|
bai.id,
|
||||||
|
us.user_name as userName,
|
||||||
|
bai.phone,
|
||||||
|
bpl.lot_name as lotName,
|
||||||
|
bui.unit_name as unitName,
|
||||||
|
bagi.plan_start_time as planStartTime,
|
||||||
|
tt.task_status as taskStatus,
|
||||||
|
GROUP_CONCAT(DISTINCT bad.type_id) as typeId,
|
||||||
|
GROUP_CONCAT(CONCAT_WS('/', IFNULL(mt3.type_name, ''))) AS typeName,
|
||||||
|
SUM(DISTINCT bad.pre_num) AS num,
|
||||||
|
bai.direct_audit_remark as directAuditRemark
|
||||||
|
FROM
|
||||||
|
back_apply_info bai
|
||||||
|
LEFT JOIN back_apply_details bad on bad.parent_id=bai.id
|
||||||
|
LEFT JOIN tm_task tt on tt.task_id=bai.task_id
|
||||||
|
LEFT JOIN tm_task_agreement tta on tta.task_id=tt.task_id
|
||||||
|
LEFT JOIN bm_agreement_info bagi on bagi.agreement_id=tta.agreement_id
|
||||||
|
LEFT JOIN bm_project_lot bpl on bpl.lot_id=bagi.project_id
|
||||||
|
LEFT JOIN bm_unit_info bui on bui.unit_id=bagi.unit_id
|
||||||
|
LEFT JOIN sys_user us on us.user_id=bai.create_by
|
||||||
|
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
|
||||||
|
WHERE
|
||||||
|
bai.company_id=#{companyId}
|
||||||
|
and bad.type_id is not null
|
||||||
|
GROUP BY bai.id, us.user_name, bai.phone, bpl.lot_name, bui.unit_name, bagi.plan_start_time
|
||||||
|
</select>
|
||||||
|
<select id="examineView" resultType="com.bonus.sgzb.app.domain.BackApplyInfo">
|
||||||
|
SELECT
|
||||||
|
mt.type_name typeCode,
|
||||||
|
CONCAT_WS('/', IFNULL(mt3.type_name, '')) AS typeName,
|
||||||
|
bad.pre_num as num,
|
||||||
|
mm.ma_code as maCode
|
||||||
|
FROM
|
||||||
|
back_apply_details bad
|
||||||
|
LEFT JOIN back_apply_info bai on bai.id=bad.parent_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 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>
|
||||||
|
|
||||||
|
|
||||||
</mapper>
|
</mapper>
|
||||||
Loading…
Reference in New Issue