自动化立体仓库 - WCS系统
*
lsh
2025-04-01 b424d6493efb60cb8d93a2e16526086da1fc2ea9
*
47个文件已修改
393 ■■■■ 已修改文件
pom.xml 9 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/java/com/zy/asrs/entity/ApiConfig.java 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/java/com/zy/asrs/entity/ApiLog.java 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/java/com/zy/asrs/entity/BasCrnError.java 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/java/com/zy/asrs/entity/BasCrnOpt.java 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/java/com/zy/asrs/entity/BasCrnStatus.java 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/java/com/zy/asrs/entity/BasCrnp.java 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/java/com/zy/asrs/entity/BasDevp.java 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/java/com/zy/asrs/entity/BasErrLog.java 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/java/com/zy/asrs/entity/BasLocSts.java 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/java/com/zy/asrs/entity/BasPlcerror.java 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/java/com/zy/asrs/entity/BasPlcerrorLog.java 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/java/com/zy/asrs/entity/BasWrkIotype.java 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/java/com/zy/asrs/entity/BasWrkStatus.java 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/java/com/zy/asrs/entity/CommandInfo.java 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/java/com/zy/asrs/entity/CommandInfoLog.java 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/java/com/zy/asrs/entity/DataResource.java 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/java/com/zy/asrs/entity/DeviceError.java 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/java/com/zy/asrs/entity/LocDetl.java 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/java/com/zy/asrs/entity/LocMast.java 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/java/com/zy/asrs/entity/MatCode.java 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/java/com/zy/asrs/entity/RowLastno.java 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/java/com/zy/asrs/entity/StaDesc.java 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/java/com/zy/asrs/entity/TaskWrk.java 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/java/com/zy/asrs/entity/TaskWrkLog.java 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/java/com/zy/asrs/entity/WaitPakin.java 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/java/com/zy/asrs/entity/WrkDetl.java 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/java/com/zy/asrs/entity/WrkDetlLog.java 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/java/com/zy/asrs/entity/WrkLastno.java 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/java/com/zy/asrs/entity/WrkMast.java 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/java/com/zy/asrs/entity/WrkMastLog.java 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/resources/application.yml 12 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/resources/mapper/ApiConfigMapper.xml 6 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/resources/mapper/BasDevpMapper.xml 24 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/resources/mapper/CommandInfoMapper.xml 20 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/resources/mapper/ConfigMapper.xml 8 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/resources/mapper/DataResourceMapper.xml 12 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/resources/mapper/DeviceErrorMapper.xml 12 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/resources/mapper/LocDetlMapper.xml 26 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/resources/mapper/LocMastMapper.xml 22 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/resources/mapper/TaskWrkMapper.xml 108 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/resources/mapper/ViewInOutMapper.xml 32 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/resources/mapper/WrkDetlMapper.xml 8 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/resources/mapper/WrkMastMapper.xml 28 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/webapp/static/wcs/js/common.js 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/webapp/static/wcs/js/console.map.js 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/webapp/static/wms/js/common.js 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
pom.xml
@@ -9,7 +9,7 @@
        <relativePath/> <!-- lookup parent from repository -->
    </parent>
    <groupId>com.zy</groupId>
    <artifactId>wxwcs</artifactId>
    <artifactId>wcs</artifactId>
    <version>1.0.0</version>
    <packaging>war</packaging>
@@ -32,6 +32,11 @@
            <!--<artifactId>spring-boot-starter-tomcat</artifactId>-->
            <!--<scope>provided</scope>-->
        <!--</dependency>-->
        <dependency>
            <groupId>com.dameng</groupId>
            <artifactId>DmJdbcDriver8</artifactId>
            <version>8.1.3.162</version>
        </dependency>
        <dependency>
            <groupId>org.springframework.boot</groupId>
            <artifactId>spring-boot-starter-data-redis</artifactId>
@@ -200,7 +205,7 @@
    </dependencies>
    <build>
        <finalName>wxwcs</finalName>
        <finalName>wcs</finalName>
        <plugins>
            <plugin>
                <groupId>org.springframework.boot</groupId>
