Compare commits
No commits in common. "d0efce8e97687651ccaf0137ae65f37fd886a1e4" and "943c8b60f57fc1c06c91f7f8e5ed543242496da5" have entirely different histories.
d0efce8e97
...
943c8b60f5
|
|
@ -53,7 +53,7 @@ public class BackReceiveController extends BaseController {
|
|||
* @param record 查询条件
|
||||
* @return AjaxResult对象
|
||||
*/
|
||||
@Log(title = "退料接收明细-app", businessType = BusinessType.QUERY)
|
||||
@Log(title = "退料接收明细", businessType = BusinessType.QUERY)
|
||||
@PostMapping("receiveView")
|
||||
public AjaxResult receiveView(@RequestBody BackApplyInfo record) {
|
||||
try {
|
||||
|
|
@ -64,23 +64,6 @@ 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的
|
||||
|
|
|
|||
|
|
@ -47,7 +47,6 @@ public class BackApplyInfo {
|
|||
* 规格id
|
||||
*/
|
||||
private String typeId;
|
||||
private String modelId;
|
||||
/**
|
||||
* 类型名称
|
||||
*/
|
||||
|
|
|
|||
|
|
@ -653,8 +653,7 @@
|
|||
bai.id,
|
||||
bai.task_id as taskId,
|
||||
tta.agreement_id as agreementId,
|
||||
mt.type_id as modelId,
|
||||
mt2.type_id as typeId,
|
||||
mt.type_id as typeId,
|
||||
mt.type_name as typeCode,
|
||||
mt.unit_name as unitName,
|
||||
mt2.type_name AS typeName,
|
||||
|
|
@ -666,7 +665,8 @@
|
|||
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 ma_type mt on mt.type_id=bad.type_id
|
||||
LEFT JOIN ma_type mt2 ON mt2.type_id=mt.parent_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 (
|
||||
SELECT
|
||||
type_id as typeId,
|
||||
|
|
@ -679,11 +679,8 @@
|
|||
) aa on aa.typeId=bad.type_id
|
||||
WHERE
|
||||
bai.id=#{id}
|
||||
<if test="typeId != null and typeId != ''">
|
||||
and mt2.type_id = #{typeId}
|
||||
</if>
|
||||
<if test="modelId != null and modelId != ''">
|
||||
and mt.type_id = #{modelId}
|
||||
<if test="code != null and code != ''">
|
||||
and CONCAT('NSJJ',mt.`code`,mt.model_code) like concat ('%',#{code},'%')
|
||||
</if>
|
||||
</select>
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue