新增:利元亨现场视图查询代码

This commit is contained in:
yangyang01000846
2025-12-22 16:06:48 +08:00
parent aab726ddfc
commit 3085fb867d
24 changed files with 759 additions and 0 deletions

View File

@@ -0,0 +1,8 @@
package com.sdm.outbridge.dao;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.sdm.outbridge.entity.LyricVMainPlanDM;
public interface LyricVMainPlanDMMapper extends BaseMapper<LyricVMainPlanDM> {
}

View File

@@ -0,0 +1,8 @@
package com.sdm.outbridge.dao;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.sdm.outbridge.entity.LyricVPdtToDM;
public interface LyricVPdtDmMapper extends BaseMapper<LyricVPdtToDM> {
}

View File

@@ -0,0 +1,8 @@
package com.sdm.outbridge.dao;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.sdm.outbridge.entity.LyricVProductionLineToDM;
public interface LyricVProductionLineToDmMapper extends BaseMapper<LyricVProductionLineToDM> {
}

View File

@@ -0,0 +1,8 @@
package com.sdm.outbridge.dao;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.sdm.outbridge.entity.LyricVProjectBatchToDM;
public interface LyricVProjectBatchToDMMapper extends BaseMapper<LyricVProjectBatchToDM> {
}

View File

@@ -0,0 +1,8 @@
package com.sdm.outbridge.dao;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.sdm.outbridge.entity.LyricVProjectToDM;
public interface LyricVProjectToDmMapper extends BaseMapper<LyricVProjectToDM> {
}

View File

@@ -0,0 +1,8 @@
package com.sdm.outbridge.dao;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.sdm.outbridge.entity.LyricVTodoEmulationInfoDM;
public interface LyricVTodoInfoMapper extends BaseMapper<LyricVTodoEmulationInfoDM> {
}

View File

@@ -0,0 +1,66 @@
package com.sdm.outbridge.entity;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.TableField;
@Data
@EqualsAndHashCode(callSuper = false)
@TableName(value = "v_main_plan_DM", autoResultMap = true)
@Schema(description = "主计划视图")
public class LyricVMainPlanDM {
@Schema(description = "计划完成时间")
@TableField(value = "requirements_time")
private String requirements_time;
@Schema(description = "计划工期")
@TableField(value = "plan_duration")
private String plan_duration;
@Schema(description = "计划工时")
@TableField(value = "work_hour_plan")
private String work_hour_plan;
@Schema(description = "标准工时")
@TableField(value = "offer_duration")
private String offer_duration;
@Schema(description = "进度")
@TableField(value = "progress")
private String progress;
@Schema(description = "状态")
@TableField(value = "status")
private String status;
@Schema(description = "开始时间")
@TableField(value = "start_time")
private String start_time;
@Schema(description = "完成时间")
@TableField(value = "finish_time")
private String finish_time;
@Schema(description = "实际工期")
@TableField(value = "standard_duration")
private String standard_duration;
@Schema(description = "实际工时")
@TableField(value = "real_work_hour")
private String real_work_hour;
@Schema(description = "风险等级")
@TableField(value = "risk_classify")
private String risk_classify;
@Schema(description = "项目表ID")
@TableField(value = "project_id")
private String project_id;
@Schema(description = "批次表ID")
@TableField(value = "batch_id")
private String batch_id;
}

View File

@@ -0,0 +1,44 @@
package com.sdm.outbridge.entity;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.TableField;
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName(value = "v_PDT_to_DM", autoResultMap = true)
@Schema(description = "项目pdt视图")
public class LyricVPdtToDM {
@Schema(description = "项目ID")
@TableField(value = "project_id")
private String project_id;
@Schema(description = "项目号")
@TableField(value = "project_num")
private String project_num;
@Schema(description = "项目角色")
@TableField(value = "project_role")
private String project_role;
@Schema(description = "角色类型")
@TableField(value = "type")
private String type;
@Schema(description = "角色类型")
@TableField(value = "user")
private String user;
@Schema(description = "人员姓名")
@TableField(value = "name")
private String name;
@Schema(description = "机台号")
@TableField(value = "machine_number")
private String machine_number;
}

View File

@@ -0,0 +1,36 @@
package com.sdm.outbridge.entity;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.TableField;
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName(value = "v_production_line_to_DM", autoResultMap = true)
@Schema(description = "项目产线信息视图")
public class LyricVProductionLineToDM {
@Schema(description = "项目号")
@TableField(value = "project_num")
private String project_num;
@Schema(description = "批次")
@TableField(value = "batch")
private String batch;
@Schema(description = "产品线sn码")
@TableField(value = "production_line_sn")
private String production_line_sn;
@Schema(description = "产品线名称")
@TableField(value = "production_line_name")
private String production_line_name;
@Schema(description = "工厂")
@TableField(value = "werks")
private String werks;
}

View File

@@ -0,0 +1,59 @@
package com.sdm.outbridge.entity;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
// autoResultMap = true用于复杂类型映射这里保留即可
@TableName(value = "v_project_batch_to_DM", autoResultMap = true)
@Schema(description = "项目批次信息视图")
public class LyricVProjectBatchToDM {
@Schema(description = "项目ID")
// 字段名与表字段一致,@TableField可省略也可以保留显式指定
@TableField(value = "project_id")
private String project_id; // 改为下划线命名,与表字段完全一致
@Schema(description = "批次名称")
@TableField(value = "batch")
private String batch; // 本身无下划线,无需修改
@Schema(description = "工厂")
@TableField(value = "werks")
private String werks;
@Schema(description = "订单数量")
@TableField(value = "order_quantity")
private Long order_quantity; // 改为下划线命名
@Schema(description = "项目状态")
@TableField(value = "status")
private String status;
@Schema(description = "批次进度")
@TableField(value = "project_progress_status")
private String project_progress_status; // 改为下划线命名
@Schema(description = "项目出机条件")
@TableField(value = "minted_condition")
private String minted_condition; // 改为下划线命名
@Schema(description = "设备出机地址(市)")
@TableField(value = "client_city")
private String client_city; // 改为下划线命名
@Schema(description = "设备出机地址(区)")
@TableField(value = "client_region")
private String client_region; // 改为下划线命名
@Schema(description = "军检时间")
@TableField(value = "sat_time")
private String sat_time; // 改为下划线命名
}

View File

@@ -0,0 +1,111 @@
package com.sdm.outbridge.entity;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
/**
* 项目信息视图实体类
*/
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName(value = "v_project_to_DM", autoResultMap = true)
@Schema(description = "项目信息视图")
public class LyricVProjectToDM {
@Schema(description = "项目id")
@TableField(value = "id")
private String id;
@Schema(description = "项目编号")
@TableField(value = "project_num")
private String project_num;
@Schema(description = "项目名称")
@TableField(value = "project_name")
private String project_name;
@Schema(description = "项目阶段")
@TableField(value = "stage")
private String stage;
@Schema(description = "项目领域")
@TableField(value = "domain")
private String domain;
@Schema(description = "客户名称")
@TableField(value = "client_name")
private String client_name;
@Schema(description = "项目类型")
@TableField(value = "difficultyType")
private String difficultyType;
@Schema(description = "异常率")
@TableField(value = "abnormal_rate")
private String abnormal_rate;
@Schema(description = "产品线")
@TableField(value = "produceLine")
private String produceLine;
@Schema(description = "产品组")
@TableField(value = "process_section")
private String process_section;
@Schema(description = "方案管理人")
@TableField(value = "program_manager")
private String program_manager;
@Schema(description = "方案制作部门")
@TableField(value = "program_team")
public String program_team;
@Schema(description = "参考项目")
@TableField(value = "reference_item")
public String reference_item;
@Schema(description = "方案成交或关闭日期")
@TableField(value = "schemes_finishorclose_time")
public String schemes_finishorclose_time;
@Schema(description = "方案关闭原因")
@TableField(value = "schemes_close_reasons")
public String schemes_close_reasons;
@Schema(description = "预估图指数(方案)")
@TableField(value = "drawings")
public String drawings;
@Schema(description = "预估复用图纸数(方案)")
@TableField(value = "reuse_drawings")
public String reuse_drawings;
@Schema(description = "策划I0数量")
@TableField(value = "plan_io")
public String plan_io;
@Schema(description = "预估零件数量(方案)")
@TableField(value = "part")
public String part;
@Schema(description = "外购件材质要求")
@TableField(value = "material_quality")
public String material_quality;
@Schema(description = "输入输出方式")
@TableField(value = "put_mode")
public String put_mode;
@Schema(description = "螺钉材质")
@TableField(value = "screw_material")
public String screw_material;
@Schema(description = "机型")
@TableField(value = "machine_type")
public String machine_type;
}

View File

@@ -0,0 +1,274 @@
package com.sdm.outbridge.entity;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import java.io.Serializable;
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName(value = "v_todo_emulation_info_DM", autoResultMap = true)
@Schema(description = "代办视图")
public class LyricVTodoEmulationInfoDM implements Serializable {
private static final long serialVersionUID = 1L;
@Schema(description = "自增主键")
@TableField(value = "id")
private Long id;
@Schema(description = "待办ID")
@TableField(value = "todo_id")
private Long todo_id;
@Schema(description = "3D负责人")
@TableField(value = "three_dimensional_performer")
private String three_dimensional_performer;
@Schema(description = "仿真负责人")
@TableField(value = "emulation_performer")
private String emulation_performer;
@Schema(description = "仿真登记人")
@TableField(value = "emulation_registrant")
private String emulation_registrant;
@Schema(description = "仿真执行人")
@TableField(value = "emulation_executor")
private String emulation_executor;
@Schema(description = "仿真类型")
@TableField(value = "emulation_type")
private String emulation_type;
@Schema(description = "仿真结果")
@TableField(value = "emulation_result")
private String emulation_result;
@Schema(description = "仿真需求")
@TableField(value = "emulation_demand")
private String emulation_demand;
@Schema(description = "机器人品牌")
@TableField(value = "robot_brand")
private String robot_brand;
@Schema(description = "四轴、六轴")
@TableField(value = "axis")
private String axis;
@Schema(description = "节拍要求")
@TableField(value = "beat_requirements")
private String beat_requirements;
@Schema(description = "3D存放路径")
@TableField(value = "three_dimensional_repository_path")
private String three_dimensional_repository_path;
@Schema(description = "报告路径")
@TableField(value = "result_path")
private String result_path;
@Schema(description = "结果描述")
@TableField(value = "result_describe")
private String result_describe;
@Schema(description = "分析类型")
@TableField(value = "analysis_type")
private String analysis_type;
@Schema(description = "分析数量")
@TableField(value = "analysis_num")
private Long analysis_num;
@Schema(description = "仿真耗时")
@TableField(value = "emulation_time")
private float emulation_time;
@Schema(description = "使用软件")
@TableField(value = "software")
private String software;
@Schema(description = "完成时间")
@TableField(value = "result_finish_time")
private String result_finish_time;
@Schema(description = "类型(仿真结果,仿真信息)")
@TableField(value = "type")
private String type;
@TableField(value = "create_by")
private String create_by;
@Schema(description = "创建时间")
@TableField(value = "create_time")
private String create_time;
@Schema(description = "修改人")
@TableField(value = "modify_by")
private String modify_by;
@Schema(description = "修改时间")
@TableField(value = "modify_time")
private String modify_time;
@Schema(description = "仿真结果附加")
@TableField(value = "result_file_id")
private String result_file_id;
@Schema(description = "难度等级1-5")
@TableField(value = "difficulty")
private String difficulty;
@Schema(description = "需求时间")
@TableField(value = "required_time")
private String required_time;
@Schema(description = "是否长期待办")
@TableField(value = "is_long_term")
private byte is_long_term;
@Schema(description = "动画用途")
@TableField(value = "animation_use")
private String animation_use;
@Schema(description = "有限元仿真用途")
@TableField(value = "limited_use")
private String limited_use;
@Schema(description = "紧急情况说明")
@TableField(value = "emergency_statement")
private String emergency_statement;
@Schema(description = "状态")
@TableField(value = "status")
private String status;
@Schema(description = "主题")
@TableField(value = "subject")
private String subject;
@Schema(description = "描述")
@TableField(value = "describes")
private String describes;
@Schema(description = "责任人(多个用逗号隔开)")
@TableField(value = "performer")
private String performer;
@Schema(description = "计划开始时间")
@TableField(value = "plan_start_time")
private String plan_start_time;
@Schema(description = "要求完成时间")
@TableField(value = "requirements_time")
private String requirements_time;
@Schema(description = "开始时间")
@TableField(value = "start_time")
private String start_time;
@Schema(description = "完成时间")
@TableField(value = "finish_time")
private String finish_time;
@Schema(description = "暂停时间")
@TableField(value = "paused_time")
private String paused_time;
@Schema(description = "提出人")
@TableField(value = "introduce_by")
private String introduce_by;
// @Schema(description = "关闭人")
// @TableField(value = "close_by")
// private String close_by;
@Schema(description = "关闭时间")
@TableField(value = "closed_time")
private String closed_time;
@Schema(description = "责任人")
@TableField(value = "follow_by")
private String follow_by;
@Schema(description = "工位")
@TableField(value = "station_num")
private String station_num;
@Schema(description = "项目机型")
@TableField(value = "project_model")
private String project_model;
@Schema(description = "项目阶段")
@TableField(value = "project_stage")
private String project_stage;
@Schema(description = "确认人工号")
@TableField(value = "verifier_no")
private String verifier_no;
@Schema(description = "进度")
@TableField(value = "progress")
private String progress;
@Schema(description = "任务单号")
@TableField(value = "todo_num")
private String todo_num;
@Schema(description = "进度说明")
@TableField(value = "progress_description")
private String progress_description;
@Schema(description = "实际工时")
@TableField(value = "real_work_hour")
private String real_work_hour;
@Schema(description = "确认人")
@TableField(value = "verifier")
private String verifier;
@Schema(description = "关注人")
@TableField(value = "follow_by_name")
private String follow_by_name;
@Schema(description = "责任人姓名")
@TableField(value = "performer_name")
private String performer_name;
@Schema(description = "计划工时")
@TableField(value = "work_hour_plan")
private String work_hour_plan;
@Schema(description = "提出人姓名")
@TableField(value = "introduce_by_name")
private String introduce_by_name;
@Schema(description = "驳回原因")
@TableField(value = "turn_down_reason")
private String turn_down_reason;
@Schema(description = "项目类型")
@TableField(value = "project_type")
private String project_type;
@Schema(description = "项目")
@TableField(value = "project")
private String project;
@Schema(description = "项目组")
@TableField(value = "project_name")
private String project_name;
// @Schema(description = "完成人")
// @TableField(value = "finished_by")
// private String finished_by;
@Schema(description = "标准工时")
@TableField(value = "standard_work_hour")
private String standard_work_hour;
}

