|
|
@ -21,6 +21,7 @@ import org.nl.wms.sch.group.service.dto.SchBaseVehiclematerialgroupQuery; |
|
|
|
import org.nl.wms.sch.point.service.ISchBasePointService; |
|
|
|
import org.nl.wms.sch.task_manage.GeneralDefinition; |
|
|
|
import org.nl.wms.sch.task_manage.enums.GroupBindMaterialStatusEnum; |
|
|
|
import org.nl.wms.util.TaskUtils; |
|
|
|
import org.springframework.beans.factory.annotation.Autowired; |
|
|
|
import org.springframework.stereotype.Service; |
|
|
|
|
|
|
@ -137,11 +138,13 @@ public class SchBaseVehiclematerialgroupServiceImpl extends ServiceImpl<SchBaseV |
|
|
|
LambdaQueryWrapper<SchBaseVehiclematerialgroup> lambda = new QueryWrapper<SchBaseVehiclematerialgroup>().lambda(); |
|
|
|
lambda.eq(SchBaseVehiclematerialgroup::getVehicle_code, vehicleCode) |
|
|
|
.eq(SchBaseVehiclematerialgroup::getVehicle_type, vehicleType) |
|
|
|
.ne(SchBaseVehiclematerialgroup::getGroup_bind_material_status, GroupBindMaterialStatusEnum.UNBOUND.getValue()) |
|
|
|
.ne(SchBaseVehiclematerialgroup::getGroup_bind_material_status, GroupBindMaterialStatusEnum.BOUND.getValue()) |
|
|
|
.eq(SchBaseVehiclematerialgroup::getIs_delete, false); |
|
|
|
List<SchBaseVehiclematerialgroup> list = vehiclematerialgroupMapper.selectList(lambda); |
|
|
|
list.forEach(schBaseVehiclematerialgroup -> |
|
|
|
schBaseVehiclematerialgroup.setGroup_bind_material_status(GroupBindMaterialStatusEnum.UNBOUND.getValue())); |
|
|
|
list.forEach(schBaseVehiclematerialgroup -> { |
|
|
|
schBaseVehiclematerialgroup.setGroup_bind_material_status(GroupBindMaterialStatusEnum.UNBOUND.getValue()); |
|
|
|
TaskUtils.setGroupUpdateByAcs(schBaseVehiclematerialgroup); |
|
|
|
}); |
|
|
|
this.updateBatchById(list); |
|
|
|
} |
|
|
|
|
|
|
|