|
@@ -93,6 +93,14 @@ public class WbsTreeSynchronousRecordController {
|
|
|
*/
|
|
|
@PostMapping("add")
|
|
|
public R<WbsTreeSynchronousRecord> insert(@RequestBody WbsTreeSynchronousRecord mWbsTreeSynchronousRecord) {
|
|
|
+ if (StringUtil.isBlank(mWbsTreeSynchronousRecord.getNodeId())) {
|
|
|
+ return R.fail("节点不能为空");
|
|
|
+ }else{
|
|
|
+ String[] split = mWbsTreeSynchronousRecord.getNodeId().split(",");
|
|
|
+ if(split.length > 100){
|
|
|
+ return R.fail("节点过多,如果勾选了父节点,请勿带子节点!");
|
|
|
+ }
|
|
|
+ }
|
|
|
if (StringUtil.isBlank(mWbsTreeSynchronousRecord.getType())) {
|
|
|
return R.fail("请选择同步类型");
|
|
|
}
|