View File

@@ -0,0 +1,13 @@
package com.sdm.outbridge.service.impl.lyric;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.sdm.outbridge.dao.LyricVMainPlanDMMapper;
import com.sdm.outbridge.entity.LyricVMainPlanDM;
import com.sdm.outbridge.service.lyric.LyricVMainPlanDMService;
import org.springframework.stereotype.Service;
@Service
public class LyricVMainPlanDMServiceImpl extends ServiceImpl<LyricVMainPlanDMMapper, LyricVMainPlanDM>
implements LyricVMainPlanDMService {
}

View File

@@ -0,0 +1,13 @@
package com.sdm.outbridge.service.impl.lyric;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.sdm.outbridge.dao.LyricVPdtDmMapper;
import com.sdm.outbridge.entity.LyricVPdtToDM;
import com.sdm.outbridge.service.lyric.LyricVPdtDmService;
import org.springframework.stereotype.Service;
@Service
public class LyricVPdtDmServiceImpl extends ServiceImpl<LyricVPdtDmMapper, LyricVPdtToDM>
implements LyricVPdtDmService {
}

View File

@@ -0,0 +1,12 @@
package com.sdm.outbridge.service.impl.lyric;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.sdm.outbridge.dao.LyricVProductionLineToDmMapper;
import com.sdm.outbridge.entity.LyricVProductionLineToDM;
import com.sdm.outbridge.service.lyric.LyricVProductionLineToDmService;
import org.springframework.stereotype.Service;
@Service
public class LyricVProductionLineToDmServiceImpl extends ServiceImpl<LyricVProductionLineToDmMapper, LyricVProductionLineToDM>
implements LyricVProductionLineToDmService {
}

