Commit 8e581753 authored by helinlin's avatar helinlin

修改气瓶系统bug

parent 47379ad3
package com.yeejoin.amos.boot.module.tzs.flc.api.dto; package com.yeejoin.amos.boot.module.tzs.flc.api.dto;
import com.baomidou.mybatisplus.annotation.TableField;
import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty; import io.swagger.annotations.ApiModelProperty;
import com.yeejoin.amos.boot.biz.common.dto.BaseDto; import com.yeejoin.amos.boot.biz.common.dto.BaseDto;
...@@ -53,4 +54,7 @@ public class CylinderFillingCheckDataUnitDto extends BaseDto { ...@@ -53,4 +54,7 @@ public class CylinderFillingCheckDataUnitDto extends BaseDto {
@ApiModelProperty(value = "充装月份") @ApiModelProperty(value = "充装月份")
private String fillingMonth; private String fillingMonth;
@ApiModelProperty(value = "充装年月")
private String fillingDate;
} }
...@@ -93,4 +93,11 @@ public class CylinderFillingCheckDataUnit extends BaseEntity { ...@@ -93,4 +93,11 @@ public class CylinderFillingCheckDataUnit extends BaseEntity {
*/ */
@TableField("filling_month") @TableField("filling_month")
private String fillingMonth; private String fillingMonth;
//filling_date
/**
* 充装年月
*/
@TableField("filling_date")
private String fillingDate;
} }
...@@ -456,6 +456,7 @@ public class CylinderInfoServiceImpl extends BaseService<CylinderInfoDto, Cylind ...@@ -456,6 +456,7 @@ public class CylinderInfoServiceImpl extends BaseService<CylinderInfoDto, Cylind
String monthStr = month < 10 ? "0" + month : month + ""; String monthStr = month < 10 ? "0" + month : month + "";
temp.setFillingMonth(monthStr); temp.setFillingMonth(monthStr);
temp.setFillingYear(year); temp.setFillingYear(year);
temp.setFillingDate(year + "-" + monthStr);
Integer countThisMonth = cylinderFillingRecordServiceImpl.getFillingCountByMonth(cylinderUnit.getAppId(), c.getTime()); Integer countThisMonth = cylinderFillingRecordServiceImpl.getFillingCountByMonth(cylinderUnit.getAppId(), c.getTime());
temp.setTotalSum((long) countThisMonth); temp.setTotalSum((long) countThisMonth);
// 获取本月数据 // 获取本月数据
...@@ -495,7 +496,7 @@ public class CylinderInfoServiceImpl extends BaseService<CylinderInfoDto, Cylind ...@@ -495,7 +496,7 @@ public class CylinderInfoServiceImpl extends BaseService<CylinderInfoDto, Cylind
} }
/** /**
* 卸液量按单位统计 * 充装量、卸液量按单位统计
*/ */
@Transactional(rollbackFor = Exception.class) @Transactional(rollbackFor = Exception.class)
@Scheduled(cron = "0 0 2 * * ?") @Scheduled(cron = "0 0 2 * * ?")
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment