fix:增加重复校验
This commit is contained in:
@@ -662,7 +662,18 @@ public class PdaIosInServiceImpl implements PdaIosInService {
|
|||||||
@Override
|
@Override
|
||||||
@Transactional
|
@Transactional
|
||||||
public PdaResponse zwConfirmIn(ZwConfirmInDto dto) {
|
public PdaResponse zwConfirmIn(ZwConfirmInDto dto) {
|
||||||
//查询字典表
|
//校验是否重复
|
||||||
|
if (dto.getParam_list().stream()
|
||||||
|
.map(ZwConfirmInParamDto::getSite_code)
|
||||||
|
.distinct()
|
||||||
|
.count() != dto.getParam_list().size() || dto.getParam_list().stream()
|
||||||
|
.map(ZwConfirmInParamDto::getVehicle_code)
|
||||||
|
.distinct()
|
||||||
|
.count() != dto.getParam_list().size()) {
|
||||||
|
throw new BadRequestException("存在重复的点位或托盘号,请核对!");
|
||||||
|
}
|
||||||
|
|
||||||
|
//查询字典表
|
||||||
List<Dict> dictList = sysDictMapper.selectList(new LambdaQueryWrapper<Dict>()
|
List<Dict> dictList = sysDictMapper.selectList(new LambdaQueryWrapper<Dict>()
|
||||||
.eq(Dict::getCode, "MATERIAL_MODEL_SECT"));
|
.eq(Dict::getCode, "MATERIAL_MODEL_SECT"));
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user