src/main/java/com/zy/asrs/mapper/ReportQueryMapper.java
@@ -29,17 +29,17 @@ public List<ViewStayTimeBean> getViewStayTimeAll(ViewStayTimeBean viewStayTime); // // 库位Map @Select("select distinct row1 from asr_loc_mast order by row1 asc") @Select("select distinct row1 from \"SOURCE\".\"asr_loc_mast\" order by row1 asc") List<Integer> getViewLocRowTotal(); // 库位Map @Select("select distinct bay1 from asr_loc_mast where row1=#{row1} order by bay1") @Select("select distinct bay1 from \"SOURCE\".\"asr_loc_mast\" where row1=#{row1} order by bay1") public List<String> getViewLocBayCount(@Param("row1") int row1); @Select("select distinct lev1 from asr_loc_mast where row1=#{row1} order by lev1 desc") @Select("select distinct lev1 from \"SOURCE\".\"asr_loc_mast\" where row1=#{row1} order by lev1 desc") public List<String> getViewLocLevCount(@Param("row1") int row1); @Select("select loc_no as locNo, bay1,loc_sts as locSts from asr_loc_mast where row1=#{row1} and lev1=#{lev1} order by bay1") @Select("select loc_no as locNo, bay1,loc_sts as locSts from \"SOURCE\".\"asr_loc_mast\" where row1=#{row1} and lev1=#{lev1} order by bay1") public List<ViewLocMapDto> getViewLocBays(@Param("row1") int row1, @Param("lev1") int lev1); //分页查询站点入出库次数统计 @@ -78,7 +78,7 @@ @Select("select \n" + "Min(wm.io_time) as node,\n" + "isnull(count(1), 0) as val\n" + "from asr_wrk_mast_log wm\n" + "from \"SOURCE\".\"asr_wrk_mast_log\" wm\n" + "where wm.wrk_sts = 5 \n" + "and (wm.io_type = 1 OR wm.io_type = 54)\n" + "and datediff(d, wm.io_time, getdate())<=7 \n" + @@ -89,7 +89,7 @@ @Select("select\n" + "Min(wm.io_time) as node,\n" + "isnull(count(1), 0) as val\n" + "from asr_wrk_mast_log wm\n" + "from \"SOURCE\".\"asr_wrk_mast_log\" wm\n" + "where 1=1\n" + "and ((wm.wrk_sts = 15 AND wm.io_type = 101) OR (wm.wrk_sts = 14 AND wm.io_type = 103))\n" + "and datediff(d, wm.io_time, getdate())<=7\n" + @@ -98,17 +98,17 @@ List<Map<String, Object>> queryPakOutRep(); //曲线图 @Select("select ymd,SUM(sto_qty) inqty,SUM(ret_qty) outqty from asr_sta_inout_view " @Select("select ymd,SUM(sto_qty) inqty,SUM(ret_qty) outqty from \"SOURCE\".\"asr_sta_inout_view\" " + "where ymd>CONVERT(char(10), DATEADD(DAY,-12,GETDATE()), 120) group by ymd order by ymd") public List<WorkChartAxis> getChartAxis(); @Select("select * from asr_loc_use_view") @Select("select * from \"SOURCE\".\"asr_loc_use_view\" ") LocChartPie getLocUseRate(); @Select("select count(1) as totalWrk from asr_wrk_mast_log where crn_no = #{crnNo}") @Select("select count(1) as totalWrk from \"SOURCE\".\"asr_wrk_mast_log\" where crn_no = #{crnNo}") Integer getTotalWrkByCrnId(Integer crnNo); @Select("select count(1) as totalLoc from asr_loc_mast") @Select("select count(1) as totalLoc from \"SOURCE\".\"asr_loc_mast\"") Integer getTotalLocByCrnId(); } src/main/java/com/zy/system/entity/Api.java
@@ -10,7 +10,7 @@ import java.text.SimpleDateFormat; import java.util.Date; @TableName("sys_api") @TableName("\"SOURCE\".\"sys_api\"") public class Api implements Serializable { private static final long serialVersionUID = 1L; @@ -18,44 +18,49 @@ /** * 编号 */ @TableId(value = "id", type = IdType.AUTO) @TableId(value = "ID", type = IdType.AUTO) private Long id; /** * 命名空间 */ @TableField("NAMESPACE") private String namespace; /** * 授权 0: 无需授权 1: 需要授权 */ @TableField("OAUTH") private Short oauth; /** * 请求结构 */ @TableField("REQUEST") private String request; /** * 响应结构 */ @TableField("RESPONSE") private String response; /** * 添加时间 */ @TableField("create_time") @TableField("CREATE_TIME") private Date createTime; /** * 修改时间 */ @TableField("update_time") @TableField("UPDATE_TIME") private Date updateTime; /** * 状态 1: 有效 0: 禁用 */ @TableField("STATUS") private Short status; public Api() {} src/main/java/com/zy/system/entity/Config.java
@@ -1,12 +1,13 @@ package com.zy.system.entity; import com.baomidou.mybatisplus.annotations.TableField; import com.baomidou.mybatisplus.annotations.TableId; import com.baomidou.mybatisplus.annotations.TableName; import com.baomidou.mybatisplus.enums.IdType; import java.io.Serializable; @TableName("sys_config") @TableName("\"SOURCE\".\"sys_config\"") public class Config implements Serializable { private static final long serialVersionUID = 1L; @@ -14,32 +15,37 @@ /** * 编号 */ @TableId(value = "id", type = IdType.AUTO) @TableId(value = "ID", type = IdType.AUTO) private Long id; /** * 名称 */ @TableField("NAME") private String name; /** * 编码 */ @TableField("CODE") private String code; /** * 对应值 */ @TableField("VALUE") private String value; /** * 类型 1: String 2: JSON */ @TableField("TYPE") private Short type; /** * 状态 1: 正常 0: 禁用 */ @TableField("STATUS") private Short status; public Config() {} src/main/java/com/zy/system/entity/Host.java
@@ -10,7 +10,7 @@ import java.text.SimpleDateFormat; import java.util.Date; @TableName("sys_host") @TableName("\"SOURCE\".\"sys_host\"") public class Host implements Serializable { private static final long serialVersionUID = 1L; @@ -18,34 +18,37 @@ /** * 编号 */ @TableId(value = "id", type = IdType.AUTO) @TableId(value = "ID", type = IdType.AUTO) private Long id; /** * 商户名称 */ @TableField("NAME") private String name; /** * 标识 */ @TableField("FLAG") private String flag; /** * 添加时间 */ @TableField("create_time") @TableField("CREATE_TIME") private Date createTime; /** * 修改时间 */ @TableField("update_time") @TableField("UPDATE_TIME") private Date updateTime; /** * 状态 1: 正常 0: 禁用 */ @TableField("STATUS") private Integer status; public Host() {} src/main/java/com/zy/system/entity/OperateLog.java
@@ -12,7 +12,7 @@ import java.text.SimpleDateFormat; import java.util.Date; @TableName("sys_operate_log") @TableName("\"SOURCE\".\"sys_operate_log\"") public class OperateLog implements Serializable { private static final long serialVersionUID = 1L; @@ -20,39 +20,43 @@ /** * 编号 */ @TableId(value = "id", type = IdType.AUTO) @TableId(value = "ID", type = IdType.AUTO) private Long id; /** * 访问地址 */ @TableField("ACTION") private String action; /** * 用户 */ @TableField("user_id") @TableField("USER_ID") private Long userId; /** * 客户端IP */ @TableField("IP") private String ip; /** * 请求数据 */ @TableField("REQUEST") private String request; /** * 响应数据 */ @TableField("RESPONSE") private String response; /** * 添加时间 */ @TableField("create_time") @TableField("CREATE_TIME") private Date createTime; public Long getId() { src/main/java/com/zy/system/entity/Permission.java
@@ -10,7 +10,7 @@ import java.io.Serializable; @TableName("sys_permission") @TableName("\"SOURCE\".\"sys_permission\"") public class Permission implements Serializable { private static final long serialVersionUID = 1L; @@ -18,28 +18,31 @@ /** * 编号 */ @TableId(value = "id", type = IdType.AUTO) @TableId(value = "ID", type = IdType.AUTO) private Long id; /** * 权限名称 */ @TableField("NAME") private String name; /** * 接口地址 */ @TableField("ACTION") private String action; /** * 所属菜单 */ @TableField("resource_id") @TableField("RESOURCE_ID") private Long resourceId; /** * 状态 1: 正常 0: 禁用 */ @TableField("LOC_DESC") private Short status; public Permission() {} src/main/java/com/zy/system/entity/Resource.java
@@ -10,7 +10,7 @@ import java.io.Serializable; @TableName("sys_resource") @TableName("\"SOURCE\".\"sys_resource\"") public class Resource implements Serializable { private static final long serialVersionUID = 1L; @@ -18,38 +18,43 @@ /** * 编号 */ @TableId(value = "id", type = IdType.AUTO) @TableId(value = "ID", type = IdType.AUTO) private Long id; /** * 菜单编码 */ @TableField("CODE") private String code; /** * 菜单名称 */ @TableField("NAME") private String name; /** * 父级菜单 */ @TableField("resource_id") @TableField("RESOURCE_ID") private Long resourceId; /** * 菜单等级 1: 一级菜单 2: 二级菜单 */ @TableField("LEVEL") private Short level; /** * 排序 */ @TableField("SORT") private Integer sort; /** * 状态 1: 正常 0: 禁用 */ @TableField("STATUS") private Short status; public Resource() {} src/main/java/com/zy/system/entity/Role.java
@@ -1,5 +1,6 @@ package com.zy.system.entity; import com.baomidou.mybatisplus.annotations.TableField; import com.baomidou.mybatisplus.annotations.TableId; import com.baomidou.mybatisplus.annotations.TableName; import com.baomidou.mybatisplus.enums.IdType; @@ -10,7 +11,7 @@ import java.io.Serializable; @TableName("sys_role") @TableName("\"SOURCE\".\"sys_role\"") public class Role implements Serializable { private static final long serialVersionUID = 1L; @@ -19,31 +20,35 @@ * 编号 */ @ApiModelProperty(value= "编号") @TableId(value = "id", type = IdType.AUTO) @TableId(value = "ID", type = IdType.AUTO) private Long id; /** * 编码 */ @ApiModelProperty(value= "编码") @TableField("CODE") private String code; /** * 名称 */ @ApiModelProperty(value= "名称") @TableField("NAME") private String name; /** * 上级 */ @ApiModelProperty(value= "上级") @TableField("LEADER") private Long leader; /** * 角色等级 1: 一级 2: 二级 3: 三级 4: 四级 5: 五级 */ @ApiModelProperty(value= "角色等级 1: 一级 2: 二级 3: 三级 4: 四级 5: 五级 ") @TableField("LEVEL") private Short level; public Role() {} src/main/java/com/zy/system/entity/RolePermission.java
@@ -13,7 +13,7 @@ //import com.zy.system.service.RoleService; @TableName("sys_role_permission") @TableName("\"SOURCE\".\"sys_role_permission\"") public class RolePermission implements Serializable { private static final long serialVersionUID = 1L; @@ -21,19 +21,19 @@ /** * 编号 */ @TableId(value = "id", type = IdType.AUTO) @TableId(value = "ID", type = IdType.AUTO) private Long id; /** * 角色 */ @TableField("role_id") @TableField("ROLE_ID") private Long roleId; /** * 权限 */ @TableField("permission_id") @TableField("PERMISSION_ID") private Long permissionId; public RolePermission() {} src/main/java/com/zy/system/entity/RoleResource.java
@@ -7,7 +7,7 @@ import java.io.Serializable; @TableName("sys_role_resource") @TableName("\"SOURCE\".\"sys_role_resource\"") public class RoleResource implements Serializable { private static final long serialVersionUID = 1L; @@ -15,19 +15,19 @@ /** * 编号 */ @TableId(value = "id", type = IdType.AUTO) @TableId(value = "ID", type = IdType.AUTO) private Long id; /** * 角色 */ @TableField("role_id") @TableField("ROLE_ID") private Long roleId; /** * 资源 */ @TableField("resource_id") @TableField("RESOURCE_ID") private Long resourceId; public Long getId() { src/main/java/com/zy/system/entity/User.java
@@ -15,7 +15,7 @@ //import com.zy.system.service.RoleService; @TableName("sys_user") @TableName("\"SOURCE\".\"sys_user\"") public class User implements Serializable { private static final long serialVersionUID = 1L; @@ -23,45 +23,49 @@ /** * 编号 */ @TableId(value = "id", type = IdType.AUTO) @TableId(value = "ID", type = IdType.AUTO) private Long id; /** * 授权商户 */ @TableField("host_id") @TableField("HOST_ID") private Long hostId; /** * 账号 */ @TableField("USERNAME") private String username; /** * 手机号 */ @TableField("MOBILE") private String mobile; /** * 密码 */ @TableField("PASSWORD") private String password; /** * 角色 */ @TableField("role_id") @TableField("ROLE_ID") private Long roleId; /** * 注册时间 */ @TableField("create_time") @TableField("CREATE_TIME") private Date createTime; /** * 状态 1: 启用 2: 冻结 3: 删除 */ @TableField("STATUS") private Integer status; public Long getId() { src/main/java/com/zy/system/entity/UserLogin.java
@@ -12,7 +12,7 @@ import java.text.SimpleDateFormat; import java.util.Date; @TableName("sys_user_login") @TableName("\"SOURCE\".\"sys_user_login\"") public class UserLogin implements Serializable { private static final long serialVersionUID = 1L; @@ -20,24 +20,25 @@ /** * 编号 */ @TableId(value = "id", type = IdType.AUTO) @TableId(value = "ID", type = IdType.AUTO) private Long id; /** * 员工 */ @TableField("user_id") @TableField("USER_ID") private Long userId; /** * 凭证值 */ @TableField("TOKEN") private String token; /** * 添加时间 */ @TableField("create_time") @TableField("CREATE_TIME") private Date createTime; public Long getId() { src/main/resources/application-prod.yml
@@ -30,6 +30,7 @@ ip: 192.168.4.250 slot: 0 port: 102 rack: 102 id: 1 # RGV穿梭车1 rgv[0]: