|
|
@ -6,6 +6,7 @@ import com.qs.serve.common.model.dto.PageVo; |
|
|
|
import com.qs.serve.common.model.dto.R; |
|
|
|
import com.qs.serve.common.model.enums.BizType; |
|
|
|
import com.qs.serve.common.model.enums.SystemModule; |
|
|
|
import com.qs.serve.common.util.AuthContextUtils; |
|
|
|
import com.qs.serve.common.util.CollectionUtil; |
|
|
|
import com.qs.serve.common.util.CopierUtil; |
|
|
|
import com.qs.serve.common.util.PageUtil; |
|
|
@ -72,5 +73,42 @@ public class PayPaymentMyController { |
|
|
|
return R.byEmptyList(); |
|
|
|
} |
|
|
|
|
|
|
|
/** |
|
|
|
* 下属客户费用列表 |
|
|
|
* @return |
|
|
|
*/ |
|
|
|
@GetMapping("underlingSupplierPage") |
|
|
|
public R<PageVo<PaySupplierVo>> getUnderlingSupplierPage(BmsSupplierSo paramSo){ |
|
|
|
BmsSupplier param = CopierUtil.copy(paramSo,new BmsSupplier()); |
|
|
|
List<String> childIds = postUserService.listByChildIds(AuthContextUtils.getSysUserId()); |
|
|
|
param.setSelectUserIds(childIds); |
|
|
|
param.setSelectUserIdsFlag(true); |
|
|
|
PageVo<BmsSupplier> pageVo = hisUserSupplierService.selectPageSupplier(param); |
|
|
|
if(CollectionUtil.isNotEmpty(pageVo.getList())){ |
|
|
|
List<PaySupplierVo> supplierVoList = payPaymentController.getPaySupplierVos(paramSo, pageVo.getList()); |
|
|
|
return R.ok(PageVo.initNewList(pageVo,supplierVoList)); |
|
|
|
} |
|
|
|
return R.byEmptyList(); |
|
|
|
} |
|
|
|
|
|
|
|
/** |
|
|
|
* 我的和下属的客户费用列表 |
|
|
|
* @return |
|
|
|
*/ |
|
|
|
@GetMapping("underlingAndMineSupplierPage") |
|
|
|
public R<PageVo<PaySupplierVo>> underlingAndMineSupplierPage(BmsSupplierSo paramSo){ |
|
|
|
BmsSupplier param = CopierUtil.copy(paramSo,new BmsSupplier()); |
|
|
|
List<String> childIds = postUserService.listByChildIds(AuthContextUtils.getSysUserId()); |
|
|
|
childIds.add(AuthContextUtils.getSysUserId()); |
|
|
|
param.setSelectUserIds(childIds); |
|
|
|
param.setSelectUserIdsFlag(true); |
|
|
|
PageVo<BmsSupplier> pageVo = hisUserSupplierService.selectPageSupplier(param); |
|
|
|
if(CollectionUtil.isNotEmpty(pageVo.getList())){ |
|
|
|
List<PaySupplierVo> supplierVoList = payPaymentController.getPaySupplierVos(paramSo, pageVo.getList()); |
|
|
|
return R.ok(PageVo.initNewList(pageVo,supplierVoList)); |
|
|
|
} |
|
|
|
return R.byEmptyList(); |
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|