Commit 98b0bcbc by shenweidong

使用mybatis-plus生成了非核心代码,编写了查询警员接口

parent 5266f06d
......@@ -7,12 +7,17 @@
<sourceOutputDir name="target/generated-sources/annotations" />
<sourceTestOutputDir name="target/generated-test-sources/test-annotations" />
<outputRelativeToContentRoot value="true" />
<module name="jyzb-api" />
<module name="jyzb-process" />
<module name="jyzb-common" />
<module name="jyzb-boot" />
<module name="jyzb-api" />
<module name="jyzb-biz" />
<module name="jyzb-process" />
<module name="jyzb-business" />
</profile>
</annotationProcessing>
<bytecodeTargetLevel>
<module name="jyzb-business" target="1.8" />
</bytecodeTargetLevel>
</component>
<component name="JavacSettings">
<option name="ADDITIONAL_OPTIONS_OVERRIDE">
......@@ -20,6 +25,8 @@
<module name="jyzb-api" options="-parameters" />
<module name="jyzb-biz" options="-parameters" />
<module name="jyzb-boot" options="-parameters" />
<module name="jyzb-business" options="-parameters" />
<module name="jyzb-common" options="-parameters" />
<module name="jyzb-process" options="-parameters" />
</option>
</component>
......
......@@ -6,6 +6,10 @@
<file url="file://$PROJECT_DIR$/jyzb-biz/src/main/resources" charset="UTF-8" />
<file url="file://$PROJECT_DIR$/jyzb-boot/src/main/java" charset="UTF-8" />
<file url="file://$PROJECT_DIR$/jyzb-boot/src/main/resources" charset="UTF-8" />
<file url="file://$PROJECT_DIR$/jyzb-business/src/main/java" charset="UTF-8" />
<file url="file://$PROJECT_DIR$/jyzb-business/src/main/resources" charset="UTF-8" />
<file url="file://$PROJECT_DIR$/jyzb-common/src/main/java" charset="UTF-8" />
<file url="file://$PROJECT_DIR$/jyzb-common/src/main/resources" charset="UTF-8" />
<file url="file://$PROJECT_DIR$/jyzb-process/src/main/java" charset="UTF-8" />
<file url="file://$PROJECT_DIR$/jyzb-process/src/main/resources" charset="UTF-8" />
</component>
......
......@@ -11,6 +11,11 @@
<option value="$PROJECT_DIR$/jyzb-process/pom.xml" />
</list>
</option>
<option name="ignoredFiles">
<set>
<option value="$PROJECT_DIR$/jyzb-business/pom.xml" />
</set>
</option>
</component>
<component name="ProjectRootManager" version="2" languageLevel="JDK_1_8" default="true" project-jdk-name="1.8" project-jdk-type="JavaSDK" />
</project>
\ No newline at end of file
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="ProjectModuleManager">
<modules>
<module fileurl="file://$PROJECT_DIR$/jyzb-business/jyzb-business.iml" filepath="$PROJECT_DIR$/jyzb-business/jyzb-business.iml" />
</modules>
</component>
</project>
\ No newline at end of file
2023-05-29 10:13:15.461 ERROR 17468 --- [main] o.s.boot.SpringApplication : Application run failed
com.junmp.v2.config.api.exception.ConfigException: 获取不到application.yml中的数据库配置,无法从数据库加载系统配置表
at com.junmp.v2.config.listener.ConfigInitListener.eventCallback(ConfigInitListener.java:73)
at com.junmp.v2.common.listener.ContextInitializedListener.onApplicationEvent(ContextInitializedListener.java:30)
at com.junmp.v2.common.listener.ContextInitializedListener.onApplicationEvent(ContextInitializedListener.java:20)
at org.springframework.context.event.SimpleApplicationEventMulticaster.doInvokeListener(SimpleApplicationEventMulticaster.java:176)
at org.springframework.context.event.SimpleApplicationEventMulticaster.invokeListener(SimpleApplicationEventMulticaster.java:169)
at org.springframework.context.event.SimpleApplicationEventMulticaster.multicastEvent(SimpleApplicationEventMulticaster.java:143)
at org.springframework.context.event.SimpleApplicationEventMulticaster.multicastEvent(SimpleApplicationEventMulticaster.java:131)
at org.springframework.boot.context.event.EventPublishingRunListener.contextPrepared(EventPublishingRunListener.java:89)
at org.springframework.boot.SpringApplicationRunListeners.lambda$contextPrepared$3(SpringApplicationRunListeners.java:67)
at java.util.ArrayList.forEach(ArrayList.java:1259)
at org.springframework.boot.SpringApplicationRunListeners.doWithListeners(SpringApplicationRunListeners.java:117)
at org.springframework.boot.SpringApplicationRunListeners.doWithListeners(SpringApplicationRunListeners.java:111)
at org.springframework.boot.SpringApplicationRunListeners.contextPrepared(SpringApplicationRunListeners.java:67)
at org.springframework.boot.SpringApplication.prepareContext(SpringApplication.java:391)
at org.springframework.boot.SpringApplication.run(SpringApplication.java:325)
at org.springframework.boot.SpringApplication.run(SpringApplication.java:1313)
at org.springframework.boot.SpringApplication.run(SpringApplication.java:1302)
at com.junmp.jyzb.boot.JyzbBootApplication.main(JyzbBootApplication.java:33)
2023-05-29 10:13:34.808 ERROR 21460 --- [main] o.s.boot.SpringApplication : Application run failed
com.junmp.v2.config.api.exception.ConfigException: 获取不到application.yml中的数据库配置,无法从数据库加载系统配置表
at com.junmp.v2.config.listener.ConfigInitListener.eventCallback(ConfigInitListener.java:73)
at com.junmp.v2.common.listener.ContextInitializedListener.onApplicationEvent(ContextInitializedListener.java:30)
at com.junmp.v2.common.listener.ContextInitializedListener.onApplicationEvent(ContextInitializedListener.java:20)
at org.springframework.context.event.SimpleApplicationEventMulticaster.doInvokeListener(SimpleApplicationEventMulticaster.java:176)
at org.springframework.context.event.SimpleApplicationEventMulticaster.invokeListener(SimpleApplicationEventMulticaster.java:169)
at org.springframework.context.event.SimpleApplicationEventMulticaster.multicastEvent(SimpleApplicationEventMulticaster.java:143)
at org.springframework.context.event.SimpleApplicationEventMulticaster.multicastEvent(SimpleApplicationEventMulticaster.java:131)
at org.springframework.boot.context.event.EventPublishingRunListener.contextPrepared(EventPublishingRunListener.java:89)
at org.springframework.boot.SpringApplicationRunListeners.lambda$contextPrepared$3(SpringApplicationRunListeners.java:67)
at java.util.ArrayList.forEach(ArrayList.java:1259)
at org.springframework.boot.SpringApplicationRunListeners.doWithListeners(SpringApplicationRunListeners.java:117)
at org.springframework.boot.SpringApplicationRunListeners.doWithListeners(SpringApplicationRunListeners.java:111)
at org.springframework.boot.SpringApplicationRunListeners.contextPrepared(SpringApplicationRunListeners.java:67)
at org.springframework.boot.SpringApplication.prepareContext(SpringApplication.java:391)
at org.springframework.boot.SpringApplication.run(SpringApplication.java:325)
at org.springframework.boot.SpringApplication.run(SpringApplication.java:1313)
at org.springframework.boot.SpringApplication.run(SpringApplication.java:1302)
at com.junmp.jyzb.boot.JyzbBootApplication.main(JyzbBootApplication.java:33)
2023-05-29 10:13:15.062 INFO 17468 --- [main] c.j.v.c.listener.ConfigInitListener : 当前数据库驱动类>>>null
2023-05-29 10:13:15.069 WARN 17468 --- [main] o.s.b.c.config.ConfigDataEnvironment : Property 'spring.profiles' imported from location 'class path resource [application.yml]' is invalid and should be replaced with 'spring.config.activate.on-profile' [origin: class path resource [application.yml] - 10:12]
2023-05-29 10:13:15.461 ERROR 17468 --- [main] o.s.boot.SpringApplication : Application run failed
com.junmp.v2.config.api.exception.ConfigException: 获取不到application.yml中的数据库配置,无法从数据库加载系统配置表
at com.junmp.v2.config.listener.ConfigInitListener.eventCallback(ConfigInitListener.java:73)
at com.junmp.v2.common.listener.ContextInitializedListener.onApplicationEvent(ContextInitializedListener.java:30)
at com.junmp.v2.common.listener.ContextInitializedListener.onApplicationEvent(ContextInitializedListener.java:20)
at org.springframework.context.event.SimpleApplicationEventMulticaster.doInvokeListener(SimpleApplicationEventMulticaster.java:176)
at org.springframework.context.event.SimpleApplicationEventMulticaster.invokeListener(SimpleApplicationEventMulticaster.java:169)
at org.springframework.context.event.SimpleApplicationEventMulticaster.multicastEvent(SimpleApplicationEventMulticaster.java:143)
at org.springframework.context.event.SimpleApplicationEventMulticaster.multicastEvent(SimpleApplicationEventMulticaster.java:131)
at org.springframework.boot.context.event.EventPublishingRunListener.contextPrepared(EventPublishingRunListener.java:89)
at org.springframework.boot.SpringApplicationRunListeners.lambda$contextPrepared$3(SpringApplicationRunListeners.java:67)
at java.util.ArrayList.forEach(ArrayList.java:1259)
at org.springframework.boot.SpringApplicationRunListeners.doWithListeners(SpringApplicationRunListeners.java:117)
at org.springframework.boot.SpringApplicationRunListeners.doWithListeners(SpringApplicationRunListeners.java:111)
at org.springframework.boot.SpringApplicationRunListeners.contextPrepared(SpringApplicationRunListeners.java:67)
at org.springframework.boot.SpringApplication.prepareContext(SpringApplication.java:391)
at org.springframework.boot.SpringApplication.run(SpringApplication.java:325)
at org.springframework.boot.SpringApplication.run(SpringApplication.java:1313)
at org.springframework.boot.SpringApplication.run(SpringApplication.java:1302)
at com.junmp.jyzb.boot.JyzbBootApplication.main(JyzbBootApplication.java:33)
2023-05-29 10:13:34.432 INFO 21460 --- [main] c.j.v.c.listener.ConfigInitListener : 当前数据库驱动类>>>null
2023-05-29 10:13:34.808 ERROR 21460 --- [main] o.s.boot.SpringApplication : Application run failed
com.junmp.v2.config.api.exception.ConfigException: 获取不到application.yml中的数据库配置,无法从数据库加载系统配置表
at com.junmp.v2.config.listener.ConfigInitListener.eventCallback(ConfigInitListener.java:73)
at com.junmp.v2.common.listener.ContextInitializedListener.onApplicationEvent(ContextInitializedListener.java:30)
at com.junmp.v2.common.listener.ContextInitializedListener.onApplicationEvent(ContextInitializedListener.java:20)
at org.springframework.context.event.SimpleApplicationEventMulticaster.doInvokeListener(SimpleApplicationEventMulticaster.java:176)
at org.springframework.context.event.SimpleApplicationEventMulticaster.invokeListener(SimpleApplicationEventMulticaster.java:169)
at org.springframework.context.event.SimpleApplicationEventMulticaster.multicastEvent(SimpleApplicationEventMulticaster.java:143)
at org.springframework.context.event.SimpleApplicationEventMulticaster.multicastEvent(SimpleApplicationEventMulticaster.java:131)
at org.springframework.boot.context.event.EventPublishingRunListener.contextPrepared(EventPublishingRunListener.java:89)
at org.springframework.boot.SpringApplicationRunListeners.lambda$contextPrepared$3(SpringApplicationRunListeners.java:67)
at java.util.ArrayList.forEach(ArrayList.java:1259)
at org.springframework.boot.SpringApplicationRunListeners.doWithListeners(SpringApplicationRunListeners.java:117)
at org.springframework.boot.SpringApplicationRunListeners.doWithListeners(SpringApplicationRunListeners.java:111)
at org.springframework.boot.SpringApplicationRunListeners.contextPrepared(SpringApplicationRunListeners.java:67)
at org.springframework.boot.SpringApplication.prepareContext(SpringApplication.java:391)
at org.springframework.boot.SpringApplication.run(SpringApplication.java:325)
at org.springframework.boot.SpringApplication.run(SpringApplication.java:1313)
at org.springframework.boot.SpringApplication.run(SpringApplication.java:1302)
at com.junmp.jyzb.boot.JyzbBootApplication.main(JyzbBootApplication.java:33)
......@@ -26,5 +26,18 @@
<artifactId>v2-validator-api</artifactId>
</dependency>
<!-- jwt -->
<dependency>
<groupId>io.jsonwebtoken</groupId>
<artifactId>jjwt</artifactId>
<version>0.9.1</version>
</dependency>
<dependency>
<groupId>io.swagger</groupId>
<artifactId>swagger-annotations</artifactId>
<version>1.5.22</version>
</dependency>
</dependencies>
</project>
package com.junmp.jyzb.api.bean.req;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import java.io.Serializable;
import java.util.Date;
@ApiModel(value="com-junmp-jyzb-domain-Policeman")
@Data
@AllArgsConstructor
@NoArgsConstructor
public class Policeman implements Serializable {
/**
* 警员id
*/
@ApiModelProperty(value="警员id")
private String id;
/**
* 警员名称
*/
@ApiModelProperty(value="警员名称")
private String name;
/**
* 单警柜关联id
*/
@ApiModelProperty(value="单警柜关联id")
private String cabinetId;
/**
* 机构代码,一个警员只属于一个机构
*/
@ApiModelProperty(value="机构代码,一个警员只属于一个机构")
private String orgId;
/**
* 警员编号
*/
@ApiModelProperty(value="警员编号")
private String policeCode;
/**
* 警员性别
*/
@ApiModelProperty(value="警员性别")
private String sex;
/**
* 警员照片
*/
@ApiModelProperty(value="警员照片")
private String photo;
/**
* 联系方式
*/
@ApiModelProperty(value="联系方式")
private String phone;
/**
* 创建时间
*/
@ApiModelProperty(value="创建时间")
private Date createTime;
/**
* 最后更新时间
*/
@ApiModelProperty(value="最后更新时间")
private Date updateTime;
/**
* 更新人员
*/
@ApiModelProperty(value="更新人员")
private String updateUser;
/**
* 软删除,0表存在,1表已删除
*/
@ApiModelProperty(value="软删除,0表存在,1表已删除")
private Integer existType;
/**
* 人脸信息
*/
@ApiModelProperty(value="人脸信息")
private String faceInfo;
private static final long serialVersionUID = 1L;
}
\ No newline at end of file
......@@ -15,6 +15,7 @@
<dependency>
<groupId>io.swagger</groupId>
<artifactId>swagger-annotations</artifactId>
<version>1.5.22</version>
</dependency>
<dependency>
<groupId>org.projectlombok</groupId>
......@@ -38,5 +39,11 @@
<groupId>com.junmp.v2</groupId>
<artifactId>auth-sdk</artifactId>
</dependency>
<dependency>
<groupId>com.junmp.jyzb</groupId>
<artifactId>jyzb-common</artifactId>
<version>1.0.0</version>
</dependency>
</dependencies>
</project>
package com.junmp.jyzb.controller;
import com.junmp.jyzb.domain.PoliceFinger;
import com.junmp.jyzb.domain.Policeman;
import com.junmp.jyzb.service.PoliceFingerService;
import com.junmp.jyzb.service.PolicemanService;
import com.junmp.jyzb.utils.ResponseResult;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;
import javax.annotation.Resource;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
@RestController
@Slf4j
@RequestMapping("/police")
@Api(tags = "警员基础信息模块")
public class PoliceController {
@Resource
public PolicemanService policemanService;
@Resource
private PoliceFingerService fingerService;
@PostMapping("/getAllPoliceman")
@ApiOperation("查询警员列表")
public ResponseResult getAllPoliceman(){
List<Policeman> allPoliceman = policemanService.getAllPoliceman();
return new ResponseResult(10000,"操作成功",allPoliceman);
}
@PostMapping("/getOnePolice")
@ApiOperation("查询单个警员信息")
public ResponseResult getFingerprintsByUserId(@RequestBody Map<String, Object> msg) {
String userId = msg.get("policeId").toString();
Map<String, Object> policeMsg = policemanService.getPoliceMsg(userId);
List<Map<String, Object>> fingerprints = fingerService.getFingersByUserId(userId);
policeMsg.put("fingerMsg",fingerprints);
return new ResponseResult(10000,"操作成功",policeMsg);
}
}
package com.junmp.jyzb.controller;
import com.junmp.jyzb.utils.ResponseResult;
import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
@RestController
@Slf4j
@RequestMapping("/api")
public class TestController {
@RequestMapping("/hello")
public String Hello(){
return "Hello";
public ResponseResult Hello(){
return new ResponseResult(10000,"操作成功","hello");
}
}
package com.junmp.jyzb.domain;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.io.Serializable;
import java.util.Date;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
@ApiModel(value = "com-junmp-jyzb-domain-Cabinet")
@Data
@AllArgsConstructor
@NoArgsConstructor
public class Cabinet implements Serializable {
/**
* 单警柜ID
*/
@ApiModelProperty(value = "单警柜ID")
private String id;
/**
* 单警柜编号
*/
@ApiModelProperty(value = "单警柜编号")
private String cabinetNum;
/**
* 单警柜名称
*/
@ApiModelProperty(value = "单警柜名称")
private String name;
/**
* 组织机构号
*/
@ApiModelProperty(value = "组织机构号")
private String orgId;
/**
* 位置信息
*/
@ApiModelProperty(value = "位置信息")
private String location;
/**
* 单警柜当前状态,0正常,1异常
*/
@ApiModelProperty(value = "单警柜当前状态,0正常,1异常")
private Integer errorState;
/**
* 创建时间
*/
@ApiModelProperty(value = "创建时间")
private Date createTime;
/**
* 更新时间
*/
@ApiModelProperty(value = "更新时间")
private Date updateTime;
/**
* 创建人员
*/
@ApiModelProperty(value = "创建人员")
private Date createUser;
/**
* 更新人员
*/
@ApiModelProperty(value = "更新人员")
private String updateUser;
private static final long serialVersionUID = 1L;
}
\ No newline at end of file
package com.junmp.jyzb.domain;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.io.Serializable;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
@ApiModel(value = "com-junmp-jyzb-domain-CabinetBox")
@Data
@AllArgsConstructor
@NoArgsConstructor
public class CabinetBox implements Serializable {
/**
* 主键ID
*/
@ApiModelProperty(value = "主键ID")
private String id;
/**
* 主柜ID
*/
@ApiModelProperty(value = "主柜ID")
private String cabinetId;
/**
* 警员ID
*/
@ApiModelProperty(value = "警员ID")
private String policeId;
/**
* 警员姓名
*/
@ApiModelProperty(value = "警员姓名")
private String policeName;
/**
* 异常状态:0正常/1异常
*/
@ApiModelProperty(value = "异常状态:0正常/1异常")
private Integer errorState;
/**
* 异常原因
*/
@ApiModelProperty(value = "异常原因")
private String errorMsg;
/**
* 使用日志存储位置信息
*/
@ApiModelProperty(value = "使用日志存储位置信息")
private String logMap;
private static final long serialVersionUID = 1L;
}
\ No newline at end of file
package com.junmp.jyzb.domain;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.io.Serializable;
import java.util.Date;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
@ApiModel(value = "com-junmp-jyzb-domain-EquipmentSize")
@Data
@AllArgsConstructor
@NoArgsConstructor
public class EquipmentSize implements Serializable {
/**
* 装备号型ID
*/
@ApiModelProperty(value = "装备号型ID")
private String id;
/**
* 装备类型ID
*/
@ApiModelProperty(value = "装备类型ID")
private String typeId;
/**
* 信息关联ID
*/
@ApiModelProperty(value = "信息关联ID")
private String detailId;
/**
* 号型码
*/
@ApiModelProperty(value = "号型码")
private Integer code;
/**
* 号型名称
*/
@ApiModelProperty(value = "号型名称")
private String name;
/**
* 创建时间
*/
@ApiModelProperty(value = "创建时间")
private Date createTime;
/**
* 更新时间
*/
@ApiModelProperty(value = "更新时间")
private Date updateTime;
/**
* 备注
*/
@ApiModelProperty(value = "备注")
private String note;
/**
* EPC类型
*/
@ApiModelProperty(value = "EPC类型")
private Integer epcType;
private static final long serialVersionUID = 1L;
}
\ No newline at end of file
package com.junmp.jyzb.domain;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.io.Serializable;
import java.util.Date;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
@ApiModel(value = "com-junmp-jyzb-domain-EquipmentType")
@Data
@AllArgsConstructor
@NoArgsConstructor
public class EquipmentType implements Serializable {
/**
* 装备类型ID
*/
@ApiModelProperty(value = "装备类型ID")
private String id;
/**
* 类型名称
*/
@ApiModelProperty(value = "类型名称")
private String name;
/**
* 装备Code码
*/
@ApiModelProperty(value = "装备Code码")
private String code;
/**
* 上级id
*/
@ApiModelProperty(value = "上级id")
private String parentId;
/**
* 创建时间
*/
@ApiModelProperty(value = "创建时间")
private Date createTime;
/**
* 最后更新时间
*/
@ApiModelProperty(value = "最后更新时间")
private Date updateTime;
/**
* 当前状态:0关闭/1启用
*/
@ApiModelProperty(value = "当前状态:0关闭/1启用")
private Integer state;
/**
* 备注
*/
@ApiModelProperty(value = "备注")
private String note;
private static final long serialVersionUID = 1L;
}
\ No newline at end of file
package com.junmp.jyzb.domain;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.io.Serializable;
import java.util.Date;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
@ApiModel(value = "com-junmp-jyzb-domain-History")
@Data
@AllArgsConstructor
@NoArgsConstructor
public class History implements Serializable {
/**
* 历史记录id
*/
@ApiModelProperty(value = "历史记录id")
private String id;
/**
* 装备类型id
*/
@ApiModelProperty(value = "装备类型id")
private String equipmentId;
/**
* 组织机构id
*/
@ApiModelProperty(value = "组织机构id")
private String organizationId;
/**
* 要查询的时间
*/
@ApiModelProperty(value = "要查询的时间")
private Date searchDate;
/**
* 当月使用次数
*/
@ApiModelProperty(value = "当月使用次数")
private Integer useMonth;
/**
* 当月维修次数
*/
@ApiModelProperty(value = "当月维修次数")
private Integer fixMonth;
private static final long serialVersionUID = 1L;
}
\ No newline at end of file
package com.junmp.jyzb.domain;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.io.Serializable;
import java.util.Date;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
@ApiModel(value = "com-junmp-jyzb-domain-Inventory")
@Data
@AllArgsConstructor
@NoArgsConstructor
public class Inventory implements Serializable {
/**
* 装备ID
*/
@ApiModelProperty(value = "装备ID")
private String id;
/**
* 装备包ID
*/
@ApiModelProperty(value = "装备包ID")
private String packageId;
/**
* 装备类型ID
*/
@ApiModelProperty(value = "装备类型ID")
private String typeId;
/**
* 装备类型名称
*/
@ApiModelProperty(value = "装备类型名称")
private String typeName;
/**
* 号型ID
*/
@ApiModelProperty(value = "号型ID")
private String sizeId;
/**
* 供应商ID
*/
@ApiModelProperty(value = "供应商ID")
private String supplierId;
/**
* 供应商名称
*/
@ApiModelProperty(value = "供应商名称")
private String supplierName;
/**
* 货架ID
*/
@ApiModelProperty(value = "货架ID")
private String shelfId;
/**
* 区域信息
*/
@ApiModelProperty(value = "区域信息")
private String locationArea;
/**
* 位置信息
*/
@ApiModelProperty(value = "位置信息")
private String positionMsg;
/**
* EPC信息
*/
@ApiModelProperty(value = "EPC信息")
private String epc;
/**
* 组织机构ID
*/
@ApiModelProperty(value = "组织机构ID")
private String orgId;
/**
* 组织机构名称
*/
@ApiModelProperty(value = "组织机构名称")
private String orgName;
/**
* 状态:0正常/1损坏/2报废/3销毁
*/
@ApiModelProperty(value = "状态:0正常/1损坏/2报废/3销毁")
private Integer state;
/**
* 业务状态:0无业务,1调拨/借用/领用
*/
@ApiModelProperty(value = "业务状态:0无业务,1调拨/借用/领用")
private Integer bussinessState;
/**
* 在库状态:0在库,1出库
*/
@ApiModelProperty(value = "在库状态:0在库,1出库")
private Integer locationState;
/**
* 生产日期
*/
@ApiModelProperty(value = "生产日期")
private Date productionDate;
/**
* 质保期
*/
@ApiModelProperty(value = "质保期")
private Integer warrantyPeriod;
/**
* 维保期
*/
@ApiModelProperty(value = "维保期")
private Integer maintenancePeriod;
/**
* 维修次数
*/
@ApiModelProperty(value = "维修次数")
private Integer fixCount;
/**
* 价格
*/
@ApiModelProperty(value = "价格")
private String price;
/**
* 创建时间
*/
@ApiModelProperty(value = "创建时间")
private Date createTime;
/**
* 更新时间
*/
@ApiModelProperty(value = "更新时间")
private Date updateTime;
/**
* 备注
*/
@ApiModelProperty(value = "备注")
private String note;
private static final long serialVersionUID = 1L;
}
\ No newline at end of file
package com.junmp.jyzb.domain;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
@ApiModel(value = "com-junmp-jyzb-domain-InventorySummary")
@Data
@AllArgsConstructor
@NoArgsConstructor
public class InventorySummary implements Serializable {
/**
* 装备汇总id
*/
@ApiModelProperty(value = "装备汇总id")
private String id;
/**
* 组织机构id
*/
@ApiModelProperty(value = "组织机构id")
private String orgId;
/**
* 组织机构名称
*/
@ApiModelProperty(value = "组织机构名称")
private String orgName;
/**
* 装备类型id
*/
@ApiModelProperty(value = "装备类型id")
private String typeId;
/**
* 类型名称
*/
@ApiModelProperty(value = "类型名称")
private String typeName;
/**
* 装备号型id
*/
@ApiModelProperty(value = "装备号型id")
private String sizeId;
/**
* 号型名称
*/
@ApiModelProperty(value = "号型名称")
private String sizeName;
/**
* 位置类型,0代表仓库,1代表单警柜
*/
@ApiModelProperty(value = "位置类型,0代表仓库,1代表单警柜")
private String locationType;
/**
* 位置信息id
*/
@ApiModelProperty(value = "位置信息id")
private String locationId;
/**
* 位置名称
*/
@ApiModelProperty(value = "位置名称")
private String locationName;
/**
* 区域id
*/
@ApiModelProperty(value = "区域id")
private String locationAreaId;
/**
* 区域信息
*/
@ApiModelProperty(value = "区域信息")
private String locationArea;
/**
* 库存数量
*/
@ApiModelProperty(value = "库存数量")
private Integer number;
/**
* 总价
*/
@ApiModelProperty(value = "总价")
private BigDecimal price;
/**
* 在库数
*/
@ApiModelProperty(value = "在库数")
private Integer stockNumber;
/**
* 出库数量
*/
@ApiModelProperty(value = "出库数量")
private Integer outboundNumber;
/**
* 销毁数量
*/
@ApiModelProperty(value = "销毁数量")
private Integer destructionNumber;
/**
* 过质保数量
*/
@ApiModelProperty(value = "过质保数量")
private Integer expireNumber;
/**
* 创建时间
*/
@ApiModelProperty(value = "创建时间")
private Date createTime;
/**
* 更新时间
*/
@ApiModelProperty(value = "更新时间")
private Date updateTime;
private static final long serialVersionUID = 1L;
}
\ No newline at end of file
package com.junmp.jyzb.domain;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.io.Serializable;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
@ApiModel(value = "com-junmp-jyzb-domain-LogDetail")
@Data
@AllArgsConstructor
@NoArgsConstructor
public class LogDetail implements Serializable {
/**
* 出入库明细ID
*/
@ApiModelProperty(value = "出入库明细ID")
private Integer id;
/**
* 出入库汇总ID
*/
@ApiModelProperty(value = "出入库汇总ID")
private Integer summaryId;
/**
* 单据ID
*/
@ApiModelProperty(value = "单据ID")
private String orderId;
/**
* EPC信息
*/
@ApiModelProperty(value = "EPC信息")
private String epc;
/**
* 装备名称
*/
@ApiModelProperty(value = "装备名称")
private String equipmentName;
/**
* 装备号型
*/
@ApiModelProperty(value = "装备号型")
private String equipmentSize;
/**
* 供应商
*/
@ApiModelProperty(value = "供应商")
private String equipmentSupplier;
/**
* 装备类型:0单件/1装备包
*/
@ApiModelProperty(value = "装备类型:0单件/1装备包")
private Integer equipmentType;
/**
* 状态,0正常/1异常
*/
@ApiModelProperty(value = "状态,0正常/1异常")
private Integer errorState;
/**
* 备注信息
*/
@ApiModelProperty(value = "备注信息")
private String note;
private static final long serialVersionUID = 1L;
}
\ No newline at end of file
package com.junmp.jyzb.domain;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.io.Serializable;
import java.util.Date;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
@ApiModel(value = "com-junmp-jyzb-domain-LogSummary")
@Data
@AllArgsConstructor
@NoArgsConstructor
public class LogSummary implements Serializable {
/**
* 出入库汇总ID
*/
@ApiModelProperty(value = "出入库汇总ID")
private Integer id;
/**
* 组织机构ID
*/
@ApiModelProperty(value = "组织机构ID")
private String orgId;
/**
* 组织机构名称
*/
@ApiModelProperty(value = "组织机构名称")
private String orgName;
/**
* 仓库ID
*/
@ApiModelProperty(value = "仓库ID")
private String warehouseId;
/**
* 仓库名称
*/
@ApiModelProperty(value = "仓库名称")
private String warehouseName;
/**
* 设备标识
*/
@ApiModelProperty(value = "设备标识")
private String device;
/**
* 出入设备:0手持机/1单警柜/2通道
*/
@ApiModelProperty(value = "出入设备:0手持机/1单警柜/2通道")
private Integer deviceType;
/**
* 操作时间
*/
@ApiModelProperty(value = "操作时间")
private Date useTime;
/**
* 操作人员姓名
*/
@ApiModelProperty(value = "操作人员姓名")
private String userName;
/**
* 出入库类型:0出库/1入库
*/
@ApiModelProperty(value = "出入库类型:0出库/1入库")
private Integer outInState;
/**
* 照片信息
*/
@ApiModelProperty(value = "照片信息")
private String picture;
private static final long serialVersionUID = 1L;
}
\ No newline at end of file
package com.junmp.jyzb.domain;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.io.Serializable;
import java.util.Date;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
@ApiModel(value = "com-junmp-jyzb-domain-Organization")
@Data
@AllArgsConstructor
@NoArgsConstructor
public class Organization implements Serializable {
/**
* 组织机构表ID
*/
@ApiModelProperty(value = "组织机构表ID")
private String id;
/**
* 组织机构名称
*/
@ApiModelProperty(value = "组织机构名称")
private String name;
/**
* 组织机构代码
*/
@ApiModelProperty(value = "组织机构代码")
private String code;
/**
* 创建时间
*/
@ApiModelProperty(value = "创建时间")
private Date createTime;
/**
* 更新时间
*/
@ApiModelProperty(value = "更新时间")
private Date updateTime;
/**
* 组织机构短码
*/
@ApiModelProperty(value = "组织机构短码")
private String findCode;
/**
* 区域名称
*/
@ApiModelProperty(value = "区域名称")
private String areaName;
/**
* 装备总数
*/
@ApiModelProperty(value = "装备总数")
private Integer equipmentNumber;
/**
* 使用次数
*/
@ApiModelProperty(value = "使用次数")
private Integer useNumber;
/**
* 使用状态(0:启用,1:停用)
*/
@ApiModelProperty(value = "使用状态(0:启用,1:停用)")
private Integer state;
/**
* 父类ID
*/
@ApiModelProperty(value = "父类ID")
private String parentId;
private static final long serialVersionUID = 1L;
}
\ No newline at end of file
package com.junmp.jyzb.domain;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.io.Serializable;
import java.util.Date;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
@ApiModel(value = "com-junmp-jyzb-domain-Package")
@Data
@AllArgsConstructor
@NoArgsConstructor
public class Package implements Serializable {
/**
* 装备包ID
*/
@ApiModelProperty(value = "装备包ID")
private String id;
/**
* 包内物资总数
*/
@ApiModelProperty(value = "包内物资总数")
private Integer count;
/**
* 组织机构ID
*/
@ApiModelProperty(value = "组织机构ID")
private String orgId;
/**
* 具体位置ID(仓库/单警柜)
*/
@ApiModelProperty(value = "具体位置ID(仓库/单警柜)")
private String location;
/**
* 货架ID
*/
@ApiModelProperty(value = "货架ID")
private String shelfId;
/**
* 货架名称
*/
@ApiModelProperty(value = "货架名称")
private String shelfName;
/**
* 货架编号
*/
@ApiModelProperty(value = "货架编号")
private String shelfCode;
/**
* 解包状态:0未解包/1已解包
*/
@ApiModelProperty(value = "解包状态:0未解包/1已解包")
private Integer state;
/**
* 是否销毁:0否/1是
*/
@ApiModelProperty(value = "是否销毁:0否/1是")
private Integer isDestroy;
/**
* EPC信息
*/
@ApiModelProperty(value = "EPC信息")
private String epc;
/**
* 标签打印状态:0否/1是
*/
@ApiModelProperty(value = "标签打印状态:0否/1是")
private Integer printState;
/**
* 创建时间
*/
@ApiModelProperty(value = "创建时间")
private Date createTime;
/**
* 更新时间
*/
@ApiModelProperty(value = "更新时间")
private Date updateTime;
/**
* 备注
*/
@ApiModelProperty(value = "备注")
private String note;
private static final long serialVersionUID = 1L;
}
\ No newline at end of file
package com.junmp.jyzb.domain;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.io.Serializable;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
@ApiModel(value = "com-junmp-jyzb-domain-PackageInformation")
@Data
@AllArgsConstructor
@NoArgsConstructor
public class PackageInformation implements Serializable {
/**
* 装备包详细信息id
*/
@ApiModelProperty(value = "装备包详细信息id")
private String id;
/**
* 装备包id
*/
@ApiModelProperty(value = "装备包id")
private String packageId;
/**
* 装备类型id
*/
@ApiModelProperty(value = "装备类型id")
private String typeId;
/**
* 装备类型名称
*/
@ApiModelProperty(value = "装备类型名称")
private String typeName;
/**
* 装备号型id
*/
@ApiModelProperty(value = "装备号型id")
private String sizeId;
/**
* 装备号型名称
*/
@ApiModelProperty(value = "装备号型名称")
private String sizeName;
/**
* 装备数量
*/
@ApiModelProperty(value = "装备数量")
private Integer number;
private static final long serialVersionUID = 1L;
}
\ No newline at end of file
package com.junmp.jyzb.domain;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.io.Serializable;
import java.util.Date;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
@ApiModel(value = "com-junmp-jyzb-domain-PoliceFinger")
@Data
@AllArgsConstructor
@NoArgsConstructor
public class PoliceFinger implements Serializable {
/**
* 指纹id
*/
@ApiModelProperty(value = "指纹id")
private Integer id;
/**
* 警员id
*/
@ApiModelProperty(value = "警员id")
private String policeId;
/**
* 指纹信息
*/
@ApiModelProperty(value = "指纹信息")
private String fingerInfo;
/**
* 创建时间
*/
@ApiModelProperty(value = "创建时间")
private Date createTime;
/**
* 更新时间
*/
@ApiModelProperty(value = "更新时间")
private Date updateTime;
private static final long serialVersionUID = 1L;
}
\ No newline at end of file
package com.junmp.jyzb.domain;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.io.Serializable;
import java.util.Date;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
@ApiModel(value="com-junmp-jyzb-domain-Policeman")
@Data
@AllArgsConstructor
@NoArgsConstructor
public class Policeman implements Serializable {
/**
* 警员id
*/
@ApiModelProperty(value="警员id")
private String id;
/**
* 警员名称
*/
@ApiModelProperty(value="警员名称")
private String name;
/**
* 单警柜关联id
*/
@ApiModelProperty(value="单警柜关联id")
private String cabinetId;
/**
* 机构代码,一个警员只属于一个机构
*/
@ApiModelProperty(value="机构代码,一个警员只属于一个机构")
private String orgId;
/**
* 警员编号
*/
@ApiModelProperty(value="警员编号")
private String policeCode;
/**
* 警员性别
*/
@ApiModelProperty(value="警员性别")
private String sex;
/**
* 警员照片
*/
@ApiModelProperty(value="警员照片")
private String photo;
/**
* 联系方式
*/
@ApiModelProperty(value="联系方式")
private String phone;
/**
* 创建时间
*/
@ApiModelProperty(value="创建时间")
private Date createTime;
/**
* 最后更新时间
*/
@ApiModelProperty(value="最后更新时间")
private Date updateTime;
/**
* 更新人员
*/
@ApiModelProperty(value="更新人员")
private String updateUser;
/**
* 软删除,0表存在,1表已删除
*/
@ApiModelProperty(value="软删除,0表存在,1表已删除")
private Integer existType;
/**
* 人脸信息
*/
@ApiModelProperty(value="人脸信息")
private String faceInfo;
private static final long serialVersionUID = 1L;
}
\ No newline at end of file
package com.junmp.jyzb.domain;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.io.Serializable;
import java.util.Date;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
@ApiModel(value = "com-junmp-jyzb-domain-Supplier")
@Data
@AllArgsConstructor
@NoArgsConstructor
public class Supplier implements Serializable {
/**
* 供应商ID
*/
@ApiModelProperty(value = "供应商ID")
private String id;
/**
* 装备类型ID
*/
@ApiModelProperty(value = "装备类型ID")
private String equipmentId;
/**
* 供应商名称
*/
@ApiModelProperty(value = "供应商名称")
private String name;
/**
* 供应商短码
*/
@ApiModelProperty(value = "供应商短码")
private String supplierCode;
/**
* 简称
*/
@ApiModelProperty(value = "简称")
private String shortName;
/**
* 联系方式
*/
@ApiModelProperty(value = "联系方式")
private String contacts;
/**
* 创建时间
*/
@ApiModelProperty(value = "创建时间")
private Date createTime;
/**
* 创建人员
*/
@ApiModelProperty(value = "创建人员")
private String createUser;
/**
* 最后更新时间
*/
@ApiModelProperty(value = "最后更新时间")
private Date updateTime;
/**
* 更新人ID
*/
@ApiModelProperty(value = "更新人ID")
private String updateUser;
private static final long serialVersionUID = 1L;
}
\ No newline at end of file
package com.junmp.jyzb.domain;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.io.Serializable;
import java.util.Date;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
@ApiModel(value = "com-junmp-jyzb-domain-SupplierEquipment")
@Data
@AllArgsConstructor
@NoArgsConstructor
public class SupplierEquipment implements Serializable {
/**
* 供应商产品ID
*/
@ApiModelProperty(value = "供应商产品ID")
private String id;
/**
* 供应商代码
*/
@ApiModelProperty(value = "供应商代码")
private String supplierId;
/**
* 产品代码
*/
@ApiModelProperty(value = "产品代码")
private String typeId;
/**
* 状态,0:启用,1:停用
*/
@ApiModelProperty(value = "状态,0:启用,1:停用")
private Integer state;
/**
* 创建时间
*/
@ApiModelProperty(value = "创建时间")
private Date createTime;
/**
* 最后更新时间
*/
@ApiModelProperty(value = "最后更新时间")
private Date updateTime;
/**
* 更新人ID
*/
@ApiModelProperty(value = "更新人ID")
private String updateUser;
private static final long serialVersionUID = 1L;
}
\ No newline at end of file
package com.junmp.jyzb.domain;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.io.Serializable;
import java.util.Date;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
@ApiModel(value = "com-junmp-jyzb-domain-Warehouse")
@Data
@AllArgsConstructor
@NoArgsConstructor
public class Warehouse implements Serializable {
/**
* 仓库信息表
*/
@ApiModelProperty(value = "仓库信息表")
private String id;
/**
* 仓库名称
*/
@ApiModelProperty(value = "仓库名称")
private String name;
/**
* 仓库地点
*/
@ApiModelProperty(value = "仓库地点")
private String location;
/**
* 联系方式
*/
@ApiModelProperty(value = "联系方式")
private String phone;
/**
* 创建时间
*/
@ApiModelProperty(value = "创建时间")
private Date createTime;
/**
* 修改时间
*/
@ApiModelProperty(value = "修改时间")
private Date updateTime;
/**
* 更新人员
*/
@ApiModelProperty(value = "更新人员")
private String updateUser;
/**
* 组织机构表id
*/
@ApiModelProperty(value = "组织机构表id")
private String orgId;
/**
* 当前仓库下装备总数
*/
@ApiModelProperty(value = "当前仓库下装备总数")
private Integer sum;
private static final long serialVersionUID = 1L;
}
\ No newline at end of file
package com.junmp.jyzb.domain;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.io.Serializable;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
@ApiModel(value = "com-junmp-jyzb-domain-YearReport")
@Data
@AllArgsConstructor
@NoArgsConstructor
public class YearReport implements Serializable {
/**
* 年度报表id
*/
@ApiModelProperty(value = "年度报表id")
private String id;
/**
* 组织机构id
*/
@ApiModelProperty(value = "组织机构id")
private String organizationId;
/**
* 年初数量
*/
@ApiModelProperty(value = "年初数量")
private Integer startNum;
/**
* 年末数量
*/
@ApiModelProperty(value = "年末数量")
private Integer endNum;
/**
* 年初金额
*/
@ApiModelProperty(value = "年初金额")
private Integer startMoney;
/**
* 年末金额
*/
@ApiModelProperty(value = "年末金额")
private Integer endMoney;
/**
* 年度销毁数量
*/
@ApiModelProperty(value = "年度销毁数量")
private Integer destructionNum;
private static final long serialVersionUID = 1L;
}
\ No newline at end of file
package com.junmp.jyzb.mapper;
import org.apache.ibatis.annotations.Mapper;
@Mapper
public interface CabinetBoxMapper {
}
\ No newline at end of file
package com.junmp.jyzb.mapper;
import org.apache.ibatis.annotations.Mapper;
@Mapper
public interface CabinetMapper {
}
\ No newline at end of file
package com.junmp.jyzb.mapper;
import org.apache.ibatis.annotations.Mapper;
@Mapper
public interface EquipmentSizeMapper {
}
\ No newline at end of file
package com.junmp.jyzb.mapper;
import org.apache.ibatis.annotations.Mapper;
@Mapper
public interface EquipmentTypeMapper {
}
\ No newline at end of file
package com.junmp.jyzb.mapper;
import org.apache.ibatis.annotations.Mapper;
@Mapper
public interface HistoryMapper {
}
\ No newline at end of file
package com.junmp.jyzb.mapper;
import org.apache.ibatis.annotations.Mapper;
@Mapper
public interface InventoryMapper {
}
\ No newline at end of file
package com.junmp.jyzb.mapper;
import org.apache.ibatis.annotations.Mapper;
@Mapper
public interface InventorySummaryMapper {
}
\ No newline at end of file
package com.junmp.jyzb.mapper;
import org.apache.ibatis.annotations.Mapper;
@Mapper
public interface LogDetailMapper {
}
\ No newline at end of file
package com.junmp.jyzb.mapper;
import org.apache.ibatis.annotations.Mapper;
@Mapper
public interface LogSummaryMapper {
}
\ No newline at end of file
package com.junmp.jyzb.mapper;
import org.apache.ibatis.annotations.Mapper;
@Mapper
public interface PackageInformationMapper {
}
\ No newline at end of file
package com.junmp.jyzb.mapper;
import org.apache.ibatis.annotations.Mapper;
@Mapper
public interface PackageMapper {
}
\ No newline at end of file
package com.junmp.jyzb.mapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;
import java.util.List;
import java.util.Map;
@Mapper
public interface PoliceFingerMapper {
List<Map<String, Object>> getFingersByUserId(String userId);
}
\ No newline at end of file
package com.junmp.jyzb.mapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.junmp.jyzb.domain.Policeman;
import org.apache.ibatis.annotations.Mapper;
import java.util.List;
import java.util.Map;
@Mapper
public interface PolicemanMapper extends BaseMapper<Policeman> {
/**
* 新增警员信息
*/
public int addPoliceman(Policeman policeman);
/**
* 查询警员列表
*/
public List<Policeman> getAllPoliceman();
/**
* 查询单个警员的信息
*/
List getOnePolice(String id);
/**
* 查询单个警员的信息
*/
Map<String, Object> getPoliceMsg(String userId);
}
\ No newline at end of file
package com.junmp.jyzb.mapper;
import org.apache.ibatis.annotations.Mapper;
@Mapper
public interface SupplierEquipmentMapper {
}
\ No newline at end of file
package com.junmp.jyzb.mapper;
import org.apache.ibatis.annotations.Mapper;
@Mapper
public interface SupplierMapper {
}
\ No newline at end of file
package com.junmp.jyzb.mapper;
import org.apache.ibatis.annotations.Mapper;
@Mapper
public interface WarehouseMapper {
}
\ No newline at end of file
package com.junmp.jyzb.mapper;
import org.apache.ibatis.annotations.Mapper;
@Mapper
public interface YearReportMapper {
}
\ No newline at end of file
package com.junmp.jyzb.service;
public interface CabinetBoxService{
}
package com.junmp.jyzb.service;
public interface CabinetService{
}
package com.junmp.jyzb.service;
public interface EquipmentSizeService{
}
package com.junmp.jyzb.service;
public interface EquipmentTypeService{
}
package com.junmp.jyzb.service;
public interface HistoryService{
}
package com.junmp.jyzb.service;
public interface InventoryService{
}
package com.junmp.jyzb.service;
public interface InventorySummaryService{
}
package com.junmp.jyzb.service;
public interface LogDetailService{
}
package com.junmp.jyzb.service;
public interface LogSummaryService{
}
package com.junmp.jyzb.service;
public interface PackageInformationService{
}
package com.junmp.jyzb.service;
public interface PackageService{
}
package com.junmp.jyzb.service;
import com.junmp.jyzb.domain.PoliceFinger;
import java.util.List;
import java.util.Map;
public interface PoliceFingerService{
List<Map<String, Object>> getFingersByUserId(String userId);
}
package com.junmp.jyzb.service;
import com.junmp.jyzb.domain.Policeman;
import com.junmp.jyzb.utils.ResponseResult;
import java.util.List;
import java.util.Map;
public interface PolicemanService{
ResponseResult addPoliceman(Policeman policeman);
List<Policeman> getAllPoliceman();
Map<String,Object> getOnePolice(String id);
/**
* 获取单个警员信息
* */
Map<String, Object> getPoliceMsg(String userId);
}
package com.junmp.jyzb.service;
public interface SupplierEquipmentService{
}
package com.junmp.jyzb.service;
public interface SupplierService{
}
package com.junmp.jyzb.service;
public interface WarehouseService{
}
package com.junmp.jyzb.service;
public interface YearReportService{
}
package com.junmp.jyzb.service.impl;
import com.junmp.jyzb.service.CabinetBoxService;
import org.springframework.stereotype.Service;
@Service
public class CabinetBoxServiceImpl implements CabinetBoxService {
}
package com.junmp.jyzb.service.impl;
import com.junmp.jyzb.service.CabinetService;
import org.springframework.stereotype.Service;
import javax.annotation.Resource;
import com.junmp.jyzb.mapper.CabinetMapper;
@Service
public class CabinetServiceImpl implements CabinetService {
@Resource
private CabinetMapper cabinetMapper;
}
package com.junmp.jyzb.service.impl;
import com.junmp.jyzb.service.EquipmentSizeService;
import org.springframework.stereotype.Service;
import javax.annotation.Resource;
import com.junmp.jyzb.mapper.EquipmentSizeMapper;
@Service
public class EquipmentSizeServiceImpl implements EquipmentSizeService {
@Resource
private EquipmentSizeMapper equipmentSizeMapper;
}
package com.junmp.jyzb.service.impl;
import com.junmp.jyzb.service.EquipmentTypeService;
import org.springframework.stereotype.Service;
import javax.annotation.Resource;
import com.junmp.jyzb.mapper.EquipmentTypeMapper;
@Service
public class EquipmentTypeServiceImpl implements EquipmentTypeService {
@Resource
private EquipmentTypeMapper equipmentTypeMapper;
}
package com.junmp.jyzb.service.impl;
import com.junmp.jyzb.service.HistoryService;
import org.springframework.stereotype.Service;
import javax.annotation.Resource;
import com.junmp.jyzb.mapper.HistoryMapper;
@Service
public class HistoryServiceImpl implements HistoryService {
@Resource
private HistoryMapper historyMapper;
}
package com.junmp.jyzb.service.impl;
import com.junmp.jyzb.service.InventoryService;
import org.springframework.stereotype.Service;
import javax.annotation.Resource;
import com.junmp.jyzb.mapper.InventoryMapper;
@Service
public class InventoryServiceImpl implements InventoryService {
@Resource
private InventoryMapper inventoryMapper;
}
package com.junmp.jyzb.service.impl;
import com.junmp.jyzb.service.InventorySummaryService;
import org.springframework.stereotype.Service;
import javax.annotation.Resource;
import com.junmp.jyzb.mapper.InventorySummaryMapper;
@Service
public class InventorySummaryServiceImpl implements InventorySummaryService {
@Resource
private InventorySummaryMapper inventorySummaryMapper;
}
package com.junmp.jyzb.service.impl;
import com.junmp.jyzb.service.LogDetailService;
import org.springframework.stereotype.Service;
import javax.annotation.Resource;
import com.junmp.jyzb.mapper.LogDetailMapper;
@Service
public class LogDetailServiceImpl implements LogDetailService {
@Resource
private LogDetailMapper logDetailMapper;
}
package com.junmp.jyzb.service.impl;
import com.junmp.jyzb.service.LogSummaryService;
import org.springframework.stereotype.Service;
import javax.annotation.Resource;
import com.junmp.jyzb.mapper.LogSummaryMapper;
@Service
public class LogSummaryServiceImpl implements LogSummaryService {
@Resource
private LogSummaryMapper logSummaryMapper;
}
package com.junmp.jyzb.service.impl;
import com.junmp.jyzb.service.PackageInformationService;
import org.springframework.stereotype.Service;
import javax.annotation.Resource;
import com.junmp.jyzb.mapper.PackageInformationMapper;
@Service
public class PackageInformationServiceImpl implements PackageInformationService {
@Resource
private PackageInformationMapper packageInformationMapper;
}
package com.junmp.jyzb.service.impl;
import com.junmp.jyzb.service.PackageService;
import org.springframework.stereotype.Service;
import javax.annotation.Resource;
import com.junmp.jyzb.mapper.PackageMapper;
@Service
public class PackageServiceImpl implements PackageService {
@Resource
private PackageMapper packageMapper;
}
package com.junmp.jyzb.service.impl;
import com.junmp.jyzb.domain.PoliceFinger;
import com.junmp.jyzb.service.PoliceFingerService;
import org.springframework.stereotype.Service;
import javax.annotation.Resource;
import com.junmp.jyzb.mapper.PoliceFingerMapper;
import java.util.List;
import java.util.Map;
@Service
public class PoliceFingerServiceImpl implements PoliceFingerService {
@Resource
private PoliceFingerMapper policeFingerMapper;
@Override
public List<Map<String, Object>> getFingersByUserId(String userId) {
return policeFingerMapper.getFingersByUserId(userId);
}
}
package com.junmp.jyzb.service.impl;
import com.junmp.jyzb.mapper.PolicemanMapper;
import com.junmp.jyzb.service.PolicemanService;
import com.junmp.jyzb.utils.ResponseResult;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.junmp.jyzb.domain.Policeman;
import java.util.List;
import java.util.Map;
@Service
public class PolicemanServiceImpl implements PolicemanService {
@Autowired
private PolicemanMapper policemanMapper;
@Override
public ResponseResult addPoliceman(Policeman policeman) {
//TODO 添加的逻辑代码
//policemanMapper.addPoliceman(policeman);
return new ResponseResult(200, "添加成功", "");
}
@Override
public List<Policeman> getAllPoliceman() {
List<Policeman> allPoliceman = policemanMapper.getAllPoliceman();
return allPoliceman;
}
@Override
public Map<String,Object> getOnePolice(String id) {
policemanMapper.getOnePolice(id);
return null;
}
@Override
public Map<String, Object> getPoliceMsg(String userId) {
return policemanMapper.getPoliceMsg(userId);
}
}
package com.junmp.jyzb.service.impl;
import com.junmp.jyzb.service.SupplierEquipmentService;
import org.springframework.stereotype.Service;
import javax.annotation.Resource;
import com.junmp.jyzb.mapper.SupplierEquipmentMapper;
@Service
public class SupplierEquipmentServiceImpl implements SupplierEquipmentService {
@Resource
private SupplierEquipmentMapper supplierEquipmentMapper;
}
package com.junmp.jyzb.service.impl;
import com.junmp.jyzb.service.SupplierService;
import org.springframework.stereotype.Service;
import javax.annotation.Resource;
import com.junmp.jyzb.mapper.SupplierMapper;
@Service
public class SupplierServiceImpl implements SupplierService {
@Resource
private SupplierMapper supplierMapper;
}
package com.junmp.jyzb.service.impl;
import com.junmp.jyzb.service.WarehouseService;
import org.springframework.stereotype.Service;
import javax.annotation.Resource;
import com.junmp.jyzb.mapper.WarehouseMapper;
@Service
public class WarehouseServiceImpl implements WarehouseService {
@Resource
private WarehouseMapper warehouseMapper;
}
package com.junmp.jyzb.service.impl;
import com.junmp.jyzb.service.YearReportService;
import org.springframework.stereotype.Service;
import javax.annotation.Resource;
import com.junmp.jyzb.mapper.YearReportMapper;
@Service
public class YearReportServiceImpl implements YearReportService {
@Resource
private YearReportMapper yearReportMapper;
}
package com.junmp.jyzb.utils;
import com.fasterxml.jackson.annotation.JsonInclude;
@JsonInclude(JsonInclude.Include.NON_NULL)
public class ResponseResult<T> {
/**
* 状态码
*/
private Integer code;
/**
* 提示信息,如果有错误时,前端可以获取该字段进行提示
*/
private String msg;
/**
* 查询到的结果数据,
*/
private T data;
public ResponseResult(Integer code, String msg) {
this.code = code;
this.msg = msg;
}
public ResponseResult(Integer code, T data) {
this.code = code;
this.data = data;
}
public Integer getCode() {
return code;
}
public void setCode(Integer code) {
this.code = code;
}
public String getMsg() {
return msg;
}
public void setMsg(String msg) {
this.msg = msg;
}
public T getData() {
return data;
}
public void setData(T data) {
this.data = data;
}
public ResponseResult(Integer code, String msg, T data) {
this.code = code;
this.msg = msg;
this.data = data;
}
}
<?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.junmp.jyzb.mapper.CabinetBoxMapper">
<resultMap id="BaseResultMap" type="com.junmp.jyzb.domain.CabinetBox">
<!--@mbg.generated-->
<!--@Table base_cabinet_box-->
<id column="id" jdbcType="VARCHAR" property="id" />
<result column="cabinet_id" jdbcType="VARCHAR" property="cabinetId" />
<result column="police_id" jdbcType="VARCHAR" property="policeId" />
<result column="police_name" jdbcType="VARCHAR" property="policeName" />
<result column="error_state" jdbcType="INTEGER" property="errorState" />
<result column="error_msg" jdbcType="VARCHAR" property="errorMsg" />
<result column="log_map" jdbcType="VARCHAR" property="logMap" />
</resultMap>
<sql id="Base_Column_List">
<!--@mbg.generated-->
id, cabinet_id, police_id, police_name, error_state, error_msg, log_map
</sql>
</mapper>
\ No newline at end of file
<?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.junmp.jyzb.mapper.CabinetMapper">
<resultMap id="BaseResultMap" type="com.junmp.jyzb.domain.Cabinet">
<!--@mbg.generated-->
<!--@Table base_cabinet-->
<id column="id" jdbcType="VARCHAR" property="id" />
<result column="cabinet_num" jdbcType="VARCHAR" property="cabinetNum" />
<result column="name" jdbcType="VARCHAR" property="name" />
<result column="org_id" jdbcType="VARCHAR" property="orgId" />
<result column="location" jdbcType="VARCHAR" property="location" />
<result column="error_state" jdbcType="INTEGER" property="errorState" />
<result column="create_time" jdbcType="TIMESTAMP" property="createTime" />
<result column="update_time" jdbcType="TIMESTAMP" property="updateTime" />
<result column="create_user" jdbcType="TIMESTAMP" property="createUser" />
<result column="update_user" jdbcType="VARCHAR" property="updateUser" />
</resultMap>
<sql id="Base_Column_List">
<!--@mbg.generated-->
id, cabinet_num, `name`, org_id, `location`, error_state, create_time, update_time,
create_user, update_user
</sql>
</mapper>
\ No newline at end of file
<?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.junmp.jyzb.mapper.CompanyMapper">
<select id="getMaxSn" resultType="java.lang.Integer">
select ifnull(max(s1.sn), 0) as sn
from biz_company s1
......
<?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.junmp.jyzb.mapper.EquipmentSizeMapper">
<resultMap id="BaseResultMap" type="com.junmp.jyzb.domain.EquipmentSize">
<!--@mbg.generated-->
<!--@Table base_equipment_size-->
<id column="id" jdbcType="VARCHAR" property="id" />
<result column="type_id" jdbcType="VARCHAR" property="typeId" />
<result column="detail_id" jdbcType="VARCHAR" property="detailId" />
<result column="code" jdbcType="INTEGER" property="code" />
<result column="name" jdbcType="VARCHAR" property="name" />
<result column="create_time" jdbcType="TIMESTAMP" property="createTime" />
<result column="update_time" jdbcType="TIMESTAMP" property="updateTime" />
<result column="note" jdbcType="VARCHAR" property="note" />
<result column="epc_type" jdbcType="INTEGER" property="epcType" />
</resultMap>
<sql id="Base_Column_List">
<!--@mbg.generated-->
id, type_id, detail_id, code, `name`, create_time, update_time, note, epc_type
</sql>
</mapper>
\ No newline at end of file
<?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.junmp.jyzb.mapper.EquipmentTypeMapper">
<resultMap id="BaseResultMap" type="com.junmp.jyzb.domain.EquipmentType">
<!--@mbg.generated-->
<!--@Table base_equipment_type-->
<id column="id" jdbcType="VARCHAR" property="id" />
<result column="name" jdbcType="VARCHAR" property="name" />
<result column="code" jdbcType="VARCHAR" property="code" />
<result column="parent_id" jdbcType="VARCHAR" property="parentId" />
<result column="create_time" jdbcType="TIMESTAMP" property="createTime" />
<result column="update_time" jdbcType="TIMESTAMP" property="updateTime" />
<result column="state" jdbcType="INTEGER" property="state" />
<result column="note" jdbcType="VARCHAR" property="note" />
</resultMap>
<sql id="Base_Column_List">
<!--@mbg.generated-->
id, `name`, code, parent_id, create_time, update_time, `state`, note
</sql>
</mapper>
\ No newline at end of file
<?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.junmp.jyzb.mapper.HistoryMapper">
<resultMap id="BaseResultMap" type="com.junmp.jyzb.domain.History">
<!--@mbg.generated-->
<!--@Table base_history-->
<id column="id" jdbcType="VARCHAR" property="id" />
<result column="equipment_id" jdbcType="VARCHAR" property="equipmentId" />
<result column="organization_id" jdbcType="VARCHAR" property="organizationId" />
<result column="search_date" jdbcType="TIMESTAMP" property="searchDate" />
<result column="use_month" jdbcType="INTEGER" property="useMonth" />
<result column="fix_month" jdbcType="INTEGER" property="fixMonth" />
</resultMap>
<sql id="Base_Column_List">
<!--@mbg.generated-->
id, equipment_id, organization_id, search_date, use_month, fix_month
</sql>
</mapper>
\ No newline at end of file
<?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.junmp.jyzb.mapper.InventoryMapper">
<resultMap id="BaseResultMap" type="com.junmp.jyzb.domain.Inventory">
<!--@mbg.generated-->
<!--@Table base_inventory-->
<id column="id" jdbcType="VARCHAR" property="id" />
<result column="package_id" jdbcType="VARCHAR" property="packageId" />
<result column="type_id" jdbcType="VARCHAR" property="typeId" />
<result column="type_name" jdbcType="VARCHAR" property="typeName" />
<result column="size_id" jdbcType="VARCHAR" property="sizeId" />
<result column="supplier_id" jdbcType="VARCHAR" property="supplierId" />
<result column="supplier_name" jdbcType="VARCHAR" property="supplierName" />
<result column="shelf_id" jdbcType="VARCHAR" property="shelfId" />
<result column="location_area" jdbcType="VARCHAR" property="locationArea" />
<result column="position_msg" jdbcType="VARCHAR" property="positionMsg" />
<result column="epc" jdbcType="VARCHAR" property="epc" />
<result column="org_id" jdbcType="VARCHAR" property="orgId" />
<result column="org_name" jdbcType="VARCHAR" property="orgName" />
<result column="state" jdbcType="INTEGER" property="state" />
<result column="bussiness_state" jdbcType="INTEGER" property="bussinessState" />
<result column="location_state" jdbcType="INTEGER" property="locationState" />
<result column="production_date" jdbcType="TIMESTAMP" property="productionDate" />
<result column="warranty_period" jdbcType="INTEGER" property="warrantyPeriod" />
<result column="maintenance_period" jdbcType="INTEGER" property="maintenancePeriod" />
<result column="fix_count" jdbcType="INTEGER" property="fixCount" />
<result column="price" jdbcType="VARCHAR" property="price" />
<result column="create_time" jdbcType="TIMESTAMP" property="createTime" />
<result column="update_time" jdbcType="TIMESTAMP" property="updateTime" />
<result column="note" jdbcType="VARCHAR" property="note" />
</resultMap>
<sql id="Base_Column_List">
<!--@mbg.generated-->
id, package_id, type_id, type_name, size_id, supplier_id, supplier_name, shelf_id,
location_area, position_msg, epc, org_id, org_name, `state`, bussiness_state, location_state,
production_date, warranty_period, maintenance_period, fix_count, price, create_time,
update_time, note
</sql>
</mapper>
\ No newline at end of file
<?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.junmp.jyzb.mapper.InventorySummaryMapper">
<resultMap id="BaseResultMap" type="com.junmp.jyzb.domain.InventorySummary">
<!--@mbg.generated-->
<!--@Table base_inventory_summary-->
<id column="id" jdbcType="VARCHAR" property="id" />
<result column="org_id" jdbcType="VARCHAR" property="orgId" />
<result column="org_name" jdbcType="VARCHAR" property="orgName" />
<result column="type_id" jdbcType="VARCHAR" property="typeId" />
<result column="type_name" jdbcType="VARCHAR" property="typeName" />
<result column="size_id" jdbcType="VARCHAR" property="sizeId" />
<result column="size_name" jdbcType="VARCHAR" property="sizeName" />
<result column="location_type" jdbcType="VARCHAR" property="locationType" />
<result column="location_id" jdbcType="VARCHAR" property="locationId" />
<result column="location_name" jdbcType="VARCHAR" property="locationName" />
<result column="location_area_id" jdbcType="VARCHAR" property="locationAreaId" />
<result column="location_area" jdbcType="VARCHAR" property="locationArea" />
<result column="number" jdbcType="INTEGER" property="number" />
<result column="price" jdbcType="DECIMAL" property="price" />
<result column="stock_number" jdbcType="INTEGER" property="stockNumber" />
<result column="outbound_number" jdbcType="INTEGER" property="outboundNumber" />
<result column="destruction_number" jdbcType="INTEGER" property="destructionNumber" />
<result column="expire_number" jdbcType="INTEGER" property="expireNumber" />
<result column="create_time" jdbcType="TIMESTAMP" property="createTime" />
<result column="update_time" jdbcType="TIMESTAMP" property="updateTime" />
</resultMap>
<sql id="Base_Column_List">
<!--@mbg.generated-->
id, org_id, org_name, type_id, type_name, size_id, size_name, location_type, location_id,
location_name, location_area_id, location_area, `number`, price, stock_number, outbound_number,
destruction_number, expire_number, create_time, update_time
</sql>
</mapper>
\ No newline at end of file
<?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.junmp.jyzb.mapper.LogDetailMapper">
<resultMap id="BaseResultMap" type="com.junmp.jyzb.domain.LogDetail">
<!--@mbg.generated-->
<!--@Table base_log_detail-->
<id column="id" jdbcType="INTEGER" property="id" />
<result column="summary_id" jdbcType="INTEGER" property="summaryId" />
<result column="order_id" jdbcType="VARCHAR" property="orderId" />
<result column="epc" jdbcType="VARCHAR" property="epc" />
<result column="equipment_name" jdbcType="VARCHAR" property="equipmentName" />
<result column="equipment_size" jdbcType="VARCHAR" property="equipmentSize" />
<result column="equipment_supplier" jdbcType="VARCHAR" property="equipmentSupplier" />
<result column="equipment_type" jdbcType="INTEGER" property="equipmentType" />
<result column="error_state" jdbcType="INTEGER" property="errorState" />
<result column="note" jdbcType="VARCHAR" property="note" />
</resultMap>
<sql id="Base_Column_List">
<!--@mbg.generated-->
id, summary_id, order_id, epc, equipment_name, equipment_size, equipment_supplier,
equipment_type, error_state, note
</sql>
</mapper>
\ No newline at end of file
<?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.junmp.jyzb.mapper.LogSummaryMapper">
<resultMap id="BaseResultMap" type="com.junmp.jyzb.domain.LogSummary">
<!--@mbg.generated-->
<!--@Table base_log_summary-->
<id column="id" jdbcType="INTEGER" property="id" />
<result column="org_id" jdbcType="VARCHAR" property="orgId" />
<result column="org_name" jdbcType="VARCHAR" property="orgName" />
<result column="warehouse_id" jdbcType="VARCHAR" property="warehouseId" />
<result column="warehouse_name" jdbcType="VARCHAR" property="warehouseName" />
<result column="device" jdbcType="VARCHAR" property="device" />
<result column="device_type" jdbcType="INTEGER" property="deviceType" />
<result column="use_time" jdbcType="TIMESTAMP" property="useTime" />
<result column="user_name" jdbcType="VARCHAR" property="userName" />
<result column="out_in_state" jdbcType="INTEGER" property="outInState" />
<result column="picture" jdbcType="VARCHAR" property="picture" />
</resultMap>
<sql id="Base_Column_List">
<!--@mbg.generated-->
id, org_id, org_name, warehouse_id, warehouse_name, device, device_type, use_time,
user_name, out_in_state, picture
</sql>
</mapper>
\ No newline at end of file
<?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.junmp.jyzb.mapper.PackageInformationMapper">
<resultMap id="BaseResultMap" type="com.junmp.jyzb.domain.PackageInformation">
<!--@mbg.generated-->
<!--@Table base_package_information-->
<id column="id" jdbcType="VARCHAR" property="id" />
<result column="package_id" jdbcType="VARCHAR" property="packageId" />
<result column="type_id" jdbcType="VARCHAR" property="typeId" />
<result column="type_name" jdbcType="VARCHAR" property="typeName" />
<result column="size_id" jdbcType="VARCHAR" property="sizeId" />
<result column="size_name" jdbcType="VARCHAR" property="sizeName" />
<result column="number" jdbcType="INTEGER" property="number" />
</resultMap>
<sql id="Base_Column_List">
<!--@mbg.generated-->
id, package_id, type_id, type_name, size_id, size_name, `number`
</sql>
</mapper>
\ No newline at end of file
<?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.junmp.jyzb.mapper.PackageMapper">
<resultMap id="BaseResultMap" type="com.junmp.jyzb.domain.Package">
<!--@mbg.generated-->
<!--@Table base_package-->
<id column="id" jdbcType="VARCHAR" property="id" />
<result column="count" jdbcType="INTEGER" property="count" />
<result column="org_id" jdbcType="VARCHAR" property="orgId" />
<result column="location" jdbcType="VARCHAR" property="location" />
<result column="shelf_id" jdbcType="VARCHAR" property="shelfId" />
<result column="shelf_name" jdbcType="VARCHAR" property="shelfName" />
<result column="shelf_code" jdbcType="VARCHAR" property="shelfCode" />
<result column="state" jdbcType="INTEGER" property="state" />
<result column="is_destroy" jdbcType="INTEGER" property="isDestroy" />
<result column="epc" jdbcType="VARCHAR" property="epc" />
<result column="print_state" jdbcType="INTEGER" property="printState" />
<result column="create_time" jdbcType="TIMESTAMP" property="createTime" />
<result column="update_time" jdbcType="TIMESTAMP" property="updateTime" />
<result column="note" jdbcType="VARCHAR" property="note" />
</resultMap>
<sql id="Base_Column_List">
<!--@mbg.generated-->
id, `count`, org_id, `location`, shelf_id, shelf_name, shelf_code, `state`, is_destroy,
epc, print_state, create_time, update_time, note
</sql>
</mapper>
\ No newline at end of file
<?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.junmp.jyzb.mapper.PoliceFingerMapper">
<resultMap id="BaseResultMap" type="com.junmp.jyzb.domain.PoliceFinger">
<!--@mbg.generated-->
<!--@Table base_police_finger-->
<id column="id" jdbcType="INTEGER" property="id" />
<result column="police_id" jdbcType="VARCHAR" property="policeId" />
<result column="finger_info" jdbcType="LONGVARCHAR" property="fingerInfo" />
<result column="create_time" jdbcType="TIMESTAMP" property="createTime" />
<result column="update_time" jdbcType="TIMESTAMP" property="updateTime" />
</resultMap>
<sql id="Base_Column_List">
<!--@mbg.generated-->
id, police_id, finger_info, create_time, update_time
</sql>
<select id="getFingersByUserId" parameterType="String" resultType="java.util.Map">
SELECT f.name,f.finger_info
FROM base_police_finger f
WHERE f.police_id = #{userId}
</select>
</mapper>
\ No newline at end of file
<?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.junmp.jyzb.mapper.PolicemanMapper">
<insert id="addPoliceman" parameterType="com.junmp.jyzb.domain.Policeman">
insert into base_policeman
(
id ,
name,
cabinet_id,
org_id,
police_code,
sex,
face_info,
photo,
phone,
create_time,
update_time,
update_user,
exist_type
)
values
(
1001,
123,
123,
123,
123,
123,
123,
123,
123,
"2021-09-01T14:30:30",
"2021-09-01T14:30:30",
123,
0
)
</insert>
<select id="getAllPoliceman" resultType="com.junmp.jyzb.domain.Policeman">
select * from base_policeman;
</select>
<select id="getOnePolice" resultType="java.util.List">
select * from base_policeman p,base_police_finger f
where p.id=f.police_id and f.police_id = #{id}
</select>
<select id="getPoliceMsg" resultType="Map">
select * from base_policeman p
where p.id=#{userId}
</select>
</mapper>
\ No newline at end of file
......@@ -52,6 +52,4 @@
order by s1.createTime desc
</select>
</mapper>
<?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.junmp.jyzb.mapper.SupplierEquipmentMapper">
<resultMap id="BaseResultMap" type="com.junmp.jyzb.domain.SupplierEquipment">
<!--@mbg.generated-->
<!--@Table base_supplier_equipment-->
<id column="id" jdbcType="VARCHAR" property="id" />
<result column="supplier_id" jdbcType="VARCHAR" property="supplierId" />
<result column="type_id" jdbcType="VARCHAR" property="typeId" />
<result column="state" jdbcType="INTEGER" property="state" />
<result column="create_time" jdbcType="TIMESTAMP" property="createTime" />
<result column="update_time" jdbcType="TIMESTAMP" property="updateTime" />
<result column="update_user" jdbcType="VARCHAR" property="updateUser" />
</resultMap>
<sql id="Base_Column_List">
<!--@mbg.generated-->
id, supplier_id, type_id, `state`, create_time, update_time, update_user
</sql>
</mapper>
\ No newline at end of file
<?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.junmp.jyzb.mapper.SupplierMapper">
<resultMap id="BaseResultMap" type="com.junmp.jyzb.domain.Supplier">
<!--@mbg.generated-->
<!--@Table base_supplier-->
<id column="id" jdbcType="VARCHAR" property="id" />
<result column="equipment_id" jdbcType="VARCHAR" property="equipmentId" />
<result column="name" jdbcType="VARCHAR" property="name" />
<result column="supplier_code" jdbcType="VARCHAR" property="supplierCode" />
<result column="short_name" jdbcType="VARCHAR" property="shortName" />
<result column="contacts" jdbcType="VARCHAR" property="contacts" />
<result column="create_time" jdbcType="TIMESTAMP" property="createTime" />
<result column="create_user" jdbcType="VARCHAR" property="createUser" />
<result column="update_time" jdbcType="TIMESTAMP" property="updateTime" />
<result column="update_user" jdbcType="VARCHAR" property="updateUser" />
</resultMap>
<sql id="Base_Column_List">
<!--@mbg.generated-->
id, equipment_id, `name`, supplier_code, short_name, contacts, create_time, create_user,
update_time, update_user
</sql>
</mapper>
\ No newline at end of file
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论