|
|
|
@ -5,7 +5,10 @@ import cn.chjyj.szwh.bean.*; |
|
|
|
import cn.chjyj.szwh.mapper.*; |
|
|
|
import cn.chjyj.szwh.service.AccountCloseService; |
|
|
|
import cn.chjyj.szwh.vo.SettleVo; |
|
|
|
import com.alibaba.fastjson.JSONArray; |
|
|
|
import org.apache.commons.lang3.StringUtils; |
|
|
|
import org.apache.commons.logging.Log; |
|
|
|
import org.apache.commons.logging.LogFactory; |
|
|
|
import org.springframework.beans.factory.annotation.Autowired; |
|
|
|
import org.springframework.stereotype.Service; |
|
|
|
|
|
|
|
@ -18,6 +21,7 @@ import java.util.Map; |
|
|
|
|
|
|
|
@Service |
|
|
|
public class AccountCloseServiceImpl implements AccountCloseService { |
|
|
|
private static Log log = LogFactory.getLog(AccountCloseServiceImpl.class); |
|
|
|
@Autowired |
|
|
|
private PaySettingMapper paySettingMapper; |
|
|
|
@Autowired |
|
|
|
@ -120,16 +124,22 @@ public class AccountCloseServiceImpl implements AccountCloseService { |
|
|
|
query.put("status",status); |
|
|
|
} |
|
|
|
if(StringUtils.isNotBlank(createtime) && !"[]".equals(createtime)){ |
|
|
|
query.put("createtime",createtime); |
|
|
|
JSONArray jsonArray = JSONArray.parseArray(createtime); |
|
|
|
|
|
|
|
String btstr ="createtime BETWEEN date_format('"+jsonArray.get(0)+ "T00:00:00' ,'%Y-%m-%d %H:%i:%s') " + |
|
|
|
"AND date_format('"+jsonArray.get(1)+"T23:59:59','%Y-%m-%d %H:%i:%s')"; |
|
|
|
query.put("btstr",btstr); |
|
|
|
} |
|
|
|
|
|
|
|
int total = accountRatioSettingMapper.countAcRs(); |
|
|
|
int total = accountRatioSettingMapper.countAccountRatioSetting(query); |
|
|
|
Map retmap=new HashMap(); |
|
|
|
int startrs=ipage>1?(ipage-1)*ilimit:0; |
|
|
|
int end = ipage*ilimit>total?total:ipage*ilimit; |
|
|
|
|
|
|
|
retmap.put("start",startrs+1); |
|
|
|
retmap.put("cur_page",ipage); |
|
|
|
retmap.put("limit",ilimit); |
|
|
|
retmap.put("end",ipage*ilimit); |
|
|
|
retmap.put("end",end); |
|
|
|
retmap.put("per_page",ilimit); |
|
|
|
retmap.put("total",total); |
|
|
|
|
|
|
|
|