Commit fa0b2e34 authored by fangxinjiang's avatar fangxinjiang

BUG修复

parent 849219e6
...@@ -229,7 +229,7 @@ public class CustomerBusinessContoller { ...@@ -229,7 +229,7 @@ public class CustomerBusinessContoller {
wrapper.last("limit " + limit); wrapper.last("limit " + limit);
return new R<>(tSettleDomainService.list(wrapper)); return new R<>(tSettleDomainService.list(wrapper));
}else{ }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 { ...@@ -268,9 +268,6 @@ public class CustomerBusinessContoller {
if(null == user){ if(null == user){
return R.failed("非法用户!"); return R.failed("非法用户!");
} }
if (Common.isEmpty(user.getSettleIdList())){ return tSettleDomainService.getCustomerOwnerPage(page,customerName,user.getId());
return R.ok();
}
return tSettleDomainService.getCustomerOwnerPage(page,customerName,user.getSettleIdList());
} }
} }
...@@ -91,5 +91,5 @@ public interface TSettleDomainMapper extends BaseMapper<TSettleDomain> { ...@@ -91,5 +91,5 @@ public interface TSettleDomainMapper extends BaseMapper<TSettleDomain> {
IPage<CustomerOwnerSelectVo> getCustomerOwnerPage(Page page, IPage<CustomerOwnerSelectVo> getCustomerOwnerPage(Page page,
@Param("customerName")String customerName, @Param("customerName")String customerName,
@Param("settleIdList")List<String> settleIdList); @Param("userId")String userId);
} }
...@@ -121,5 +121,5 @@ public interface TSettleDomainService extends IService<TSettleDomain> { ...@@ -121,5 +121,5 @@ public interface TSettleDomainService extends IService<TSettleDomain> {
List<TCustomerInfo> getTCustomerInfoForB(List<String> customerList); 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 ...@@ -468,7 +468,7 @@ public class TSettleDomainServiceImpl extends ServiceImpl<TSettleDomainMapper, T
@Override @Override
public R<IPage<CustomerOwnerSelectVo>> getCustomerOwnerPage(Page<CustomerOwnerSelectVo> page, String customerName, public R<IPage<CustomerOwnerSelectVo>> getCustomerOwnerPage(Page<CustomerOwnerSelectVo> page, String customerName,
List<String> settleIdList) { String userId) {
return R.ok(baseMapper.getCustomerOwnerPage(page,customerName,settleIdList)); return R.ok(baseMapper.getCustomerOwnerPage(page,customerName,userId));
} }
} }
...@@ -426,6 +426,7 @@ ...@@ -426,6 +426,7 @@
#{item} #{item}
</foreach> </foreach>
</if> </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 group by a.CUSTOMER_NO order by CREATE_TIME desc
</select> </select>
</mapper> </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