初始化

This commit is contained in:
liuhanqing
2025-11-17 16:53:33 +08:00
commit cb2c0c032d
794 changed files with 119071 additions and 0 deletions

View File

@@ -0,0 +1 @@
restart.include.json=/com.alibaba.fastjson2.*.jar

View File

@@ -0,0 +1,61 @@
# 数据源配置
spring:
datasource:
type: com.alibaba.druid.pool.DruidDataSource
driverClassName: com.microsoft.sqlserver.jdbc.SQLServerDriver
druid:
#主数据信息
master:
url: jdbc:sqlserver://172.16.2.170:1433;databaseName=FT546-wcs;
username: sa
password: Flrd0914.
# 从库数据源
slave:
# 从数据源开关/默认关闭
enabled: false
url:
username:
password:
# 初始连接数
initialSize: 5
# 最小连接池数量
minIdle: 10
# 最大连接池数量
maxActive: 20
# 配置获取连接等待超时的时间
maxWait: 60000
# 配置连接超时时间
connectTimeout: 30000
# 配置网络超时时间
socketTimeout: 60000
# 配置间隔多久才进行一次检测,检测需要关闭的空闲连接,单位是毫秒
timeBetweenEvictionRunsMillis: 60000
# 配置一个连接在池中最小生存的时间,单位是毫秒
minEvictableIdleTimeMillis: 300000
# 配置一个连接在池中最大生存的时间,单位是毫秒
maxEvictableIdleTimeMillis: 900000
# 配置检测连接是否有效
validationQuery: SELECT 1 FROM sys_oper_log
testWhileIdle: true
testOnBorrow: false
testOnReturn: false
webStatFilter:
enabled: true
statViewServlet:
enabled: true
# 设置白名单,不填则允许所有访问
allow:
url-pattern: /druid/*
# 控制台管理用户名和密码
login-username: ruoyi
login-password: 123456
filter:
stat:
enabled: true
# 慢SQL记录
log-slow-sql: true
slow-sql-millis: 1000
merge-sql: true
wall:
config:
multi-statement-allow: true

View File

@@ -0,0 +1,129 @@
# 项目相关配置
ruoyi:
# 名称
name: RuoYi
# 版本
version: 3.8.9
# 版权年份
copyrightYear: 2025
# 文件路径 示例( Windows配置D:/ruoyi/uploadPath,Linux配置 /home/ruoyi/uploadPath)
profile: D:/ruoyi/uploadPath
# 获取ip地址开关
addressEnabled: false
# 验证码类型 math 数字计算 char 字符验证
captchaType: math
# 开发环境配置
server:
# 服务器的HTTP端口,默认为8080
port: 8081
servlet:
# 应用的访问路径
context-path: /
tomcat:
# tomcat的URI编码
uri-encoding: UTF-8
# 连接数满后的排队数,默认为100
accept-count: 1000
threads:
# tomcat最大线程数,默认为200
max: 800
# Tomcat启动初始化的线程数,默认值10
min-spare: 100
# 日志配置
logging:
level:
com.ruoyi: debug
org.springframework: warn
# 用户配置
user:
password:
# 密码最大错误次数
maxRetryCount: 5
# 密码锁定时间(默认10分钟)
lockTime: 10
# Spring配置
spring:
# 资源信息
messages:
# 国际化资源文件路径
basename: i18n/messages
profiles:
active: druid
# 文件上传
servlet:
multipart:
# 单个文件大小
max-file-size: 10MB
# 设置总上传的文件大小
max-request-size: 20MB
# 服务模块
devtools:
restart:
# 热部署开关
enabled: true
# redis 配置
redis:
# 地址
host: 172.16.2.170
# 端口,默认为6379
port: 6379
# 数据库索引
database: 1
# 密码
password: 123456
# 连接超时时间
timeout: 10s
lettuce:
pool:
# 连接池中的最小空闲连接
min-idle: 0
# 连接池中的最大空闲连接
max-idle: 8
# 连接池的最大数据库连接数
max-active: 8
# #连接池最大阻塞等待时间(使用负值表示没有限制)
max-wait: -1ms
# token配置
token:
# 令牌自定义标识
header: Authorization
# 令牌密钥
secret: abcdefghijklmnopqrstuvwxyz
# 令牌有效期(默认30分钟)
expireTime: 30
# MyBatis配置
mybatis:
# 搜索指定包别名
typeAliasesPackage: com.ruoyi.**.domain
# 配置mapper的扫描,找到所有的mapper.xml映射文件
mapperLocations: classpath*:mapper/**/*Mapper.xml
# 加载全局的配置文件
configLocation: classpath:mybatis/mybatis-config.xml
# PageHelper分页插件
pagehelper:
helperDialect: sqlserver
supportMethodsArguments: true
params: count=countSql
# Swagger配置
swagger:
# 是否开启swagger
enabled: true
# 请求前缀
pathMapping: /dev-api
# 防止XSS攻击
xss:
# 过滤开关
enabled: true
# 排除链接(多个用逗号分隔)
excludes: /system/notice
# 匹配链接
urlPatterns: /system/*,/monitor/*,/tool/*

View File

@@ -0,0 +1,24 @@
Application Version: ${ruoyi.version}
Spring Boot Version: ${spring-boot.version}
////////////////////////////////////////////////////////////////////
// _ooOoo_ //
// o8888888o //
// 88" . "88 //
// (| ^_^ |) //
// O\ = /O //
// ____/`---'\____ //
// .' \\| |// `. //
// / \\||| : |||// \ //
// / _||||| -:- |||||- \ //
// | | \\\ - /// | | //
// | \_| ''\---/'' | | //
// \ .-\__ `-` ___/-. / //
// ___`. .' /--.--\ `. . ___ //
// ."" '< `.___\_<|>_/___.' >'"". //
// | | : `- \`.;`\ _ /`;.`/ - ` : | | //
// \ \ `-. \_ __\ /__ _/ .-` / / //
// ========`-.____`-.___\_____/___.-`____.-'======== //
// `=---=' //
// ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ //
// 佛祖保佑 永不宕机 永无BUG //
////////////////////////////////////////////////////////////////////

View File

@@ -0,0 +1,38 @@
#????
not.null=* ????
user.jcaptcha.error=?????
user.jcaptcha.expire=??????
user.not.exists=?????/????
user.password.not.match=?????/????
user.password.retry.limit.count=??????{0}?
user.password.retry.limit.exceed=??????{0}??????{1}??
user.password.delete=????????????
user.blocked=????????????
role.blocked=????????????
login.blocked=??????IP?????????
user.logout.success=????
length.not.valid=?????{min}?{max}?????
user.username.not.valid=* 2?20?????????????????????????
user.password.not.valid=* 5-50???
user.email.not.valid=??????
user.mobile.phone.number.not.valid=???????
user.login.success=????
user.register.success=????
user.notfound=?????
user.forcelogout=?????????????
user.unknown.error=??????????
##??????
upload.exceed.maxSize=?????????????????<br/>???????????{0}MB?
upload.filename.exceed.length=????????{0}???
##??
no.permission=??????????????????? [{0}]
no.create.permission=????????????????????? [{0}]
no.update.permission=????????????????????? [{0}]
no.delete.permission=????????????????????? [{0}]
no.export.permission=????????????????????? [{0}]
no.view.permission=????????????????????? [{0}]

View File

@@ -0,0 +1,38 @@
#????
not.null=* ????
user.jcaptcha.error=?????
user.jcaptcha.expire=??????
user.not.exists=?????/????
user.password.not.match=?????/????
user.password.retry.limit.count=??????{0}?
user.password.retry.limit.exceed=??????{0}??????{1}??
user.password.delete=????????????
user.blocked=????????????
role.blocked=????????????
login.blocked=??????IP?????????
user.logout.success=????
length.not.valid=?????{min}?{max}?????
user.username.not.valid=* 2?20?????????????????????????
user.password.not.valid=* 5-50???
user.email.not.valid=??????
user.mobile.phone.number.not.valid=???????
user.login.success=????
user.register.success=????
user.notfound=?????
user.forcelogout=?????????????
user.unknown.error=??????????
##??????
upload.exceed.maxSize=?????????????????<br/>???????????{0}MB?
upload.filename.exceed.length=????????{0}???
##??
no.permission=??????????????????? [{0}]
no.create.permission=????????????????????? [{0}]
no.update.permission=????????????????????? [{0}]
no.delete.permission=????????????????????? [{0}]
no.export.permission=????????????????????? [{0}]
no.view.permission=????????????????????? [{0}]

View File

@@ -0,0 +1,38 @@
#????
not.null=* ????
user.jcaptcha.error=?????
user.jcaptcha.expire=??????
user.not.exists=?????/????
user.password.not.match=?????/????
user.password.retry.limit.count=??????{0}?
user.password.retry.limit.exceed=??????{0}??????{1}??
user.password.delete=????????????
user.blocked=????????????
role.blocked=????????????
login.blocked=??????IP?????????
user.logout.success=????
length.not.valid=?????{min}?{max}?????
user.username.not.valid=* 2?20?????????????????????????
user.password.not.valid=* 5-50???
user.email.not.valid=??????
user.mobile.phone.number.not.valid=???????
user.login.success=????
user.register.success=????
user.notfound=?????
user.forcelogout=?????????????
user.unknown.error=??????????
##??????
upload.exceed.maxSize=?????????????????<br/>???????????{0}MB?
upload.filename.exceed.length=????????{0}???
##??
no.permission=??????????????????? [{0}]
no.create.permission=????????????????????? [{0}]
no.update.permission=????????????????????? [{0}]
no.delete.permission=????????????????????? [{0}]
no.export.permission=????????????????????? [{0}]
no.view.permission=????????????????????? [{0}]

View File

@@ -0,0 +1,93 @@
<?xml version="1.0" encoding="UTF-8"?>
<configuration>
<!-- 日志存放路径 -->
<property name="log.path" value="/home/ruoyi/logs" />
<!-- 日志输出格式 -->
<property name="log.pattern" value="%d{HH:mm:ss.SSS} [%thread] %-5level %logger{20} - [%method,%line] - %msg%n" />
<!-- 控制台输出 -->
<appender name="console" class="ch.qos.logback.core.ConsoleAppender">
<encoder>
<pattern>${log.pattern}</pattern>
</encoder>
</appender>
<!-- 系统日志输出 -->
<appender name="file_info" class="ch.qos.logback.core.rolling.RollingFileAppender">
<file>${log.path}/sys-info.log</file>
<!-- 循环政策:基于时间创建日志文件 -->
<rollingPolicy class="ch.qos.logback.core.rolling.TimeBasedRollingPolicy">
<!-- 日志文件名格式 -->
<fileNamePattern>${log.path}/sys-info.%d{yyyy-MM-dd}.log</fileNamePattern>
<!-- 日志最大的历史 60天 -->
<maxHistory>60</maxHistory>
</rollingPolicy>
<encoder>
<pattern>${log.pattern}</pattern>
</encoder>
<filter class="ch.qos.logback.classic.filter.LevelFilter">
<!-- 过滤的级别 -->
<level>INFO</level>
<!-- 匹配时的操作:接收(记录) -->
<onMatch>ACCEPT</onMatch>
<!-- 不匹配时的操作:拒绝(不记录) -->
<onMismatch>DENY</onMismatch>
</filter>
</appender>
<appender name="file_error" class="ch.qos.logback.core.rolling.RollingFileAppender">
<file>${log.path}/sys-error.log</file>
<!-- 循环政策:基于时间创建日志文件 -->
<rollingPolicy class="ch.qos.logback.core.rolling.TimeBasedRollingPolicy">
<!-- 日志文件名格式 -->
<fileNamePattern>${log.path}/sys-error.%d{yyyy-MM-dd}.log</fileNamePattern>
<!-- 日志最大的历史 60天 -->
<maxHistory>60</maxHistory>
</rollingPolicy>
<encoder>
<pattern>${log.pattern}</pattern>
</encoder>
<filter class="ch.qos.logback.classic.filter.LevelFilter">
<!-- 过滤的级别 -->
<level>ERROR</level>
<!-- 匹配时的操作:接收(记录) -->
<onMatch>ACCEPT</onMatch>
<!-- 不匹配时的操作:拒绝(不记录) -->
<onMismatch>DENY</onMismatch>
</filter>
</appender>
<!-- 用户访问日志输出 -->
<appender name="sys-user" class="ch.qos.logback.core.rolling.RollingFileAppender">
<file>${log.path}/sys-user.log</file>
<rollingPolicy class="ch.qos.logback.core.rolling.TimeBasedRollingPolicy">
<!-- 按天回滚 daily -->
<fileNamePattern>${log.path}/sys-user.%d{yyyy-MM-dd}.log</fileNamePattern>
<!-- 日志最大的历史 60天 -->
<maxHistory>60</maxHistory>
</rollingPolicy>
<encoder>
<pattern>${log.pattern}</pattern>
</encoder>
</appender>
<!-- 系统模块日志级别控制 -->
<logger name="com.ruoyi" level="info" />
<!-- Spring日志级别控制 -->
<logger name="org.springframework" level="warn" />
<root level="info">
<appender-ref ref="console" />
</root>
<!--系统操作日志-->
<root level="info">
<appender-ref ref="file_info" />
<appender-ref ref="file_error" />
</root>
<!--系统用户操作日志-->
<logger name="sys-user" level="info">
<appender-ref ref="sys-user"/>
</logger>
</configuration>

View File

@@ -0,0 +1,139 @@
<?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.ruoyi.queue.agv.mapper.AgvQueueFinishMapper">
<resultMap type="AgvQueueFinish" id="AgvQueueFinishResult">
<result property="reqCode" column="req_code" />
<result property="reqTime" column="req_time" />
<result property="positionCode1" column="position_code_1" />
<result property="positionCode2" column="position_code_2" />
<result property="taskType" column="task_type" />
<result property="ctnrType" column="ctnr_type" />
<result property="ctnrCode" column="ctnr_code" />
<result property="ctnrNum" column="ctnr_num" />
<result property="taskMode" column="task_mode" />
<result property="priority" column="priority" />
<result property="agvType" column="agv_type" />
<result property="request" column="request" />
<result property="finishTime" column="finish_time" />
<result property="wmsTraycode" column="wms_traycode" />
<result property="wmsTaskNo" column="wms_task_no" />
<result property="taskCode" column="task_code" />
<result property="status" column="status" />
<result property="wmsTaskType" column="wms_task_type" />
</resultMap>
<sql id="selectAgvQueueFinishVo">
select req_code, req_time, position_code_1, position_code_2, task_type, ctnr_type, ctnr_code, ctnr_num, task_mode, priority, agv_type, request, finish_time, wms_traycode, wms_task_no, task_code, status, wms_task_type from agv_queue_finish
</sql>
<select id="selectAgvQueueFinishList" parameterType="AgvQueueFinish" resultMap="AgvQueueFinishResult">
<include refid="selectAgvQueueFinishVo"/>
<where>
<if test="reqTime != null and reqTime != ''"> and req_time = #{reqTime}</if>
<if test="positionCode1 != null and positionCode1 != ''"> and position_code_1 = #{positionCode1}</if>
<if test="positionCode2 != null and positionCode2 != ''"> and position_code_2 = #{positionCode2}</if>
<if test="taskType != null and taskType != ''"> and task_type = #{taskType}</if>
<if test="ctnrType != null and ctnrType != ''"> and ctnr_type = #{ctnrType}</if>
<if test="ctnrCode != null and ctnrCode != ''"> and ctnr_code = #{ctnrCode}</if>
<if test="ctnrNum != null and ctnrNum != ''"> and ctnr_num = #{ctnrNum}</if>
<if test="taskMode != null and taskMode != ''"> and task_mode = #{taskMode}</if>
<if test="priority != null and priority != ''"> and priority = #{priority}</if>
<if test="agvType != null and agvType != ''"> and agv_type = #{agvType}</if>
<if test="request != null and request != ''"> and request = #{request}</if>
<if test="finishTime != null and finishTime != ''"> and finish_time = #{finishTime}</if>
<if test="wmsTraycode != null and wmsTraycode != ''"> and wms_traycode = #{wmsTraycode}</if>
<if test="wmsTaskNo != null and wmsTaskNo != ''"> and wms_task_no = #{wmsTaskNo}</if>
<if test="taskCode != null and taskCode != ''"> and task_code = #{taskCode}</if>
<if test="status != null and status != ''"> and status = #{status}</if>
<if test="wmsTaskType != null and wmsTaskType != ''"> and wms_task_type = #{wmsTaskType}</if>
</where>
order by req_time desc
</select>
<select id="selectAgvQueueFinishByReqCode" parameterType="String" resultMap="AgvQueueFinishResult">
<include refid="selectAgvQueueFinishVo"/>
where req_code = #{reqCode}
</select>
<insert id="insertAgvQueueFinish" parameterType="AgvQueueFinish">
insert into agv_queue_finish
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="reqCode != null">req_code,</if>
<if test="reqTime != null">req_time,</if>
<if test="positionCode1 != null">position_code_1,</if>
<if test="positionCode2 != null">position_code_2,</if>
<if test="taskType != null">task_type,</if>
<if test="ctnrType != null">ctnr_type,</if>
<if test="ctnrCode != null">ctnr_code,</if>
<if test="ctnrNum != null">ctnr_num,</if>
<if test="taskMode != null">task_mode,</if>
<if test="priority != null">priority,</if>
<if test="agvType != null">agv_type,</if>
<if test="request != null">request,</if>
<if test="finishTime != null">finish_time,</if>
<if test="wmsTraycode != null">wms_traycode,</if>
<if test="wmsTaskNo != null">wms_task_no,</if>
<if test="taskCode != null">task_code,</if>
<if test="status != null">status,</if>
<if test="wmsTaskType != null">wms_task_type,</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="reqCode != null">#{reqCode},</if>
<if test="reqTime != null">#{reqTime},</if>
<if test="positionCode1 != null">#{positionCode1},</if>
<if test="positionCode2 != null">#{positionCode2},</if>
<if test="taskType != null">#{taskType},</if>
<if test="ctnrType != null">#{ctnrType},</if>
<if test="ctnrCode != null">#{ctnrCode},</if>
<if test="ctnrNum != null">#{ctnrNum},</if>
<if test="taskMode != null">#{taskMode},</if>
<if test="priority != null">#{priority},</if>
<if test="agvType != null">#{agvType},</if>
<if test="request != null">#{request},</if>
<if test="finishTime != null">#{finishTime},</if>
<if test="wmsTraycode != null">#{wmsTraycode},</if>
<if test="wmsTaskNo != null">#{wmsTaskNo},</if>
<if test="taskCode != null">#{taskCode},</if>
<if test="status != null">#{status},</if>
<if test="wmsTaskType != null">#{wmsTaskType},</if>
</trim>
</insert>
<update id="updateAgvQueueFinish" parameterType="AgvQueueFinish">
update agv_queue_finish
<trim prefix="SET" suffixOverrides=",">
<if test="reqTime != null">req_time = #{reqTime},</if>
<if test="positionCode1 != null">position_code_1 = #{positionCode1},</if>
<if test="positionCode2 != null">position_code_2 = #{positionCode2},</if>
<if test="taskType != null">task_type = #{taskType},</if>
<if test="ctnrType != null">ctnr_type = #{ctnrType},</if>
<if test="ctnrCode != null">ctnr_code = #{ctnrCode},</if>
<if test="ctnrNum != null">ctnr_num = #{ctnrNum},</if>
<if test="taskMode != null">task_mode = #{taskMode},</if>
<if test="priority != null">priority = #{priority},</if>
<if test="agvType != null">agv_type = #{agvType},</if>
<if test="request != null">request = #{request},</if>
<if test="finishTime != null">finish_time = #{finishTime},</if>
<if test="wmsTraycode != null">wms_traycode = #{wmsTraycode},</if>
<if test="wmsTaskNo != null">wms_task_no = #{wmsTaskNo},</if>
<if test="taskCode != null">task_code = #{taskCode},</if>
<if test="status != null">status = #{status},</if>
<if test="wmsTaskType != null">wms_task_type = #{wmsTaskType},</if>
</trim>
where req_code = #{reqCode}
</update>
<delete id="deleteAgvQueueFinishByReqCode" parameterType="String">
delete from agv_queue_finish where req_code = #{reqCode}
</delete>
<delete id="deleteAgvQueueFinishByReqCodes" parameterType="String">
delete from agv_queue_finish where req_code in
<foreach item="reqCode" collection="array" open="(" separator="," close=")">
#{reqCode}
</foreach>
</delete>
</mapper>

View File

@@ -0,0 +1,153 @@
<?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.ruoyi.bas.cargospace.mapper.BasCargoSpaceMapper">
<resultMap type="BasCargoSpace" id="BasCargoSpaceResult">
<result property="cargoSpaceId" column="cargo_space_id" />
<result property="warehouseId" column="warehouse_id" />
<result property="roadwayId" column="roadway_id" />
<result property="cargoAreaId" column="cargo_area_id" />
<result property="theType" column="the_type" />
<result property="theTypeName" column="the_type_name" />
<result property="cargoSpaceName" column="cargo_space_name" />
<result property="thePlatoon" column="the_platoon" />
<result property="theColumn" column="the_column" />
<result property="theFloor" column="the_floor" />
<result property="status" column="status" />
<result property="locked" column="locked" />
<result property="trayCode" column="tray_code" />
<result property="cargoHight" column="cargo_hight" />
<result property="issDouble" column="iss_double" />
<result property="groupCodingNo" column="group_coding_no" />
<result property="groupCoding" column="group_coding" />
<result property="cargoSpaceLogo" column="cargo_space_logo" />
<result property="thisCargoArea" column="this_cargo_area" />
<result property="wmsCargoSpaceId" column="wms_cargo_space_id" />
</resultMap>
<sql id="selectBasCargoSpaceVo">
select cargo_space_id, warehouse_id, roadway_id, cargo_area_id, the_type, the_type_name, cargo_space_name, the_platoon, the_column, the_floor, status, locked, tray_code, cargo_hight, iss_double, group_coding_no, group_coding, cargo_space_logo, this_cargo_area, wms_cargo_space_id from bas_cargo_space
</sql>
<select id="selectBasCargoSpaceList" parameterType="BasCargoSpace" resultMap="BasCargoSpaceResult">
<include refid="selectBasCargoSpaceVo"/>
<where>
<if test="warehouseId != null and warehouseId != ''"> and warehouse_id = #{warehouseId}</if>
<if test="roadwayId != null and roadwayId != ''"> and roadway_id = #{roadwayId}</if>
<if test="cargoAreaId != null and cargoAreaId != ''"> and cargo_area_id = #{cargoAreaId}</if>
<if test="theType != null and theType != ''"> and the_type = #{theType}</if>
<if test="theTypeName != null and theTypeName != ''"> and the_type_name like concat('%', #{theTypeName}, '%')</if>
<if test="cargoSpaceName != null and cargoSpaceName != ''"> and cargo_space_name like concat('%', #{cargoSpaceName}, '%')</if>
<if test="thePlatoon != null "> and the_platoon = #{thePlatoon}</if>
<if test="theColumn != null "> and the_column = #{theColumn}</if>
<if test="theFloor != null "> and the_floor = #{theFloor}</if>
<if test="status != null and status != ''"> and status = #{status}</if>
<if test="locked != null and locked != ''"> and locked = #{locked}</if>
<if test="trayCode != null and trayCode != ''"> and tray_code = #{trayCode}</if>
<if test="cargoHight != null and cargoHight != ''"> and cargo_hight = #{cargoHight}</if>
<if test="issDouble != null and issDouble != ''"> and iss_double = #{issDouble}</if>
<if test="groupCodingNo != null and groupCodingNo != ''"> and group_coding_no = #{groupCodingNo}</if>
<if test="groupCoding != null and groupCoding != ''"> and group_coding = #{groupCoding}</if>
<if test="cargoSpaceLogo != null and cargoSpaceLogo != ''"> and cargo_space_logo = #{cargoSpaceLogo}</if>
<if test="thisCargoArea != null and thisCargoArea != ''"> and this_cargo_area = #{thisCargoArea}</if>
<if test="wmsCargoSpaceId != null and wmsCargoSpaceId != ''"> and wms_cargo_space_id = #{wmsCargoSpaceId}</if>
</where>
</select>
<select id="selectBasCargoSpaceByCargoSpaceId" parameterType="String" resultMap="BasCargoSpaceResult">
<include refid="selectBasCargoSpaceVo"/>
where cargo_space_id = #{cargoSpaceId}
</select>
<select id="selectBasCargoSpaceByWmsCargoSpaceId"
resultMap="BasCargoSpaceResult">
<include refid="selectBasCargoSpaceVo"/>
where wms_cargo_space_id = #{wmsCargoSpaceId}
</select>
<insert id="insertBasCargoSpace" parameterType="BasCargoSpace">
insert into bas_cargo_space
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="cargoSpaceId != null">cargo_space_id,</if>
<if test="warehouseId != null and warehouseId != ''">warehouse_id,</if>
<if test="roadwayId != null">roadway_id,</if>
<if test="cargoAreaId != null">cargo_area_id,</if>
<if test="theType != null">the_type,</if>
<if test="theTypeName != null">the_type_name,</if>
<if test="cargoSpaceName != null and cargoSpaceName != ''">cargo_space_name,</if>
<if test="thePlatoon != null">the_platoon,</if>
<if test="theColumn != null">the_column,</if>
<if test="theFloor != null">the_floor,</if>
<if test="status != null and status != ''">status,</if>
<if test="locked != null and locked != ''">locked,</if>
<if test="trayCode != null">tray_code,</if>
<if test="cargoHight != null">cargo_hight,</if>
<if test="issDouble != null">iss_double,</if>
<if test="groupCodingNo != null">group_coding_no,</if>
<if test="groupCoding != null">group_coding,</if>
<if test="cargoSpaceLogo != null">cargo_space_logo,</if>
<if test="thisCargoArea != null">this_cargo_area,</if>
<if test="wmsCargoSpaceId != null">wms_cargo_space_id,</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="cargoSpaceId != null">#{cargoSpaceId},</if>
<if test="warehouseId != null and warehouseId != ''">#{warehouseId},</if>
<if test="roadwayId != null">#{roadwayId},</if>
<if test="cargoAreaId != null">#{cargoAreaId},</if>
<if test="theType != null">#{theType},</if>
<if test="theTypeName != null">#{theTypeName},</if>
<if test="cargoSpaceName != null and cargoSpaceName != ''">#{cargoSpaceName},</if>
<if test="thePlatoon != null">#{thePlatoon},</if>
<if test="theColumn != null">#{theColumn},</if>
<if test="theFloor != null">#{theFloor},</if>
<if test="status != null and status != ''">#{status},</if>
<if test="locked != null and locked != ''">#{locked},</if>
<if test="trayCode != null">#{trayCode},</if>
<if test="cargoHight != null">#{cargoHight},</if>
<if test="issDouble != null">#{issDouble},</if>
<if test="groupCodingNo != null">#{groupCodingNo},</if>
<if test="groupCoding != null">#{groupCoding},</if>
<if test="cargoSpaceLogo != null">#{cargoSpaceLogo},</if>
<if test="thisCargoArea != null">#{thisCargoArea},</if>
<if test="wmsCargoSpaceId != null">#{wmsCargoSpaceId},</if>
</trim>
</insert>
<update id="updateBasCargoSpace" parameterType="BasCargoSpace">
update bas_cargo_space
<trim prefix="SET" suffixOverrides=",">
<if test="warehouseId != null and warehouseId != ''">warehouse_id = #{warehouseId},</if>
<if test="roadwayId != null">roadway_id = #{roadwayId},</if>
<if test="cargoAreaId != null">cargo_area_id = #{cargoAreaId},</if>
<if test="theType != null">the_type = #{theType},</if>
<if test="theTypeName != null">the_type_name = #{theTypeName},</if>
<if test="cargoSpaceName != null and cargoSpaceName != ''">cargo_space_name = #{cargoSpaceName},</if>
<if test="thePlatoon != null">the_platoon = #{thePlatoon},</if>
<if test="theColumn != null">the_column = #{theColumn},</if>
<if test="theFloor != null">the_floor = #{theFloor},</if>
<if test="status != null and status != ''">status = #{status},</if>
<if test="locked != null and locked != ''">locked = #{locked},</if>
<if test="trayCode != null">tray_code = #{trayCode},</if>
<if test="cargoHight != null">cargo_hight = #{cargoHight},</if>
<if test="issDouble != null">iss_double = #{issDouble},</if>
<if test="groupCodingNo != null">group_coding_no = #{groupCodingNo},</if>
<if test="groupCoding != null">group_coding = #{groupCoding},</if>
<if test="cargoSpaceLogo != null">cargo_space_logo = #{cargoSpaceLogo},</if>
<if test="thisCargoArea != null">this_cargo_area = #{thisCargoArea},</if>
<if test="wmsCargoSpaceId != null">wms_cargo_space_id = #{wmsCargoSpaceId},</if>
</trim>
where cargo_space_id = #{cargoSpaceId}
</update>
<delete id="deleteBasCargoSpaceByCargoSpaceId" parameterType="String">
delete from bas_cargo_space where cargo_space_id = #{cargoSpaceId}
</delete>
<delete id="deleteBasCargoSpaceByCargoSpaceIds" parameterType="String">
delete from bas_cargo_space where cargo_space_id in
<foreach item="cargoSpaceId" collection="array" open="(" separator="," close=")">
#{cargoSpaceId}
</foreach>
</delete>
</mapper>

View File

@@ -0,0 +1,91 @@
<?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.ruoyi.bas.fluent.mapper.BasFluentFrameMapper">
<resultMap type="BasFluentFrame" id="BasFluentFrameResult">
<result property="id" column="id" />
<result property="locationName" column="location_name" />
<result property="type" column="type" />
<result property="frameId" column="frame_id" />
<result property="boxNum" column="box_num" />
<result property="trayCode" column="tray_code" />
<result property="groupId" column="group_id" />
<result property="allotNum" column="allot_num" />
</resultMap>
<sql id="selectBasFluentFrameVo">
select id, location_name, type, frame_id, box_num, tray_code, group_id, allot_num from bas_fluent_frame
</sql>
<select id="selectBasFluentFrameList" parameterType="BasFluentFrame" resultMap="BasFluentFrameResult">
<include refid="selectBasFluentFrameVo"/>
<where>
<if test="locationName != null and locationName != ''"> and location_name like concat('%', #{locationName}, '%')</if>
<if test="type != null and type != ''"> and type = #{type}</if>
<if test="frameId != null and frameId != ''"> and frame_id = #{frameId}</if>
<if test="boxNum != null "> and box_num = #{boxNum}</if>
<if test="trayCode != null and trayCode != ''"> and tray_code = #{trayCode}</if>
<if test="groupId != null and groupId != ''"> and group_id = #{groupId}</if>
<if test="allotNum != null "> and allot_num = #{allotNum}</if>
</where>
</select>
<select id="selectBasFluentFrameById" parameterType="Long" resultMap="BasFluentFrameResult">
<include refid="selectBasFluentFrameVo"/>
where id = #{id}
</select>
<select id="selectBasFluentFrameOrderByAllotNum" resultMap="BasFluentFrameResult">
select TOP 1 id, location_name, type, frame_id, box_num, tray_code, group_id, allot_num from bas_fluent_frame
where frame_id = #{frameId} and type = '1' and allot_num = 0
order by order_num asc
</select>
<insert id="insertBasFluentFrame" parameterType="BasFluentFrame" useGeneratedKeys="true" keyProperty="id">
insert into bas_fluent_frame
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="locationName != null">location_name,</if>
<if test="type != null">type,</if>
<if test="frameId != null">frame_id,</if>
<if test="boxNum != null">box_num,</if>
<if test="trayCode != null">tray_code,</if>
<if test="groupId != null">group_id,</if>
<if test="allotNum != null">allot_num,</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="locationName != null">#{locationName},</if>
<if test="type != null">#{type},</if>
<if test="frameId != null">#{frameId},</if>
<if test="boxNum != null">#{boxNum},</if>
<if test="trayCode != null">#{trayCode},</if>
<if test="groupId != null">#{groupId},</if>
<if test="allotNum != null">#{allotNum},</if>
</trim>
</insert>
<update id="updateBasFluentFrame" parameterType="BasFluentFrame">
update bas_fluent_frame
<trim prefix="SET" suffixOverrides=",">
<if test="locationName != null">location_name = #{locationName},</if>
<if test="type != null">type = #{type},</if>
<if test="frameId != null">frame_id = #{frameId},</if>
<if test="boxNum != null">box_num = #{boxNum},</if>
<if test="trayCode != null">tray_code = #{trayCode},</if>
<if test="groupId != null">group_id = #{groupId},</if>
<if test="allotNum != null">allot_num = #{allotNum},</if>
</trim>
where id = #{id}
</update>
<delete id="deleteBasFluentFrameById" parameterType="Long">
delete from bas_fluent_frame where id = #{id}
</delete>
<delete id="deleteBasFluentFrameByIds" parameterType="String">
delete from bas_fluent_frame where id in
<foreach item="id" collection="array" open="(" separator="," close=")">
#{id}
</foreach>
</delete>
</mapper>

View File

@@ -0,0 +1,95 @@
<?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.ruoyi.bas.port.mapper.WcsPortMapper">
<resultMap type="WcsPort" id="WcsPortResult">
<result property="id" column="id" />
<result property="portCode" column="port_code" />
<result property="portName" column="port_name" />
<result property="portType" column="port_type" />
<result property="portRegion" column="port_region" />
<result property="spare1" column="spare1" />
<result property="spare2" column="spare2" />
<result property="spare3" column="spare3" />
<result property="status" column="status" />
</resultMap>
<sql id="selectWcsPortVo">
select id, port_code, port_name, port_type, port_region, spare1, spare2, spare3, status from wcs_port
</sql>
<select id="selectWcsPortList" parameterType="WcsPort" resultMap="WcsPortResult">
<include refid="selectWcsPortVo"/>
<where>
<if test="portCode != null and portCode != ''"> and port_code = #{portCode}</if>
<if test="portName != null and portName != ''"> and port_name like concat('%', #{portName}, '%')</if>
<if test="portType != null and portType != ''"> and port_type = #{portType}</if>
<if test="portRegion != null and portRegion != ''"> and port_region = #{portRegion}</if>
<if test="spare1 != null and spare1 != ''"> and spare1 = #{spare1}</if>
<if test="spare2 != null and spare2 != ''"> and spare2 = #{spare2}</if>
<if test="spare3 != null and spare3 != ''"> and spare3 = #{spare3}</if>
<if test="status != null and status != ''"> and status = #{status}</if>
</where>
</select>
<select id="selectWcsPortById" parameterType="Long" resultMap="WcsPortResult">
<include refid="selectWcsPortVo"/>
where id = #{id}
</select>
<select id="selectWcsPortByPortCode" resultMap="WcsPortResult">
<include refid="selectWcsPortVo"/>
where port_code = #{portCode}
</select>
<insert id="insertWcsPort" parameterType="WcsPort" useGeneratedKeys="true" keyProperty="id">
insert into wcs_port
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="portCode != null">port_code,</if>
<if test="portName != null">port_name,</if>
<if test="portType != null">port_type,</if>
<if test="portRegion != null">port_region,</if>
<if test="spare1 != null">spare1,</if>
<if test="spare2 != null">spare2,</if>
<if test="spare3 != null">spare3,</if>
<if test="status != null">status,</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="portCode != null">#{portCode},</if>
<if test="portName != null">#{portName},</if>
<if test="portType != null">#{portType},</if>
<if test="portRegion != null">#{portRegion},</if>
<if test="spare1 != null">#{spare1},</if>
<if test="spare2 != null">#{spare2},</if>
<if test="spare3 != null">#{spare3},</if>
<if test="status != null">#{status},</if>
</trim>
</insert>
<update id="updateWcsPort" parameterType="WcsPort">
update wcs_port
<trim prefix="SET" suffixOverrides=",">
<if test="portCode != null">port_code = #{portCode},</if>
<if test="portName != null">port_name = #{portName},</if>
<if test="portType != null">port_type = #{portType},</if>
<if test="portRegion != null">port_region = #{portRegion},</if>
<if test="spare1 != null">spare1 = #{spare1},</if>
<if test="spare2 != null">spare2 = #{spare2},</if>
<if test="spare3 != null">spare3 = #{spare3},</if>
<if test="status != null">status = #{status},</if>
</trim>
where id = #{id}
</update>
<delete id="deleteWcsPortById" parameterType="Long">
delete from wcs_port where id = #{id}
</delete>
<delete id="deleteWcsPortByIds" parameterType="String">
delete from wcs_port where id in
<foreach item="id" collection="array" open="(" separator="," close=")">
#{id}
</foreach>
</delete>
</mapper>

View File

@@ -0,0 +1,147 @@
<?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.ruoyi.queue.agv.mapper.AgvQueueMapper">
<resultMap type="AgvQueue" id="AgvQueueResult">
<result property="reqCode" column="req_code" />
<result property="reqTime" column="req_time" />
<result property="positionCode1" column="position_code_1" />
<result property="positionCode2" column="position_code_2" />
<result property="taskType" column="task_type" />
<result property="ctnrType" column="ctnr_type" />
<result property="ctnrCode" column="ctnr_code" />
<result property="ctnrNum" column="ctnr_num" />
<result property="taskMode" column="task_mode" />
<result property="priority" column="priority" />
<result property="agvType" column="agv_type" />
<result property="request" column="request" />
<result property="finishTime" column="finish_time" />
<result property="wmsTraycode" column="wms_traycode" />
<result property="wmsTaskNo" column="wms_task_no" />
<result property="status" column="status" />
<result property="taskCode" column="task_code" />
<result property="wmsTaskType" column="wms_task_type" />
</resultMap>
<sql id="selectAgvQueueVo">
select req_code, req_time, position_code_1, position_code_2, task_type, ctnr_type, ctnr_code, ctnr_num, task_mode, priority, agv_type, request, finish_time, wms_traycode, wms_task_no,status,task_code,wms_task_type from agv_queue
</sql>
<select id="selectAgvQueueList" parameterType="AgvQueue" resultMap="AgvQueueResult">
<include refid="selectAgvQueueVo"/>
<where>
<if test="reqTime != null and reqTime != ''"> and req_time = #{reqTime}</if>
<if test="positionCode1 != null and positionCode1 != ''"> and position_code_1 = #{positionCode1}</if>
<if test="positionCode2 != null and positionCode2 != ''"> and position_code_2 = #{positionCode2}</if>
<if test="taskType != null and taskType != ''"> and task_type = #{taskType}</if>
<if test="ctnrType != null and ctnrType != ''"> and ctnr_type = #{ctnrType}</if>
<if test="ctnrCode != null and ctnrCode != ''"> and ctnr_code = #{ctnrCode}</if>
<if test="ctnrNum != null and ctnrNum != ''"> and ctnr_num = #{ctnrNum}</if>
<if test="taskMode != null and taskMode != ''"> and task_mode = #{taskMode}</if>
<if test="priority != null and priority != ''"> and priority = #{priority}</if>
<if test="agvType != null and agvType != ''"> and agv_type = #{agvType}</if>
<if test="request != null and request != ''"> and request = #{request}</if>
<if test="finishTime != null and finishTime != ''"> and finish_time = #{finishTime}</if>
<if test="wmsTraycode != null and wmsTraycode != ''"> and wms_traycode = #{wmsTraycode}</if>
<if test="wmsTaskNo != null and wmsTaskNo != ''"> and wms_task_no = #{wmsTaskNo}</if>
<if test="status != null and status != ''"> and status = #{status}</if>
<if test="taskCode != null and taskCode != ''"> and task_code = #{taskCode}</if>
<if test="wmsTaskType != null and wmsTaskType != ''"> and wms_task_type = #{wmsTaskType}</if>
</where>
order by req_time desc
</select>
<select id="selectAgvQueueByReqCode" parameterType="String" resultMap="AgvQueueResult">
<include refid="selectAgvQueueVo"/>
where req_code = #{reqCode}
</select>
<select id="selectAgvQueueByTaskCode" parameterType="String" resultMap="AgvQueueResult">
<include refid="selectAgvQueueVo"/>
where task_code = #{taskCode}
</select>
<insert id="insertAgvQueue" parameterType="AgvQueue">
insert into agv_queue
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="reqCode != null">req_code,</if>
<if test="reqTime != null">req_time,</if>
<if test="positionCode1 != null">position_code_1,</if>
<if test="positionCode2 != null">position_code_2,</if>
<if test="taskType != null">task_type,</if>
<if test="ctnrType != null">ctnr_type,</if>
<if test="ctnrCode != null">ctnr_code,</if>
<if test="ctnrNum != null">ctnr_num,</if>
<if test="taskMode != null">task_mode,</if>
<if test="priority != null">priority,</if>
<if test="agvType != null">agv_type,</if>
<if test="request != null">request,</if>
<if test="finishTime != null">finish_time,</if>
<if test="wmsTraycode != null">wms_traycode,</if>
<if test="wmsTaskNo != null">wms_task_no,</if>
<if test="status != null">status,</if>
<if test="taskCode != null">task_code,</if>
<if test="wmsTaskType != null">wms_task_type,</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="reqCode != null">#{reqCode},</if>
<if test="reqTime != null">#{reqTime},</if>
<if test="positionCode1 != null">#{positionCode1},</if>
<if test="positionCode2 != null">#{positionCode2},</if>
<if test="taskType != null">#{taskType},</if>
<if test="ctnrType != null">#{ctnrType},</if>
<if test="ctnrCode != null">#{ctnrCode},</if>
<if test="ctnrNum != null">#{ctnrNum},</if>
<if test="taskMode != null">#{taskMode},</if>
<if test="priority != null">#{priority},</if>
<if test="agvType != null">#{agvType},</if>
<if test="request != null">#{request},</if>
<if test="finishTime != null">#{finishTime},</if>
<if test="wmsTraycode != null">#{wmsTraycode},</if>
<if test="wmsTaskNo != null">#{wmsTaskNo},</if>
<if test="status != null">#{status},</if>
<if test="taskCode != null">#{taskCode},</if>
<if test="wmsTaskType != null">#{wmsTaskType},</if>
</trim>
</insert>
<insert id="insertHistory">
insert into agv_queue_finish
select *
from agv_queue
where req_code = #{reqCode}
</insert>
<update id="updateAgvQueue" parameterType="AgvQueue">
update agv_queue
<trim prefix="SET" suffixOverrides=",">
<if test="reqTime != null">req_time = #{reqTime},</if>
<if test="positionCode1 != null">position_code_1 = #{positionCode1},</if>
<if test="positionCode2 != null">position_code_2 = #{positionCode2},</if>
<if test="taskType != null">task_type = #{taskType},</if>
<if test="ctnrType != null">ctnr_type = #{ctnrType},</if>
<if test="ctnrCode != null">ctnr_code = #{ctnrCode},</if>
<if test="ctnrNum != null">ctnr_num = #{ctnrNum},</if>
<if test="taskMode != null">task_mode = #{taskMode},</if>
<if test="priority != null">priority = #{priority},</if>
<if test="agvType != null">agv_type = #{agvType},</if>
<if test="request != null">request = #{request},</if>
<if test="finishTime != null">finish_time = #{finishTime},</if>
<if test="wmsTraycode != null">wms_traycode = #{wmsTraycode},</if>
<if test="wmsTaskNo != null">wms_task_no = #{wmsTaskNo},</if>
<if test="status != null">status = #{status},</if>
</trim>
where req_code = #{reqCode}
</update>
<delete id="deleteAgvQueueByReqCode" parameterType="String">
delete from agv_queue where req_code = #{reqCode}
</delete>
<delete id="deleteAgvQueueByReqCodes" parameterType="String">
delete from agv_queue where req_code in
<foreach item="reqCode" collection="array" open="(" separator="," close=")">
#{reqCode}
</foreach>
</delete>
</mapper>

View File

@@ -0,0 +1,120 @@
<?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.ruoyi.device.DeviceCar.mapper.DeviceCarMapper">
<resultMap type="DeviceCar" id="DeviceCarResult">
<result property="id" column="id" />
<result property="deviceCode " column="device_code " />
<result property="name " column="name " />
<result property="type" column="type" />
<result property="ipAddress" column="ip_address" />
<result property="bufferAreaId " column="buffer_area_id " />
<result property="isActive" column="is_active" />
<result property="createTime" column="create_time" />
<result property="status" column="status" />
<result property="spare1" column="spare1" />
<result property="spare2" column="spare2" />
<result property="spare3" column="spare3" />
<result property="spare4" column="spare4" />
<result property="taskNo" column="task_no" />
<result property="zxjd" column="zxjd" />
</resultMap>
<sql id="selectDeviceCarVo">
select id, device_code , name , type, ip_address, buffer_area_id , is_active, create_time, status, spare1, spare2, spare3, spare4, task_no, zxjd from device_car
</sql>
<select id="selectDeviceCarList" parameterType="DeviceCar" resultMap="DeviceCarResult">
<include refid="selectDeviceCarVo"/>
<where>
<if test="deviceCode != null and deviceCode != ''"> and device_code = #{deviceCode }</if>
<if test="name != null and name != ''"> and name like concat('%',#{name },'%')</if>
<if test="type != null and type != ''"> and type = #{type}</if>
<if test="ipAddress != null and ipAddress != ''"> and ip_address like concat('%',#{ipAddress},'%')</if>
<if test="bufferAreaId != null and bufferAreaId != ''"> and buffer_area_id like concat('%',#{bufferAreaId },'%')</if>
<if test="isActive != null and isActive != ''"> and is_active like concat('%',#{isActive},'%')</if>
<if test="status != null and status != ''"> and status like concat('%',#{status},'%')</if>
<if test="spare1 != null and spare1 != ''"> and spare1 like concat('%',#{spare1},'%')</if>
<if test="spare2 != null and spare2 != ''"> and spare2 like concat('%',#{spare2},'%')</if>
<if test="spare3 != null and spare3 != ''"> and spare3 like concat('%',#{spare3},'%')</if>
<if test="spare4 != null and spare4 != ''"> and spare4 like concat('%',#{spare4},'%')</if>
<if test="taskNo != null and taskNo != ''"> and task_no like concat('%',#{taskNo},'%')</if>
<if test="zxjd != null and zxjd != ''"> and zxjd = #{zxjd}</if>
</where>
</select>
<select id="selectDeviceCarById" parameterType="Long" resultMap="DeviceCarResult">
<include refid="selectDeviceCarVo"/>
where id = #{id}
</select>
<insert id="insertDeviceCar" parameterType="DeviceCar" useGeneratedKeys="true" keyProperty="id">
insert into device_car
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="deviceCode != null">device_code ,</if>
<if test="name != null">name ,</if>
<if test="type != null">type,</if>
<if test="ipAddress != null">ip_address,</if>
<if test="bufferAreaId != null">buffer_area_id ,</if>
<if test="isActive != null">is_active,</if>
<if test="createTime != null">create_time,</if>
<if test="status != null">status,</if>
<if test="spare1 != null">spare1,</if>
<if test="spare2 != null">spare2,</if>
<if test="spare3 != null">spare3,</if>
<if test="spare4 != null">spare4,</if>
<if test="taskNo != null">task_no,</if>
<if test="zxjd != null">zxjd,</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="deviceCode != null">#{deviceCode },</if>
<if test="name != null">#{name },</if>
<if test="type != null">#{type},</if>
<if test="ipAddress != null">#{ipAddress},</if>
<if test="bufferAreaId != null">#{bufferAreaId },</if>
<if test="isActive != null">#{isActive},</if>
<if test="createTime != null">#{createTime},</if>
<if test="status != null">#{status},</if>
<if test="spare1 != null">#{spare1},</if>
<if test="spare2 != null">#{spare2},</if>
<if test="spare3 != null">#{spare3},</if>
<if test="spare4 != null">#{spare4},</if>
<if test="taskNo != null">#{taskNo},</if>
<if test="zxjd != null">#{zxjd},</if>
</trim>
</insert>
<update id="updateDeviceCar" parameterType="DeviceCar">
update device_car
<trim prefix="SET" suffixOverrides=",">
<if test="deviceCode != null">device_code = #{deviceCode },</if>
<if test="name != null">name = #{name },</if>
<if test="type != null">type = #{type},</if>
<if test="ipAddress != null">ip_address = #{ipAddress},</if>
<if test="bufferAreaId != null">buffer_area_id = #{bufferAreaId },</if>
<if test="isActive != null">is_active = #{isActive},</if>
<if test="createTime != null">create_time = #{createTime},</if>
<if test="status != null">status = #{status},</if>
<if test="spare1 != null">spare1 = #{spare1},</if>
<if test="spare2 != null">spare2 = #{spare2},</if>
<if test="spare3 != null">spare3 = #{spare3},</if>
<if test="spare4 != null">spare4 = #{spare4},</if>
<if test="taskNo != null">task_no = #{taskNo},</if>
<if test="zxjd != null">zxjd = #{zxjd},</if>
</trim>
where id = #{id}
</update>
<delete id="deleteDeviceCarById" parameterType="Long">
delete from device_car where id = #{id}
</delete>
<delete id="deleteDeviceCarByIds" parameterType="String">
delete from device_car where id in
<foreach item="id" collection="array" open="(" separator="," close=")">
#{id}
</foreach>
</delete>
</mapper>

View File

@@ -0,0 +1,121 @@
<?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.ruoyi.device.ssj.mapper.DeviceSsjMapper">
<resultMap type="DeviceSsj" id="DeviceSsjResult">
<result property="id" column="id" />
<result property="deviceCode " column="device_code " />
<result property="name " column="name " />
<result property="type" column="type" />
<result property="ipAddress" column="ip_address" />
<result property="plcDbReadAddress" column="plc_db_read_address" />
<result property="isActive" column="is_active" />
<result property="createTime" column="create_time" />
<result property="plcDbWriteAddress" column="plc_db_write_address" />
<result property="rkqq" column="rkqq" />
<result property="kx" column="kx" />
<result property="dw" column="dw" />
<result property="trayCode" column="tray_code" />
<result property="taskNo" column="task_no" />
<result property="exception" column="exception" />
<result property="traySize" column="tray_size" />
<result property="allowPut" column="allow_put" />
</resultMap>
<sql id="selectDeviceSsjVo">
select id, device_code , name , type, ip_address, plc_db_read_address, is_active, create_time, plc_db_write_address, rkqq, kx, dw, tray_code, task_no,exception,tray_size,allow_put from device_ssj
</sql>
<select id="selectDeviceSsjList" parameterType="DeviceSsj" resultMap="DeviceSsjResult">
<include refid="selectDeviceSsjVo"/>
<where>
<if test="deviceCode != null and deviceCode != ''"> and device_code = #{deviceCode }</if>
<if test="name != null and name != ''"> and name = #{name }</if>
<if test="type != null and type != ''"> and type = #{type}</if>
<if test="ipAddress != null and ipAddress != ''"> and ip_address = #{ipAddress}</if>
<if test="plcDbReadAddress != null and plcDbReadAddress != ''"> and plc_db_read_address = #{plcDbReadAddress}</if>
<if test="isActive != null and isActive != ''"> and is_active = #{isActive}</if>
<if test="plcDbWriteAddress != null and plcDbWriteAddress != ''"> and plc_db_write_address = #{plcDbWriteAddress}</if>
<if test="rkqq != null and rkqq != ''"> and rkqq = #{rkqq}</if>
<if test="kx != null and kx != ''"> and kx = #{kx}</if>
<if test="dw != null and dw != ''"> and dw = #{dw}</if>
<if test="trayCode != null and trayCode != ''"> and tray_code = #{trayCode}</if>
<if test="taskNo != null and taskNo != ''"> and task_no = #{taskNo}</if>
<if test="exception != null and exception != ''"> and exception = #{exception}</if>
<if test="traySize != null and traySize != ''"> and tray_size = #{traySize}</if>
<if test="allowPut != null and allowPut != ''"> and allow_put = #{allowPut}</if>
</where>
</select>
<select id="selectDeviceSsjById" parameterType="Long" resultMap="DeviceSsjResult">
<include refid="selectDeviceSsjVo"/>
where id = #{id}
</select>
<select id="selectSendData" resultMap="DeviceSsjResult">
select id, device_code , name , type, ip_address, plc_db_read_address, is_active, create_time, plc_db_write_address, rkqq, kx, dw, tray_code, task_no,exception,tray_size,allow_put from device_ssj_test
where id = #{id}
</select>
<insert id="insertDeviceSsj" parameterType="DeviceSsj" useGeneratedKeys="true" keyProperty="id">
insert into device_ssj
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="deviceCode != null">device_code ,</if>
<if test="name != null">name ,</if>
<if test="type != null">type,</if>
<if test="ipAddress != null">ip_address,</if>
<if test="plcDbReadAddress != null">plc_db_read_address,</if>
<if test="isActive != null">is_active,</if>
<if test="createTime != null">create_time,</if>
<if test="plcDbWriteAddress != null">plc_db_write_address,</if>
<if test="rkqq != null">rkqq,</if>
<if test="kx != null">kx,</if>
<if test="dw != null">dw,</if>
<if test="trayCode != null">tray_code,</if>
<if test="taskNo != null">task_no,</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="deviceCode != null">#{deviceCode },</if>
<if test="name != null">#{name },</if>
<if test="type != null">#{type},</if>
<if test="ipAddress != null">#{ipAddress},</if>
<if test="plcDbReadAddress != null">#{plcDbReadAddress},</if>
<if test="isActive != null">#{isActive},</if>
<if test="createTime != null">#{createTime},</if>
<if test="plcDbWriteAddress != null">#{plcDbWriteAddress},</if>
<if test="rkqq != null">#{rkqq},</if>
<if test="kx != null">#{kx},</if>
<if test="dw != null">#{dw},</if>
<if test="trayCode != null">#{trayCode},</if>
<if test="taskNo != null">#{taskNo},</if>
</trim>
</insert>
<update id="updateDeviceSsj" parameterType="DeviceSsj">
update device_ssj
<trim prefix="SET" suffixOverrides=",">
<if test="rkqq != null">rkqq = #{rkqq},</if>
<if test="kx != null">kx = #{kx},</if>
<if test="dw != null">dw = #{dw},</if>
<if test="trayCode != null">tray_code = #{trayCode},</if>
<if test="taskNo != null">task_no = #{taskNo},</if>
<if test="exception != null">exception = #{exception},</if>
<if test="traySize != null">tray_size = #{traySize},</if>
<if test="allowPut != null">allow_put = #{allowPut},</if>
</trim>
where id = #{id}
</update>
<delete id="deleteDeviceSsjById" parameterType="Long">
delete from device_ssj where id = #{id}
</delete>
<delete id="deleteDeviceSsjByIds" parameterType="String">
delete from device_ssj where id in
<foreach item="id" collection="array" open="(" separator="," close=")">
#{id}
</foreach>
</delete>
</mapper>

View File

@@ -0,0 +1,147 @@
<?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.ruoyi.device.ddj.mapper.MsgDdjMapper">
<resultMap type="MsgDdj" id="MsgDdjResult">
<result property="id" column="id" />
<result property="name" column="name" />
<result property="rwh" column="rwh" />
<result property="jdbz" column="jdbz" />
<result property="sbzt" column="sbzt" />
<result property="czfs" column="czfs" />
<result property="yxxf" column="yxxf" />
<result property="yph" column="yph" />
<result property="ylh" column="ylh" />
<result property="ych" column="ych" />
<result property="mbph" column="mbph" />
<result property="mblh" column="mblh" />
<result property="mbch" column="mbch" />
<result property="xtxh" column="xtxh" />
<result property="dqxd" column="dqxd" />
<result property="hczt" column="hczt" />
<result property="spare1" column="spare1" />
<result property="spare2" column="spare2" />
<result property="spare3" column="spare3" />
</resultMap>
<sql id="selectMsgDdjVo">
select id, name, rwh, jdbz, sbzt, czfs, yxxf, yph, ylh, ych, mbph, mblh, mbch, xtxh, dqxd, hczt, spare1, spare2, spare3 from msg_ddj
</sql>
<select id="selectMsgDdjList" parameterType="MsgDdj" resultMap="MsgDdjResult">
<include refid="selectMsgDdjVo"/>
<where>
<if test="name != null and name != ''"> and name like concat('%', #{name}, '%')</if>
<if test="rwh != null "> and rwh = #{rwh}</if>
<if test="jdbz != null "> and jdbz = #{jdbz}</if>
<if test="sbzt != null "> and sbzt = #{sbzt}</if>
<if test="czfs != null "> and czfs = #{czfs}</if>
<if test="yxxf != null "> and yxxf = #{yxxf}</if>
<if test="yph != null "> and yph = #{yph}</if>
<if test="ylh != null "> and ylh = #{ylh}</if>
<if test="ych != null "> and ych = #{ych}</if>
<if test="mbph != null "> and mbph = #{mbph}</if>
<if test="mblh != null "> and mblh = #{mblh}</if>
<if test="mbch != null "> and mbch = #{mbch}</if>
<if test="xtxh != null "> and xtxh = #{xtxh}</if>
<if test="dqxd != null "> and dqxd = #{dqxd}</if>
<if test="hczt != null "> and hczt = #{hczt}</if>
<if test="spare1 != null "> and spare1 = #{spare1}</if>
<if test="spare2 != null "> and spare2 = #{spare2}</if>
<if test="spare3 != null "> and spare3 = #{spare3}</if>
</where>
</select>
<select id="selectMsgDdjById" parameterType="Long" resultMap="MsgDdjResult">
<include refid="selectMsgDdjVo"/>
where id = #{id}
</select>
<select id="selectSendData" resultMap="MsgDdjResult">
select id, name, rwh, jdbz, sbzt, czfs, yxxf, yph, ylh, ych, mbph, mblh, mbch, xtxh, dqxd, hczt, spare1, spare2, spare3 from msg_ddj_test
where id = #{id}
</select>
<insert id="insertMsgDdj" parameterType="MsgDdj">
insert into msg_ddj
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="id != null">id,</if>
<if test="name != null">name,</if>
<if test="rwh != null">rwh,</if>
<if test="jdbz != null">jdbz,</if>
<if test="sbzt != null">sbzt,</if>
<if test="czfs != null">czfs,</if>
<if test="yxxf != null">yxxf,</if>
<if test="yph != null">yph,</if>
<if test="ylh != null">ylh,</if>
<if test="ych != null">ych,</if>
<if test="mbph != null">mbph,</if>
<if test="mblh != null">mblh,</if>
<if test="mbch != null">mbch,</if>
<if test="xtxh != null">xtxh,</if>
<if test="dqxd != null">dqxd,</if>
<if test="hczt != null">hczt,</if>
<if test="spare1 != null">spare1,</if>
<if test="spare2 != null">spare2,</if>
<if test="spare3 != null">spare3,</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="id != null">#{id},</if>
<if test="name != null">#{name},</if>
<if test="rwh != null">#{rwh},</if>
<if test="jdbz != null">#{jdbz},</if>
<if test="sbzt != null">#{sbzt},</if>
<if test="czfs != null">#{czfs},</if>
<if test="yxxf != null">#{yxxf},</if>
<if test="yph != null">#{yph},</if>
<if test="ylh != null">#{ylh},</if>
<if test="ych != null">#{ych},</if>
<if test="mbph != null">#{mbph},</if>
<if test="mblh != null">#{mblh},</if>
<if test="mbch != null">#{mbch},</if>
<if test="xtxh != null">#{xtxh},</if>
<if test="dqxd != null">#{dqxd},</if>
<if test="hczt != null">#{hczt},</if>
<if test="spare1 != null">#{spare1},</if>
<if test="spare2 != null">#{spare2},</if>
<if test="spare3 != null">#{spare3},</if>
</trim>
</insert>
<update id="updateMsgDdj" parameterType="MsgDdj">
update msg_ddj
<trim prefix="SET" suffixOverrides=",">
<if test="name != null">name = #{name},</if>
<if test="rwh != null">rwh = #{rwh},</if>
<if test="jdbz != null">jdbz = #{jdbz},</if>
<if test="sbzt != null">sbzt = #{sbzt},</if>
<if test="czfs != null">czfs = #{czfs},</if>
<if test="yxxf != null">yxxf = #{yxxf},</if>
<if test="yph != null">yph = #{yph},</if>
<if test="ylh != null">ylh = #{ylh},</if>
<if test="ych != null">ych = #{ych},</if>
<if test="mbph != null">mbph = #{mbph},</if>
<if test="mblh != null">mblh = #{mblh},</if>
<if test="mbch != null">mbch = #{mbch},</if>
<if test="xtxh != null">xtxh = #{xtxh},</if>
<if test="dqxd != null">dqxd = #{dqxd},</if>
<if test="hczt != null">hczt = #{hczt},</if>
<if test="spare1 != null">spare1 = #{spare1},</if>
<if test="spare2 != null">spare2 = #{spare2},</if>
<if test="spare3 != null">spare3 = #{spare3},</if>
</trim>
where id = #{id}
</update>
<delete id="deleteMsgDdjById" parameterType="Long">
delete from msg_ddj where id = #{id}
</delete>
<delete id="deleteMsgDdjByIds" parameterType="String">
delete from msg_ddj where id in
<foreach item="id" collection="array" open="(" separator="," close=")">
#{id}
</foreach>
</delete>
</mapper>

View File

@@ -0,0 +1,123 @@
<?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.ruoyi.api.mapper.RequestLogMapper">
<resultMap type="RequestLog" id="RequestLogResult">
<result property="requestId" column="request_id" />
<result property="requestTime" column="request_time" />
<result property="sourceSystem" column="source_system" />
<result property="targetSystem" column="target_system" />
<result property="endpoint" column="endpoint" />
<result property="requestUrl" column="request_url" />
<result property="requestMethod" column="request_method" />
<result property="requestHeaders" column="request_headers" />
<result property="requestBody" column="request_body" />
<result property="responseTime" column="response_time" />
<result property="responseBody" column="response_body" />
<result property="responseStatus" column="response_status" />
<result property="errorDetails" column="error_details" />
<result property="duration" column="duration" />
<result property="isSuccessful" column="Is_successful" />
</resultMap>
<sql id="selectRequestLogVo">
select request_id, request_time, source_system, target_system, endpoint, request_url, request_method, request_headers, request_body, response_time, response_body, response_status, error_details, duration, Is_successful from request_log
</sql>
<select id="selectRequestLogList" parameterType="RequestLog" resultMap="RequestLogResult">
<include refid="selectRequestLogVo"/>
<where>
<if test="requestTime != null and requestTime != ''"> and request_time = #{requestTime}</if>
<if test="sourceSystem != null and sourceSystem != ''"> and source_system = #{sourceSystem}</if>
<if test="targetSystem != null and targetSystem != ''"> and target_system = #{targetSystem}</if>
<if test="endpoint != null and endpoint != ''"> and endpoint = #{endpoint}</if>
<if test="requestUrl != null and requestUrl != ''"> and request_url = #{requestUrl}</if>
<if test="requestMethod != null and requestMethod != ''"> and request_method = #{requestMethod}</if>
<if test="requestHeaders != null and requestHeaders != ''"> and request_headers = #{requestHeaders}</if>
<if test="requestBody != null and requestBody != ''"> and request_body like concat('%',#{requestBody},'%') </if>
<if test="responseTime != null and responseTime != ''"> and response_time = #{responseTime}</if>
<if test="responseBody != null and responseBody != ''"> and response_body = #{responseBody}</if>
<if test="responseStatus != null and responseStatus != ''"> and response_status = #{responseStatus}</if>
<if test="errorDetails != null and errorDetails != ''"> and error_details = #{errorDetails}</if>
<if test="duration != null and duration != ''"> and duration = #{duration}</if>
<if test="isSuccessful != null and isSuccessful != ''"> and Is_successful = #{isSuccessful}</if>
</where>
</select>
<select id="selectRequestLogByRequestId" parameterType="Long" resultMap="RequestLogResult">
<include refid="selectRequestLogVo"/>
where request_id = #{requestId}
</select>
<insert id="insertRequestLog" parameterType="RequestLog">
insert into request_log
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="requestId != null">request_id,</if>
<if test="requestTime != null">request_time,</if>
<if test="sourceSystem != null">source_system,</if>
<if test="targetSystem != null">target_system,</if>
<if test="endpoint != null">endpoint,</if>
<if test="requestUrl != null">request_url,</if>
<if test="requestMethod != null">request_method,</if>
<if test="requestHeaders != null">request_headers,</if>
<if test="requestBody != null">request_body,</if>
<if test="responseTime != null">response_time,</if>
<if test="responseBody != null">response_body,</if>
<if test="responseStatus != null">response_status,</if>
<if test="errorDetails != null">error_details,</if>
<if test="duration != null">duration,</if>
<if test="isSuccessful != null">Is_successful,</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="requestId != null">#{requestId},</if>
<if test="requestTime != null">#{requestTime},</if>
<if test="sourceSystem != null">#{sourceSystem},</if>
<if test="targetSystem != null">#{targetSystem},</if>
<if test="endpoint != null">#{endpoint},</if>
<if test="requestUrl != null">#{requestUrl},</if>
<if test="requestMethod != null">#{requestMethod},</if>
<if test="requestHeaders != null">#{requestHeaders},</if>
<if test="requestBody != null">#{requestBody},</if>
<if test="responseTime != null">#{responseTime},</if>
<if test="responseBody != null">#{responseBody},</if>
<if test="responseStatus != null">#{responseStatus},</if>
<if test="errorDetails != null">#{errorDetails},</if>
<if test="duration != null">#{duration},</if>
<if test="isSuccessful != null">#{isSuccessful},</if>
</trim>
</insert>
<update id="updateRequestLog" parameterType="RequestLog">
update request_log
<trim prefix="SET" suffixOverrides=",">
<if test="requestTime != null">request_time = #{requestTime},</if>
<if test="sourceSystem != null">source_system = #{sourceSystem},</if>
<if test="targetSystem != null">target_system = #{targetSystem},</if>
<if test="endpoint != null">endpoint = #{endpoint},</if>
<if test="requestUrl != null">request_url = #{requestUrl},</if>
<if test="requestMethod != null">request_method = #{requestMethod},</if>
<if test="requestHeaders != null">request_headers = #{requestHeaders},</if>
<if test="requestBody != null">request_body = #{requestBody},</if>
<if test="responseTime != null">response_time = #{responseTime},</if>
<if test="responseBody != null">response_body = #{responseBody},</if>
<if test="responseStatus != null">response_status = #{responseStatus},</if>
<if test="errorDetails != null">error_details = #{errorDetails},</if>
<if test="duration != null">duration = #{duration},</if>
<if test="isSuccessful != null">Is_successful = #{isSuccessful},</if>
</trim>
where request_id = #{requestId}
</update>
<delete id="deleteRequestLogByRequestId" parameterType="Long">
delete from request_log where request_id = #{requestId}
</delete>
<delete id="deleteRequestLogByRequestIds" parameterType="String">
delete from request_log where request_id in
<foreach item="requestId" collection="array" open="(" separator="," close=")">
#{requestId}
</foreach>
</delete>
</mapper>

View File

@@ -0,0 +1,94 @@
<?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.ruoyi.job.mapper.JobCallBackMapper">
<resultMap type="JobCallBack" id="JobCallBackResult">
<result property="id" column="id" />
<result property="type" column="type" />
<result property="taskNo" column="task_no" />
<result property="mydojobId" column="mydojob_id" />
<result property="status" column="status" />
<result property="createTime" column="create_time" />
<result property="spare1" column="spare1" />
<result property="spare2" column="spare2" />
<result property="spare3" column="spare3" />
</resultMap>
<sql id="selectJobCallBackVo">
select id, type, task_no, mydojob_id, status, create_time, spare1, spare2, spare3 from job_call_back
</sql>
<select id="selectJobCallBackList" parameterType="JobCallBack" resultMap="JobCallBackResult">
<include refid="selectJobCallBackVo"/>
<where>
<if test="type != null and type != ''"> and type = #{type}</if>
<if test="taskNo != null "> and task_no = #{taskNo}</if>
<if test="mydojobId != null and mydojobId != ''"> and mydojob_id = #{mydojobId}</if>
<if test="status != null and status != ''"> and status = #{status}</if>
<if test="spare1 != null and spare1 != ''"> and spare1 = #{spare1}</if>
<if test="spare2 != null and spare2 != ''"> and spare2 = #{spare2}</if>
<if test="spare3 != null and spare3 != ''"> and spare3 = #{spare3}</if>
</where>
</select>
<select id="selectJobCallBackById" parameterType="Long" resultMap="JobCallBackResult">
<include refid="selectJobCallBackVo"/>
where id = #{id}
</select>
<select id="selectJobCallBackListNoSuccess" resultMap="JobCallBackResult">
<include refid="selectJobCallBackVo"/>
where status != '1'
</select>
<insert id="insertJobCallBack" parameterType="JobCallBack" useGeneratedKeys="true" keyProperty="id">
insert into job_call_back
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="type != null">type,</if>
<if test="taskNo != null">task_no,</if>
<if test="mydojobId != null">mydojob_id,</if>
<if test="status != null">status,</if>
<if test="createTime != null">create_time,</if>
<if test="spare1 != null">spare1,</if>
<if test="spare2 != null">spare2,</if>
<if test="spare3 != null">spare3,</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="type != null">#{type},</if>
<if test="taskNo != null">#{taskNo},</if>
<if test="mydojobId != null">#{mydojobId},</if>
<if test="status != null">#{status},</if>
<if test="createTime != null">#{createTime},</if>
<if test="spare1 != null">#{spare1},</if>
<if test="spare2 != null">#{spare2},</if>
<if test="spare3 != null">#{spare3},</if>
</trim>
</insert>
<update id="updateJobCallBack" parameterType="JobCallBack">
update job_call_back
<trim prefix="SET" suffixOverrides=",">
<if test="type != null">type = #{type},</if>
<if test="taskNo != null">task_no = #{taskNo},</if>
<if test="mydojobId != null">mydojob_id = #{mydojobId},</if>
<if test="status != null">status = #{status},</if>
<if test="createTime != null">create_time = #{createTime},</if>
<if test="spare1 != null">spare1 = #{spare1},</if>
<if test="spare2 != null">spare2 = #{spare2},</if>
<if test="spare3 != null">spare3 = #{spare3},</if>
</trim>
where id = #{id}
</update>
<delete id="deleteJobCallBackById" parameterType="Long">
delete from job_call_back where id = #{id}
</delete>
<delete id="deleteJobCallBackByIds" parameterType="String">
delete from job_call_back where id in
<foreach item="id" collection="array" open="(" separator="," close=")">
#{id}
</foreach>
</delete>
</mapper>

View File

@@ -0,0 +1,234 @@
<?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.ruoyi.job.mapper.MydoJobMapper">
<resultMap type="MydoJob" id="MydoJobResult">
<result property="jobId" column="job_id" />
<result property="status" column="status" />
<result property="taskNo" column="task_no" />
<result property="roadwayId" column="roadway_id" />
<result property="cargoSpaceId" column="cargo_space_id" />
<result property="targetRoadwayId" column="target_roadway_id" />
<result property="targetCargoSpaceId" column="target_cargo_space_id" />
<result property="priority" column="priority" />
<result property="executionPhase" column="execution_phase" />
<result property="inOrOut" column="in_or_out" />
<result property="createTime" column="create_time" />
<result property="startTime" column="start_time" />
<result property="finishTime" column="finish_time" />
<result property="entranceId" column="entrance_id" />
<result property="exitId" column="exit_id" />
<result property="warehouseId" column="warehouse_id" />
<result property="faultFlag" column="fault_flag" />
</resultMap>
<sql id="selectMydoJobVo">
select job_id, status, task_no, roadway_id, cargo_space_id, target_roadway_id, target_cargo_space_id, priority, execution_phase, in_or_out, create_time, start_time, finish_time, entrance_id, exit_id, warehouse_id, fault_flag from mydo_job_wcs
</sql>
<sql id="selectMydoJobFinishVo">
select job_id, status, task_no, roadway_id, cargo_space_id, target_roadway_id, target_cargo_space_id, priority, execution_phase, in_or_out, create_time, start_time, finish_time, entrance_id, exit_id, warehouse_id, fault_flag from mydo_job_wcs_finish
</sql>
<select id="selectMydoJobList" parameterType="MydoJob" resultMap="MydoJobResult">
<include refid="selectMydoJobVo"/>
<where>
<if test="status != null and status != ''"> and status = #{status}</if>
<if test="taskNo != null and taskNo != ''"> and task_no = #{taskNo}</if>
<if test="roadwayId != null and roadwayId != ''"> and roadway_id = #{roadwayId}</if>
<if test="cargoSpaceId != null and cargoSpaceId != ''"> and cargo_space_id = #{cargoSpaceId}</if>
<if test="targetRoadwayId != null and targetRoadwayId != ''"> and target_roadway_id = #{targetRoadwayId}</if>
<if test="targetCargoSpaceId != null and targetCargoSpaceId != ''"> and target_cargo_space_id = #{targetCargoSpaceId}</if>
<if test="priority != null "> and priority = #{priority}</if>
<if test="executionPhase != null and executionPhase != ''"> and execution_phase = #{executionPhase}</if>
<if test="inOrOut != null and inOrOut != ''"> and in_or_out = #{inOrOut}</if>
<if test="startTime != null and startTime != ''"> and start_time = #{startTime}</if>
<if test="finishTime != null and finishTime != ''"> and finish_time = #{finishTime}</if>
<if test="entranceId != null and entranceId != ''"> and entrance_id = #{entranceId}</if>
<if test="exitId != null and exitId != ''"> and exit_id = #{exitId}</if>
<if test="warehouseId != null and warehouseId != ''"> and warehouse_id = #{warehouseId}</if>
<if test="faultFlag != null and faultFlag != ''"> and fault_flag = #{faultFlag}</if>
</where>
</select>
<select id="selectMydoJobByJobId" parameterType="String" resultMap="MydoJobResult">
<include refid="selectMydoJobVo"/>
where job_id = #{jobId}
</select>
<select id="selectMydoJobByTaskNo" parameterType="String" resultMap="MydoJobResult">
<include refid="selectMydoJobVo"/>
where task_no = #{taskNo}
</select>
<select id="ddjTaskFinish" parameterType="java.util.Map" statementType="CALLABLE">
{call proc_mydojob_finish(
#{v_rwh,mode=IN,jdbcType=INTEGER},
#{v_type,mode=IN,jdbcType=INTEGER},
#{v_ddj_id,mode=IN,jdbcType=INTEGER},
#{v_result,mode=OUT,jdbcType=INTEGER},
#{v_resultmsg,mode=OUT,jdbcType=VARCHAR}
)}
</select>
<select id="InvalidMydoJob" parameterType="java.util.Map" statementType="CALLABLE">
{call proc_mydojob_invalid(
#{v_rwh,mode=IN,jdbcType=INTEGER},
#{v_ddj_id,mode=IN,jdbcType=INTEGER},
#{v_result,mode=OUT,jdbcType=INTEGER},
#{v_resultmsg,mode=OUT,jdbcType=VARCHAR}
)}
</select>
<select id="selectMydoJobByExitList" resultMap="MydoJobResult">
select TOP 1 job_id, status, task_no, roadway_id, cargo_space_id, target_roadway_id, target_cargo_space_id, priority, execution_phase, in_or_out, create_time, start_time, finish_time, entrance_id, exit_id, warehouse_id, fault_flag from mydo_job_wcs
where exit_id in
<foreach item="item" index="index" collection="exitList" separator="," open="(" close=")">
#{item}
</foreach>
and in_or_out > 20
and status = 1 and execution_phase= 0
order by priority desc,create_time
</select>
<insert id="insertMydoJob" parameterType="MydoJob">
insert into mydo_job_wcs
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="jobId != null">job_id,</if>
<if test="status != null and status != ''">status,</if>
<if test="taskNo != null and taskNo != ''">task_no,</if>
<if test="roadwayId != null">roadway_id,</if>
<if test="cargoSpaceId != null">cargo_space_id,</if>
<if test="targetRoadwayId != null">target_roadway_id,</if>
<if test="targetCargoSpaceId != null">target_cargo_space_id,</if>
<if test="priority != null">priority,</if>
<if test="executionPhase != null">execution_phase,</if>
<if test="inOrOut != null">in_or_out,</if>
<if test="createTime != null">create_time,</if>
<if test="startTime != null">start_time,</if>
<if test="finishTime != null">finish_time,</if>
<if test="entranceId != null">entrance_id,</if>
<if test="exitId != null">exit_id,</if>
<if test="warehouseId != null">warehouse_id,</if>
<if test="faultFlag != null">fault_flag,</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="jobId != null">#{jobId},</if>
<if test="status != null and status != ''">#{status},</if>
<if test="taskNo != null and taskNo != ''">#{taskNo},</if>
<if test="roadwayId != null">#{roadwayId},</if>
<if test="cargoSpaceId != null">#{cargoSpaceId},</if>
<if test="targetRoadwayId != null">#{targetRoadwayId},</if>
<if test="targetCargoSpaceId != null">#{targetCargoSpaceId},</if>
<if test="priority != null">#{priority},</if>
<if test="executionPhase != null">#{executionPhase},</if>
<if test="inOrOut != null">#{inOrOut},</if>
<if test="createTime != null">#{createTime},</if>
<if test="startTime != null">#{startTime},</if>
<if test="finishTime != null">#{finishTime},</if>
<if test="entranceId != null">#{entranceId},</if>
<if test="exitId != null">#{exitId},</if>
<if test="warehouseId != null">#{warehouseId},</if>
<if test="faultFlag != null">#{faultFlag},</if>
</trim>
</insert>
<insert id="insertHistory">
insert into mydo_job_wcs_finish
select * from mydo_job_wcs where job_id = #{jobId}
</insert>
<update id="updateMydoJob" parameterType="MydoJob">
update mydo_job_wcs
<trim prefix="SET" suffixOverrides=",">
<if test="status != null and status != ''">status = #{status},</if>
<if test="taskNo != null and taskNo != ''">task_no = #{taskNo},</if>
<if test="roadwayId != null">roadway_id = #{roadwayId},</if>
<if test="cargoSpaceId != null">cargo_space_id = #{cargoSpaceId},</if>
<if test="targetRoadwayId != null">target_roadway_id = #{targetRoadwayId},</if>
<if test="targetCargoSpaceId != null">target_cargo_space_id = #{targetCargoSpaceId},</if>
<if test="priority != null">priority = #{priority},</if>
<if test="executionPhase != null">execution_phase = #{executionPhase},</if>
<if test="inOrOut != null">in_or_out = #{inOrOut},</if>
<if test="createTime != null">create_time = #{createTime},</if>
<if test="startTime != null">start_time = #{startTime},</if>
<if test="finishTime != null">finish_time = #{finishTime},</if>
<if test="entranceId != null">entrance_id = #{entranceId},</if>
<if test="exitId != null">exit_id = #{exitId},</if>
<if test="warehouseId != null">warehouse_id = #{warehouseId},</if>
<if test="faultFlag != null">fault_flag = #{faultFlag},</if>
</trim>
where job_id = #{jobId}
</update>
<delete id="deleteMydoJobByJobId" parameterType="String">
delete from mydo_job_wcs where job_id = #{jobId}
</delete>
<delete id="deleteMydoJobByJobIds" parameterType="String">
delete from mydo_job_wcs where job_id in
<foreach item="jobId" collection="array" open="(" separator="," close=")">
#{jobId}
</foreach>
</delete>
<select id="selectInOrOutMydoJobList" parameterType="MydoJob" resultMap="MydoJobResult">
<include refid="selectMydoJobVo"/>
<where>
<if test="inOut != null and inOut != '' and inOut =='2'.toString "> and in_or_out >=20</if>
<if test="inOut != null and inOut != '' and inOut =='1'.toString "> and in_or_out &lt; 20</if>
<if test="status != null and status != ''"> and status = #{status}</if>
<if test="taskNo != null and taskNo != ''"> and task_no = #{taskNo}</if>
<if test="roadwayId != null and roadwayId != ''"> and roadway_id = #{roadwayId}</if>
<if test="cargoSpaceId != null and cargoSpaceId != ''"> and cargo_space_id = #{cargoSpaceId}</if>
<if test="targetRoadwayId != null and targetRoadwayId != ''"> and target_roadway_id = #{targetRoadwayId}</if>
<if test="targetCargoSpaceId != null and targetCargoSpaceId != ''"> and target_cargo_space_id = #{targetCargoSpaceId}</if>
<if test="priority != null "> and priority = #{priority}</if>
<if test="executionPhase != null and executionPhase != ''"> and execution_phase = #{executionPhase}</if>
<if test="inOrOut != null and inOrOut != ''"> and in_or_out = #{inOrOut}</if>
<if test="startTime != null and startTime != ''"> and start_time = #{startTime}</if>
<if test="finishTime != null and finishTime != ''"> and finish_time = #{finishTime}</if>
<if test="entranceId != null and entranceId != ''"> and entrance_id = #{entranceId}</if>
<if test="exitId != null and exitId != ''"> and exit_id = #{exitId}</if>
<if test="warehouseId != null and warehouseId != ''"> and warehouse_id = #{warehouseId}</if>
<if test="faultFlag != null and faultFlag != ''"> and fault_flag = #{faultFlag}</if>
<if test="jobId != null and jobId != ''"> and job_id = #{jobId}</if>
</where>
</select>
<select id="selectMydoJobByEntranceList" resultMap="MydoJobResult">
select TOP 1 job_id, status, task_no, roadway_id, cargo_space_id, target_roadway_id, target_cargo_space_id, priority, execution_phase, in_or_out, create_time, start_time, finish_time, entrance_id, exit_id, warehouse_id, fault_flag from mydo_job_wcs
where entrance_id in
<foreach item="item" index="index" collection="entranceList" separator="," open="(" close=")">
#{item}
</foreach>
and in_or_out &lt;= 20 and status = 3
order by priority desc,create_time desc
</select>
<select id="selectMydoJobFinishList" resultMap="MydoJobResult">
<include refid="selectMydoJobFinishVo"/>
<where>
<if test="status != null and status != ''"> and status = #{status}</if>
<if test="taskNo != null and taskNo != ''"> and task_no = #{taskNo}</if>
<if test="roadwayId != null and roadwayId != ''"> and roadway_id = #{roadwayId}</if>
<if test="cargoSpaceId != null and cargoSpaceId != ''"> and cargo_space_id = #{cargoSpaceId}</if>
<if test="targetRoadwayId != null and targetRoadwayId != ''"> and target_roadway_id = #{targetRoadwayId}</if>
<if test="targetCargoSpaceId != null and targetCargoSpaceId != ''"> and target_cargo_space_id = #{targetCargoSpaceId}</if>
<if test="priority != null "> and priority = #{priority}</if>
<if test="executionPhase != null and executionPhase != ''"> and execution_phase = #{executionPhase}</if>
<if test="inOrOut != null and inOrOut != ''"> and in_or_out = #{inOrOut}</if>
<if test="startTime != null and startTime != ''"> and start_time = #{startTime}</if>
<if test="finishTime != null and finishTime != ''"> and finish_time = #{finishTime}</if>
<if test="entranceId != null and entranceId != ''"> and entrance_id = #{entranceId}</if>
<if test="exitId != null and exitId != ''"> and exit_id = #{exitId}</if>
<if test="warehouseId != null and warehouseId != ''"> and warehouse_id = #{warehouseId}</if>
<if test="faultFlag != null and faultFlag != ''"> and fault_flag = #{faultFlag}</if>
</where>
</select>
<select id="selectRunningMydoJobByExitList" resultMap="MydoJobResult">
select TOP 1 job_id, status, task_no, roadway_id, cargo_space_id, target_roadway_id, target_cargo_space_id, priority, execution_phase, in_or_out, create_time, start_time, finish_time, entrance_id, exit_id, warehouse_id, fault_flag from mydo_job_wcs
where exit_id in
<foreach item="item" index="index" collection="exitList" separator="," open="(" close=")">
#{item}
</foreach>
and in_or_out > 20
and status = 3
order by priority desc,create_time
</select>
</mapper>

View File

@@ -0,0 +1,148 @@
<?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.ruoyi.queue.ddj.mapper.DdjDeviceExecutionQueueFinishMapper">
<resultMap type="DdjDeviceExecutionQueueFinish" id="DdjDeviceExecutionQueueFinishResult">
<result property="uuid" column="uuid" />
<result property="rwh" column="rwh" />
<result property="devName" column="dev_name" />
<result property="devId" column="dev_id" />
<result property="rwzt" column="rwzt" />
<result property="yph" column="yph" />
<result property="ylh" column="ylh" />
<result property="ych" column="ych" />
<result property="mbph" column="mbph" />
<result property="mblh" column="mblh" />
<result property="mbch" column="mbch" />
<result property="ddjxf" column="ddjxf" />
<result property="rwlx" column="rwlx" />
<result property="scsj" column="scsj" />
<result property="xfsj" column="xfsj" />
<result property="jssj" column="jssj" />
<result property="mlfs" column="mlfs" />
<result property="spare1" column="spare1" />
<result property="spare2" column="spare2" />
<result property="spare3" column="spare3" />
</resultMap>
<sql id="selectDdjDeviceExecutionQueueFinishVo">
select uuid, rwh, dev_name, dev_id, rwzt, yph, ylh, ych, mbph, mblh, mbch, ddjxf, rwlx, scsj, xfsj, jssj, mlfs, spare1, spare2, spare3 from ddj_device_execution_queue_finish
</sql>
<select id="selectDdjDeviceExecutionQueueFinishList" parameterType="DdjDeviceExecutionQueueFinish" resultMap="DdjDeviceExecutionQueueFinishResult">
<include refid="selectDdjDeviceExecutionQueueFinishVo"/>
<where>
<if test="rwh != null "> and rwh = #{rwh}</if>
<if test="devName != null and devName != ''"> and dev_name like concat('%', #{devName}, '%')</if>
<if test="devId != null "> and dev_id = #{devId}</if>
<if test="rwzt != null "> and rwzt = #{rwzt}</if>
<if test="yph != null "> and yph = #{yph}</if>
<if test="ylh != null "> and ylh = #{ylh}</if>
<if test="ych != null "> and ych = #{ych}</if>
<if test="mbph != null "> and mbph = #{mbph}</if>
<if test="mblh != null "> and mblh = #{mblh}</if>
<if test="mbch != null "> and mbch = #{mbch}</if>
<if test="ddjxf != null and ddjxf != ''"> and ddjxf = #{ddjxf}</if>
<if test="rwlx != null "> and rwlx = #{rwlx}</if>
<if test="scsj != null and scsj != ''"> and scsj = #{scsj}</if>
<if test="xfsj != null and xfsj != ''"> and xfsj = #{xfsj}</if>
<if test="jssj != null and jssj != ''"> and jssj = #{jssj}</if>
<if test="mlfs != null "> and mlfs = #{mlfs}</if>
<if test="spare1 != null and spare1 != ''"> and spare1 = #{spare1}</if>
<if test="spare2 != null and spare2 != ''"> and spare2 = #{spare2}</if>
<if test="spare3 != null and spare3 != ''"> and spare3 = #{spare3}</if>
</where>
</select>
<select id="selectDdjDeviceExecutionQueueFinishByUuid" parameterType="String" resultMap="DdjDeviceExecutionQueueFinishResult">
<include refid="selectDdjDeviceExecutionQueueFinishVo"/>
where uuid = #{uuid}
</select>
<insert id="insertDdjDeviceExecutionQueueFinish" parameterType="DdjDeviceExecutionQueueFinish">
insert into ddj_device_execution_queue_finish
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="uuid != null">uuid,</if>
<if test="rwh != null">rwh,</if>
<if test="devName != null and devName != ''">dev_name,</if>
<if test="devId != null">dev_id,</if>
<if test="rwzt != null">rwzt,</if>
<if test="yph != null">yph,</if>
<if test="ylh != null">ylh,</if>
<if test="ych != null">ych,</if>
<if test="mbph != null">mbph,</if>
<if test="mblh != null">mblh,</if>
<if test="mbch != null">mbch,</if>
<if test="ddjxf != null">ddjxf,</if>
<if test="rwlx != null">rwlx,</if>
<if test="scsj != null">scsj,</if>
<if test="xfsj != null">xfsj,</if>
<if test="jssj != null">jssj,</if>
<if test="mlfs != null">mlfs,</if>
<if test="spare1 != null">spare1,</if>
<if test="spare2 != null">spare2,</if>
<if test="spare3 != null">spare3,</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="uuid != null">#{uuid},</if>
<if test="rwh != null">#{rwh},</if>
<if test="devName != null and devName != ''">#{devName},</if>
<if test="devId != null">#{devId},</if>
<if test="rwzt != null">#{rwzt},</if>
<if test="yph != null">#{yph},</if>
<if test="ylh != null">#{ylh},</if>
<if test="ych != null">#{ych},</if>
<if test="mbph != null">#{mbph},</if>
<if test="mblh != null">#{mblh},</if>
<if test="mbch != null">#{mbch},</if>
<if test="ddjxf != null">#{ddjxf},</if>
<if test="rwlx != null">#{rwlx},</if>
<if test="scsj != null">#{scsj},</if>
<if test="xfsj != null">#{xfsj},</if>
<if test="jssj != null">#{jssj},</if>
<if test="mlfs != null">#{mlfs},</if>
<if test="spare1 != null">#{spare1},</if>
<if test="spare2 != null">#{spare2},</if>
<if test="spare3 != null">#{spare3},</if>
</trim>
</insert>
<update id="updateDdjDeviceExecutionQueueFinish" parameterType="DdjDeviceExecutionQueueFinish">
update ddj_device_execution_queue_finish
<trim prefix="SET" suffixOverrides=",">
<if test="rwh != null">rwh = #{rwh},</if>
<if test="devName != null and devName != ''">dev_name = #{devName},</if>
<if test="devId != null">dev_id = #{devId},</if>
<if test="rwzt != null">rwzt = #{rwzt},</if>
<if test="yph != null">yph = #{yph},</if>
<if test="ylh != null">ylh = #{ylh},</if>
<if test="ych != null">ych = #{ych},</if>
<if test="mbph != null">mbph = #{mbph},</if>
<if test="mblh != null">mblh = #{mblh},</if>
<if test="mbch != null">mbch = #{mbch},</if>
<if test="ddjxf != null">ddjxf = #{ddjxf},</if>
<if test="rwlx != null">rwlx = #{rwlx},</if>
<if test="scsj != null">scsj = #{scsj},</if>
<if test="xfsj != null">xfsj = #{xfsj},</if>
<if test="jssj != null">jssj = #{jssj},</if>
<if test="mlfs != null">mlfs = #{mlfs},</if>
<if test="spare1 != null">spare1 = #{spare1},</if>
<if test="spare2 != null">spare2 = #{spare2},</if>
<if test="spare3 != null">spare3 = #{spare3},</if>
</trim>
where uuid = #{uuid}
</update>
<delete id="deleteDdjDeviceExecutionQueueFinishByUuid" parameterType="String">
delete from ddj_device_execution_queue_finish where uuid = #{uuid}
</delete>
<delete id="deleteDdjDeviceExecutionQueueFinishByUuids" parameterType="String">
delete from ddj_device_execution_queue_finish where uuid in
<foreach item="uuid" collection="array" open="(" separator="," close=")">
#{uuid}
</foreach>
</delete>
</mapper>

View File

@@ -0,0 +1,167 @@
<?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.ruoyi.queue.ddj.mapper.DdjDeviceExecutionQueueMapper">
<resultMap type="DdjDeviceExecutionQueue" id="DdjDeviceExecutionQueueResult">
<result property="uuid" column="uuid" />
<result property="rwh" column="rwh" />
<result property="devName" column="dev_name" />
<result property="devId" column="dev_id" />
<result property="rwzt" column="rwzt" />
<result property="yph" column="yph" />
<result property="ylh" column="ylh" />
<result property="ych" column="ych" />
<result property="mbph" column="mbph" />
<result property="mblh" column="mblh" />
<result property="mbch" column="mbch" />
<result property="ddjxf" column="ddjxf" />
<result property="rwlx" column="rwlx" />
<result property="scsj" column="scsj" />
<result property="xfsj" column="xfsj" />
<result property="jssj" column="jssj" />
<result property="mlfs" column="mlfs" />
<result property="spare1" column="spare1" />
<result property="spare2" column="spare2" />
<result property="spare3" column="spare3" />
</resultMap>
<sql id="selectDdjDeviceExecutionQueueVo">
select uuid, rwh, dev_name, dev_id, rwzt, yph, ylh, ych, mbph, mblh, mbch, ddjxf, rwlx, scsj, xfsj, jssj, mlfs, spare1, spare2, spare3 from ddj_device_execution_queue
</sql>
<select id="selectDdjDeviceExecutionQueueList" parameterType="DdjDeviceExecutionQueue" resultMap="DdjDeviceExecutionQueueResult">
<include refid="selectDdjDeviceExecutionQueueVo"/>
<where>
<if test="rwh != null "> and rwh = #{rwh}</if>
<if test="devName != null and devName != ''"> and dev_name like concat('%', #{devName}, '%')</if>
<if test="devId != null "> and dev_id = #{devId}</if>
<if test="rwzt != null "> and rwzt = #{rwzt}</if>
<if test="yph != null "> and yph = #{yph}</if>
<if test="ylh != null "> and ylh = #{ylh}</if>
<if test="ych != null "> and ych = #{ych}</if>
<if test="mbph != null "> and mbph = #{mbph}</if>
<if test="mblh != null "> and mblh = #{mblh}</if>
<if test="mbch != null "> and mbch = #{mbch}</if>
<if test="ddjxf != null and ddjxf != ''"> and ddjxf = #{ddjxf}</if>
<if test="rwlx != null "> and rwlx = #{rwlx}</if>
<if test="scsj != null and scsj != ''"> and scsj = #{scsj}</if>
<if test="xfsj != null and xfsj != ''"> and xfsj = #{xfsj}</if>
<if test="jssj != null and jssj != ''"> and jssj = #{jssj}</if>
<if test="mlfs != null "> and mlfs = #{mlfs}</if>
<if test="spare1 != null and spare1 != ''"> and spare1 = #{spare1}</if>
<if test="spare2 != null and spare2 != ''"> and spare2 = #{spare2}</if>
<if test="spare3 != null and spare3 != ''"> and spare3 = #{spare3}</if>
<if test="rwlxList != null and rwlxList.size() >0">
and rwlx in
<foreach item="item" collection="rwlxList" separator="," open="(" close=")">
#{item}
</foreach>
</if>
</where>
order by scsj asc
</select>
<select id="selectDdjDeviceExecutionQueueByUuid" parameterType="String" resultMap="DdjDeviceExecutionQueueResult">
<include refid="selectDdjDeviceExecutionQueueVo"/>
where uuid = #{uuid}
</select>
<select id="selectDdjDeviceExecutionQueueListByRwlx"
resultMap="DdjDeviceExecutionQueueResult">
<include refid="selectDdjDeviceExecutionQueueVo"/>
where rwlx = #{rwlx} and dev_id = #{devId}
</select>
<select id="selectDdjDeviceExecutionQueueByRwhAndXd"
resultMap="DdjDeviceExecutionQueueResult">
<include refid="selectDdjDeviceExecutionQueueVo"/>
where rwh = #{rwh} and dev_id = #{devId}
</select>
<insert id="insertDdjDeviceExecutionQueue" parameterType="DdjDeviceExecutionQueue">
insert into ddj_device_execution_queue
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="uuid != null">uuid,</if>
<if test="rwh != null">rwh,</if>
<if test="devName != null and devName != ''">dev_name,</if>
<if test="devId != null">dev_id,</if>
<if test="rwzt != null">rwzt,</if>
<if test="yph != null">yph,</if>
<if test="ylh != null">ylh,</if>
<if test="ych != null">ych,</if>
<if test="mbph != null">mbph,</if>
<if test="mblh != null">mblh,</if>
<if test="mbch != null">mbch,</if>
<if test="ddjxf != null">ddjxf,</if>
<if test="rwlx != null">rwlx,</if>
<if test="scsj != null">scsj,</if>
<if test="xfsj != null">xfsj,</if>
<if test="jssj != null">jssj,</if>
<if test="mlfs != null">mlfs,</if>
<if test="spare1 != null">spare1,</if>
<if test="spare2 != null">spare2,</if>
<if test="spare3 != null">spare3,</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="uuid != null">#{uuid},</if>
<if test="rwh != null">#{rwh},</if>
<if test="devName != null and devName != ''">#{devName},</if>
<if test="devId != null">#{devId},</if>
<if test="rwzt != null">#{rwzt},</if>
<if test="yph != null">#{yph},</if>
<if test="ylh != null">#{ylh},</if>
<if test="ych != null">#{ych},</if>
<if test="mbph != null">#{mbph},</if>
<if test="mblh != null">#{mblh},</if>
<if test="mbch != null">#{mbch},</if>
<if test="ddjxf != null">#{ddjxf},</if>
<if test="rwlx != null">#{rwlx},</if>
<if test="scsj != null">#{scsj},</if>
<if test="xfsj != null">#{xfsj},</if>
<if test="jssj != null">#{jssj},</if>
<if test="mlfs != null">#{mlfs},</if>
<if test="spare1 != null">#{spare1},</if>
<if test="spare2 != null">#{spare2},</if>
<if test="spare3 != null">#{spare3},</if>
</trim>
</insert>
<update id="updateDdjDeviceExecutionQueue" parameterType="DdjDeviceExecutionQueue">
update ddj_device_execution_queue
<trim prefix="SET" suffixOverrides=",">
<if test="rwh != null">rwh = #{rwh},</if>
<if test="devName != null and devName != ''">dev_name = #{devName},</if>
<if test="devId != null">dev_id = #{devId},</if>
<if test="rwzt != null">rwzt = #{rwzt},</if>
<if test="yph != null">yph = #{yph},</if>
<if test="ylh != null">ylh = #{ylh},</if>
<if test="ych != null">ych = #{ych},</if>
<if test="mbph != null">mbph = #{mbph},</if>
<if test="mblh != null">mblh = #{mblh},</if>
<if test="mbch != null">mbch = #{mbch},</if>
<if test="ddjxf != null">ddjxf = #{ddjxf},</if>
<if test="rwlx != null">rwlx = #{rwlx},</if>
<if test="scsj != null">scsj = #{scsj},</if>
<if test="xfsj != null">xfsj = #{xfsj},</if>
<if test="jssj != null">jssj = #{jssj},</if>
<if test="mlfs != null">mlfs = #{mlfs},</if>
<if test="spare1 != null">spare1 = #{spare1},</if>
<if test="spare2 != null">spare2 = #{spare2},</if>
<if test="spare3 != null">spare3 = #{spare3},</if>
</trim>
where uuid = #{uuid}
</update>
<delete id="deleteDdjDeviceExecutionQueueByUuid" parameterType="String">
delete from ddj_device_execution_queue where uuid = #{uuid}
</delete>
<delete id="deleteDdjDeviceExecutionQueueByUuids" parameterType="String">
delete from ddj_device_execution_queue where uuid in
<foreach item="uuid" collection="array" open="(" separator="," close=")">
#{uuid}
</foreach>
</delete>
</mapper>

View File

@@ -0,0 +1,20 @@
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE configuration
PUBLIC "-//mybatis.org//DTD Config 3.0//EN"
"http://mybatis.org/dtd/mybatis-3-config.dtd">
<configuration>
<!-- 全局参数 -->
<settings>
<!-- 使全局的映射器启用或禁用缓存 -->
<setting name="cacheEnabled" value="true" />
<!-- 允许JDBC 支持自动生成主键 -->
<setting name="useGeneratedKeys" value="true" />
<!-- 配置默认的执行器.SIMPLE就是普通执行器;REUSE执行器会重用预处理语句(prepared statements);BATCH执行器将重用语句并执行批量更新 -->
<setting name="defaultExecutorType" value="SIMPLE" />
<!-- 指定 MyBatis 所用日志的具体实现 -->
<setting name="logImpl" value="SLF4J" />
<!-- 使用驼峰命名法转换字段 -->
<!-- <setting name="mapUnderscoreToCamelCase" value="true"/> -->
</settings>
</configuration>