Commit 5440238c authored by lisong's avatar lisong

添加气瓶企业统计以及定时任务统计

parent f54537bc
package com.yeejoin.amos.boot.module.tzs.flc.api.dto;
import lombok.Data;
import java.util.Date;
@Data
public class CylinderDateInfoDto {
/**
*
*/
private static final long serialVersionUID = 1L;
private Date SyncDate;//同步时间 yyyy-MM-dd HH24:mi:ss
private String developerAgency;
protected String appId;
private String unitName;
private Integer cylinderInfo;
private Integer cylinderTagInfo;
private Integer cylinderInspectionInfo;
private Integer cylinderFillingInfo;
private Integer cylinderFillingRecordInfo;
private Integer cylinderFillingCheckInfo;
private Integer cylinderExamineInfo;
private Integer cylinderUnit;
private Integer cylinderTotal;
}
package com.yeejoin.amos.boot.module.tzs.flc.api.dto;
import lombok.Data;
/**
* @author fengwang
* @date 2022/1/24.
*/
@Data
public class CylinderTableDto {
/**
* 企业名称
*/
private String unitName;
/**
* 气瓶企业信息
*/
private Integer cylinderUnit;
/**
* 气瓶基本信息
*/
private Integer cylinderInfo;
/**
* 气瓶标签信息
*/
private Integer cylinderTagInfo;
/**
* 气瓶检验信息
*/
private Integer cylinderInspectionInfo;
/**
* 气瓶充装前检查
*/
private Integer cylinderFllingInfo;
/**
* 气瓶充装信息
*/
private Integer cylinderFllingRecordInfo;
/**
* 充装后复查
*/
private Integer cylinderFllingCheckInfo;
/**
* 气瓶充装信息审核
*/
private Integer cylinderExamineInfo;
/**
* 总量
*/
private Integer cylinderTotal;
/**
* 所属区域
*/
private String developerAgency;
}
package com.yeejoin.amos.boot.module.tzs.flc.api.entity;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.typroject.tyboot.core.rdbms.orm.entity.BaseEntity;
import java.util.Date;
/**
* 气瓶基本信息
*
*/
@EqualsAndHashCode(callSuper = true)
@Data
@TableName("cylinder_date_info")
public class CylinderDateInfo extends BaseEntity {
/**
* 同步时间
*/
private static final long serialVersionUID = 1L;
@TableField("sync_date")
protected Date SyncDate;//同步时间 yyyy-MM-dd HH24:mi:ss
/**
* 服务机构-开发机构
*/
@TableField("DEVELOPER_AGENCY")
private String developerAgency;
/**
* 对接公司编码
*/
@TableField("app_Id")
protected String appId;
/**
* 气瓶企业信息
*/
@TableField("unit_name")
private String unitName;
/**
* 气瓶基本信息
*/
@TableField("cylinder_info")
private Integer cylinderInfo;
/**
* 气瓶标签信息
*/
@TableField("cylinder_tag_info")
private Integer cylinderTagInfo;
/**
* 气瓶检验信息
*/
@TableField("cylinder_inspection_info")
private Integer cylinderInspectionInfo;
/**
* 气瓶充装前检查
*/
@TableField("cylinder_filling_info")
private Integer cylinderFillingInfo;
/**
* 气瓶充装信息
*/
@TableField("cylinder_filling_record_info")
private Integer cylinderFillingRecordInfo;
/**
* 充装后复查
*/
@TableField("cylinder_filling_check_info")
private Integer cylinderFillingCheckInfo;
/**
* 气瓶充装信息审核
*/
@TableField("cylinder_examine_info")
private Integer cylinderExamineInfo;
/**
* 气瓶充装信息审核
*/
@TableField("cylinder_unit")
private Integer cylinderUnit;
/**
* 总量
*/
@TableField("cylinder_total")
private Integer cylinderTotal;
}
package com.yeejoin.amos.boot.module.tzs.flc.api.mapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.yeejoin.amos.boot.module.tzs.flc.api.entity.CylinderDateInfo;
public interface CylinderDateInfoMapper extends BaseMapper<CylinderDateInfo> {
}
\ No newline at end of file
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.yeejoin.amos.boot.module.tzs.flc.api.mapper.CylinderDateInfoMapper">
</mapper>
package com.yeejoin.amos.boot.module.tzs.flc.biz.controller;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.yeejoin.amos.boot.biz.common.controller.BaseController;
import com.yeejoin.amos.boot.module.tzs.flc.api.dto.CylinderTableDto;
import com.yeejoin.amos.boot.module.tzs.flc.biz.service.impl.CylinderDateInfoServiceImpl;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;
import org.typroject.tyboot.core.foundation.enumeration.UserType;
import org.typroject.tyboot.core.restful.doc.TycloudOperation;
import org.typroject.tyboot.core.restful.utils.ResponseHelper;
import org.typroject.tyboot.core.restful.utils.ResponseModel;
import java.util.List;
@RestController
@Api(tags = "企业气瓶统计Api")
@RequestMapping(value = "/enterpriseStatistic")
public class EnterpriseStatisticController extends BaseController {
@Autowired
CylinderDateInfoServiceImpl cylinderDateInfoService;
@TycloudOperation(ApiLevel = UserType.AGENCY, needAuth = false)
@ApiOperation(value = "根据搜索信息获取表格数据")
@GetMapping(value = "/getTableInfo")
public ResponseModel<List<CylinderTableDto>> cylinderTableInfo() {
List<CylinderTableDto> result = cylinderDateInfoService.selectTodayDate();
return ResponseHelper.buildResponse(result);
}
@TycloudOperation(ApiLevel = UserType.AGENCY, needAuth = false)
@ApiOperation(value = "根据搜索信息获取表格数据")
@GetMapping(value = "/getTableInfoPage")
public ResponseModel<Page<CylinderTableDto>> cylinderTableInfoPage(String pageNumber, String pageSize,
@RequestParam(value = "developerAgency" ,required = false) String developerAgency,
@RequestParam(value = "unitName" ,required = false) String unitName) {
Page<CylinderTableDto> cylinderTableDtoPage = cylinderDateInfoService.selectTodayDatePage(pageNumber, pageSize, developerAgency, unitName);
return ResponseHelper.buildResponse(cylinderTableDtoPage);
}
}
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