Commit fa0b2e34 authored by fangxinjiang's avatar fangxinjiang

BUG修复

parent 849219e6
......@@ -229,7 +229,7 @@ public class CustomerBusinessContoller {
wrapper.last("limit " + limit);
return new R<>(tSettleDomainService.list(wrapper));
}else{
return new R<>(tSettleDomainService.getOwnSettleDomainNoPage(user.getId().toString(),settleName));
return new R<>(tSettleDomainService.getOwnSettleDomainNoPage(user.getId(),settleName));
}
}
......@@ -268,9 +268,6 @@ public class CustomerBusinessContoller {
if(null == user){
return R.failed("非法用户!");
}
if (Common.isEmpty(user.getSettleIdList())){
return R.ok();
}
return tSettleDomainService.getCustomerOwnerPage(page,customerName,user.getSettleIdList());
return tSettleDomainService.getCustomerOwnerPage(page,customerName,user.getId());
}
}
......@@ -91,5 +91,5 @@ public interface TSettleDomainMapper extends BaseMapper<TSettleDomain> {
IPage<CustomerOwnerSelectVo> getCustomerOwnerPage(Page page,
@Param("customerName")String customerName,
@Param("settleIdList")List<String> settleIdList);
@Param("userId")String userId);
}
......@@ -121,5 +121,5 @@ public interface TSettleDomainService extends IService<TSettleDomain> {
List<TCustomerInfo> getTCustomerInfoForB(List<String> customerList);
R<IPage<CustomerOwnerSelectVo>> getCustomerOwnerPage(Page<CustomerOwnerSelectVo> page, String customerName, List<String> settleIdList);
R<IPage<CustomerOwnerSelectVo>> getCustomerOwnerPage(Page<CustomerOwnerSelectVo> page, String customerName, String userId);
}
......@@ -468,7 +468,7 @@ public class TSettleDomainServiceImpl extends ServiceImpl<TSettleDomainMapper, T
@Override
public R<IPage<CustomerOwnerSelectVo>> getCustomerOwnerPage(Page<CustomerOwnerSelectVo> page, String customerName,
List<String> settleIdList) {
return R.ok(baseMapper.getCustomerOwnerPage(page,customerName,settleIdList));
String userId) {
return R.ok(baseMapper.getCustomerOwnerPage(page,customerName,userId));
}
}
......@@ -426,6 +426,7 @@
#{item}
</foreach>
</if>
and a.id in (select b.settle_id from m_setttle_customer_user b where b.user_id = #{userId}) and a.DELETE_FLAG = '0'
group by a.CUSTOMER_NO order by CREATE_TIME desc
</select>
</mapper>
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment