修改排产工单为移入排产人

parent f8e92392
package com.aps.common.util;
import org.springframework.context.ApplicationContext;
import org.springframework.context.ApplicationContextAware;
import org.springframework.stereotype.Component;
@Component
public class SpringContextUtil implements ApplicationContextAware {
private static ApplicationContext applicationContext;
@Override
public void setApplicationContext(ApplicationContext applicationContext) {
SpringContextUtil.applicationContext = applicationContext;
}
public static <T> T getBean(Class<T> clazz) {
return applicationContext.getBean(clazz);
}
}
\ No newline at end of file
package com.aps.entity;
import lombok.Data;
import java.time.LocalDateTime;
@Data
public class MesSchedule {
private Long id;
private LocalDateTime creationTime;
private Long creatorUserId;
private LocalDateTime lastModificationTime;
private Long lastModifierUserId;
private Long isDeleted;
private LocalDateTime deletionTime;
private Long deleterUserId;
private Long scheduleUserId;
private LocalDateTime scheduleTime;
private Short status;
private String scheduleUserName;
private String remark;
private Long orderId;
private String orderCode;
private Long poolType;
private Long upSplitId;
private Long cardDetailId;
private String apsOrderId;
}
\ No newline at end of file
package com.aps.mapper;
import com.aps.entity.MesSchedule;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
/**
* <p>
* 订单移入排产表 Mapper 接口
* </p>
*
* @author MyBatis-Plus
* @since 2025-12-25
*/
public interface MesScheduleMapper extends BaseMapper<MesSchedule> {
}
package com.aps.service;
import com.aps.entity.MesSchedule;
import com.baomidou.mybatisplus.extension.service.IService;
/**
* <p>
* 订单移入排产表 服务类
* </p>
*
* @author MyBatis-Plus
* @since 2025-12-25
*/
public interface MesScheduleService extends IService<MesSchedule> {
}
package com.aps.service.impl;
import com.aps.entity.MesSchedule;
import com.aps.mapper.MesScheduleMapper;
import com.aps.service.MesScheduleService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;
/**
* <p>
* 订单移入排产表 服务实现类
* </p>
*
* @author MyBatis-Plus
* @since 2025-12-25
*/
@Service
public class MesScheduleServiceImpl extends ServiceImpl<MesScheduleMapper, MesSchedule> implements MesScheduleService {
}
...@@ -37,7 +37,7 @@ spring: ...@@ -37,7 +37,7 @@ spring:
# Oracle数据源 # Oracle数据源
oracle: oracle:
driver-class-name: oracle.jdbc.OracleDriver driver-class-name: oracle.jdbc.OracleDriver
url: jdbc:oracle:thin:@//39.100.78.207:7002/ORCLPDB1 # ORCL为你的Oracle实例名 url: jdbc:oracle:thin:@//192.168.0.181:1522/ORCLPDB1 # ORCL为你的Oracle实例名
username: mes # 替换为你的Oracle用户名 username: mes # 替换为你的Oracle用户名
password: root_mes123456 # 替换为你的Oracle密码 password: root_mes123456 # 替换为你的Oracle密码
# sqlserver: # sqlserver:
......
<?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.aps.mapper.MesScheduleMapper">
<!-- 通用查询映射结果 -->
<resultMap id="BaseResultMap" type="com.aps.entity.MesSchedule">
<id column="ID" property="id" />
<result column="CREATION_TIME" property="creationTime" />
<result column="CREATOR_USER_ID" property="creatorUserId" />
<result column="LAST_MODIFICATION_TIME" property="lastModificationTime" />
<result column="LAST_MODIFIER_USER_ID" property="lastModifierUserId" />
<result column="IS_DELETED" property="isDeleted" />
<result column="DELETION_TIME" property="deletionTime" />
<result column="DELETER_USER_ID" property="deleterUserId" />
<result column="SCHEDULE_USER_ID" property="scheduleUserId" />
<result column="SCHEDULE_TIME" property="scheduleTime" />
<result column="STATUS" property="status" />
<result column="SCHEDULE_USER_NAME" property="scheduleUserName" />
<result column="REMARK" property="remark" />
<result column="ORDER_ID" property="orderId" />
<result column="ORDER_CODE" property="orderCode" />
<result column="POOL_TYPE" property="poolType" />
<result column="UP_SPLIT_ID" property="upSplitId" />
<result column="CARD_DETAIL_ID" property="cardDetailId" />
<result column="APS_ORDER_ID" property="apsOrderId" />
</resultMap>
<!-- 通用查询结果列 -->
<sql id="Base_Column_List">
ID, CREATION_TIME, CREATOR_USER_ID, LAST_MODIFICATION_TIME, LAST_MODIFIER_USER_ID, IS_DELETED, DELETION_TIME, DELETER_USER_ID, SCHEDULE_USER_ID, SCHEDULE_TIME, STATUS, SCHEDULE_USER_NAME, REMARK, ORDER_ID, ORDER_CODE, POOL_TYPE, UP_SPLIT_ID, CARD_DETAIL_ID, APS_ORDER_ID
</sql>
</mapper>
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