Commit e28bc4b5 by wubh

包活干V1.9.0-修改:统一前后端请求数据格式

git-svn-id: svn://192.168.3.233/frms/code/car-service/trunk/car-service@27182 aeb6102e-e053-11e5-9fec-f9ebc45caf4b
1 parent c33e59cd
...@@ -55,13 +55,13 @@ public class InsuranceReq extends PagedReq { ...@@ -55,13 +55,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 HH:mm:ss") @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
private Date effectiveTimeStart; private Date expectedEffectiveTimeStart;
/** /**
* 生效时间结束 * 生效时间结束
*/ */
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss") @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss") @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
private Date effectiveTimeEnd; private Date expectedEffectiveTimeEnd;
/** /**
* 关键词 * 关键词
*/ */
...@@ -131,20 +131,20 @@ public class InsuranceReq extends PagedReq { ...@@ -131,20 +131,20 @@ public class InsuranceReq extends PagedReq {
this.applyTimeEnd = applyTimeEnd; this.applyTimeEnd = applyTimeEnd;
} }
public Date getEffectiveTimeStart() { public Date getExpectedEffectiveTimeStart() {
return effectiveTimeStart; return expectedEffectiveTimeStart;
} }
public void setEffectiveTimeStart(Date effectiveTimeStart) { public void setExpectedEffectiveTimeStart(Date expectedEffectiveTimeStart) {
this.effectiveTimeStart = effectiveTimeStart; this.expectedEffectiveTimeStart = expectedEffectiveTimeStart;
} }
public Date getEffectiveTimeEnd() { public Date getExpectedEffectiveTimeEnd() {
return effectiveTimeEnd; return expectedEffectiveTimeEnd;
} }
public void setEffectiveTimeEnd(Date effectiveTimeEnd) { public void setExpectedEffectiveTimeEnd(Date expectedEffectiveTimeEnd) {
this.effectiveTimeEnd = effectiveTimeEnd; this.expectedEffectiveTimeEnd = expectedEffectiveTimeEnd;
} }
public String getKeyWord() { public String getKeyWord() {
...@@ -166,8 +166,8 @@ public class InsuranceReq extends PagedReq { ...@@ -166,8 +166,8 @@ public class InsuranceReq extends PagedReq {
", status=" + status + ", status=" + status +
", applyTimeStart=" + applyTimeStart + ", applyTimeStart=" + applyTimeStart +
", applyTimeEnd=" + applyTimeEnd + ", applyTimeEnd=" + applyTimeEnd +
", effectiveTimeStart=" + effectiveTimeStart + ", expectedEffectiveTimeStart=" + expectedEffectiveTimeStart +
", effectiveTimeEnd=" + effectiveTimeEnd + ", expectedEffectiveTimeEnd=" + expectedEffectiveTimeEnd +
", keyWord='" + keyWord + '\'' + ", keyWord='" + keyWord + '\'' +
"} " + super.toString(); "} " + super.toString();
} }
......
...@@ -160,20 +160,21 @@ public class InsuranceServiceImpl extends BaseOrderService implements InsuranceS ...@@ -160,20 +160,21 @@ public class InsuranceServiceImpl extends BaseOrderService implements InsuranceS
if (insuranceReq.getApplyTimeStart() != null) { if (insuranceReq.getApplyTimeStart() != null) {
byCondition.andInstallationTimeGreaterThanOrEqualTo( byCondition.andInstallationTimeGreaterThanOrEqualTo(
insuranceReq.getApplyTimeStart()); insuranceReq.getApplyTimeStart());
} }
if (insuranceReq.getApplyTimeEnd() != null) { if (insuranceReq.getApplyTimeEnd() != null) {
byCondition.andInstallationTimeLessThan(insuranceReq.getApplyTimeEnd()); byCondition.andInstallationTimeLessThan(insuranceReq.getApplyTimeEnd());
} }
if (insuranceReq.getEffectiveTimeStart() != null) { if (insuranceReq.getExpectedEffectiveTimeStart() != null) {
byCondition.andExpectedEffectiveTimeGreaterThanOrEqualTo( byCondition.andExpectedEffectiveTimeGreaterThanOrEqualTo(
insuranceReq.getEffectiveTimeStart()); insuranceReq.getExpectedEffectiveTimeStart());
} }
if (insuranceReq.getEffectiveTimeEnd() != null) { if (insuranceReq.getExpectedEffectiveTimeEnd() != null) {
byCondition.andExpectedEffectiveTimeLessThan(insuranceReq.getEffectiveTimeEnd()); byCondition.andExpectedEffectiveTimeLessThan(
insuranceReq.getExpectedEffectiveTimeEnd());
} }
// 使用关键词查询 // 使用关键词查询
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!