退料接收后台代码提交
This commit is contained in:
parent
902c5015ac
commit
e0b9cd2ab5
|
|
@ -53,7 +53,7 @@ public class BackReceiveController extends BaseController {
|
||||||
* @param record 查询条件
|
* @param record 查询条件
|
||||||
* @return AjaxResult对象
|
* @return AjaxResult对象
|
||||||
*/
|
*/
|
||||||
@Log(title = "退料接收明细", businessType = BusinessType.QUERY)
|
@Log(title = "退料接收明细-app", businessType = BusinessType.QUERY)
|
||||||
@PostMapping("receiveView")
|
@PostMapping("receiveView")
|
||||||
public AjaxResult receiveView(@RequestBody BackApplyInfo record) {
|
public AjaxResult receiveView(@RequestBody BackApplyInfo record) {
|
||||||
try {
|
try {
|
||||||
|
|
@ -64,6 +64,23 @@ public class BackReceiveController extends BaseController {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 退料接收明细
|
||||||
|
*
|
||||||
|
* @param record 查询条件
|
||||||
|
* @return AjaxResult对象
|
||||||
|
*/
|
||||||
|
@Log(title = "退料接收明细-web", businessType = BusinessType.QUERY)
|
||||||
|
@PostMapping("receiveViewWeb")
|
||||||
|
public AjaxResult receiveViewWeb(@RequestBody BackApplyInfo record) {
|
||||||
|
try {
|
||||||
|
startPage();
|
||||||
|
List<BackApplyInfo> list = backReceiveService.receiveView(record);
|
||||||
|
return success(getDataTable(list));
|
||||||
|
} catch (Exception e) {
|
||||||
|
throw new RuntimeException(e);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 数量退料--管理方式为1的
|
* 数量退料--管理方式为1的
|
||||||
|
|
|
||||||
|
|
@ -47,6 +47,7 @@ public class BackApplyInfo {
|
||||||
* 规格id
|
* 规格id
|
||||||
*/
|
*/
|
||||||
private String typeId;
|
private String typeId;
|
||||||
|
private String modelId;
|
||||||
/**
|
/**
|
||||||
* 类型名称
|
* 类型名称
|
||||||
*/
|
*/
|
||||||
|
|
|
||||||
|
|
@ -653,7 +653,8 @@
|
||||||
bai.id,
|
bai.id,
|
||||||
bai.task_id as taskId,
|
bai.task_id as taskId,
|
||||||
tta.agreement_id as agreementId,
|
tta.agreement_id as agreementId,
|
||||||
mt.type_id as typeId,
|
mt.type_id as modelId,
|
||||||
|
mt2.type_id as typeId,
|
||||||
mt.type_name as typeCode,
|
mt.type_name as typeCode,
|
||||||
mt.unit_name as unitName,
|
mt.unit_name as unitName,
|
||||||
mt2.type_name AS typeName,
|
mt2.type_name AS typeName,
|
||||||
|
|
@ -665,8 +666,7 @@
|
||||||
LEFT JOIN back_apply_info bai on bai.id=bad.parent_id
|
LEFT JOIN back_apply_info bai on bai.id=bad.parent_id
|
||||||
LEFT JOIN tm_task_agreement tta on tta.task_id=bai.task_id
|
LEFT JOIN tm_task_agreement tta on tta.task_id=bai.task_id
|
||||||
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 mt2 ON mt2.type_id=mt.parent_id
|
||||||
LEFT JOIN ma_type mt2 ON mt2.type_id=mt1.parent_id
|
|
||||||
LEFT JOIN (
|
LEFT JOIN (
|
||||||
SELECT
|
SELECT
|
||||||
type_id as typeId,
|
type_id as typeId,
|
||||||
|
|
@ -679,8 +679,11 @@
|
||||||
) aa on aa.typeId=bad.type_id
|
) aa on aa.typeId=bad.type_id
|
||||||
WHERE
|
WHERE
|
||||||
bai.id=#{id}
|
bai.id=#{id}
|
||||||
<if test="code != null and code != ''">
|
<if test="typeId != null and typeId != ''">
|
||||||
and CONCAT('NSJJ',mt.`code`,mt.model_code) like concat ('%',#{code},'%')
|
and mt2.type_id = #{typeId}
|
||||||
|
</if>
|
||||||
|
<if test="modelId != null and modelId != ''">
|
||||||
|
and mt.type_id = #{modelId}
|
||||||
</if>
|
</if>
|
||||||
</select>
|
</select>
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue