|
|
@@ -111,7 +111,6 @@ public class MdModelInfoServiceImpl implements IMdModelInfoService {
|
|
|
|
|
|
@Override
|
|
|
public int modelSetRela(MdModelSetRelaVo modelSet) {
|
|
|
- String mdId = modelSet.getMdid();
|
|
|
modelSet.setCreateTime(DateUtils.getNowDate());
|
|
|
int i = 0;
|
|
|
for (String dcCode : modelSet.getDcCodes()) {
|
|
|
@@ -122,4 +121,14 @@ public class MdModelInfoServiceImpl implements IMdModelInfoService {
|
|
|
}
|
|
|
return i;
|
|
|
}
|
|
|
+
|
|
|
+ @Override
|
|
|
+ public int deleteModelSetRela(MdModelSetRelaVo modelSet) {
|
|
|
+ int i = 0;
|
|
|
+ for (String dcCode : modelSet.getDcCodes()) {
|
|
|
+ modelSet.setDcCode(dcCode);
|
|
|
+ i += mdModelInfoMapper.deleteModelSetRela(modelSet);
|
|
|
+ }
|
|
|
+ return i;
|
|
|
+ }
|
|
|
}
|