|
@@ -210,10 +210,10 @@ public class RepairSaleService {
|
|
if(priceList.getPriceListId() != null){
|
|
if(priceList.getPriceListId() != null){
|
|
PriceList priceList1 = priceListHashMap.get(priceList.getPriceListId());
|
|
PriceList priceList1 = priceListHashMap.get(priceList.getPriceListId());
|
|
if(priceList1 != null){
|
|
if(priceList1 != null){
|
|
- BeanUtils.copyProperties(priceList,priceList1);
|
|
|
|
- priceList1.setPriceListId(null);
|
|
|
|
- priceListService.save(priceList1);
|
|
|
|
|
|
+ priceList.setStatus(priceList1.getStatus());
|
|
}
|
|
}
|
|
|
|
+ priceList.setPriceListId(null);
|
|
|
|
+ priceListService.save(priceList);
|
|
}else {
|
|
}else {
|
|
priceListService.save(priceList);
|
|
priceListService.save(priceList);
|
|
}
|
|
}
|