opt: 修复5
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
package org.nl.wms.basedata_manage.controller;
|
||||
|
||||
import cn.dev33.satoken.annotation.SaIgnore;
|
||||
import com.alibaba.fastjson.JSONArray;
|
||||
import com.alibaba.fastjson.JSONObject;
|
||||
import lombok.RequiredArgsConstructor;
|
||||
@@ -39,6 +40,7 @@ public class StructattrController {
|
||||
|
||||
@GetMapping
|
||||
@Log("查询仓位")
|
||||
@SaIgnore
|
||||
public ResponseEntity<Object> query(@RequestParam Map whereJson, PageQuery page) {
|
||||
return new ResponseEntity<>(TableDataInfo.build(structattrService.queryAll(whereJson, page)), HttpStatus.OK);
|
||||
}
|
||||
|
||||
@@ -143,6 +143,7 @@
|
||||
INNER JOIN md_me_materialbase mater ON mater.material_id = ext.material_id
|
||||
<where>
|
||||
1 = 1
|
||||
AND attr.occupancy_state = 3
|
||||
<if test="param.stor_id != null and param.stor_id != ''">
|
||||
AND
|
||||
attr.stor_id = #{param.stor_id}
|
||||
@@ -170,11 +171,12 @@
|
||||
(mater.material_code LIKE CONCAT('%', #{param.material_code},'%') or
|
||||
mater.material_name LIKE CONCAT('%', #{param.material_code},'%') )
|
||||
</if>
|
||||
|
||||
<if test="param.pcsn != null and param.pcsn != ''">
|
||||
AND
|
||||
ext.pcsn LIKE #{param.pcsn}
|
||||
</if>
|
||||
AND 0 = (SELECT COUNT(*) FROM sch_base_task t WHERE t.task_status <![CDATA[ < ]]> '5'
|
||||
AND t.is_delete = '0' AND (t.vehicle_code = ext.storagevehicle_code OR t.vehicle_code2 = ext.storagevehicle_code))
|
||||
</where>
|
||||
ORDER BY ext.create_time Desc
|
||||
</select>
|
||||
@@ -209,6 +211,7 @@
|
||||
INNER JOIN md_me_materialbase mater ON mater.material_id = ext.material_id
|
||||
<where>
|
||||
1 = 1 and ext.`status`='02'
|
||||
AND attr.occupancy_state = 3
|
||||
<if test="param.stor_id != null and param.stor_id != ''">
|
||||
AND
|
||||
attr.stor_id = #{param.stor_id}
|
||||
@@ -256,6 +259,8 @@
|
||||
AND
|
||||
ext.pcsn LIKE #{param.pcsn}
|
||||
</if>
|
||||
AND 0 = (SELECT COUNT(*) FROM sch_base_task t WHERE t.task_status <![CDATA[ < ]]> '5'
|
||||
AND t.is_delete = '0' AND (t.vehicle_code = ext.storagevehicle_code OR t.vehicle_code2 = ext.storagevehicle_code))
|
||||
</where>
|
||||
ORDER BY ext.create_time Desc
|
||||
</select>
|
||||
|
||||
@@ -88,7 +88,7 @@ public class WmsToMesServiceImpl implements WmsToMesService {
|
||||
log.info("uploadMes回传接口输出参数为:-------------------" + result.toString());
|
||||
|
||||
|
||||
Integer status = result.getInteger("status");
|
||||
Integer status = result.getInteger("code");
|
||||
if (status != HttpStatus.OK.value()) {
|
||||
throw new BadRequestException(result.getString("message"));
|
||||
}
|
||||
|
||||
@@ -1073,7 +1073,7 @@ public class OutBillServiceImpl extends ServiceImpl<IOStorInvMapper,IOStorInv> i
|
||||
task_form2.put("task_group_id", taskGroupId);
|
||||
task_form2.put("task_group_seq", "2");
|
||||
task_form2.put("create_mode", whereJson.getString("create_mode"));
|
||||
task_form.put("ext_task_code", whereJson.getString("ext_task_code"));
|
||||
task_form2.put("ext_task_code", whereJson.getString("ext_task_code"));
|
||||
|
||||
//这个需求特殊,因为会产生2个task,并且第二个task后结束,因此以第二个task_id为准!!
|
||||
task_id = downEmptyUpFullTask.create(task_form2);
|
||||
|
||||
Reference in New Issue
Block a user