add:取放货确认
This commit is contained in:
@@ -75,4 +75,18 @@ public class SchBasePointController {
|
||||
schBasePointService.changeLock(points);
|
||||
return new ResponseEntity<>(HttpStatus.NO_CONTENT);
|
||||
}
|
||||
|
||||
@Log("确认取货")
|
||||
@PostMapping("/getConfirm")
|
||||
public ResponseEntity<Object> getConfirm(@RequestBody JSONObject whereJson) {
|
||||
schBasePointService.getConfirm(whereJson);
|
||||
return new ResponseEntity<>(HttpStatus.OK);
|
||||
}
|
||||
|
||||
@Log("确认放货")
|
||||
@PostMapping("/putConfirm")
|
||||
public ResponseEntity<Object> putConfirm(@RequestBody JSONObject whereJson) {
|
||||
schBasePointService.putConfirm(whereJson);
|
||||
return new ResponseEntity<>(HttpStatus.OK);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -90,4 +90,16 @@ public interface ISchBasePointService extends IService<SchBasePoint> {
|
||||
* @param point_code 点位编码
|
||||
*/
|
||||
void unLockPoint(String point_code);
|
||||
|
||||
/**
|
||||
* 确认取货
|
||||
* @param whereJson 点位实体
|
||||
*/
|
||||
void getConfirm(JSONObject whereJson);
|
||||
|
||||
/**
|
||||
* 确认放货
|
||||
* @param whereJson 点位实体
|
||||
*/
|
||||
void putConfirm(JSONObject whereJson);
|
||||
}
|
||||
|
||||
@@ -54,6 +54,9 @@
|
||||
<if test="whereJson.point_status != null">
|
||||
AND p.point_status = #{whereJson.point_status}
|
||||
</if>
|
||||
<if test="whereJson.vehicle_code != null">
|
||||
AND p.vehicle_code = #{whereJson.vehicle_code}
|
||||
</if>
|
||||
<if test="whereJson.is_used != null">
|
||||
AND p.is_used = #{whereJson.is_used}
|
||||
</if>
|
||||
|
||||
@@ -15,6 +15,7 @@ public class SchBasePointQuery implements Serializable {
|
||||
private String region_code;
|
||||
private String point_type;
|
||||
private String point_status;
|
||||
private String vehicle_code;
|
||||
private Boolean is_used;
|
||||
private Boolean lock_type;
|
||||
private Boolean parent_point;
|
||||
|
||||
@@ -23,6 +23,7 @@ import org.nl.wms.sch_manage.service.dao.mapper.SchBaseRegionMapper;
|
||||
import org.nl.wms.sch_manage.service.dto.SchBasePointQuery;
|
||||
import org.nl.wms.sch_manage.service.util.PointUtils;
|
||||
import org.nl.wms.warehouse_management.enums.IOSConstant;
|
||||
import org.nl.wms.warehouse_management.enums.IOSEnum;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Service;
|
||||
import org.springframework.transaction.annotation.Transactional;
|
||||
@@ -199,4 +200,25 @@ public class SchBasePointServiceImpl extends ServiceImpl<SchBasePointMapper, Sch
|
||||
);
|
||||
}
|
||||
|
||||
@Override
|
||||
@Transactional
|
||||
public void getConfirm(JSONObject whereJson) {
|
||||
SchBasePoint pointDao = this.getById(whereJson.getString("point_code"));
|
||||
// 清空点位信息
|
||||
pointDao.setVehicle_code("");
|
||||
pointDao.setPoint_status(IOSEnum.POINT_STATUS.code("空位"));
|
||||
pointDao.setIng_task_code("");
|
||||
this.updateById(pointDao);
|
||||
// TODO 通知ACS可以离开
|
||||
}
|
||||
|
||||
@Override
|
||||
@Transactional
|
||||
public void putConfirm(JSONObject whereJson) {
|
||||
SchBasePoint pointDao = this.getById(whereJson.getString("point_code"));
|
||||
pointDao.setPoint_status(IOSEnum.POINT_STATUS.code("有箱有料"));
|
||||
pointDao.setVehicle_code(whereJson.getString("vehicle_code"));
|
||||
this.updateById(pointDao);
|
||||
// TODO 通知ACS可以离开
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user