|
|
|
@ -1,8 +1,10 @@ |
|
|
|
package cn.chjyj.szwh.service.impl; |
|
|
|
|
|
|
|
|
|
|
|
import cn.chjyj.szwh.bean.AccountRatioDetail; |
|
|
|
import cn.chjyj.szwh.bean.AccountRatioSetting; |
|
|
|
import cn.chjyj.szwh.bean.PaySetting; |
|
|
|
import cn.chjyj.szwh.mapper.AccountRatioDetailMapper; |
|
|
|
import cn.chjyj.szwh.mapper.AccountRatioSettingMapper; |
|
|
|
import cn.chjyj.szwh.mapper.OrderUserMapper; |
|
|
|
import cn.chjyj.szwh.mapper.PaySettingMapper; |
|
|
|
@ -25,6 +27,8 @@ public class AccountCloseServiceImpl implements AccountCloseService { |
|
|
|
private OrderUserMapper orderUserMapper; |
|
|
|
@Autowired |
|
|
|
private AccountRatioSettingMapper accountRatioSettingMapper; |
|
|
|
@Autowired |
|
|
|
private AccountRatioDetailMapper accountRatioDetailMapper; |
|
|
|
|
|
|
|
@Override |
|
|
|
public Map getPaySetting() { |
|
|
|
@ -108,16 +112,19 @@ public class AccountCloseServiceImpl implements AccountCloseService { |
|
|
|
if(StringUtils.isNotBlank(status)){ |
|
|
|
query.put("status",status); |
|
|
|
} |
|
|
|
if(StringUtils.isNotBlank(createtime)){ |
|
|
|
if(StringUtils.isNotBlank(createtime) && !"[]".equals(createtime)){ |
|
|
|
query.put("createtime",createtime); |
|
|
|
} |
|
|
|
|
|
|
|
int total = accountRatioSettingMapper.countAcRs(); |
|
|
|
Map retmap=new HashMap(); |
|
|
|
int startrs=ipage>1?(ipage-1)*ilimit:0; |
|
|
|
retmap.put("start",startrs+1); |
|
|
|
retmap.put("cur_page",ipage); |
|
|
|
retmap.put("limit",ilimit); |
|
|
|
retmap.put("end",ipage*ilimit); |
|
|
|
retmap.put("per_page",ilimit); |
|
|
|
retmap.put("total",total); |
|
|
|
|
|
|
|
List<AccountRatioSetting> acrlist = accountRatioSettingMapper.getRatioSettingList(query,startrs,ilimit); |
|
|
|
List retlist = new ArrayList(); |
|
|
|
@ -127,9 +134,16 @@ public class AccountCloseServiceImpl implements AccountCloseService { |
|
|
|
amap.put("id",acs.getId()); |
|
|
|
amap.put("user_id",acs.getUserId()); |
|
|
|
amap.put("createtime",acs.getCreatetime()); |
|
|
|
amap.put("is_deleted",acs.getIsDeleted()); |
|
|
|
amap.put("status",acs.getStatus()); |
|
|
|
retlist.add(amap); |
|
|
|
} |
|
|
|
retmap.put("data",retlist); |
|
|
|
return retmap; |
|
|
|
} |
|
|
|
|
|
|
|
@Override |
|
|
|
public List<AccountRatioDetail> ratioDetail(int settingId) { |
|
|
|
return accountRatioDetailMapper.getAccRatioDetailBySettingId(settingId); |
|
|
|
} |
|
|
|
} |
|
|
|
|