| | |
| | | .last("LIMIT 1")); |
| | | query.setSalespersonId(crmSalesperson.getId()); |
| | | } |
| | | if (roleType == 1){ |
| | | query.setRoleType(roleType); |
| | | } |
| | | return R.ok(crmClinicService.pageList(query)); |
| | | } |
| | | |
| | |
| | | .last("LIMIT 1")); |
| | | wrapper.eq(TCrmSalesperson::getBranchId,crmBranch.getId()); |
| | | } |
| | | if(roleType == 3){ |
| | | // 查询业务员信息 |
| | | TCrmSalesperson crmSalesperson = crmSalespersonService.getOne(Wrappers.lambdaQuery(TCrmSalesperson.class) |
| | | .eq(TCrmSalesperson::getUserId, userId) |
| | | .last("LIMIT 1")); |
| | | wrapper.eq(TCrmSalesperson::getId,crmSalesperson.getId()); |
| | | } |
| | | wrapper.eq(TCrmSalesperson::getStatus,1) |
| | | .orderByDesc(TCrmSalesperson::getCreateTime); |
| | | return R.ok(crmSalespersonService.list(wrapper)); |
| | |
| | | private String payTimeStr; |
| | | @Excel(name = "采购金额", width = 20) |
| | | private BigDecimal payMoney; |
| | | @Excel(name = "供应商获得金额", width = 20) |
| | | private BigDecimal money; |
| | | @Excel(name = "平台分佣金额", width = 20) |
| | | private BigDecimal money; |
| | | @Excel(name = "供应商获得金额", width = 20) |
| | | private BigDecimal supplierMoney; |
| | | @Excel(name = "状态", width = 20,replace = {"草稿_1","待支付_2","待发货_3","已发货_4","已入库_5","已取消_6"}) |
| | | private Integer status; |