View File

@@ -0,0 +1,12 @@
package com.sdm.outbridge.service.impl.lyric;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.sdm.outbridge.dao.LyricVProjectBatchToDMMapper;
import com.sdm.outbridge.entity.LyricVProjectBatchToDM;
import com.sdm.outbridge.service.lyric.LyricVProjectBatchToDmService;
import org.springframework.stereotype.Service;
@Service
public class LyricVProjectBatchToDMServiceImpl extends ServiceImpl<LyricVProjectBatchToDMMapper, LyricVProjectBatchToDM>
implements LyricVProjectBatchToDmService {
}

View File

@@ -0,0 +1,12 @@
package com.sdm.outbridge.service.impl.lyric;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.sdm.outbridge.dao.LyricVProjectToDmMapper;
import com.sdm.outbridge.entity.LyricVProjectToDM;
import com.sdm.outbridge.service.lyric.LyricVProjectToDmService;
import org.springframework.stereotype.Service;
@Service
public class LyricVProjectToDmServiceImpl extends ServiceImpl<LyricVProjectToDmMapper, LyricVProjectToDM>
implements LyricVProjectToDmService {
}

View File

@@ -0,0 +1,13 @@
package com.sdm.outbridge.service.impl.lyric;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.sdm.outbridge.dao.LyricVTodoInfoMapper;
import com.sdm.outbridge.entity.LyricVTodoEmulationInfoDM;
import com.sdm.outbridge.service.lyric.LyricVTodoInfoService;
import org.springframework.stereotype.Service;
@Service
public class LyricVTodoInfoServiceImpl extends ServiceImpl<LyricVTodoInfoMapper, LyricVTodoEmulationInfoDM>
implements LyricVTodoInfoService {
}

View File

@@ -0,0 +1,7 @@
package com.sdm.outbridge.service.lyric;
import com.baomidou.mybatisplus.extension.service.IService;
import com.sdm.outbridge.entity.LyricVMainPlanDM;
public interface LyricVMainPlanDMService extends IService<LyricVMainPlanDM> {
}

View File

@@ -0,0 +1,7 @@
package com.sdm.outbridge.service.lyric;
import com.baomidou.mybatisplus.extension.service.IService;
import com.sdm.outbridge.entity.LyricVPdtToDM;
public interface LyricVPdtDmService extends IService<LyricVPdtToDM> {
}

View File

@@ -0,0 +1,8 @@
package com.sdm.outbridge.service.lyric;
import com.baomidou.mybatisplus.extension.service.IService;
import com.sdm.outbridge.entity.LyricVProductionLineToDM;
/* 查询产线信息 */
public interface LyricVProductionLineToDmService extends IService<LyricVProductionLineToDM> {
}

View File

@@ -0,0 +1,8 @@
package com.sdm.outbridge.service.lyric;
import com.baomidou.mybatisplus.extension.service.IService;
import com.sdm.outbridge.entity.LyricVProjectBatchToDM;
/* 查询批次信息 */
public interface LyricVProjectBatchToDmService extends IService<LyricVProjectBatchToDM> {
}

View File

@@ -0,0 +1,8 @@
package com.sdm.outbridge.service.lyric;
import com.baomidou.mybatisplus.extension.service.IService;
import com.sdm.outbridge.entity.LyricVProjectToDM;
/* 查询项目信息 */
public interface LyricVProjectToDmService extends IService<LyricVProjectToDM> {
}

View File

@@ -0,0 +1,8 @@
package com.sdm.outbridge.service.lyric;
import com.baomidou.mybatisplus.extension.service.IService;
import com.sdm.outbridge.entity.LyricVTodoEmulationInfoDM;
public interface LyricVTodoInfoService extends IService<LyricVTodoEmulationInfoDM> {
}