|
@@ -13,6 +13,7 @@ import com.ydtech.modules.admin.service.SysUserLinkPtlAgreementService;
|
|
|
import com.ydtech.modules.base.controller.BaseController;
|
|
import com.ydtech.modules.base.controller.BaseController;
|
|
|
import com.ydtech.modules.order.entity.BasePageResult;
|
|
import com.ydtech.modules.order.entity.BasePageResult;
|
|
|
import com.ydtech.modules.protocol.entity.po.PtlAgreement;
|
|
import com.ydtech.modules.protocol.entity.po.PtlAgreement;
|
|
|
|
|
+import com.ydtech.modules.protocol.utils.AssertionUtils;
|
|
|
import io.swagger.annotations.Api;
|
|
import io.swagger.annotations.Api;
|
|
|
import io.swagger.annotations.ApiImplicitParam;
|
|
import io.swagger.annotations.ApiImplicitParam;
|
|
|
import io.swagger.annotations.ApiOperation;
|
|
import io.swagger.annotations.ApiOperation;
|
|
@@ -61,6 +62,14 @@ public class SysUserLinkPtlAgreementController extends BaseController {
|
|
|
|
|
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
+ @PostMapping("addOrUpdateAll/{userId}")
|
|
|
|
|
+ @ApiOperation("后线人员关联协议全部添加修改")
|
|
|
|
|
+ public HttpResult<Object> addOrUpdateAll(@PathVariable("userId") String userId) {
|
|
|
|
|
+ AssertionUtils.isFail(StringUtils.isBlank(userId),"后线人员id不能为空!");
|
|
|
|
|
+ sysUserLinkPtlAgreementService.addOrUpdateAll(userId,getUser());
|
|
|
|
|
+ return HttpResult.ok();
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
@PostMapping("delete")
|
|
@PostMapping("delete")
|
|
|
@ApiOperation("后线人员关联协议删除")
|
|
@ApiOperation("后线人员关联协议删除")
|
|
|
public HttpResult<Object> delete(@RequestBody SysUserLinkPtlAgreementIdsVo idsVo) {
|
|
public HttpResult<Object> delete(@RequestBody SysUserLinkPtlAgreementIdsVo idsVo) {
|