Commit a8ea4152 by wubh

包活干V1.9.0-修改:统一字段名称

git-svn-id: svn://192.168.3.233/frms/code/car-service/trunk/car-service@27051 aeb6102e-e053-11e5-9fec-f9ebc45caf4b
1 parent 22330d68
...@@ -489,7 +489,7 @@ public class ReportController extends BaseReportController { ...@@ -489,7 +489,7 @@ public class ReportController extends BaseReportController {
ServletRequestAttributes attributes = ServletRequestAttributes attributes =
(ServletRequestAttributes) RequestContextHolder.getRequestAttributes(); (ServletRequestAttributes) RequestContextHolder.getRequestAttributes();
super.mergeRequestParams(insuranceReq, InsuranceReq.class); //super.mergeRequestParams(insuranceReq, InsuranceReq.class);
insuranceReq.setPageIndex(-1); insuranceReq.setPageIndex(-1);
PagedResp<InsuranceResp> result = this.insuranceService.query(insuranceReq); PagedResp<InsuranceResp> result = this.insuranceService.query(insuranceReq);
......
...@@ -54,13 +54,13 @@ public class InsuranceReq extends PagedReq { ...@@ -54,13 +54,13 @@ public class InsuranceReq extends PagedReq {
*/ */
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss") @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
//@DateTimeFormat(pattern = "yyyy-MM-dd") //@DateTimeFormat(pattern = "yyyy-MM-dd")
private Date startTimeStart; private Date effectiveTimeStart;
/** /**
* 生效时间结束 * 生效时间结束
*/ */
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss") @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
//@DateTimeFormat(pattern = "yyyy-MM-dd") //@DateTimeFormat(pattern = "yyyy-MM-dd")
private Date startTimeEnd; private Date effectiveTimeEnd;
/** /**
* 关键词 * 关键词
*/ */
...@@ -130,20 +130,20 @@ public class InsuranceReq extends PagedReq { ...@@ -130,20 +130,20 @@ public class InsuranceReq extends PagedReq {
this.applyTimeEnd = applyTimeEnd; this.applyTimeEnd = applyTimeEnd;
} }
public Date getStartTimeStart() { public Date getEffectiveTimeStart() {
return startTimeStart; return effectiveTimeStart;
} }
public void setStartTimeStart(Date startTimeStart) { public void setEffectiveTimeStart(Date effectiveTimeStart) {
this.startTimeStart = startTimeStart; this.effectiveTimeStart = effectiveTimeStart;
} }
public Date getStartTimeEnd() { public Date getEffectiveTimeEnd() {
return startTimeEnd; return effectiveTimeEnd;
} }
public void setStartTimeEnd(Date startTimeEnd) { public void setEffectiveTimeEnd(Date effectiveTimeEnd) {
this.startTimeEnd = startTimeEnd; this.effectiveTimeEnd = effectiveTimeEnd;
} }
public String getKeyWord() { public String getKeyWord() {
...@@ -165,8 +165,8 @@ public class InsuranceReq extends PagedReq { ...@@ -165,8 +165,8 @@ public class InsuranceReq extends PagedReq {
", status=" + status + ", status=" + status +
", applyTimeStart=" + applyTimeStart + ", applyTimeStart=" + applyTimeStart +
", applyTimeEnd=" + applyTimeEnd + ", applyTimeEnd=" + applyTimeEnd +
", startTimeStart=" + startTimeStart + ", effectiveTimeStart=" + effectiveTimeStart +
", startTimeEnd=" + startTimeEnd + ", effectiveTimeEnd=" + effectiveTimeEnd +
", keyWord='" + keyWord + '\'' + ", keyWord='" + keyWord + '\'' +
"} " + super.toString(); "} " + super.toString();
} }
......
...@@ -181,13 +181,13 @@ public class InsuranceServiceImpl extends BaseOrderService implements InsuranceS ...@@ -181,13 +181,13 @@ public class InsuranceServiceImpl extends BaseOrderService implements InsuranceS
byExample.andInstallationTimeLessThan(insuranceReq.getApplyTimeEnd()); byExample.andInstallationTimeLessThan(insuranceReq.getApplyTimeEnd());
} }
if (insuranceReq.getStartTimeStart() != null) { if (insuranceReq.getEffectiveTimeStart() != null) {
byExample.andExpectedEffectiveTimeGreaterThanOrEqualTo( byExample.andExpectedEffectiveTimeGreaterThanOrEqualTo(
insuranceReq.getStartTimeStart()); insuranceReq.getEffectiveTimeStart());
} }
if (insuranceReq.getStartTimeEnd() != null) { if (insuranceReq.getEffectiveTimeEnd() != null) {
byExample.andExpectedEffectiveTimeLessThan(insuranceReq.getStartTimeEnd()); byExample.andExpectedEffectiveTimeLessThan(insuranceReq.getEffectiveTimeEnd());
} }
// 使用关键词查询 // 使用关键词查询
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!