修改时间格式;解决灌溉记录结束时间相同bug
This commit is contained in:
parent
c34f3b2a0b
commit
8ac5f1c690
@ -84,19 +84,19 @@ public class UserConsumptionDetailsDto {
|
|||||||
public BigDecimal billingPeriodDuration;
|
public BigDecimal billingPeriodDuration;
|
||||||
|
|
||||||
/** 账单生成的日期 */
|
/** 账单生成的日期 */
|
||||||
@JsonFormat(pattern = "yyyy-MM-dd HH:MM:SS")
|
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
|
||||||
@Excel(name = "账单生成的日期", width = 30, dateFormat = "yyyy-MM-dd")
|
@Excel(name = "账单生成的日期", width = 30, dateFormat = "yyyy-MM-dd")
|
||||||
@ApiModelProperty("账单生成的日期")
|
@ApiModelProperty("账单生成的日期")
|
||||||
public Date billingDate;
|
public Date billingDate;
|
||||||
|
|
||||||
/** 开泵时间 */
|
/** 开泵时间 */
|
||||||
@JsonFormat(pattern = "yyyy-MM-dd HH:MM:SS")
|
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
|
||||||
@Excel(name = "开泵时间", width = 30, dateFormat = "yyyy-MM-dd")
|
@Excel(name = "开泵时间", width = 30, dateFormat = "yyyy-MM-dd")
|
||||||
@ApiModelProperty("开泵时间")
|
@ApiModelProperty("开泵时间")
|
||||||
public Date startTime;
|
public Date startTime;
|
||||||
|
|
||||||
/** 关泵时间 */
|
/** 关泵时间 */
|
||||||
@JsonFormat(pattern = "yyyy-MM-dd HH:MM:SS")
|
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
|
||||||
@Excel(name = "关泵时间", width = 30, dateFormat = "yyyy-MM-dd")
|
@Excel(name = "关泵时间", width = 30, dateFormat = "yyyy-MM-dd")
|
||||||
@ApiModelProperty("关泵时间")
|
@ApiModelProperty("关泵时间")
|
||||||
public Date endTime;
|
public Date endTime;
|
||||||
@ -112,7 +112,7 @@ public class UserConsumptionDetailsDto {
|
|||||||
public Integer paymentMethod;
|
public Integer paymentMethod;
|
||||||
|
|
||||||
/** 账单支付的时间 */
|
/** 账单支付的时间 */
|
||||||
@JsonFormat(pattern = "yyyy-MM-dd HH:MM:SS")
|
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
|
||||||
@Excel(name = " 账单支付的时间", width = 30, dateFormat = "yyyy-MM-dd")
|
@Excel(name = " 账单支付的时间", width = 30, dateFormat = "yyyy-MM-dd")
|
||||||
@ApiModelProperty(" 账单支付的时间")
|
@ApiModelProperty(" 账单支付的时间")
|
||||||
public Date paymentTime;
|
public Date paymentTime;
|
||||||
|
@ -14,9 +14,9 @@ public class UserIrrigationRecordDto
|
|||||||
public String deviceName;
|
public String deviceName;
|
||||||
public String cardNumber;
|
public String cardNumber;
|
||||||
public BigDecimal flow;
|
public BigDecimal flow;
|
||||||
@JsonFormat(pattern = "yyyy-MM-dd HH:MM:SS")
|
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
|
||||||
public Date startTime;
|
public Date startTime;
|
||||||
@JsonFormat(pattern = "yyyy-MM-dd HH:MM:SS")
|
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
|
||||||
public Date endTime;
|
public Date endTime;
|
||||||
public String deviceNumber;
|
public String deviceNumber;
|
||||||
}
|
}
|
||||||
|
@ -58,14 +58,14 @@ public class UserIrrigationRecordListDto {
|
|||||||
private BigDecimal balance;
|
private BigDecimal balance;
|
||||||
|
|
||||||
/** 开泵时间 */
|
/** 开泵时间 */
|
||||||
@JsonFormat(pattern = "yyyy-MM-dd HH:MM:SS")
|
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
|
||||||
@Excel(name = "开泵时间", width = 30, dateFormat = "yyyy-MM-dd")
|
@Excel(name = "开泵时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
|
||||||
@ApiModelProperty("开泵时间")
|
@ApiModelProperty("开泵时间")
|
||||||
private Date startTime;
|
private Date startTime;
|
||||||
|
|
||||||
/** 关泵时间 */
|
/** 关泵时间 */
|
||||||
@JsonFormat(pattern = "yyyy-MM-dd HH:MM:SS")
|
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
|
||||||
@Excel(name = "关泵时间", width = 30, dateFormat = "yyyy-MM-dd")
|
@Excel(name = "关泵时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
|
||||||
@ApiModelProperty("关泵时间")
|
@ApiModelProperty("关泵时间")
|
||||||
private Date endTime;
|
private Date endTime;
|
||||||
|
|
||||||
|
@ -195,7 +195,7 @@ public class UserIrrigationRecordServiceImpl implements IUserIrrigationRecordSer
|
|||||||
temp.cardNumber=list.get(i).getCardNumber() == null ? "" : list.get(i).getCardNumber();
|
temp.cardNumber=list.get(i).getCardNumber() == null ? "" : list.get(i).getCardNumber();
|
||||||
temp.flow=list.get(i).getCurFlow()==null ? BigDecimal.valueOf(0) :list.get(i).getCurFlow();
|
temp.flow=list.get(i).getCurFlow()==null ? BigDecimal.valueOf(0) :list.get(i).getCurFlow();
|
||||||
temp.startTime=list.get(i).getStartTime()==null ? null : list.get(i).getStartTime();
|
temp.startTime=list.get(i).getStartTime()==null ? null : list.get(i).getStartTime();
|
||||||
temp.endTime=list.get(i).getEndTime()==null ? null :list.get(0).getEndTime();
|
temp.endTime=list.get(i).getEndTime()==null ? null :list.get(i).getEndTime();
|
||||||
result.add(temp);
|
result.add(temp);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -58,6 +58,7 @@
|
|||||||
<if test="openCumFlow != null "> and open_cum_flow = #{openCumFlow}</if>
|
<if test="openCumFlow != null "> and open_cum_flow = #{openCumFlow}</if>
|
||||||
<if test="closeCumFlow != null "> and close_cum_flow = #{closeCumFlow}</if>
|
<if test="closeCumFlow != null "> and close_cum_flow = #{closeCumFlow}</if>
|
||||||
</where>
|
</where>
|
||||||
|
ORDER BY end_time DESC
|
||||||
</select>
|
</select>
|
||||||
|
|
||||||
<select id="selectUserIrrigationRecordList" parameterType="UserIrrigationRecord" resultMap="UserIrrigationRecordResult">
|
<select id="selectUserIrrigationRecordList" parameterType="UserIrrigationRecord" resultMap="UserIrrigationRecordResult">
|
||||||
@ -83,6 +84,7 @@
|
|||||||
<if test="openCumFlow != null "> and open_cum_flow = #{openCumFlow}</if>
|
<if test="openCumFlow != null "> and open_cum_flow = #{openCumFlow}</if>
|
||||||
<if test="closeCumFlow != null "> and close_cum_flow = #{closeCumFlow}</if>
|
<if test="closeCumFlow != null "> and close_cum_flow = #{closeCumFlow}</if>
|
||||||
</where>
|
</where>
|
||||||
|
ORDER BY end_time DESC
|
||||||
</select>
|
</select>
|
||||||
|
|
||||||
<select id="selectUserIrrigationRecordListBycardNumber" parameterType="String" resultMap="UserIrrigationRecordResult">
|
<select id="selectUserIrrigationRecordListBycardNumber" parameterType="String" resultMap="UserIrrigationRecordResult">
|
||||||
|
Loading…
x
Reference in New Issue
Block a user