|
|
@@ -7,10 +7,12 @@ import com.ydtech.modules.protocol.dao.PtlAgreementDeptMapper;
|
|
|
import com.ydtech.modules.protocol.entity.po.PtlAgreementDept;
|
|
|
import com.ydtech.modules.protocol.entity.vo.PltAgreementDeptDispositionVo;
|
|
|
import com.ydtech.modules.protocol.service.PtlAgreementDeptService;
|
|
|
+import com.ydtech.modules.protocol.utils.AssertionUtils;
|
|
|
import org.springframework.stereotype.Service;
|
|
|
import org.springframework.transaction.annotation.Transactional;
|
|
|
|
|
|
import java.util.List;
|
|
|
+import java.util.stream.Collectors;
|
|
|
|
|
|
/**
|
|
|
* @author wenks
|
|
|
@@ -25,7 +27,8 @@ public class PtlAgreementDeptServiceImpl extends ServiceImpl<PtlAgreementDeptMap
|
|
|
@Transactional
|
|
|
public void saveBatchDept(String agreementId, List<String> dept) {
|
|
|
List<PtlAgreementDept> ptlAgreementDeptList = PtlAgreementDept.toPtlAgreementDeptList(agreementId, dept);
|
|
|
- saveBatch(ptlAgreementDeptList);
|
|
|
+ boolean b = saveBatch(ptlAgreementDeptList);
|
|
|
+ AssertionUtils.isSucceed(b, "协议机构添加失败");
|
|
|
}
|
|
|
|
|
|
@Override
|
|
|
@@ -35,7 +38,8 @@ public class PtlAgreementDeptServiceImpl extends ServiceImpl<PtlAgreementDeptMap
|
|
|
|
|
|
@Override
|
|
|
public void deleteByAgreementId(String agreementId) {
|
|
|
- remove(byAgreementId(agreementId));
|
|
|
+ boolean remove = remove(byAgreementId(agreementId));
|
|
|
+ AssertionUtils.isSucceed(remove, "协议机构删除失败");
|
|
|
}
|
|
|
|
|
|
@Override
|
|
|
@@ -52,11 +56,6 @@ public class PtlAgreementDeptServiceImpl extends ServiceImpl<PtlAgreementDeptMap
|
|
|
return lambdaQueryWrapper;
|
|
|
}
|
|
|
|
|
|
- @Override
|
|
|
- public void disposition(PltAgreementDeptDispositionVo pltAgreementDeptDispositionVo) {
|
|
|
- String deptId = pltAgreementDeptDispositionVo.getDeptId();
|
|
|
- PtlAgreementDept ptlAgreementDept = new PtlAgreementDept();
|
|
|
- }
|
|
|
}
|
|
|
|
|
|
|