src/main/java/com/zy/asrs/entity/ApiConfig.java
@@ -21,7 +21,7 @@
import java.io.Serializable;
@Data
@TableName("wcs_api_config")
@TableName("\"SOURCE\".\"wcs_api_config\"")
public class ApiConfig implements Serializable {
    private static final long serialVersionUID = 1L;
src/main/java/com/zy/asrs/entity/ApiLog.java
@@ -15,7 +15,7 @@
import java.io.Serializable;
@Data
@TableName("man_api_log")
@TableName("\"SOURCE\".\"man_api_log\"")
public class ApiLog implements Serializable {
    private static final long serialVersionUID = 1L;
src/main/java/com/zy/asrs/entity/BasCrnError.java
@@ -14,7 +14,7 @@
import java.text.SimpleDateFormat;
import java.util.Date;
@TableName("asr_bas_crn_error")
@TableName("\"SOURCE\".\"asr_bas_crn_error\"")
public class BasCrnError implements Serializable {
    private static final long serialVersionUID = 1L;
src/main/java/com/zy/asrs/entity/BasCrnOpt.java
@@ -14,7 +14,7 @@
import java.text.SimpleDateFormat;
import java.util.Date;
@TableName("asr_bas_crn_opt")
@TableName("\"SOURCE\".\"asr_bas_crn_opt\"")
public class BasCrnOpt implements Serializable {
    private static final long serialVersionUID = 1L;
src/main/java/com/zy/asrs/entity/BasCrnStatus.java
@@ -14,7 +14,7 @@
import java.text.SimpleDateFormat;
import java.util.Date;
@TableName("asr_bas_crn_status")
@TableName("\"SOURCE\".\"asr_bas_crn_status\"")
public class BasCrnStatus implements Serializable {
    private static final long serialVersionUID = 1L;
src/main/java/com/zy/asrs/entity/BasCrnp.java
@@ -16,7 +16,7 @@
import java.text.SimpleDateFormat;
import java.util.Date;
@TableName("asr_bas_crnp")
@TableName("\"SOURCE\".\"asr_bas_crnp\"")
public class BasCrnp implements Serializable {
    private static final long serialVersionUID = 1L;
src/main/java/com/zy/asrs/entity/BasDevp.java
@@ -16,7 +16,7 @@
import java.util.Date;
@Data
@TableName("asr_bas_devp")
@TableName("\"SOURCE\".\"asr_bas_devp\"")
public class BasDevp implements Serializable {
    private static final long serialVersionUID = 1L;
src/main/java/com/zy/asrs/entity/BasErrLog.java
@@ -14,7 +14,7 @@
import java.text.SimpleDateFormat;
import java.util.Date;
@TableName("asr_bas_err_log")
@TableName("\"SOURCE\".\"asr_bas_err_log\"")
public class BasErrLog implements Serializable {
    private static final long serialVersionUID = 1L;
src/main/java/com/zy/asrs/entity/BasLocSts.java
@@ -14,7 +14,7 @@
import java.text.SimpleDateFormat;
import java.util.Date;
@TableName("asr_bas_loc_sts")
@TableName("\"SOURCE\".\"asr_bas_loc_sts\"")
public class BasLocSts implements Serializable {
    private static final long serialVersionUID = 1L;
src/main/java/com/zy/asrs/entity/BasPlcerror.java
@@ -14,7 +14,7 @@
import java.text.SimpleDateFormat;
import java.util.Date;
@TableName("asr_bas_plcerror")
@TableName("\"SOURCE\".\"asr_bas_plcerror\"")
public class BasPlcerror implements Serializable {
    private static final long serialVersionUID = 1L;
src/main/java/com/zy/asrs/entity/BasPlcerrorLog.java
@@ -31,7 +31,7 @@
import java.io.Serializable;
@Data
@TableName("asr_bas_plcerror_log")
@TableName("\"SOURCE\".\"asr_bas_plcerror_log\"")
public class BasPlcerrorLog implements Serializable {
    private static final long serialVersionUID = 1L;
src/main/java/com/zy/asrs/entity/BasWrkIotype.java
@@ -14,7 +14,7 @@
import java.text.SimpleDateFormat;
import java.util.Date;
@TableName("asr_bas_wrk_iotype")
@TableName("\"SOURCE\".\"asr_bas_wrk_iotype\"")
public class BasWrkIotype implements Serializable {
    private static final long serialVersionUID = 1L;
src/main/java/com/zy/asrs/entity/BasWrkStatus.java
@@ -14,7 +14,7 @@
import java.text.SimpleDateFormat;
import java.util.Date;
@TableName("asr_bas_wrk_status")
@TableName("\"SOURCE\".\"asr_bas_wrk_status\"")
public class BasWrkStatus implements Serializable {
    private static final long serialVersionUID = 1L;
src/main/java/com/zy/asrs/entity/CommandInfo.java
@@ -15,7 +15,7 @@
import java.io.Serializable;
@Data
@TableName("wcs_command_info")
@TableName("\"SOURCE\".\"wcs_command_info\"")
public class CommandInfo implements Serializable {
    private static final long serialVersionUID = 1L;
src/main/java/com/zy/asrs/entity/CommandInfoLog.java
@@ -19,7 +19,7 @@
import java.io.Serializable;
@Data
@TableName("wcs_command_info_log")
@TableName("\"SOURCE\".\"wcs_command_info_log\"")
public class CommandInfoLog implements Serializable {
    private static final long serialVersionUID = 1L;
src/main/java/com/zy/asrs/entity/DataResource.java
@@ -13,7 +13,7 @@
import java.io.Serializable;
@Data
@TableName("wcs_data_resource")
@TableName("\"SOURCE\".\"wcs_data_resource\"")
public class DataResource implements Serializable {
    private static final long serialVersionUID = 1L;
src/main/java/com/zy/asrs/entity/DeviceError.java
@@ -13,7 +13,7 @@
import java.io.Serializable;
@Data
@TableName("wcs_device_error")
@TableName("\"SOURCE\".\"wcs_device_error\"")
public class DeviceError implements Serializable {
    private static final long serialVersionUID = 1L;
src/main/java/com/zy/asrs/entity/LocDetl.java
@@ -16,7 +16,7 @@
import java.util.Date;
@Data
@TableName("asr_loc_detl")
@TableName("\"SOURCE\".\"asr_loc_detl\"")
public class LocDetl implements Serializable {
    private static final long serialVersionUID = 1L;
src/main/java/com/zy/asrs/entity/LocMast.java
@@ -17,7 +17,7 @@
import java.util.Date;
@Data
@TableName("asr_loc_mast")
@TableName("\"SOURCE\".\"asr_loc_mast\"")
public class LocMast implements Serializable {
    private static final long serialVersionUID = 1L;
src/main/java/com/zy/asrs/entity/MatCode.java
@@ -14,7 +14,7 @@
import java.text.SimpleDateFormat;
import java.util.Date;
@TableName("bas_mat_code")
@TableName("\"SOURCE\".\"bas_mat_code\"")
public class MatCode implements Serializable {
    private static final long serialVersionUID = 1L;
src/main/java/com/zy/asrs/entity/RowLastno.java
@@ -14,7 +14,7 @@
import java.text.SimpleDateFormat;
import java.util.Date;
@TableName("asr_row_lastno")
@TableName("\"SOURCE\".\"asr_row_lastno\"")
public class RowLastno implements Serializable {
    private static final long serialVersionUID = 1L;
src/main/java/com/zy/asrs/entity/StaDesc.java
@@ -17,7 +17,7 @@
import java.text.SimpleDateFormat;
import java.util.Date;
@TableName("asr_sta_desc")
@TableName("\"SOURCE\".\"asr_sta_desc\"")
public class StaDesc implements Serializable {
    private static final long serialVersionUID = 1L;
src/main/java/com/zy/asrs/entity/TaskWrk.java
@@ -34,7 +34,7 @@
import java.io.Serializable;
@Data
@TableName("wcs_task_wrk")
@TableName("\"SOURCE\".\"wcs_task_wrk\"")
public class TaskWrk implements Serializable {
    private static final long serialVersionUID = 1L;
src/main/java/com/zy/asrs/entity/TaskWrkLog.java
@@ -32,7 +32,7 @@
import java.io.Serializable;
@Data
@TableName("wcs_task_wrk_log")
@TableName("\"SOURCE\".\"wcs_task_wrk_log\"")
public class TaskWrkLog implements Serializable {
    private static final long serialVersionUID = 1L;
src/main/java/com/zy/asrs/entity/WaitPakin.java
@@ -11,7 +11,7 @@
import java.util.Date;
@Data
@TableName("cust_wait_pakin")
@TableName("\"SOURCE\".\"cust_wait_pakin\"")
public class WaitPakin implements Serializable {
    private static final long serialVersionUID = 1L;
src/main/java/com/zy/asrs/entity/WrkDetl.java
@@ -15,7 +15,7 @@
import java.util.Date;
@Data
@TableName("asr_wrk_detl")
@TableName("\"SOURCE\".\"asr_wrk_detl\"")
public class WrkDetl implements Serializable {
    private static final long serialVersionUID = 1L;
src/main/java/com/zy/asrs/entity/WrkDetlLog.java
@@ -14,7 +14,7 @@
import java.util.Date;
@Data
@TableName("asr_wrk_detl_log")
@TableName("\"SOURCE\".\"asr_wrk_detl_log\"")
public class WrkDetlLog implements Serializable {
    private static final long serialVersionUID = 1L;
src/main/java/com/zy/asrs/entity/WrkLastno.java
@@ -14,7 +14,7 @@
import java.text.SimpleDateFormat;
import java.util.Date;
@TableName("asr_wrk_lastno")
@TableName("\"SOURCE\".\"asr_wrk_lastno\"")
public class WrkLastno implements Serializable {
    private static final long serialVersionUID = 1L;
src/main/java/com/zy/asrs/entity/WrkMast.java
@@ -21,7 +21,7 @@
import java.util.List;
@Data
@TableName("asr_wrk_mast")
@TableName("\"SOURCE\".\"asr_wrk_mast\"")
public class WrkMast implements Serializable {
    private static final long serialVersionUID = 1L;
src/main/java/com/zy/asrs/entity/WrkMastLog.java
@@ -18,7 +18,7 @@
import java.util.Date;
@Data
@TableName("asr_wrk_mast_log")
@TableName("\"SOURCE\".\"asr_wrk_mast_log\"")
public class WrkMastLog implements Serializable {
    private static final long serialVersionUID = 1L;
src/main/resources/application.yml
@@ -7,10 +7,14 @@
  application:
    name: @pom.build.finalName@
  datasource:
    driver-class-name: com.microsoft.sqlserver.jdbc.SQLServerDriver
    url: jdbc:sqlserver://192.168.4.191:50948;databasename=source
    username: sa
    password: sa@123
#    driver-class-name: com.microsoft.sqlserver.jdbc.SQLServerDriver
#    url: jdbc:sqlserver://192.168.4.191:50948;databasename=source
#    username: sa
#    password: sa@123
    driver-class-name: dm.jdbc.driver.DmDriver
    url: jdbc:dm://192.168.4.191:5236/SOURCE
    username: SYSDBA
    password: Zy@12345
  mvc:
    static-path-pattern: /**
  redis:
src/main/resources/mapper/ApiConfigMapper.xml
@@ -16,9 +16,9 @@
    </resultMap>
    <select id="selectByUrl" resultMap="BaseResultMap">
        select top 1 * from wcs_api_config
        where url = #{url}
        order by create_time desc
        select top 1 * from "SOURCE"."wcs_api_config"
        where "url" = #{url}
        order by "create_time" desc
    </select>
</mapper>
src/main/resources/mapper/BasDevpMapper.xml
@@ -47,24 +47,24 @@
    <select id="getAvailableInSite" resultType="java.lang.Integer">
        select
        abd.dev_no
        from asr_bas_devp abd
        left join asr_sta_desc asd on abd.dev_no = asd.stn_no
        abd."dev_no"
        from "SOURCE"."asr_bas_devp" abd
        left join "SOURCE"."asr_sta_desc" asd on abd."dev_no" = asd."stn_no"
        where 1=1
        and asd.type_no = #{typeNo}
        and abd.in_enable = 'Y'
        group by abd.dev_no
        and asd."type_no" = #{typeNo}
        and abd."in_enable" = 'Y'
        group by abd."dev_no"
    </select>
    <select id="getAvailableOutSite" resultType="java.lang.Integer">
        select
        abd.dev_no
        from asr_bas_devp abd
        left join asr_sta_desc asd on abd.dev_no = asd.stn_no
        abd."dev_no"
        from "SOURCE"."asr_bas_devp" abd
        left join "SOURCE"."asr_sta_desc" asd on abd."dev_no" = asd."stn_no"
        where 1=1
        and asd.type_no = #{typeNo}
        and abd.out_enable = 'Y'
        group by abd.dev_no
        and asd."type_no" = #{typeNo}
        and abd."out_enable" = 'Y'
        group by abd."dev_no"
    </select>
</mapper>
src/main/resources/mapper/CommandInfoMapper.xml
@@ -19,25 +19,25 @@
    </resultMap>
    <select id="selectByTaskNoAndWrkNo" resultMap="BaseResultMap">
        select * from wcs_command_info
        where wrk_no = #{wrkNo}
        and task_no = #{taskNo}
        select * from "SOURCE"."wcs_command_info"
        where "wrk_no" = #{wrkNo}
        and "task_no" = #{taskNo}
    </select>
    <select id="selectByWrkNo" resultMap="BaseResultMap">
        select * from wcs_command_info
        where wrk_no = #{wrkNo}
        select * from "SOURCE"."wcs_command_info"
        where "wrk_no" = #{wrkNo}
    </select>
    <select id="selectByTaskNo" resultMap="BaseResultMap">
        select * from wcs_command_info
        where task_no = #{taskNo}
        select * from "SOURCE"."wcs_command_info"
        where "task_no" = #{taskNo}
    </select>
    <select id="selectCompleteManualCommand" resultMap="BaseResultMap">
        select * from wcs_command_info
        where command_type = 2
        and command_status = 3
        select * from "SOURCE"."wcs_command_info"
        where "command_type" = 2
        and "command_status" = 3
    </select>
</mapper>
src/main/resources/mapper/ConfigMapper.xml
@@ -14,13 +14,13 @@
    </resultMap>
    <select id="selectByCode" resultMap="BaseResultMap">
        select top 1 * from sys_config
        where code = #{code}
        select top 1 * from "SOURCE"."sys_config"
        where "code" = #{code}
    </select>
    <select id="selectByCodes" resultMap="BaseResultMap">
        select * from sys_config
        where code in
        select * from "SOURCE"."sys_config"
        where "code" in
        <foreach item="item" collection="codes" index="index"  separator="," open="(" close=")">
            #{item}
        </foreach>
src/main/resources/mapper/DataResourceMapper.xml
@@ -14,18 +14,18 @@
    </resultMap>
    <select id="selectRootData" resultMap="BaseResultMap">
        select * from wcs_data_resource
        where resource_id is null
        select * from "SOURCE"."wcs_data_resource"
        where "resource_id" is null
    </select>
    <select id="selectByResourceId" resultMap="BaseResultMap">
        select * from wcs_data_resource
        where resource_id = #{resourceId}
        select * from "SOURCE"."wcs_data_resource"
        where "resource_id" = #{resourceId}
    </select>
    <select id="selectAll" resultMap="BaseResultMap">
        select * from wcs_data_resource
        order by name
        select * from "SOURCE"."wcs_data_resource"
        order by "name"
    </select>
</mapper>
src/main/resources/mapper/DeviceErrorMapper.xml
@@ -13,15 +13,15 @@
    </resultMap>
    <select id="selectByDeviceAndDeviceId" resultMap="BaseResultMap">
        select top 1 * from wcs_device_error
        where device = #{device}
        and device_id = #{deviceId}
        select top 1 * from "SOURCE"."wcs_device_error"
        where "device" = #{device}
        and "device_id" = #{deviceId}
    </select>
    <delete id="deleteByDeviceAndDeviceId">
        delete from wcs_device_error
        where device = #{device}
        and device_id = #{deviceId}
        delete from "SOURCE"."wcs_device_error"
        where "device" = #{device}
        and "device_id" = #{deviceId}
    </delete>
</mapper>
src/main/resources/mapper/LocDetlMapper.xml
@@ -48,22 +48,22 @@
    <sql id="stockOutCondition">
        <if test="loc_no!=null and loc_no!='' ">
            and a.loc_no like '%' + #{loc_no} + '%'
            and a."loc_no" like '%' + #{loc_no} + '%'
        </if>
        <if test="matNo!=null and matNo!='' ">
            and a.matnr like '%' + #{matNo} + '%'
            and a."matnr" like '%' + #{matNo} + '%'
        </if>
        <if test="matName!=null and matName!='' ">
            and a.maktx like '%' + #{matName} + '%'
            and a."maktx" like '%' + #{matName} + '%'
        </if>
        <if test="anfme!=null and anfme!='' ">
            and a.anfme like '%' + #{anfme} + '%'
            and a."anfme" like '%' + #{anfme} + '%'
        </if>
        <if test="altme!=null and altme!='' ">
            and a.altme like '%' + #{altme} + '%'
            and a."altme" like '%' + #{altme} + '%'
        </if>
        <if test="startTime!=null and endTime!=null">
            and a.modi_time between #{startTime} and #{endTime}
            and a."modi_time" between #{startTime} and #{endTime}
        </if>
    </sql>
@@ -71,12 +71,12 @@
        select * from
        (
            select
            ROW_NUMBER() over (order by a.appe_time,a.matnr,a.loc_no) as row,
            ROW_NUMBER() over (order by a."appe_time",a."matnr",a."loc_no") as row,
            a.*
            from asr_loc_detl a
            left join asr_loc_mast b on a.loc_no = b.loc_no
            from "SOURCE"."asr_loc_detl" a
            left join "SOURCE"."asr_loc_mast" b on a."loc_no" = b."loc_no"
            where 1=1
            and b.loc_sts = 'F'
            and b."loc_sts" = 'F'
            <include refid="stockOutCondition"></include>
        ) t where t.row between ((#{pageNumber}-1)*#{pageSize}+1) and (#{pageNumber}*#{pageSize})
    </select>
@@ -84,10 +84,10 @@
    <select id="getStockOutPageCount" parameterType="java.util.Map" resultType="java.lang.Integer">
        select
        count(1)
        from asr_loc_detl a
        left join asr_loc_mast b on a.loc_no = b.loc_no
        from "SOURCE"."asr_loc_detl" a
        left join "SOURCE"."asr_loc_mast" b on a."loc_no" = b."loc_no"
        where 1=1
        and b.loc_sts = 'F'
        and b."loc_sts" = 'F'
        <include refid="stockOutCondition"></include>
    </select>
</mapper>
src/main/resources/mapper/LocMastMapper.xml
@@ -40,32 +40,32 @@
    <select id="queryFreeLocMast" resultMap="BaseResultMap">
        select top 1 *
        from asr_loc_mast
        where row1=#{row}
        and loc_sts='O'
        from "SOURCE"."asr_loc_mast"
        where "row1"=#{row}
        and "loc_sts"='O'
        <if test="locType1 != null">
            and loc_type1 = #{locType1}
            and "loc_type1" = #{locType1}
        </if>
        order by NEWID(),lev1 asc,bay1 asc
        order by NEWID(),"lev1" asc,"bay1" asc
    </select>
    <select id="queryDemoSourceLoc" resultMap="BaseResultMap">
        select top 1 * from asr_loc_mast where crn_no = #{crnNo}
        and loc_sts='D'
        select top 1 * from "SOURCE"."asr_loc_mast" where "crn_no" = #{crnNo}
        and "loc_sts"='D'
        ORDER BY NEWID()
    </select>
    <select id="queryDemoLoc" resultMap="BaseResultMap">
        select top 1 * from asr_loc_mast where crn_no = #{crnNo} and loc_sts = 'O'
        select top 1 * from "SOURCE"."asr_loc_mast" where "crn_no" = #{crnNo} and "loc_sts" = 'O'
        ORDER BY NEWID()
    </select>
    <select id="selectByLocNo" resultMap="BaseResultMap">
        select * from asr_loc_mast
        where loc_no = #{locNo}
        select * from "SOURCE"."asr_loc_mast"
        where "loc_no" = #{locNo}
    </select>
    <select id="selectLocByLev" resultMap="BaseResultMap">
        SELECT * FROM asr_loc_mast WHERE lev1 = #{lev}
        SELECT * FROM "SOURCE"."asr_loc_mast" WHERE "lev1" = #{lev}
    </select>
</mapper>
src/main/resources/mapper/TaskWrkMapper.xml
@@ -30,109 +30,109 @@
    </resultMap>
    
    <select id="selectByTaskNo" resultMap="BaseResultMap">
        select top 1 * from wcs_task_wrk
        select top 1 * from "SOURCE"."wcs_task_wrk"
        where 1=1
        and task_no = #{taskNo}
        and "task_no" = #{taskNo}
    </select>
    <select id="selectByStartPoint" resultMap="BaseResultMap">
        select top 1 * from wcs_task_wrk
        select top 1 * from "SOURCE"."wcs_task_wrk"
        where 1=1
        and io_type=3
        and start_point = #{startPoint}
        and "io_type"=3
        and "start_point" = #{startPoint}
    </select>
    <select id="selectByWrkNo" resultMap="BaseResultMap">
        select top 1 * from wcs_task_wrk
        select top 1 * from "SOURCE"."wcs_task_wrk"
        where 1=1
        and wrk_no = #{wrkNo}
        and "wrk_no" = #{wrkNo}
    </select>
    <select id="selectPakIn" resultMap="BaseResultMap">
        select top 1 * from dbo.wcs_task_wrk
        where status=1
        and crn_no=#{crnNo}
        and wrk_no=#{workNo}
        and start_point=#{startPoint}
        and io_type=1
        order by io_pri desc,create_time,wrk_no ASC
        select top 1 * from "SOURCE"."wcs_task_wrk"
        where "status"=1
        and "crn_no"=#{crnNo}
        and "wrk_no"=#{workNo}
        and "start_point"=#{startPoint}
        and "io_type"=1
        order by "io_pri" desc,"create_time","wrk_no" ASC
    </select>
    <select id="selectReceive" resultMap="BaseResultMap">
        select * from wcs_task_wrk
        select * from "SOURCE"."wcs_task_wrk"
        where 1=1
        and status = 1
        and "status" = 1
    </select>
    <select id="selectPakOutIoType" resultMap="BaseResultMap">
        select * from dbo.wcs_task_wrk
        where crn_no=#{crnNo}
        and io_type = 3
        order by io_pri desc,create_time,wrk_no ASC
        select * from "SOURCE"."wcs_task_wrk"
        where "crn_no"=#{crnNo}
        and "io_type" = 3
        order by "io_pri" desc,"create_time","wrk_no" ASC
    </select>
    <select id="selectCrnStaWorking" resultMap="BaseResultMap">
        select * from dbo.wcs_task_wrk
        where crn_no=#{crnNo}
        and target_point=#{targetPoint}
        and wrk_sts=13
        and io_type = 2
        order by io_pri desc,create_time,wrk_no ASC
        select * from "SOURCE"."wcs_task_wrk"
        where "crn_no"=#{crnNo}
        and "target_point"=#{targetPoint}
        and "wrk_sts"=13
        and "io_type" = 2
        order by "io_pri" desc,"create_time","wrk_no" ASC
    </select>
    <select id="selectPakOut" resultMap="BaseResultMap">
        select * from dbo.wcs_task_wrk
        where crn_no=#{crnNo}
        select * from "SOURCE"."wcs_task_wrk"
        where "crn_no"=#{crnNo}
        <if test="targetPoint!=null and targetPoint!='' ">
            and target_point=#{targetPoint}
            and "target_point"=#{targetPoint}
        </if>
        and wrk_sts=11
        and io_type = 2
        order by io_pri desc,create_time,wrk_no ASC
        and "wrk_sts"=11
        and "io_type" = 2
        order by "io_pri" desc,"create_time","wrk_no" ASC
    </select>
    <select id="selectPakOut3" resultMap="BaseResultMap">
        select * from dbo.wcs_task_wrk
        where crn_no=#{crnNo}
        select * from "SOURCE"."wcs_task_wrk"
        where "crn_no"=#{crnNo}
--         and target_point=#{targetPoint}
        and wrk_sts=11
        and io_type = 3
        order by io_pri desc,create_time ASC
        and "wrk_sts"=11
        and "io_type" = 3
        order by "io_pri" desc,"create_time" ASC
    </select>
    <select id="selectCrnWorking" resultMap="BaseResultMap">
        select top 1 * from dbo.wcs_task_wrk
        select top 1 * from "SOURCE"."wcs_task_wrk"
        where 1=1
        and (wrk_sts=3 or wrk_sts=12)
        and crn_no=#{crnNo}
        order by io_pri desc,create_time,wrk_no ASC
        and ("wrk_sts"=3 or "wrk_sts"=12)
        and "crn_no"=#{crnNo}
        order by "io_pri" desc,"create_time","wrk_no" ASC
    </select>
    <select id="selectCrnNoInWorking" resultMap="BaseResultMap">
        select top 1 * from dbo.wcs_task_wrk
        select top 1 * from "SOURCE"."wcs_task_wrk"
        where 1=1
        and (wrk_sts=3 or wrk_sts=12)
        and crn_no=#{crnNo}
        and wrk_no=#{workNo}
        order by io_pri desc,create_time,wrk_no ASC
        and ("wrk_sts"=3 or "wrk_sts"=12)
        and "crn_no"=#{crnNo}
        and "wrk_no"=#{workNo}
        order by "io_pri" desc,"create_time","wrk_no" ASC
    </select>
    <select id="selectToBeHistoryData" resultMap="BaseResultMap">
        select * from dbo.wcs_task_wrk
        select * from "SOURCE"."wcs_task_wrk"
        where 1=1
        and ((wrk_sts=14 and status=5) or status=7 or status=4 or (wrk_sts=4 and status=5))
        order by io_pri desc,create_time,wrk_no ASC
        and (("wrk_sts"=14 and "status"=5) or "status"=7 or "status"=4 or ("wrk_sts"=4 and "status"=5))
        order by "io_pri" desc,"create_time","wrk_no" ASC
    </select>
    <insert id="saveToHistory">
        insert into wcs_task_wrk_log select * from wcs_task_wrk where task_no = #{taskNo} and (status=5 or status=4 or status=6)
        insert into "SOURCE"."wcs_task_wrk_log" select * from "SOURCE"."wcs_task_wrk" where "task_no" = #{taskNo} and ("status"=5 or "status"=4 or "status"=6)
    </insert>
    <select id="selectWorkingTask" resultMap="BaseResultMap">
        select * from dbo.wcs_task_wrk
        where (wrk_sts=3 and io_type = 1)
        or (wrk_sts=12 and io_type = 2)
        order by io_pri desc,create_time,wrk_no ASC
        select * from "SOURCE"."wcs_task_wrk"
        where ("wrk_sts"=3 and "io_type" = 1)
        or ("wrk_sts"=12 and "io_type" = 2)
        order by "io_pri" desc,"create_time","wrk_no" ASC
    </select>
</mapper>
src/main/resources/mapper/ViewInOutMapper.xml
@@ -6,16 +6,16 @@
<!-- mapper不支持sql语句嵌套时,采用sql片段包含方式,解决xml标签问题 -->
<sql id="viewInOutConditionSql">    
        <if test="source_sta_no!=null and source_sta_no!='' ">
            and source_sta_no like '%' + #{source_sta_no} + '%'
            and "source_sta_no" like '%' + #{source_sta_no} + '%'
        </if>
        <if test="begin_date!=null and begin_date!='' ">
            <![CDATA[
            and ymd >= #{begin_date}
            and "ymd" >= #{begin_date}
            ]]>            
        </if>    
        <if test="end_date!=null and end_date!='' ">
            <![CDATA[
            and ymd <= #{end_date}
            and "ymd" <= #{end_date}
            ]]>            
        </if>
</sql>
@@ -23,8 +23,8 @@
<!-- 分页查询所有信息 -->
<select id="queryViewInOutList" parameterType="com.zy.asrs.entity.ViewInOutBean" resultType="com.zy.asrs.entity.ViewInOutBean">
select * from ( 
select *,ROW_NUMBER() OVER(Order by ymd desc) as rowid
 from asr_sta_inout_view
select *,ROW_NUMBER() OVER(Order by "ymd" desc) as rowid
 from "SOURCE"."asr_sta_inout_view"
<where>
    1=1
     <include refid="viewInOutConditionSql"></include>
@@ -39,7 +39,7 @@
</select>
<select id="getViewInOutCount" parameterType="com.zy.asrs.entity.ViewInOutBean"    resultType="Integer">
select count(1) from asr_sta_inout_view a
select count(1) from "SOURCE"."asr_sta_inout_view" a
<where>
<![CDATA[
    1=1
@@ -50,33 +50,33 @@
<!-- 不分页查询所有信息,用于excel导出 -->
<select id="getViewInOutAll" parameterType="com.zy.asrs.entity.ViewInOutBean" resultType="com.zy.asrs.entity.ViewInOutBean">
select * from asr_sta_inout_view a
select * from "SOURCE"."asr_sta_inout_view" a
<where>
    <![CDATA[
         1=1
     ]]>
    <include refid="viewInOutConditionSql"></include>
    <![CDATA[
        order by ymd desc
        order by "ymd" desc
    ]]>
</where>
</select>
    <select id="selectWorkCountInSum" resultType="java.lang.Integer">
        SELECT SUM(anfme) FROM asr_wrkin_count_view WHERE 1=1 AND
        (oneday > #{start}
        SELECT SUM(anfme) FROM"SOURCE". "asr_wrkin_count_view" WHERE 1=1 AND
        ("oneday" > #{start}
        AND
        oneday &lt; #{end})
        "oneday" &lt; #{end})
        <if test="matnr != null and matnr !=''">
            and matnr = #{matnr}
            and "matnr" = #{matnr}
        </if>
    </select>
    <select id="selectWorkCountOutSum" resultType="java.lang.Integer">
        SELECT SUM(anfme) FROM asr_wrkout_count_view WHERE 1=1 AND
        (oneday > #{start}
        SELECT SUM("anfme") FROM "SOURCE"."asr_wrkout_count_view" WHERE 1=1 AND
        ("oneday" > #{start}
        AND
        oneday &lt; #{end})
        "oneday" &lt; #{end})
        <if test="matnr != null and matnr !=''">
            and matnr = #{matnr}
            and "matnr" = #{matnr}
        </if>
    </select>
src/main/resources/mapper/WrkDetlMapper.xml
@@ -27,14 +27,14 @@
    </resultMap>
    <select id="findByWorkNo" resultMap="BaseResultMap">
        select wrk_no, matnr, maktx, anfme from asr_wrk_detl where 1=1 and wrk_no = #{workNo}
        select "wrk_no", "matnr", "maktx", "anfme" from "SOURCE"."asr_wrk_detl" where 1=1 and "wrk_no" = #{workNo}
    </select>
    <update id="updateIoTime">
        update asr_wrk_detl
        set io_time = #{ioTime}
        update "SOURCE"."asr_wrk_detl"
        set "io_time" = #{ioTime}
        where 1=1
        and wrk_no = #{workNo}
        and "wrk_no" = #{workNo}
    </update>
</mapper>
src/main/resources/mapper/WrkMastMapper.xml
@@ -64,44 +64,44 @@
    </resultMap>
    <select id="selectByLocNo"  resultMap="BaseResultMap">
        select top 1 * from asr_wrk_mast where source_loc_no = #{sourceLocNo} and  (ctn_no is null or ctn_no != 'Y')
        select top 1 * from "SOURCE"."asr_wrk_mast" where "source_loc_no" = #{sourceLocNo} and  ("ctn_no" is null or "ctn_no" != 'Y')
    </select>
    <select id="selectByLocNo1"  resultMap="BaseResultMap">
        select top 1 * from asr_wrk_mast where source_loc_no = #{sourceLocNo} or loc_no = #{sourceLocNo}
        select top 1 * from "SOURCE"."asr_wrk_mast" where "source_loc_no" = #{sourceLocNo} or "loc_no" = #{sourceLocNo}
    </select>
    <select id="selectToBeCompleteData" resultMap="BaseResultMap">
        select * from asr_wrk_mast where ((wrk_sts = 4 Or wrk_sts = 14 ) and io_type != 103 and io_type != 104 and io_type != 107 ) or (wrk_sts = 2 and io_type=6) order by upd_mk,io_time,wrk_no
        select * from "SOURCE"."asr_wrk_mast" where (("wrk_sts" = 4 Or "wrk_sts" = 14 ) and "io_type" != 103 and "io_type" != 104 and "io_type" != 107 ) or ("wrk_sts" = 2 and "io_type"=6) order by "upd_mk","io_time","wrk_no"
    </select>
    <select id="selectToBeHistoryData" resultMap="BaseResultMap">
        select * from asr_wrk_mast
        where wrk_sts=5
        or (wrk_sts=15 and ove_mk='Y' and wrk_no not in (select wrk_no from asr_bas_devp))
        or (wrk_sts=15 and dateadd(mi,15,crn_end_time) &lt;= getdate() and wrk_no not in (select wrk_no from asr_bas_devp))
        or (wrk_sts=15 and crn_end_time is null and wrk_no not in (select wrk_no from asr_bas_devp))
        order by io_time,wrk_no asc
        select * from "SOURCE"."asr_wrk_mast"
        where "wrk_sts"=5
        or ("wrk_sts"=15 and "ove_mk"='Y' and "wrk_no" not in (select "wrk_no" from "SOURCE"."asr_bas_devp"))
        or ("wrk_sts"=15 and dateadd(mi,15,"crn_end_time") &lt;= getdate() and "wrk_no" not in (select "wrk_no" from "SOURCE"."asr_bas_devp"))
        or ("wrk_sts"=15 and "crn_end_time" is null and "wrk_no" not in (select "wrk_no" from "SOURCE"."asr_bas_devp"))
        order by "io_time","wrk_no" asc
    </select>
    <select id="selectPakInStep1" resultMap="BaseResultMap">
        select top 1 * from asr_wrk_mast where source_sta_no=#{sourceStaNo} and wrk_sts=2 and barcode=#{barcode} and (io_type=1 or io_type=10) order by io_pri desc,io_time,wrk_no ASC
        select top 1 * from "SOURCE"."asr_wrk_mast" where "source_sta_no"=#{sourceStaNo} and "wrk_sts"=2 and "barcode"=#{barcode} and ("io_type"=1 or "io_type"=10) order by "io_pri" desc,"io_time","wrk_no" ASC
    </select>
    <select id="selectPakInStep11" resultMap="BaseResultMap">
        select top 1 * from asr_wrk_mast where source_sta_no=#{sourceStaNo} and wrk_sts=1 and (io_type=1 or io_type=10) order by io_pri desc,io_time,wrk_no ASC
        select top 1 * from "SOURCE"."asr_wrk_mast" where source_sta_no=#{sourceStaNo} and wrk_sts=1 and (io_type=1 or io_type=10) order by io_pri desc,io_time,wrk_no ASC
    </select>
    <select id="selectPakInStep2" resultMap="BaseResultMap">
        select top 1 * from dbo.asr_wrk_mast where wrk_sts=2 and crn_no=#{crnNo} and wrk_no=#{workNo} and sta_no=#{staNo} and (io_type=1 or io_type=10 or io_type=53 or io_type=54 or io_type=57) order by io_pri desc,io_time,wrk_no ASC
        select top 1 * from "SOURCE"."asr_wrk_mast" where "wrk_sts"=2 and "crn_no"=#{crnNo} and "wrk_no"=#{workNo} and "sta_no"=#{staNo} and ("io_type"=1 or "io_type"=10 or "io_type"=53 or "io_type"=54 or "io_type"=57) order by "io_pri" desc,"io_time","wrk_no" ASC
    </select>
    <select id="selectPakInStep3" resultMap="BaseResultMap">
        select top 1 * from dbo.asr_wrk_mast where wrk_no=#{workNo}
        select top 1 * from "SOURCE"."asr_wrk_mast" where "wrk_no"=#{workNo}
    </select>
    <select id="selectPickStep" resultMap="BaseResultMap">
        select top 1 * from asr_wrk_mast where barcode=#{barcode} and wrk_sts=14 and (io_type=103 or io_type=107 or io_type=104)
        select top 1 * from "SOURCE"."asr_wrk_mast" where "barcode"=#{barcode} and "wrk_sts"=14 and ("io_type"=103 or "io_type"=107 or "io_type"=104)
    </select>
    <select id="selectPakOutStep1" resultMap="BaseResultMap">
src/main/webapp/static/wcs/js/common.js
@@ -1,4 +1,4 @@
var baseUrl = "/wxwcs";
var baseUrl = "/wcs";
// 赋值
function setVal(el, val) {
src/main/webapp/static/wcs/js/console.map.js
@@ -1,5 +1,5 @@
mapInfo = {
    "mapName": "wxwcs",
    "mapName": "wcs",
    "rackCount": 13,
    "crnCount": 4,
    "stbCount": 4,
src/main/webapp/static/wms/js/common.js
@@ -1,4 +1,4 @@
var baseUrl = "/wxwcs";
var baseUrl = "/wcs";
// 详情窗口-高度
var detailHeight = '80%';