|
|
|
@ -38,6 +38,13 @@ public class ThrProductsAddDiServiceImpl implements ThrProductsAddDiService {
|
|
|
|
|
PageHelper.offsetPage(offset, filterThrProductsRequest.getLimit());
|
|
|
|
|
}
|
|
|
|
|
List<ThrProductsAddDiResponse> thrProductsAddDiResponses = thrProductsAddDiDao.filterThrProductsList(filterThrProductsRequest);
|
|
|
|
|
|
|
|
|
|
if (CollUtil.isNotEmpty(thrProductsAddDiResponses)) {
|
|
|
|
|
thrProductsAddDiResponses.forEach(thrProductsAddDiResponse -> {
|
|
|
|
|
thrProductsAddDiResponse.setStandard(thrProductsAddDiResponse.getSpec());
|
|
|
|
|
thrProductsAddDiResponse.setZczbhhzbapzbh(thrProductsAddDiResponse.getRegisterNo());
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
return thrProductsAddDiResponses;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
@ -84,10 +91,10 @@ public class ThrProductsAddDiServiceImpl implements ThrProductsAddDiService {
|
|
|
|
|
List<ThrProductsAddDiEntity> list = new ArrayList<>(uuids.size());
|
|
|
|
|
Date date = new Date();
|
|
|
|
|
for (String uuid : uuids) {
|
|
|
|
|
ProductInfoEntity productInfoEntity=productInfoService.selectByUuid(uuid).get(0);
|
|
|
|
|
ProductInfoEntity productInfoEntity = productInfoService.selectByUuid(uuid).get(0);
|
|
|
|
|
ThrProductsAddDiEntity thrProductsAddDiEntity = new ThrProductsAddDiEntity();
|
|
|
|
|
BeanUtils.copyProperties(thrDiProductsRequest, thrProductsAddDiEntity);
|
|
|
|
|
thrProductsAddDiEntity.setCustomerId(customerId+"");
|
|
|
|
|
thrProductsAddDiEntity.setCustomerId(customerId + "");
|
|
|
|
|
thrProductsAddDiEntity.setUuid(uuid);
|
|
|
|
|
thrProductsAddDiEntity.setType(1);
|
|
|
|
|
thrProductsAddDiEntity.setYlqxzcrbarywmc(productInfoEntity.getYlqxzcrbarywmc());
|
|
|
|
@ -124,8 +131,8 @@ public class ThrProductsAddDiServiceImpl implements ThrProductsAddDiService {
|
|
|
|
|
|
|
|
|
|
@Override
|
|
|
|
|
public UdiInfoResponse getDiProductDetail(String uuid) {
|
|
|
|
|
ThrProductsAddDiEntity thrProductsAddDiEntity=thrProductsAddDiDao.filterThrProductsGetUuid(uuid);
|
|
|
|
|
UdiInfoResponse udiInfoResponse=thrProductsAddDiDao.getDiProductDetail(uuid);
|
|
|
|
|
ThrProductsAddDiEntity thrProductsAddDiEntity = thrProductsAddDiDao.filterThrProductsGetUuid(uuid);
|
|
|
|
|
UdiInfoResponse udiInfoResponse = thrProductsAddDiDao.getDiProductDetail(uuid);
|
|
|
|
|
udiInfoResponse.setSptm(thrProductsAddDiEntity.getSptm());
|
|
|
|
|
udiInfoResponse.setYbbm(thrProductsAddDiEntity.getYbbm());
|
|
|
|
|
udiInfoResponse.setManufactory(thrProductsAddDiEntity.getManufactory());
|
|
|
|
@ -133,7 +140,7 @@ public class ThrProductsAddDiServiceImpl implements ThrProductsAddDiService {
|
|
|
|
|
udiInfoResponse.setMeasname(thrProductsAddDiEntity.getMeasname());
|
|
|
|
|
udiInfoResponse.setManufactory(thrProductsAddDiEntity.getManufactory());
|
|
|
|
|
udiInfoResponse.setPrice(thrProductsAddDiEntity.getPrice());
|
|
|
|
|
return udiInfoResponse;
|
|
|
|
|
return udiInfoResponse;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@Override
|
|
|
|
|