| | |
| | | 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("设置成功"); |
| | | SysUsers user = WebUtil.getSessionAttribute(MatrixConstance.LOGIN_KEY); |
| | | shopSalesmanApplyService.addSaleManApply(userId,gradeId); |
| | | *新增分销员 |
| | | */ |
| | | @ApiOperation(value = "新增分销员") |
| | | @PostMapping(value = "/addSaleManApply") |
| | | public @ResponseBody |
| | | AjaxResult findShopSalesmanAppliingList(@RequestBody AddSaleManApplyDto addSaleManApplyDto) { |
| | | //设置用户公司ID |
| | | QueryUtil.setQueryLimitCom(addSaleManApplyDto); |
| | | AjaxResult result= AjaxResult.buildSuccessInstance("设置成功"); |
| | | |
| | | shopSalesmanApplyService.addSaleManApply(addSaleManApplyDto.getUserId(),addSaleManApplyDto.getGradeId()); |
| | | return result; |
| | | } |
| | | |
| | | |
| | | public static void main(String[] args) { |
| | | System.out.println("===="+Long.parseLong("")); |
| | | } |
| | | } |
| | | |
| | | } |