|
@@ -55,11 +55,13 @@ public class WbsParamController {
|
|
|
if(wp.getId()==null){
|
|
|
WbsParam e= new WbsParam();
|
|
|
BeanUtils.copyProperties(wp,e);
|
|
|
+ e.setIsDeleted(0);
|
|
|
return R.status(this.service.save(e));
|
|
|
}else{
|
|
|
WbsParam old = this.service.getById(wp.getId());
|
|
|
if(old!=null){
|
|
|
BeanUtils.copyProperties(wp,old);
|
|
|
+ old.setIsDeleted(0);
|
|
|
return R.status(service.updateById(old));
|
|
|
}
|
|
|
return R.status(false);
|
|
@@ -85,6 +87,7 @@ public class WbsParamController {
|
|
|
List<WbsParam> ul = new ArrayList<>();
|
|
|
for(WbsParamBean b:updateList){
|
|
|
WbsParam old = this.service.getById(b.getId());
|
|
|
+ old.setIsDeleted(0);
|
|
|
BeanUtils.copyProperties(b,old);
|
|
|
ul.add(old);
|
|
|
}
|