Commit 8f141d02 by zhanghj

V1.6.0--提交对账单周期列表功能代码

git-svn-id: svn://192.168.3.233/frms/code/car-service/trunk/car-service@25811 aeb6102e-e053-11e5-9fec-f9ebc45caf4b
1 parent ecf07f05
......@@ -53,5 +53,31 @@ public class ReconciliationMonthlyController {
result.put("items", list);
return ResultObject.of(ResultCodeEnum.SUCCESS, result);
}
/**
*
* @author zhanghj
* @Title: getReconciliationMonthlyList
* @Description: TODO 获取运营的月账单列表
* @param request
* @param pageIndex
* @param pageSize
* @return
* ResultObject
* @version
*/
//@AuthCheck
@GetMapping("/getReconciliationMonthlyList")
public ResultObject getReconciliationMonthlyList(HttpServletRequest request, @RequestParam(defaultValue = "1") int pageIndex,
@RequestParam(defaultValue = "10") int pageSize) {
Map<String, Object> result = new HashMap<String, Object>();
List<SysReconciliationMonthly> list = reconciliationMonthlyService.getReconciliationMonthlyList(pageIndex, pageSize);
Page page = new Page(pageIndex, pageSize);
com.github.pagehelper.Page<SysReconciliationMonthly> pages = (com.github.pagehelper.Page<SysReconciliationMonthly>) list;
page.setTotalCount((int) pages.getTotal());
result.put("page", page);
result.put("items", list);
return ResultObject.of(ResultCodeEnum.SUCCESS, result);
}
}
......@@ -18,4 +18,15 @@ public interface SysReconciliationMonthlyMapper {
int updateByPrimaryKey(SysReconciliationMonthly record);
List<SysReconciliationMonthly> selectByUserId(Integer userId);
/**
*
* @author zhanghj
* @Title: getReconciliationMonthlyList
* @Description: TODO 运营获取周期账单列表
* @return
* List<SysReconciliationMonthly>
* @version
*/
List<SysReconciliationMonthly> getReconciliationMonthlyList();
}
\ No newline at end of file
......@@ -16,4 +16,17 @@ public interface ReconciliationMonthlyService {
* 技工/服务商--获取对账单列表
*/
List<SysReconciliationMonthly> queryList(Integer userId, int pageIndex, int pageSize);
/**
*
* @author zhanghj
* @Title: getReconciliationMonthlyList
* @Description: TODO 获取运营对账周期列表
* @param pageIndex
* @param pageSize
* @return
* List<SysReconciliationMonthly>
* @version
*/
List<SysReconciliationMonthly> getReconciliationMonthlyList(int pageIndex,
int pageSize);
}
......@@ -34,4 +34,12 @@ public class ReconciliationMonthlyServiceImpl implements ReconciliationMonthlySe
List<SysReconciliationMonthly> list = reconciliationMonthlyMapper.selectByUserId(userId);
return list;
}
@Override
public List<SysReconciliationMonthly> getReconciliationMonthlyList(
int pageIndex, int pageSize) {
PageHelper.startPage(pageIndex, pageSize, true);
List<SysReconciliationMonthly> list = reconciliationMonthlyMapper.getReconciliationMonthlyList();
return list;
}
}
......@@ -171,4 +171,10 @@
and srm.reconciliation_status!=10
order by reconciliation_cycle desc
</select>
<select id="getReconciliationMonthlyList" resultMap="BaseResultMap">
select *
from sys_reconciliation_monthly
order by reconciliation_cycle DESC
</select>
</mapper>
\ No newline at end of file
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!