| | |
| | | @Override |
| | | protected void validate(ServiceDataFlowEvent event, JSONObject reqJson) { |
| | | //Assert.hasKeyAndValue(reqJson, "xxx", "xxx"); |
| | | |
| | | Assert.hasKeyAndValue(reqJson, "storeId", "必填,请填写商户ID"); |
| | | Assert.hasKeyAndValue(reqJson, "auditUserId", "审核ID不能为空"); |
| | | |
| | | } |
| | |
| | | import com.java110.dto.auditUser.AuditUserDto; |
| | | import com.java110.event.service.api.ServiceDataFlowEvent; |
| | | import com.java110.utils.constant.ServiceCodeAuditUserConstant; |
| | | import com.java110.utils.util.Assert; |
| | | import com.java110.utils.util.BeanConvertUtil; |
| | | import com.java110.vo.api.auditUser.ApiAuditUserDataVo; |
| | | import com.java110.vo.api.auditUser.ApiAuditUserVo; |
| | |
| | | |
| | | @Override |
| | | protected void validate(ServiceDataFlowEvent event, JSONObject reqJson) { |
| | | Assert.hasKeyAndValue(reqJson, "storeId", "必填,请填写商户ID"); |
| | | |
| | | super.validatePageInfo(reqJson); |
| | | } |
| | | |
| | |
| | | //Assert.hasKeyAndValue(reqJson, "xxx", "xxx"); |
| | | |
| | | Assert.hasKeyAndValue(reqJson, "userId", "必填,请填写用户ID"); |
| | | Assert.hasKeyAndValue(reqJson, "storeId", "必填,请填写商户"); |
| | | Assert.hasKeyAndValue(reqJson, "userName", "必填,请填写用户名称"); |
| | | Assert.hasKeyAndValue(reqJson, "auditLink", "必填,请选择审核环节"); |
| | | Assert.hasKeyAndValue(reqJson, "objCode", "必填,请填写流程对象"); |
| | |
| | | |
| | | import com.alibaba.fastjson.JSONObject; |
| | | import com.java110.core.context.IPageData; |
| | | import com.java110.entity.component.ComponentValidateResult; |
| | | import com.java110.utils.constant.PrivilegeCodeConstant; |
| | | import com.java110.utils.constant.ServiceConstant; |
| | | import com.java110.utils.util.Assert; |
| | |
| | | @Override |
| | | protected ResponseEntity<String> doBusinessProcess(IPageData pd, JSONObject paramIn) { |
| | | ResponseEntity<String> responseEntity = null; |
| | | super.validateStoreStaffCommunityRelationship(pd, restTemplate); |
| | | |
| | | ComponentValidateResult result = super.validateStoreStaffCommunityRelationship(pd, restTemplate); |
| | | paramIn.put("storeId",result.getStoreId()); |
| | | responseEntity = this.callCenterService(restTemplate, pd, paramIn.toJSONString(), |
| | | ServiceConstant.SERVICE_API_URL + "/api/auditUser.saveAuditUser", |
| | | HttpMethod.POST); |
| | |
| | | |
| | | import com.alibaba.fastjson.JSONObject; |
| | | import com.java110.core.context.IPageData; |
| | | import com.java110.entity.component.ComponentValidateResult; |
| | | import com.java110.utils.constant.PrivilegeCodeConstant; |
| | | import com.java110.utils.constant.ServiceConstant; |
| | | import com.java110.utils.util.Assert; |
| | |
| | | @Override |
| | | protected ResponseEntity<String> doBusinessProcess(IPageData pd, JSONObject paramIn) { |
| | | ResponseEntity<String> responseEntity = null; |
| | | super.validateStoreStaffCommunityRelationship(pd, restTemplate); |
| | | ComponentValidateResult result = super.validateStoreStaffCommunityRelationship(pd, restTemplate); |
| | | paramIn.put("storeId",result.getStoreId()); |
| | | |
| | | responseEntity = this.callCenterService(restTemplate, pd, paramIn.toJSONString(), |
| | | ServiceConstant.SERVICE_API_URL + "/api/auditUser.deleteAuditUser", |
| | |
| | | |
| | | @Override |
| | | protected ResponseEntity<String> doBusinessProcess(IPageData pd, JSONObject paramIn) { |
| | | ComponentValidateResult result = super.validateStoreStaffCommunityRelationship(pd, restTemplate); |
| | | /*ComponentValidateResult result = super.validateStoreStaffCommunityRelationship(pd, restTemplate); |
| | | |
| | | Map paramMap = BeanConvertUtil.beanCovertMap(result); |
| | | paramIn.putAll(paramMap); |
| | | paramIn.putAll(paramMap);*/ |
| | | ComponentValidateResult result = super.validateStoreStaffCommunityRelationship(pd, restTemplate); |
| | | paramIn.put("storeId",result.getStoreId()); |
| | | |
| | | String apiUrl = ServiceConstant.SERVICE_API_URL + "/api/auditUser.listAuditUsers" + mapToUrlParam(paramIn); |
| | | |
| | |
| | | vc.component.addAuditUserOtherViewInfo= { |
| | | flowComponent: 'addAuditUserOtherView', |
| | | userId: _staffInfo.userId, |
| | | userName: _staffInfo.userName, |
| | | userName: _staffInfo.name, |
| | | auditLink: '', |
| | | objCode: '', |
| | | }; |
| | |
| | | return; |
| | | } |
| | | |
| | | var param = { |
| | | data: vc.component.addAuditUserStepInfo.infos |
| | | } |
| | | |
| | | |
| | | vc.http.post( |
| | | 'addAuditUserStepBinding', |
| | | 'binding', |