Commit 93d1becd by zhanghj

V1.6.0--提交获取对账单周期详情功能代码

git-svn-id: svn://192.168.3.233/frms/code/car-service/trunk/car-service@25813 aeb6102e-e053-11e5-9fec-f9ebc45caf4b
1 parent d299196b
...@@ -25,6 +25,15 @@ public class SysReconciliationMonthly { ...@@ -25,6 +25,15 @@ public class SysReconciliationMonthly {
private Date updateTime; private Date updateTime;
private String remark; private String remark;
/**
* 对账周期开始时间
*/
private String startDate;
/**
* 对账周期结束时间
*/
private String endDate;
public Integer getId() { public Integer getId() {
return id; return id;
...@@ -113,4 +122,21 @@ public class SysReconciliationMonthly { ...@@ -113,4 +122,21 @@ public class SysReconciliationMonthly {
public void setRemark(String remark) { public void setRemark(String remark) {
this.remark = remark == null ? null : remark.trim(); this.remark = remark == null ? null : remark.trim();
} }
public String getStartDate() {
return startDate;
}
public void setStartDate(String startDate) {
this.startDate = startDate;
}
public String getEndDate() {
return endDate;
}
public void setEndDate(String endDate) {
this.endDate = endDate;
}
} }
\ No newline at end of file \ No newline at end of file
package com.glsx.ordercenter.service.impl; package com.glsx.ordercenter.service.impl;
import com.github.pagehelper.PageHelper; import com.github.pagehelper.PageHelper;
import com.glsx.common.utils.DateUtil;
import com.glsx.ordercenter.dto.req.ReconciliationMonthlyQuery; import com.glsx.ordercenter.dto.req.ReconciliationMonthlyQuery;
import com.glsx.ordercenter.mapper.SysReconciliationMonthlyMapper; import com.glsx.ordercenter.mapper.SysReconciliationMonthlyMapper;
import com.glsx.ordercenter.pojo.SysReconciliationMonthly; import com.glsx.ordercenter.pojo.SysReconciliationMonthly;
...@@ -49,6 +50,11 @@ public class ReconciliationMonthlyServiceImpl implements ReconciliationMonthlySe ...@@ -49,6 +50,11 @@ public class ReconciliationMonthlyServiceImpl implements ReconciliationMonthlySe
ReconciliationMonthlyQuery reconciliationMonthlyQuery) { ReconciliationMonthlyQuery reconciliationMonthlyQuery) {
// TODO Auto-generated method stub // TODO Auto-generated method stub
SysReconciliationMonthly reconciliationMonthly = reconciliationMonthlyMapper.getDetail(reconciliationMonthlyQuery); SysReconciliationMonthly reconciliationMonthly = reconciliationMonthlyMapper.getDetail(reconciliationMonthlyQuery);
String reconciliationCycle = reconciliationMonthly.getReconciliationCycle();
String startDate = DateUtil.getMonthStart(DateUtil.parseDate(reconciliationCycle, "yyyy-MM"));
String endDate = DateUtil.getMonthEnd(DateUtil.parseDate(reconciliationCycle, "yyyy-MM"));
reconciliationMonthly.setStartDate(startDate);
reconciliationMonthly.setEndDate(endDate);
return reconciliationMonthly; return reconciliationMonthly;
} }
} }
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!