|
|
|
@ -105,7 +105,7 @@ public class UdplatGoodsServiceImpl implements UdplatGoodsService {
|
|
|
|
|
if(goodId == null || goodId.isEmpty())
|
|
|
|
|
continue;
|
|
|
|
|
UdplatGoods goods = udplatGoodsMapper.selectByGoodId(goodId);
|
|
|
|
|
HospitalGoodsToUdplatGoods(item,goods);
|
|
|
|
|
goods = HospitalGoodsToUdplatGoods(item,goods);
|
|
|
|
|
if(goods.getId()>0){
|
|
|
|
|
goods.setUpdateTime(new Date());
|
|
|
|
|
udplatGoodsMapper.update(goods);
|
|
|
|
@ -141,7 +141,7 @@ public class UdplatGoodsServiceImpl implements UdplatGoodsService {
|
|
|
|
|
}
|
|
|
|
|
return count;
|
|
|
|
|
}
|
|
|
|
|
private void HospitalGoodsToUdplatGoods(HospitalGoods hospitalGoods, UdplatGoods udplatGoods){
|
|
|
|
|
private UdplatGoods HospitalGoodsToUdplatGoods(HospitalGoods hospitalGoods, UdplatGoods udplatGoods){
|
|
|
|
|
if(udplatGoods == null){
|
|
|
|
|
udplatGoods = new UdplatGoods();
|
|
|
|
|
udplatGoods.setId(0L);
|
|
|
|
@ -161,6 +161,7 @@ public class UdplatGoodsServiceImpl implements UdplatGoodsService {
|
|
|
|
|
udplatGoods.setChangedContent(hospitalGoods.getChangedContent());
|
|
|
|
|
udplatGoods.setChangedTime(hospitalGoods.getChangedTime());
|
|
|
|
|
udplatGoods.setMedicalCode(hospitalGoods.getMedicalCode());
|
|
|
|
|
return udplatGoods;
|
|
|
|
|
}
|
|
|
|
|
private UdplatGoods DeliveryGoodsToUdplatGoods(DeliveryGoods deliveryGoods, UdplatGoods udplatGoods){
|
|
|
|
|
if(udplatGoods == null)
|
|
|
|
|