给销售相关的单据接口增加销售人员的查询参数

This commit is contained in:
jishenghua
2025-06-17 23:32:23 +08:00
parent d5e535fbd6
commit c6f7b63e95
4 changed files with 8 additions and 3 deletions

View File

@@ -93,9 +93,10 @@ public class DepotHeadController extends BaseController {
Long creator = StringUtil.parseStrLong(StringUtil.getInfo(search, "creator"));
Long depotId = StringUtil.parseStrLong(StringUtil.getInfo(search, "depotId"));
Long accountId = StringUtil.parseStrLong(StringUtil.getInfo(search, "accountId"));
String salesMan = StringUtil.getInfo(search, "salesMan");
String remark = StringUtil.getInfo(search, "remark");
List<DepotHeadVo4List> list = depotHeadService.select(type, subType, hasDebt, status, purchaseStatus, number, linkApply, linkNumber,
beginTime, endTime, materialParam, organId, creator, depotId, accountId, remark);
beginTime, endTime, materialParam, organId, creator, depotId, accountId, salesMan, remark);
return getDataTable(list);
}

View File

@@ -34,6 +34,7 @@ public interface DepotHeadMapperEx {
@Param("depotId") Long depotId,
@Param("depotArray") String[] depotArray,
@Param("accountId") Long accountId,
@Param("salesMan") String salesMan,
@Param("remark") String remark);
List<MaterialsListVo> findMaterialsListMapByHeaderIdList(

View File

@@ -100,7 +100,7 @@ public class DepotHeadService {
}
public List<DepotHeadVo4List> select(String type, String subType, String hasDebt, String status, String purchaseStatus, String number, String linkApply, String linkNumber,
String beginTime, String endTime, String materialParam, Long organId, Long creator, Long depotId, Long accountId, String remark) throws Exception {
String beginTime, String endTime, String materialParam, Long organId, Long creator, Long depotId, Long accountId, String salesMan, String remark) throws Exception {
List<DepotHeadVo4List> list = new ArrayList<>();
try{
HttpServletRequest request = ((ServletRequestAttributes) RequestContextHolder.getRequestAttributes()).getRequest();
@@ -121,7 +121,7 @@ public class DepotHeadService {
PageUtils.startPage();
list = depotHeadMapperEx.selectByConditionDepotHead(type, subType, creatorArray, hasDebt,
statusArray, purchaseStatusArray, number, linkApply, linkNumber, beginTime, endTime,
materialParam, organId, organArray, creator, depotId, depotArray, accountId, remark);
materialParam, organId, organArray, creator, depotId, depotArray, accountId, salesMan, remark);
if (null != list) {
List<Long> idList = new ArrayList<>();
List<String> numberList = new ArrayList<>();