1 files added
4 files modified
| | |
| | | <exclude>config/test/*</exclude> |
| | | <exclude>config/xcx/*</exclude> |
| | | |
| | | <!----> |
| | | <!-- |
| | | <exclude>config/config.json</exclude> |
| | | <exclude>config/application.properties</exclude> |
| | | <exclude>config/system.properties</exclude> |
| | | |
| | | |
| | | --> |
| | | |
| | | <exclude>**/*.woff</exclude> |
| | | <exclude>**/*.woff2</exclude> |
| | |
| | | import com.matrix.core.tools.StringUtils; |
| | | import com.matrix.core.tools.WebUtil; |
| | | import com.matrix.system.common.bean.SysUsers; |
| | | import com.matrix.system.fenxiao.dto.AddSaleManApplyDto; |
| | | import com.matrix.system.fenxiao.dto.ShopSalesmanAppliingDto; |
| | | import com.matrix.system.fenxiao.dto.ShopSalesmanApplyDto; |
| | | import com.matrix.system.fenxiao.service.ShopSalesmanApplyService; |
| | |
| | | result.putInMap("salesGrade", dataList); |
| | | return result; |
| | | } |
| | | |
| | | /** |
| | | * 改变发布状态:已发布 |
| | | * @param userId |
| | | * |
| | | */ |
| | | @RequestMapping(value = "/addSaleManApply") |
| | | public @ResponseBody AjaxResult addSaleManApply(String userId,long gradeId) { |
| | | AjaxResult result= AjaxResult.buildSuccessInstance("设置成功"); |
| | | *新增分销员 |
| | | */ |
| | | @ApiOperation(value = "新增分销员") |
| | | @PostMapping(value = "/addSaleManApply") |
| | | public @ResponseBody |
| | | AjaxResult findShopSalesmanAppliingList(@RequestBody AddSaleManApplyDto addSaleManApplyDto) { |
| | | AjaxResult result= AjaxResult.buildSuccessInstance("设置成功"); |
| | | SysUsers user = WebUtil.getSessionAttribute(MatrixConstance.LOGIN_KEY); |
| | | shopSalesmanApplyService.addSaleManApply(userId,gradeId); |
| | | shopSalesmanApplyService.addSaleManApply(addSaleManApplyDto.getUserId(),addSaleManApplyDto.getGradeId()); |
| | | return result; |
| | | } |
| | | } |
| | | |
| | | } |
New file |
| | |
| | | package com.matrix.system.fenxiao.dto; |
| | | |
| | | import io.swagger.annotations.ApiModel; |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import lombok.Data; |
| | | |
| | | @Data |
| | | @ApiModel(value = "AddSaleManApplyDto", description = "查询参数") |
| | | public class AddSaleManApplyDto { |
| | | |
| | | @ApiModelProperty(value ="会员ID") |
| | | private String userId; |
| | | |
| | | @ApiModelProperty(value ="等级ID") |
| | | private String gradeId; |
| | | |
| | | } |
| | |
| | | return shopSalesmanGradeDao.getShopSalesmanGradeVo(companyId); |
| | | } |
| | | |
| | | public void addSaleManApply(String userId,long gradeId) { |
| | | public void addSaleManApply(String userId,String gradeId) { |
| | | BizUser user = bizUserDao.selectById(userId); |
| | | |
| | | applyToBeAnSalesman(user.getOpenId(),gradeId+"", ""); |
| | | applyToBeAnSalesman(user.getOpenId(),gradeId, ""); |
| | | } |
| | | |
| | | |
| | |
| | | order:'', |
| | | sort:'' |
| | | }, |
| | | proJbruserValue : "", |
| | | salesGradeList: [], |
| | | height:'calc(100vh - 240px)', |
| | | }, |
| | |
| | | addSaleManApply(row){ |
| | | let _this = this; |
| | | let userId = row.userId; |
| | | let gradeId = row.salesGrade; |
| | | let gradeId = row.proJbruserValue; |
| | | alert(gradeId); |
| | | let obj = { |
| | | userId: userId, |
| | | gradeId: gradeId, |
| | | } |
| | | AjaxProxy.requst({ |
| | | app: _this, |
| | | data:[], |
| | | url: basePath + '/fenXiao/fenXiaoUser/addSaleManApply?userId='+userId+'&gradeId='+gradeId, |
| | | data:obj, |
| | | url: basePath + '/fenXiao/fenXiaoUser/addSaleManApply', |
| | | callback: function (data) { |
| | | _this.$message.success(data.info); |
| | | this.loadData(); |
| | | } |
| | | }); |
| | | }, |