opt: 取货完成的空位可以放货
This commit is contained in:
@@ -132,4 +132,6 @@ public interface IBstIvtCutpointivtService extends IService<BstIvtCutpointivt> {
|
||||
* @return /
|
||||
*/
|
||||
List<BstIvtCutpointivt> getPintByAgvCodesByPointTypeAndArea(String area, List<String> types);
|
||||
|
||||
List<BstIvtCutpointivt> getNBJCanUsePoint(String type, String pointStatus, String area, String sort);
|
||||
}
|
||||
|
||||
@@ -25,4 +25,6 @@ public interface BstIvtCutpointivtMapper extends BaseMapper<BstIvtCutpointivt> {
|
||||
List<BstIvtCutpointivt> getReallyQzzSameDevice(String resourceName);
|
||||
|
||||
List<BstIvtCutpointivt> getAreaNotTaskPointByStatusNotCheckPickUpCompleted(String type, String pointStatus, String area, String sort);
|
||||
|
||||
List<BstIvtCutpointivt> getNBJCanUsePoint(String type, String pointStatus, String area, String sort);
|
||||
}
|
||||
|
||||
@@ -136,4 +136,30 @@
|
||||
ORDER BY bic.sort_seq DESC
|
||||
</if>
|
||||
</select>
|
||||
<select id="getNBJCanUsePoint" resultType="org.nl.b_lms.bst.ivt.cutpointivt.service.dao.BstIvtCutpointivt">
|
||||
SELECT bic.*
|
||||
FROM bst_ivt_cutpointivt bic
|
||||
WHERE bic.point_type = #{type}
|
||||
AND bic.is_used = '1'
|
||||
AND bic.point_status = #{pointStatus}
|
||||
AND bic.point_location = #{area}
|
||||
AND 0 = (SELECT COUNT(*)
|
||||
FROM sch_base_task t
|
||||
WHERE t.task_status <![CDATA[ < ]]> '07'
|
||||
AND t.is_delete = '0'
|
||||
AND (t.point_code1 = bic.point_code OR t.point_code2 = bic.point_code)
|
||||
)
|
||||
AND 0 = (SELECT COUNT(*)
|
||||
FROM sch_base_task t
|
||||
WHERE t.task_status = '071'
|
||||
AND t.is_delete = '0'
|
||||
AND t.point_code2 = bic.point_code
|
||||
)
|
||||
<if test="sort == '1'">
|
||||
ORDER BY bic.sort_seq ASC
|
||||
</if>
|
||||
<if test="sort == '2'">
|
||||
ORDER BY bic.sort_seq DESC
|
||||
</if>
|
||||
</select>
|
||||
</mapper>
|
||||
|
||||
@@ -153,4 +153,9 @@ public class BstIvtCutpointivtServiceImpl extends ServiceImpl<BstIvtCutpointivtM
|
||||
.eq(BstIvtCutpointivt::getProduct_area, area)
|
||||
.in(BstIvtCutpointivt::getPoint_type, types));
|
||||
}
|
||||
|
||||
@Override
|
||||
public List<BstIvtCutpointivt> getNBJCanUsePoint(String type, String pointStatus, String area, String sort) {
|
||||
return bstIvtCutpointivtMapper.getNBJCanUsePoint(type, pointStatus, area, sort);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1048,8 +1048,9 @@ public class SlitterServiceImpl implements SlitterService {
|
||||
List<String> collect = plans.stream().map(PdmBiSlittingproductionplan::getContainer_name).collect(Collectors.toList());
|
||||
taskParam.put("containers", collect);
|
||||
}
|
||||
List<BstIvtCutpointivt> areaEmptyNotTaskPoint = bcutpointivtService.getAreaNotTaskPointByStatus("1",
|
||||
"1", "0", "2");
|
||||
// List<BstIvtCutpointivt> areaEmptyNotTaskPoint = bcutpointivtService.getAreaNotTaskPointByStatus("1",
|
||||
// "1", "0", "2");
|
||||
List<BstIvtCutpointivt> areaEmptyNotTaskPoint = bcutpointivtService.getNBJCanUsePoint("1", "1", "0", "2");
|
||||
if (areaEmptyNotTaskPoint.size() == 0) {
|
||||
throw new BadRequestException("请求搬运失败,内包间没有可存放位置!");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user