解决开启强审核之后账户流水计算的bug
This commit is contained in:
@@ -115,15 +115,15 @@ public class AccountController {
|
||||
BaseResponseInfo res = new BaseResponseInfo();
|
||||
Map<String, Object> map = new HashMap<String, Object>();
|
||||
try {
|
||||
Boolean forceFlag = systemConfigService.getForceApprovalFlag();
|
||||
List<AccountVo4InOutList> dataList = accountService.findAccountInOutList(accountId, StringUtil.toNull(number),
|
||||
beginTime, endTime, (currentPage-1)*pageSize, pageSize);
|
||||
beginTime, endTime, forceFlag, (currentPage-1)*pageSize, pageSize);
|
||||
int total = accountService.findAccountInOutListCount(accountId, StringUtil.toNull(number),
|
||||
beginTime, endTime);
|
||||
beginTime, endTime, forceFlag);
|
||||
map.put("total", total);
|
||||
//存放数据json数组
|
||||
JSONArray dataArray = new JSONArray();
|
||||
if (null != dataList) {
|
||||
Boolean forceFlag = systemConfigService.getForceApprovalFlag();
|
||||
for (AccountVo4InOutList aEx : dataList) {
|
||||
String type = aEx.getType().replace("其它", "");
|
||||
aEx.setType(type);
|
||||
|
||||
@@ -72,6 +72,7 @@ public interface AccountMapperEx {
|
||||
@Param("number") String number,
|
||||
@Param("beginTime") String beginTime,
|
||||
@Param("endTime") String endTime,
|
||||
@Param("forceFlag") Boolean forceFlag,
|
||||
@Param("offset") Integer offset,
|
||||
@Param("rows") Integer rows);
|
||||
|
||||
@@ -79,7 +80,8 @@ public interface AccountMapperEx {
|
||||
@Param("accountId") Long accountId,
|
||||
@Param("number") String number,
|
||||
@Param("beginTime") String beginTime,
|
||||
@Param("endTime") String endTime);
|
||||
@Param("endTime") String endTime,
|
||||
@Param("forceFlag") Boolean forceFlag);
|
||||
|
||||
int batchDeleteAccountByIds(@Param("updateTime") Date updateTime, @Param("updater") Long updater, @Param("ids") String ids[]);
|
||||
|
||||
|
||||
@@ -378,20 +378,20 @@ public class AccountService {
|
||||
}
|
||||
|
||||
public List<AccountVo4InOutList> findAccountInOutList(Long accountId, String number, String beginTime, String endTime,
|
||||
Integer offset, Integer rows) throws Exception{
|
||||
Boolean forceFlag, Integer offset, Integer rows) throws Exception{
|
||||
List<AccountVo4InOutList> list=null;
|
||||
try{
|
||||
list = accountMapperEx.findAccountInOutList(accountId, number, beginTime, endTime, offset, rows);
|
||||
list = accountMapperEx.findAccountInOutList(accountId, number, beginTime, endTime, forceFlag, offset, rows);
|
||||
}catch(Exception e){
|
||||
JshException.readFail(logger, e);
|
||||
}
|
||||
return list;
|
||||
}
|
||||
|
||||
public int findAccountInOutListCount(Long accountId, String number, String beginTime, String endTime) throws Exception{
|
||||
public int findAccountInOutListCount(Long accountId, String number, String beginTime, String endTime, Boolean forceFlag) throws Exception{
|
||||
int result=0;
|
||||
try{
|
||||
result = accountMapperEx.findAccountInOutListCount(accountId, number, beginTime, endTime);
|
||||
result = accountMapperEx.findAccountInOutListCount(accountId, number, beginTime, endTime, forceFlag);
|
||||
}catch(Exception e){
|
||||
JshException.readFail(logger, e);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user