change(dms): 修改PDA接口返回对象
- 新增 DmsBillsFaultInstanceMobile、DmsBillsInspectInstanceMobile、DmsBillsLubeInstanceMobile 和 DmsBillsMaintInstanceMobile 类 - 使用 MapstructUtils 进行对象转换,提高性能 - 优化 SQL 查询 - 调整字段类型,确保与数据库一致master
parent
f82c93b424
commit
3453b72363
@ -0,0 +1,146 @@
|
||||
package org.dromara.dms.domain.mobile;
|
||||
|
||||
import com.alibaba.excel.annotation.ExcelIgnoreUnannotated;
|
||||
import com.alibaba.excel.annotation.ExcelProperty;
|
||||
import io.github.linpeilie.annotations.AutoMapper;
|
||||
import lombok.Data;
|
||||
import org.dromara.common.excel.annotation.ExcelDictFormat;
|
||||
import org.dromara.common.excel.convert.ExcelDictConvert;
|
||||
import org.dromara.dms.domain.DmsBillsMaintDetail;
|
||||
import org.dromara.dms.domain.vo.DmsBillsMaintInstanceVo;
|
||||
|
||||
import java.io.Serial;
|
||||
import java.io.Serializable;
|
||||
import java.math.BigDecimal;
|
||||
import java.util.List;
|
||||
|
||||
|
||||
/**
|
||||
* 保养工单视图对象 dms_bills_maint_instance
|
||||
*
|
||||
* @author zch
|
||||
* @date 2025-03-31
|
||||
*/
|
||||
@Data
|
||||
@ExcelIgnoreUnannotated
|
||||
@AutoMapper(target = DmsBillsMaintInstanceVo.class, reverseConvertGenerate = true)
|
||||
public class DmsBillsMaintInstanceMobile implements Serializable {
|
||||
|
||||
@Serial
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/**
|
||||
* 主键标识
|
||||
*/
|
||||
@ExcelProperty(value = "主键标识")
|
||||
private Long maintInstanceId;
|
||||
|
||||
/**
|
||||
* 保养计划ID,关联dms_plan_maint的plan_maint_id
|
||||
*/
|
||||
@ExcelProperty(value = "保养计划ID,关联dms_plan_maint的plan_maint_id")
|
||||
private Long planMaintId;
|
||||
|
||||
/**
|
||||
* 流程定义ID,关联wf_definition_config的id
|
||||
*/
|
||||
@ExcelProperty(value = "流程定义ID,关联wf_definition_config的id")
|
||||
private Long wfDefinitionId;
|
||||
|
||||
/**
|
||||
* 保养单号
|
||||
*/
|
||||
@ExcelProperty(value = "保养单号")
|
||||
private String billsMaintCode;
|
||||
|
||||
/**
|
||||
* 保养组别
|
||||
*/
|
||||
@ExcelProperty(value = "保养组别")
|
||||
private String maintGroup;
|
||||
|
||||
/**
|
||||
* 保养负责人
|
||||
*/
|
||||
@ExcelProperty(value = "保养负责人")
|
||||
private String maintSupervisor;
|
||||
|
||||
/**
|
||||
* 保养级别(1日常保养 2月度保养 3年度保养)
|
||||
*/
|
||||
@ExcelProperty(value = "保养级别(1日常保养 2月度保养 3年度保养)", converter = ExcelDictConvert.class)
|
||||
@ExcelDictFormat(dictType = "maint_level")
|
||||
private Long maintLevel;
|
||||
|
||||
// /**
|
||||
// * 计划保养时间
|
||||
// */
|
||||
// @ExcelProperty(value = "计划保养时间")
|
||||
// private Date planBeginTime;
|
||||
//
|
||||
// /**
|
||||
// * 实际开始时间
|
||||
// */
|
||||
// @ExcelProperty(value = "实际开始时间")
|
||||
// private Date realBeginTime;
|
||||
//
|
||||
// /**
|
||||
// * 计划完成时间;根据计划的时限计算
|
||||
// */
|
||||
// @ExcelProperty(value = "计划完成时间;根据计划的时限计算")
|
||||
// private Date planEndTime;
|
||||
//
|
||||
// /**
|
||||
// * 实际完成时间
|
||||
// */
|
||||
// @ExcelProperty(value = "实际完成时间")
|
||||
// private Date realEndTime;
|
||||
|
||||
/**
|
||||
* 保养状态(1待保养 2保养中 3已完成)
|
||||
*/
|
||||
@ExcelProperty(value = "保养状态(1待保养 2保养中 3已完成)", converter = ExcelDictConvert.class)
|
||||
@ExcelDictFormat(dictType = "maint_status")
|
||||
/* private String maintStatus;*/
|
||||
private Long maintStatus;
|
||||
|
||||
/**
|
||||
* 保养完成率
|
||||
*/
|
||||
@ExcelProperty(value = "保养完成率")
|
||||
private BigDecimal maintCompRate;
|
||||
|
||||
/**
|
||||
* 备注
|
||||
*/
|
||||
@ExcelProperty(value = "备注")
|
||||
private String remark;
|
||||
|
||||
/**
|
||||
* 流程状态
|
||||
*/
|
||||
private String status;
|
||||
|
||||
/**
|
||||
* 流程状态 - PDA端需要Long类型
|
||||
* selectNewestDmsBillsMaintInstance
|
||||
* dbmi.wf_definition_id as wf_process_id
|
||||
*/
|
||||
private Long wfProcessId;
|
||||
|
||||
|
||||
private String maintStatusStr;
|
||||
|
||||
|
||||
private String planRemark;
|
||||
|
||||
|
||||
private String maintLevelName;
|
||||
|
||||
|
||||
private List<DmsBillsMaintDetail> dmsBillsMaintDetailList;
|
||||
|
||||
|
||||
// private Date createTime;
|
||||
|
||||
}
|
Loading…
Reference in New Issue