Commit c033d06f authored by 夏敏伟's avatar 夏敏伟

新增场所预警忽略对象、工地人员信息、设备信息、工地信息接口(insert)

parent b1ab4f43
......@@ -29,8 +29,8 @@ x-szpt-sign: cf9292d20f20c3705cabe1f08d07bec7
}
######
######打卡
######2
POST http://localhost:8086/rest/index/addSzptClockIn
Content-Type: application/json
x-szpt-appid: 1
......@@ -43,11 +43,19 @@ x-szpt-sign: cf9292d20f20c3705cabe1f08d07bec7
"sbqd":"wer",
"xbqt": "1",
"xcqk": "2",
"sbsj": "3"
"sbsj": "3",
"sbr":"23",
"qdr":"wer",
"qdrlxdh": "1",
"qddkdd": "2",
"qddkzp": "3",
"qtdkdd":"wer",
"qtdkzp": "1",
"gkdj": "2"
}
######
######打卡规则
######3
POST http://localhost:8086/rest/index/addSzptClockInRules
Content-Type: application/json
x-szpt-appid: 1
......@@ -60,12 +68,13 @@ x-szpt-sign: cf9292d20f20c3705cabe1f08d07bec7
"csid":"23",
"chockInTime":"wer",
"clockInScope": "1",
"qrCode": "1",
"cslx": "2",
"bz": "3"
}
######
######房屋信息
######4
POST http://localhost:8086/rest/index/addSzptFwxx
Content-Type: application/json
x-szpt-appid: 1
......@@ -111,3 +120,164 @@ x-szpt-sign: cf9292d20f20c3705cabe1f08d07bec7
"sjgsdwdm": "2",
"sjgsdwmc":"1"
}
######工地场所预警忽略对象
######5
POST http://localhost:8086/rest/index/addSzptGdCsyjhldx
Content-Type: application/json
x-szpt-appid: 1
x-szpt-timestamp: 21
x-szpt-nonce: nonce
x-szpt-sign: cf9292d20f20c3705cabe1f08d07bec7
{
"csid":"1",
"yjlx":"2",
"yjzlx": "3",
"ywid": "4",
"ywms": "5",
"bz": "6",
"zt": "7"
}
######工地人员信息
######6
POST http://localhost:8086/rest/index/addSzptGdRyxx
Content-Type: application/json
x-szpt-appid: 1
x-szpt-timestamp: 21
x-szpt-nonce: nonce
x-szpt-sign: cf9292d20f20c3705cabe1f08d07bec7
{
"rkbm":"1",
"csid":"2",
"cjrlid": "3",
"xm": "4",
"xb": "5",
"lxdh": "6",
"cyzjdm": "7",
"zjhm":"8",
"nl":"9",
"url": "10",
"md5": "11",
"zjcxts": 12,
"zcxts": 13,
"ysrczjts": "14",
"ysrcbz":"1",
"ysrczts":"16",
"ckbz": "1",
"lkbz": "1",
"hjdzDzmc": "19",
"hjdzXzqhdm": "20",
"hjdzPcsmc": "21",
"hjdzPcsdm":"22",
"xzdDzmc":"23",
"xzdXzqhdm": "24",
"xzdPcsmc": "25",
"xzdPcsdm": "26",
"zt": "1",
"jcsj": "2024-12-27 00:00:01",
"tcsj":"2024-12-27 00:00:01",
"yjtcsj":"2024-12-27 00:00:01",
"zjzpsj": "2024-12-27 00:00:01",
"sfglry": "1",
"djzt": "1",
"qyid": "34",
"qymc": "35",
"rylb":"1",
"rylx": "37",
"lkbdsj": "2024-12-27 00:00:01",
"ckbdsj": "2024-12-27 00:00:01",
"datasource": "40",
"orderid": "41",
"sjrzrs": "42"
}
######工地设备信息
######7
POST http://localhost:8086/rest/index/addSzptGdSbxx
Content-Type: application/json
x-szpt-appid: 1
x-szpt-timestamp: 21
x-szpt-nonce: nonce
x-szpt-sign: cf9292d20f20c3705cabe1f08d07bec7
{
"sbsn":"1",
"sbmc":"2",
"sbbh": "3",
"sbms": "4",
"mac": "5",
"ip": "6",
"netmask": "7",
"gw":"8",
"csid":"9",
"yxzt": "10",
"ztgxsj": "2024-12-27 00:00:01",
"cj": 12,
"xh": 13,
"qyid": "14",
"qymc":"1",
"sbcs":"16",
"sblb": "1",
"zt": "1",
"sjgsdwdm": "19",
"sjgsdwmc": "20",
"createGajgjgdm": "21",
"createGajgmc":"22"
}
######工地信息
######8
POST http://localhost:8086/rest/index/addSzptGdXx
Content-Type: application/json
x-szpt-appid: 1
x-szpt-timestamp: 21
x-szpt-nonce: nonce
x-szpt-sign: cf9292d20f20c3705cabe1f08d07bec7
{
"cslx":"1",
"csmc":"2",
"csms": "3",
"lxdz": "4",
"lxr": "5",
"lxdh": "6",
"sgdw": "7",
"sgxkz":"8",
"kgrq":"2024-12-27 00:00:01",
"yjjgrq": "2024-12-27 00:00:01",
"lng": "2024-12-27 00:00:01",
"lat": 12,
"customlng": 13,
"customlat": "14",
"zrrxm":"1",
"zrrlxdh":"16",
"frxm": "1",
"frlxdh": "1",
"shxydm": "19",
"zcdz": "20",
"adminzh": "21",
"sfzcs":"1",
"fcsid": 13,
"bz": "14",
"cjsj":"2024-12-27 00:00:01",
"zt":"1",
"jhsj": "2024-12-27 00:00:01",
"location": "1",
"sjlyXtmc": "19",
"zxsj": "2024-12-27 00:00:01",
"sqdm": "21",
"sqmc":"22",
"mdlx":"1",
"mdjyzt": "1",
"sjgsdwdm": "1",
"sjgsdwmc": "19",
"createGajgjgdm": "20",
"createGajgmc": "21"
}
\ No newline at end of file
......@@ -54,16 +54,16 @@ public class WebConfig implements WebMvcConfigurer {
*
* @return
*/
@Bean
public FilterRegistrationBean getFilter1Registration(@Qualifier("signatureVerificationFilter") SignatureVerificationFilter signatureVerificationFilter) {
FilterRegistrationBean filterRegistrationBean = new FilterRegistrationBean();
filterRegistrationBean.setFilter(signatureVerificationFilter);
//设置过滤器名称和路径,在过滤器类写了的话,这里不用重复写
filterRegistrationBean.setName("filter");
filterRegistrationBean.addUrlPatterns("/rest/*");
//设置过滤器执行顺序,数字越小,越早进行过滤,也可设置为负数
filterRegistrationBean.setOrder(1);
return filterRegistrationBean;
}
// @Bean
// public FilterRegistrationBean getFilter1Registration(@Qualifier("signatureVerificationFilter") SignatureVerificationFilter signatureVerificationFilter) {
// FilterRegistrationBean filterRegistrationBean = new FilterRegistrationBean();
// filterRegistrationBean.setFilter(signatureVerificationFilter);
// //设置过滤器名称和路径,在过滤器类写了的话,这里不用重复写
// filterRegistrationBean.setName("filter");
// filterRegistrationBean.addUrlPatterns("/rest/*");
// //设置过滤器执行顺序,数字越小,越早进行过滤,也可设置为负数
// filterRegistrationBean.setOrder(1);
// return filterRegistrationBean;
// }
}
package com.zksy.szpt.controller;
import com.zksy.szpt.domain.dto.SzptClockInDTO;
import com.zksy.szpt.domain.dto.SzptClockInRulesDTO;
import com.zksy.szpt.domain.dto.SzptFwxxDTO;
import com.zksy.szpt.domain.dto.XxRwwcqkDTO;
import com.zksy.szpt.domain.dto.*;
import com.zksy.szpt.service.IndexService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
......@@ -34,19 +31,43 @@ public class IndexController {
@ApiOperation(value="新增szpt_clock_in数据")
@PostMapping("/addSzptClockIn")
public Integer addSzptClockIn(@RequestBody @Valid SzptClockInDTO szptClockInDTO){
public Integer addSzptClockIn(@RequestBody @Validated SzptClockInDTO szptClockInDTO){
return indexService.addSzptClockIn(szptClockInDTO);
}
@ApiOperation(value="新增szpt_clock_in_rules数据")
@PostMapping("/addSzptClockInRules")
public Integer addSzptClockInRules(@RequestBody @Valid SzptClockInRulesDTO szptClockInRulesDTO){
public Integer addSzptClockInRules(@RequestBody @Validated SzptClockInRulesDTO szptClockInRulesDTO){
return indexService.addSzptClockInRules(szptClockInRulesDTO);
}
@ApiOperation(value="新增szpt_fwxx数据")
@ApiOperation(value="新增房屋信息数据")
@PostMapping("/addSzptFwxx")
public Integer addSzptFwxx(@RequestBody @Validated SzptFwxxDTO szptFwxxDTO){
return indexService.addSzptFwxx(szptFwxxDTO);
}
@ApiOperation(value="新增场所预警忽略对象数据")
@PostMapping("/addSzptGdCsyjhldx")
public Integer addSzptGdCsyjhldx(@RequestBody @Validated SzptGdCsyjhldxDTO szptGdCsyjhldxDTO){
return indexService.addSzptGdCsyjhldx(szptGdCsyjhldxDTO);
}
@ApiOperation(value="新增工地人员信息数据")
@PostMapping("/addSzptGdRyxx")
public Integer addSzptGdRyxx(@RequestBody @Validated SzptGdRyxxDTO szptGdRyxxDTO){
return indexService.addSzptGdRyxx(szptGdRyxxDTO);
}
@ApiOperation(value="新增设备信息数据")
@PostMapping("/addSzptGdSbxx")
public Integer addSzptGdSbxx(@RequestBody @Validated SzptGdSbxxDTO szptGdSbxxDTO){
return indexService.addSzptGdSbxx(szptGdSbxxDTO);
}
@ApiOperation(value="新增工地信息数据")
@PostMapping("/addSzptGdXx")
public Integer addSzptGdXx(@RequestBody @Validated SzptGdXxDTO szptGdXxDTO){
return indexService.addSzptGdXx(szptGdXxDTO);
}
}
......@@ -33,15 +33,15 @@ public class SzptClockInDTO {
*/
private String sbr;
/**
*
*/
private Date createTime;
/**
*
*/
private Date updateTime;
// /**
// *
// */
// private Date createTime;
//
// /**
// *
// */
// private Date updateTime;
/**
* 签到人
......@@ -126,21 +126,21 @@ public class SzptClockInDTO {
this.sbr = sbr == null ? null : sbr.trim();
}
public Date getCreateTime() {
return createTime;
}
public void setCreateTime(Date createTime) {
this.createTime = createTime;
}
public Date getUpdateTime() {
return updateTime;
}
public void setUpdateTime(Date updateTime) {
this.updateTime = updateTime;
}
// public Date getCreateTime() {
// return createTime;
// }
//
// public void setCreateTime(Date createTime) {
// this.createTime = createTime;
// }
//
// public Date getUpdateTime() {
// return updateTime;
// }
//
// public void setUpdateTime(Date updateTime) {
// this.updateTime = updateTime;
// }
public String getQdr() {
return qdr;
......
......@@ -39,15 +39,6 @@ public class SzptClockInRulesDTO {
*/
private String bz;
/**
* 创建时间
*/
private Date createTime;
/**
* 更新时间
*/
private Date updateTime;
public String getName() {
return name;
......@@ -105,19 +96,4 @@ public class SzptClockInRulesDTO {
this.bz = bz == null ? null : bz.trim();
}
public Date getCreateTime() {
return createTime;
}
public void setCreateTime(Date createTime) {
this.createTime = createTime;
}
public Date getUpdateTime() {
return updateTime;
}
public void setUpdateTime(Date updateTime) {
this.updateTime = updateTime;
}
}
package com.zksy.szpt.domain.dto;
import javax.validation.constraints.NotBlank;
import java.util.Date;
public class SzptGdCsyjhldxDTO {
/**
* 场所id
*/
@NotBlank(message = "场所id不能为空")
private String csid;
/**
* 预警类型;cslb=3106
*/
@NotBlank(message = "场所类别不能为空")
private String yjlx;
/**
* 预警子类型;cslb=3139
*/
private String yjzlx;
/**
* 业务ID
*/
private String ywid;
/**
* 业务描述
*/
private String ywms;
/**
* 备注
*/
@NotBlank(message = "备注不能为空")
private String bz;
/**
* 状态;cslb=3101
*/
private String zt;
public String getCsid() {
return csid;
}
public void setCsid(String csid) {
this.csid = csid == null ? null : csid.trim();
}
public String getYjlx() {
return yjlx;
}
public void setYjlx(String yjlx) {
this.yjlx = yjlx == null ? null : yjlx.trim();
}
public String getYjzlx() {
return yjzlx;
}
public void setYjzlx(String yjzlx) {
this.yjzlx = yjzlx == null ? null : yjzlx.trim();
}
public String getYwid() {
return ywid;
}
public void setYwid(String ywid) {
this.ywid = ywid == null ? null : ywid.trim();
}
public String getYwms() {
return ywms;
}
public void setYwms(String ywms) {
this.ywms = ywms == null ? null : ywms.trim();
}
public String getBz() {
return bz;
}
public void setBz(String bz) {
this.bz = bz == null ? null : bz.trim();
}
public String getZt() {
return zt;
}
public void setZt(String zt) {
this.zt = zt == null ? null : zt.trim();
}
}
This diff is collapsed.
package com.zksy.szpt.domain.dto;
import com.fasterxml.jackson.annotation.JsonFormat;
import javax.validation.constraints.NotBlank;
import java.util.Date;
public class SzptGdSbxxDTO {
/**
* 设备序列号
*/
private String sbsn;
/**
* 设备名称
*/
private String sbmc;
/**
* 设备编号
*/
private String sbbh;
/**
* 设备描述
*/
private String sbms;
/**
* mac地址
*/
private String mac;
/**
* ip地址
*/
private String ip;
/**
* 子网掩码
*/
private String netmask;
/**
* 网关
*/
private String gw;
/**
* 场所id
*/
private String csid;
/**
* 运行状态 cslb=1053
*/
@NotBlank(message = "运行状态不能为空")
private String yxzt;
/**
* 状态更新时间
*/
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
private Date ztgxsj;
/**
* 厂家
*/
private String cj;
/**
* 型号
*/
private String xh;
/**
* 区域ID
*/
private String qyid;
/**
* 区域名称
*/
private String qymc;
/**
* 设备参数,json
*/
private String sbcs;
/**
* 设备类别;cslb=3112
*/
@NotBlank(message = "设备类别不能为空")
private String sblb;
/**
* 状态;cslb=3101
*/
@NotBlank(message = "状态不能为空")
private String zt;
/**
* 数据归属单位代码
*/
@NotBlank(message = "数据归属单位代码不能为空")
private String sjgsdwdm;
/**
* 数据归属单位名称
*/
private String sjgsdwmc;
/**
* 登记公安机关机构代码
*/
@NotBlank(message = "登记公安机关机构代码不能为空")
private String createGajgjgdm;
/**
* 登记公安机关名称
*/
@NotBlank(message = "登记公安机关名称不能为空")
private String createGajgmc;
public String getSbsn() {
return sbsn;
}
public void setSbsn(String sbsn) {
this.sbsn = sbsn == null ? null : sbsn.trim();
}
public String getSbmc() {
return sbmc;
}
public void setSbmc(String sbmc) {
this.sbmc = sbmc == null ? null : sbmc.trim();
}
public String getSbbh() {
return sbbh;
}
public void setSbbh(String sbbh) {
this.sbbh = sbbh == null ? null : sbbh.trim();
}
public String getSbms() {
return sbms;
}
public void setSbms(String sbms) {
this.sbms = sbms == null ? null : sbms.trim();
}
public String getMac() {
return mac;
}
public void setMac(String mac) {
this.mac = mac == null ? null : mac.trim();
}
public String getIp() {
return ip;
}
public void setIp(String ip) {
this.ip = ip == null ? null : ip.trim();
}
public String getNetmask() {
return netmask;
}
public void setNetmask(String netmask) {
this.netmask = netmask == null ? null : netmask.trim();
}
public String getGw() {
return gw;
}
public void setGw(String gw) {
this.gw = gw == null ? null : gw.trim();
}
public String getCsid() {
return csid;
}
public void setCsid(String csid) {
this.csid = csid == null ? null : csid.trim();
}
public String getYxzt() {
return yxzt;
}
public void setYxzt(String yxzt) {
this.yxzt = yxzt == null ? null : yxzt.trim();
}
public Date getZtgxsj() {
return ztgxsj;
}
public void setZtgxsj(Date ztgxsj) {
this.ztgxsj = ztgxsj;
}
public String getCj() {
return cj;
}
public void setCj(String cj) {
this.cj = cj == null ? null : cj.trim();
}
public String getXh() {
return xh;
}
public void setXh(String xh) {
this.xh = xh == null ? null : xh.trim();
}
public String getQyid() {
return qyid;
}
public void setQyid(String qyid) {
this.qyid = qyid == null ? null : qyid.trim();
}
public String getQymc() {
return qymc;
}
public void setQymc(String qymc) {
this.qymc = qymc == null ? null : qymc.trim();
}
public String getSbcs() {
return sbcs;
}
public void setSbcs(String sbcs) {
this.sbcs = sbcs == null ? null : sbcs.trim();
}
public String getSblb() {
return sblb;
}
public void setSblb(String sblb) {
this.sblb = sblb == null ? null : sblb.trim();
}
public String getZt() {
return zt;
}
public void setZt(String zt) {
this.zt = zt == null ? null : zt.trim();
}
public String getSjgsdwdm() {
return sjgsdwdm;
}
public void setSjgsdwdm(String sjgsdwdm) {
this.sjgsdwdm = sjgsdwdm == null ? null : sjgsdwdm.trim();
}
public String getSjgsdwmc() {
return sjgsdwmc;
}
public void setSjgsdwmc(String sjgsdwmc) {
this.sjgsdwmc = sjgsdwmc == null ? null : sjgsdwmc.trim();
}
public String getCreateGajgjgdm() {
return createGajgjgdm;
}
public void setCreateGajgjgdm(String createGajgjgdm) {
this.createGajgjgdm = createGajgjgdm == null ? null : createGajgjgdm.trim();
}
public String getCreateGajgmc() {
return createGajgmc;
}
public void setCreateGajgmc(String createGajgmc) {
this.createGajgmc = createGajgmc == null ? null : createGajgmc.trim();
}
}
This diff is collapsed.
package com.zksy.szpt.domain.po;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.*;
import java.util.Date;
......@@ -47,11 +45,13 @@ public class SzptClockIn {
/**
*
*/
@TableField(fill = FieldFill.INSERT)
private Date createTime;
/**
*
*/
@TableField(fill = FieldFill.INSERT)
private Date updateTime;
/**
......
package com.zksy.szpt.domain.po;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.*;
import java.util.Date;
......@@ -52,11 +50,13 @@ public class SzptClockInRules {
/**
* 创建时间
*/
@TableField(fill = FieldFill.INSERT)
private Date createTime;
/**
* 更新时间
*/
@TableField(fill = FieldFill.INSERT)
private Date updateTime;
public Integer getId() {
......
package com.zksy.szpt.domain.po;
import com.baomidou.mybatisplus.annotation.*;
import java.util.Date;
@TableName
public class SzptGdCsyjhldx {
/**
* 流水IID
......@@ -11,6 +14,7 @@ public class SzptGdCsyjhldx {
/**
* 流水ID
*/
@TableId(type = IdType.ASSIGN_ID)
private String id;
/**
......@@ -51,37 +55,44 @@ public class SzptGdCsyjhldx {
/**
* 创建人id
*/
@TableField(fill = FieldFill.INSERT)
private String createId;
/**
* 创建人
*/
@TableField(fill = FieldFill.INSERT)
private String createBy;
/**
* 创建日期
*/
@TableField(fill = FieldFill.INSERT)
private Date createTime;
/**
* 创建操作终端: web,app,import
*/
@TableField(fill = FieldFill.INSERT)
private String createTerminal;
/**
* 创建操作ip
*/
@TableField(fill = FieldFill.INSERT)
private String createIp;
/**
* 更新日期
*/
@TableField(fill = FieldFill.INSERT)
private Date updateTime;
/**
* 删除状态(0-正常,1-删除至回收站)
*/
private Boolean delFlag;
@TableField(fill = FieldFill.INSERT)
private Integer delFlag;
public Long getIid() {
return iid;
......@@ -203,11 +214,11 @@ public class SzptGdCsyjhldx {
this.updateTime = updateTime;
}
public Boolean getDelFlag() {
public Integer getDelFlag() {
return delFlag;
}
public void setDelFlag(Boolean delFlag) {
public void setDelFlag(Integer delFlag) {
this.delFlag = delFlag;
}
}
\ No newline at end of file
package com.zksy.szpt.domain.po;
import com.baomidou.mybatisplus.annotation.*;
import java.util.Date;
@TableName
public class SzptGdRyxx {
/**
* IID
......@@ -11,6 +14,7 @@ public class SzptGdRyxx {
/**
* 人员ID
*/
@TableId(type = IdType.ASSIGN_ID)
private String id;
/**
......@@ -176,7 +180,7 @@ public class SzptGdRyxx {
/**
* 登记状态, 0-未登记,1-登记
*/
private Boolean djzt;
private Integer djzt;
/**
* 区域ID
......@@ -201,36 +205,43 @@ public class SzptGdRyxx {
/**
* 创建人id
*/
@TableField(fill = FieldFill.INSERT)
private String createId;
/**
* 创建人
*/
@TableField(fill = FieldFill.INSERT)
private String createBy;
/**
* 创建日期
*/
@TableField(fill = FieldFill.INSERT)
private Date createTime;
/**
* 更新人id
*/
@TableField(fill = FieldFill.INSERT)
private String updateId;
/**
* 更新人
*/
@TableField(fill = FieldFill.INSERT)
private String updateBy;
/**
* 更新日期
*/
@TableField(fill = FieldFill.INSERT)
private Date updateTime;
/**
* 删除状态(0-正常,1-删除至回收站)
*/
@TableField(fill = FieldFill.INSERT)
private Integer delFlag;
/**
......@@ -530,11 +541,11 @@ public class SzptGdRyxx {
this.sfglry = sfglry == null ? null : sfglry.trim();
}
public Boolean getDjzt() {
public Integer getDjzt() {
return djzt;
}
public void setDjzt(Boolean djzt) {
public void setDjzt(Integer djzt) {
this.djzt = djzt;
}
......
package com.zksy.szpt.domain.po;
import com.baomidou.mybatisplus.annotation.*;
import java.util.Date;
@TableName
public class SzptGdSbxx {
/**
* 设备IID
......@@ -11,6 +14,7 @@ public class SzptGdSbxx {
/**
* 设备ID
*/
@TableId(type = IdType.ASSIGN_ID)
private String id;
/**
......@@ -96,16 +100,19 @@ public class SzptGdSbxx {
/**
* 设备类别;cslb=3112
*/
@TableField(fill = FieldFill.INSERT)
private String sblb;
/**
* 状态;cslb=3101
*/
@TableField(fill = FieldFill.INSERT)
private String zt;
/**
* 数据归属单位代码
*/
@TableField(fill = FieldFill.INSERT)
private String sjgsdwdm;
/**
......@@ -116,46 +123,55 @@ public class SzptGdSbxx {
/**
* 登记公安机关机构代码
*/
@TableField(fill = FieldFill.INSERT)
private String createGajgjgdm;
/**
* 登记公安机关名称
*/
@TableField(fill = FieldFill.INSERT)
private String createGajgmc;
/**
* 创建人id
*/
@TableField(fill = FieldFill.INSERT)
private String createId;
/**
* 创建人
*/
@TableField(fill = FieldFill.INSERT)
private String createBy;
/**
* 创建日期
*/
@TableField(fill = FieldFill.INSERT)
private Date createTime;
/**
* 更新人id
*/
@TableField(fill = FieldFill.INSERT)
private String updateId;
/**
* 更新人
*/
@TableField(fill = FieldFill.INSERT)
private String updateBy;
/**
* 更新日期
*/
@TableField(fill = FieldFill.INSERT)
private Date updateTime;
/**
* 删除状态(0-正常,1-删除至回收站)
*/
@TableField(fill = FieldFill.INSERT)
private Integer delFlag;
public Long getIid() {
......
package com.zksy.szpt.domain.po;
import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonFormat;
import java.util.Date;
public class SzptGdXx {
......@@ -11,6 +17,7 @@ public class SzptGdXx {
/**
* 场所ID
*/
@TableId(type = IdType.ASSIGN_ID)
private String id;
/**
......@@ -206,36 +213,43 @@ public class SzptGdXx {
/**
* 创建人id
*/
@TableField(fill = FieldFill.INSERT)
private String createId;
/**
* 创建人
*/
@TableField(fill = FieldFill.INSERT)
private String createBy;
/**
* 创建日期
*/
@TableField(fill = FieldFill.INSERT)
private Date createTime;
/**
* 更新人id
*/
@TableField(fill = FieldFill.INSERT)
private String updateId;
/**
* 更新人
*/
@TableField(fill = FieldFill.INSERT)
private String updateBy;
/**
* 更新日期
*/
@TableField(fill = FieldFill.INSERT)
private Date updateTime;
/**
* 删除状态(0-正常,1-删除至回收站)
*/
@TableField(fill = FieldFill.INSERT)
private Integer delFlag;
public Long getIid() {
......
......@@ -25,7 +25,7 @@ import java.io.IOException;
import java.nio.charset.StandardCharsets;
import java.util.Map;
@Component
//@Component
public class SignatureVerificationFilter extends OncePerRequestFilter {
public Logger logger = LoggerFactory.getLogger(SignatureVerificationFilter.class);
......
......@@ -22,6 +22,7 @@ public class SzptMetaObjectHandler implements MetaObjectHandler {
List<StrictFill> fields = Arrays.asList(
StrictFill.of("createTime", Date.class, new Date()),
StrictFill.of("cjsj", Date.class, new Date()),
StrictFill.of("updateTime", Date.class, new Date()),
StrictFill.of("sjgsdwdm", String.class, "1"),
StrictFill.of("sjgsdwmc", String.class, "1"),
StrictFill.of("createGajgjgdm", String.class, "1"),
......
package com.zksy.szpt.mapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.zksy.szpt.domain.po.SzptGdCsyjhldx;
import com.zksy.szpt.domain.po.SzptGdCsyjhldxExample;
import java.util.List;
import org.apache.ibatis.annotations.Param;
public interface SzptGdCsyjhldxMapper {
public interface SzptGdCsyjhldxMapper extends BaseMapper<SzptGdCsyjhldx> {
long countByExample(SzptGdCsyjhldxExample example);
int deleteByExample(SzptGdCsyjhldxExample example);
int deleteByPrimaryKey(Long iid);
int insert(SzptGdCsyjhldx record);
// int insert(SzptGdCsyjhldx record);
int insertSelective(SzptGdCsyjhldx record);
......
package com.zksy.szpt.mapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.zksy.szpt.domain.po.SzptGdRyxx;
import com.zksy.szpt.domain.po.SzptGdRyxxExample;
import java.util.List;
import org.apache.ibatis.annotations.Param;
public interface SzptGdRyxxMapper {
public interface SzptGdRyxxMapper extends BaseMapper<SzptGdRyxx> {
long countByExample(SzptGdRyxxExample example);
int deleteByExample(SzptGdRyxxExample example);
int deleteByPrimaryKey(Long iid);
int insert(SzptGdRyxx record);
// int insert(SzptGdRyxx record);
int insertSelective(SzptGdRyxx record);
......
package com.zksy.szpt.mapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.zksy.szpt.domain.po.SzptGdSbxx;
import com.zksy.szpt.domain.po.SzptGdSbxxExample;
import java.util.List;
import org.apache.ibatis.annotations.Param;
public interface SzptGdSbxxMapper {
public interface SzptGdSbxxMapper extends BaseMapper<SzptGdSbxx> {
long countByExample(SzptGdSbxxExample example);
int deleteByExample(SzptGdSbxxExample example);
int deleteByPrimaryKey(Long iid);
int insert(SzptGdSbxx record);
// int insert(SzptGdSbxx record);
int insertSelective(SzptGdSbxx record);
......
package com.zksy.szpt.mapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.zksy.szpt.domain.po.SzptGdXx;
import com.zksy.szpt.domain.po.SzptGdXxExample;
import java.util.List;
import org.apache.ibatis.annotations.Param;
public interface SzptGdXxMapper {
public interface SzptGdXxMapper extends BaseMapper<SzptGdXx> {
long countByExample(SzptGdXxExample example);
int deleteByExample(SzptGdXxExample example);
int deleteByPrimaryKey(Long iid);
int insert(SzptGdXx record);
// int insert(SzptGdXx record);
int insertSelective(SzptGdXx record);
......
package com.zksy.szpt.service;
import com.zksy.szpt.domain.dto.SzptClockInDTO;
import com.zksy.szpt.domain.dto.SzptClockInRulesDTO;
import com.zksy.szpt.domain.dto.SzptFwxxDTO;
import com.zksy.szpt.domain.dto.XxRwwcqkDTO;
import com.zksy.szpt.domain.po.SzptClockIn;
import com.zksy.szpt.domain.po.SzptClockInRules;
import com.zksy.szpt.domain.po.SzptFwxx;
import com.zksy.szpt.domain.po.XxRwwcqk;
import com.zksy.szpt.mapper.SzptClockInMapper;
import com.zksy.szpt.mapper.SzptClockInRulesMapper;
import com.zksy.szpt.mapper.SzptFwxxMapper;
import com.zksy.szpt.mapper.XxRwwcqkMapper;
import com.zksy.szpt.domain.dto.*;
import com.zksy.szpt.domain.po.*;
import com.zksy.szpt.mapper.*;
import com.zksy.szpt.util.BeanMapperUtil;
import org.springframework.stereotype.Service;
......@@ -48,4 +39,32 @@ public class IndexService {
SzptFwxx szptFwxx = BeanMapperUtil.map(szptFwxxDTO,SzptFwxx.class);
return szptFwxxMapper.insert(szptFwxx);
}
@Resource
private SzptGdCsyjhldxMapper szptGdCsyjhldxMapper;
public Integer addSzptGdCsyjhldx(SzptGdCsyjhldxDTO szptGdCsyjhldxDTO){
SzptGdCsyjhldx szptGdCsyjhldx = BeanMapperUtil.map(szptGdCsyjhldxDTO,SzptGdCsyjhldx.class);
return szptGdCsyjhldxMapper.insert(szptGdCsyjhldx);
}
@Resource
private SzptGdRyxxMapper szptGdRyxxMapper;
public Integer addSzptGdRyxx(SzptGdRyxxDTO szptGdRyxxDTO){
SzptGdRyxx szptGdRyxx = BeanMapperUtil.map(szptGdRyxxDTO,SzptGdRyxx.class);
return szptGdRyxxMapper.insert(szptGdRyxx);
}
@Resource
private SzptGdSbxxMapper szptGdSbxxMapper;
public Integer addSzptGdSbxx(SzptGdSbxxDTO szptGdSbxxDTO){
SzptGdSbxx szptGdSbxx = BeanMapperUtil.map(szptGdSbxxDTO,SzptGdSbxx.class);
return szptGdSbxxMapper.insert(szptGdSbxx);
}
@Resource
private SzptGdXxMapper szptGdXxMapper;
public Integer addSzptGdXx(SzptGdXxDTO szptGdXxDTO){
SzptGdXx szptGdXx = BeanMapperUtil.map(szptGdXxDTO,SzptGdXx.class);
return szptGdXxMapper.insert(szptGdXx);
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment