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 {
*/
@JsonFormat(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")
@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
private Date effectiveTimeEnd;
private Date expectedEffectiveTimeEnd;
/**
* 关键词
*/
......@@ -131,20 +131,20 @@ public class InsuranceReq extends PagedReq {
this.applyTimeEnd = applyTimeEnd;
}
public Date getEffectiveTimeStart() {
return effectiveTimeStart;
public Date getExpectedEffectiveTimeStart() {
return expectedEffectiveTimeStart;
}
public void setEffectiveTimeStart(Date effectiveTimeStart) {
this.effectiveTimeStart = effectiveTimeStart;
public void setExpectedEffectiveTimeStart(Date expectedEffectiveTimeStart) {
this.expectedEffectiveTimeStart = expectedEffectiveTimeStart;
}
public Date getEffectiveTimeEnd() {
return effectiveTimeEnd;
public Date getExpectedEffectiveTimeEnd() {
return expectedEffectiveTimeEnd;
}
public void setEffectiveTimeEnd(Date effectiveTimeEnd) {
this.effectiveTimeEnd = effectiveTimeEnd;
public void setExpectedEffectiveTimeEnd(Date expectedEffectiveTimeEnd) {
this.expectedEffectiveTimeEnd = expectedEffectiveTimeEnd;
}
public String getKeyWord() {
......@@ -166,8 +166,8 @@ public class InsuranceReq extends PagedReq {
", status=" + status +
", applyTimeStart=" + applyTimeStart +
", applyTimeEnd=" + applyTimeEnd +
", effectiveTimeStart=" + effectiveTimeStart +
", effectiveTimeEnd=" + effectiveTimeEnd +
", expectedEffectiveTimeStart=" + expectedEffectiveTimeStart +
", expectedEffectiveTimeEnd=" + expectedEffectiveTimeEnd +
", keyWord='" + keyWord + '\'' +
"} " + super.toString();
}
......
......@@ -160,20 +160,21 @@ public class InsuranceServiceImpl extends BaseOrderService implements InsuranceS
if (insuranceReq.getApplyTimeStart() != null) {
byCondition.andInstallationTimeGreaterThanOrEqualTo(
insuranceReq.getApplyTimeStart());
insuranceReq.getApplyTimeStart());
}
if (insuranceReq.getApplyTimeEnd() != null) {
byCondition.andInstallationTimeLessThan(insuranceReq.getApplyTimeEnd());
}
if (insuranceReq.getEffectiveTimeStart() != null) {
if (insuranceReq.getExpectedEffectiveTimeStart() != null) {
byCondition.andExpectedEffectiveTimeGreaterThanOrEqualTo(
insuranceReq.getEffectiveTimeStart());
insuranceReq.getExpectedEffectiveTimeStart());
}
if (insuranceReq.getEffectiveTimeEnd() != null) {
byCondition.andExpectedEffectiveTimeLessThan(insuranceReq.getEffectiveTimeEnd());
if (insuranceReq.getExpectedEffectiveTimeEnd() != null) {
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!