Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
szpt
Project overview
Project overview
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
以墨为白
szpt
Commits
b1ab4f43
Commit
b1ab4f43
authored
Dec 28, 2024
by
夏敏伟
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
新增打卡 打卡规则 房屋信息接口(insert)
parent
7b57fa6e
Changes
15
Hide whitespace changes
Inline
Side-by-side
Showing
15 changed files
with
1009 additions
and
11 deletions
+1009
-11
README.md
README.md
+2
-0
rest.http
rest.http
+84
-0
src/main/java/com/zksy/szpt/controller/IndexController.java
src/main/java/com/zksy/szpt/controller/IndexController.java
+23
-0
src/main/java/com/zksy/szpt/domain/dto/SzptClockInDTO.java
src/main/java/com/zksy/szpt/domain/dto/SzptClockInDTO.java
+200
-0
src/main/java/com/zksy/szpt/domain/dto/SzptClockInRulesDTO.java
...in/java/com/zksy/szpt/domain/dto/SzptClockInRulesDTO.java
+123
-0
src/main/java/com/zksy/szpt/domain/dto/SzptFwxxDTO.java
src/main/java/com/zksy/szpt/domain/dto/SzptFwxxDTO.java
+483
-0
src/main/java/com/zksy/szpt/domain/po/SzptClockIn.java
src/main/java/com/zksy/szpt/domain/po/SzptClockIn.java
+6
-0
src/main/java/com/zksy/szpt/domain/po/SzptClockInExample.java
...main/java/com/zksy/szpt/domain/po/SzptClockInExample.java
+3
-0
src/main/java/com/zksy/szpt/domain/po/SzptClockInRules.java
src/main/java/com/zksy/szpt/domain/po/SzptClockInRules.java
+6
-0
src/main/java/com/zksy/szpt/domain/po/SzptFwxx.java
src/main/java/com/zksy/szpt/domain/po/SzptFwxx.java
+19
-3
src/main/java/com/zksy/szpt/handler/SzptMetaObjectHandler.java
...ain/java/com/zksy/szpt/handler/SzptMetaObjectHandler.java
+21
-2
src/main/java/com/zksy/szpt/mapper/SzptClockInMapper.java
src/main/java/com/zksy/szpt/mapper/SzptClockInMapper.java
+3
-2
src/main/java/com/zksy/szpt/mapper/SzptClockInRulesMapper.java
...ain/java/com/zksy/szpt/mapper/SzptClockInRulesMapper.java
+3
-2
src/main/java/com/zksy/szpt/mapper/SzptFwxxMapper.java
src/main/java/com/zksy/szpt/mapper/SzptFwxxMapper.java
+3
-2
src/main/java/com/zksy/szpt/service/IndexService.java
src/main/java/com/zksy/szpt/service/IndexService.java
+30
-0
No files found.
README.md
0 → 100644
View file @
b1ab4f43
#表结构字段需要调整
##szpt_clock_in_rules id设置为自增
\ No newline at end of file
rest.http
View file @
b1ab4f43
...
@@ -27,3 +27,87 @@ x-szpt-sign: cf9292d20f20c3705cabe1f08d07bec7
...
@@ -27,3 +27,87 @@ x-szpt-sign: cf9292d20f20c3705cabe1f08d07bec7
"shrid": "2",
"shrid": "2",
"wczt": "3"
"wczt": "3"
}
}
######
######打卡
POST http://localhost:8086/rest/index/addSzptClockIn
Content-Type: application/json
x-szpt-appid: 1
x-szpt-timestamp: 21
x-szpt-nonce: nonce
x-szpt-sign: cf9292d20f20c3705cabe1f08d07bec7
{
"csid":"23",
"sbqd":"wer",
"xbqt": "1",
"xcqk": "2",
"sbsj": "3"
}
######
######打卡规则
POST http://localhost:8086/rest/index/addSzptClockInRules
Content-Type: application/json
x-szpt-appid: 1
x-szpt-timestamp: 21
x-szpt-nonce: nonce
x-szpt-sign: cf9292d20f20c3705cabe1f08d07bec7
{
"name":"demo",
"csid":"23",
"chockInTime":"wer",
"clockInScope": "1",
"cslx": "2",
"bz": "3"
}
######
######房屋信息
POST http://localhost:8086/rest/index/addSzptFwxx
Content-Type: application/json
x-szpt-appid: 1
x-szpt-timestamp: 21
x-szpt-nonce: nonce
x-szpt-sign: cf9292d20f20c3705cabe1f08d07bec7
{
"qyid":"demo",
"csid":"23",
"fwjc":"wer",
"jzqk": "1",
"czyt": "2",
"hxjg": "3",
"fxid":"demo",
"czba":"23",
"czbah":"wer",
"czbaqs": "1",
"czbajz": "2",
"fzxm": "3",
"fzsfzh":"demo",
"fzryid":"23",
"fzlxdh":"wer",
"fwlc": "1",
"fwzt": "2",
"qjms":"0",
"qjzt": "1",
"zjqjsj": "2024-12-27 00:00:01",
"zdrq": "3",
"zdzq":"1",
"fwcs":"23",
"glrlx":"1",
"glrxm": "1",
"glrsfzh": "2",
"glrryid":"wer",
"glrlxdh": "1",
"glrgsmc": "2",
"zcsid": "3",
"bz":"demo",
"fkdjzdsh":"0",
"qtfwyt":"wer",
"jkmhysj": "1",
"sjgsdwdm": "2",
"sjgsdwmc":"1"
}
src/main/java/com/zksy/szpt/controller/IndexController.java
View file @
b1ab4f43
package
com
.
zksy
.
szpt
.
controller
;
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.XxRwwcqkDTO
;
import
com.zksy.szpt.service.IndexService
;
import
com.zksy.szpt.service.IndexService
;
import
io.swagger.annotations.Api
;
import
io.swagger.annotations.Api
;
import
io.swagger.annotations.ApiOperation
;
import
io.swagger.annotations.ApiOperation
;
import
org.springframework.validation.annotation.Validated
;
import
org.springframework.web.bind.annotation.PostMapping
;
import
org.springframework.web.bind.annotation.PostMapping
;
import
org.springframework.web.bind.annotation.RequestBody
;
import
org.springframework.web.bind.annotation.RequestBody
;
import
org.springframework.web.bind.annotation.RequestMapping
;
import
org.springframework.web.bind.annotation.RequestMapping
;
...
@@ -14,6 +18,7 @@ import javax.validation.Valid;
...
@@ -14,6 +18,7 @@ import javax.validation.Valid;
@Api
(
tags
=
"新增服务"
)
@Api
(
tags
=
"新增服务"
)
@RequestMapping
(
"/rest/index"
)
@RequestMapping
(
"/rest/index"
)
@RestController
@RestController
@Validated
public
class
IndexController
{
public
class
IndexController
{
private
final
IndexService
indexService
;
private
final
IndexService
indexService
;
...
@@ -26,4 +31,22 @@ public class IndexController {
...
@@ -26,4 +31,22 @@ public class IndexController {
public
Integer
addXxRwwcqk
(
@RequestBody
@Valid
XxRwwcqkDTO
xxRwwcqkDTO
)
{
public
Integer
addXxRwwcqk
(
@RequestBody
@Valid
XxRwwcqkDTO
xxRwwcqkDTO
)
{
return
indexService
.
addXxRwwcqk
(
xxRwwcqkDTO
);
return
indexService
.
addXxRwwcqk
(
xxRwwcqkDTO
);
}
}
@ApiOperation
(
value
=
"新增szpt_clock_in数据"
)
@PostMapping
(
"/addSzptClockIn"
)
public
Integer
addSzptClockIn
(
@RequestBody
@Valid
SzptClockInDTO
szptClockInDTO
){
return
indexService
.
addSzptClockIn
(
szptClockInDTO
);
}
@ApiOperation
(
value
=
"新增szpt_clock_in_rules数据"
)
@PostMapping
(
"/addSzptClockInRules"
)
public
Integer
addSzptClockInRules
(
@RequestBody
@Valid
SzptClockInRulesDTO
szptClockInRulesDTO
){
return
indexService
.
addSzptClockInRules
(
szptClockInRulesDTO
);
}
@ApiOperation
(
value
=
"新增szpt_fwxx数据"
)
@PostMapping
(
"/addSzptFwxx"
)
public
Integer
addSzptFwxx
(
@RequestBody
@Validated
SzptFwxxDTO
szptFwxxDTO
){
return
indexService
.
addSzptFwxx
(
szptFwxxDTO
);
}
}
}
src/main/java/com/zksy/szpt/domain/dto/SzptClockInDTO.java
0 → 100644
View file @
b1ab4f43
package
com
.
zksy
.
szpt
.
domain
.
dto
;
import
java.util.Date
;
public
class
SzptClockInDTO
{
/**
* 场所编号
*/
private
String
csid
;
/**
* 上班签到
*/
private
String
sbqd
;
/**
* 下班签退
*/
private
String
xbqt
;
/**
* 现场情况上报
*/
private
String
xcqk
;
/**
* 上报时间
*/
private
String
sbsj
;
/**
* 上报人
*/
private
String
sbr
;
/**
*
*/
private
Date
createTime
;
/**
*
*/
private
Date
updateTime
;
/**
* 签到人
*/
private
String
qdr
;
/**
* 签到人联系电话
*/
private
String
qdrlxdh
;
/**
* 签到打卡地点
*/
private
String
qddkdd
;
/**
* 签到打卡照片
*/
private
String
qddkzp
;
/**
* 签退打卡地点
*/
private
String
qtdkdd
;
/**
* 签退打卡地点
*/
private
String
qtdkzp
;
/**
* 管控等级
*/
private
String
gkdj
;
public
String
getCsid
()
{
return
csid
;
}
public
void
setCsid
(
String
csid
)
{
this
.
csid
=
csid
==
null
?
null
:
csid
.
trim
();
}
public
String
getSbqd
()
{
return
sbqd
;
}
public
void
setSbqd
(
String
sbqd
)
{
this
.
sbqd
=
sbqd
==
null
?
null
:
sbqd
.
trim
();
}
public
String
getXbqt
()
{
return
xbqt
;
}
public
void
setXbqt
(
String
xbqt
)
{
this
.
xbqt
=
xbqt
==
null
?
null
:
xbqt
.
trim
();
}
public
String
getXcqk
()
{
return
xcqk
;
}
public
void
setXcqk
(
String
xcqk
)
{
this
.
xcqk
=
xcqk
==
null
?
null
:
xcqk
.
trim
();
}
public
String
getSbsj
()
{
return
sbsj
;
}
public
void
setSbsj
(
String
sbsj
)
{
this
.
sbsj
=
sbsj
==
null
?
null
:
sbsj
.
trim
();
}
public
String
getSbr
()
{
return
sbr
;
}
public
void
setSbr
(
String
sbr
)
{
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
String
getQdr
()
{
return
qdr
;
}
public
void
setQdr
(
String
qdr
)
{
this
.
qdr
=
qdr
==
null
?
null
:
qdr
.
trim
();
}
public
String
getQdrlxdh
()
{
return
qdrlxdh
;
}
public
void
setQdrlxdh
(
String
qdrlxdh
)
{
this
.
qdrlxdh
=
qdrlxdh
==
null
?
null
:
qdrlxdh
.
trim
();
}
public
String
getQddkdd
()
{
return
qddkdd
;
}
public
void
setQddkdd
(
String
qddkdd
)
{
this
.
qddkdd
=
qddkdd
==
null
?
null
:
qddkdd
.
trim
();
}
public
String
getQddkzp
()
{
return
qddkzp
;
}
public
void
setQddkzp
(
String
qddkzp
)
{
this
.
qddkzp
=
qddkzp
==
null
?
null
:
qddkzp
.
trim
();
}
public
String
getQtdkdd
()
{
return
qtdkdd
;
}
public
void
setQtdkdd
(
String
qtdkdd
)
{
this
.
qtdkdd
=
qtdkdd
==
null
?
null
:
qtdkdd
.
trim
();
}
public
String
getQtdkzp
()
{
return
qtdkzp
;
}
public
void
setQtdkzp
(
String
qtdkzp
)
{
this
.
qtdkzp
=
qtdkzp
==
null
?
null
:
qtdkzp
.
trim
();
}
public
String
getGkdj
()
{
return
gkdj
;
}
public
void
setGkdj
(
String
gkdj
)
{
this
.
gkdj
=
gkdj
==
null
?
null
:
gkdj
.
trim
();
}
}
src/main/java/com/zksy/szpt/domain/dto/SzptClockInRulesDTO.java
0 → 100644
View file @
b1ab4f43
package
com
.
zksy
.
szpt
.
domain
.
dto
;
import
java.util.Date
;
public
class
SzptClockInRulesDTO
{
/**
* 签到场所名称
*/
private
String
name
;
/**
* 关联场所id
*/
private
String
csid
;
/**
* 打卡时间
*/
private
String
chockInTime
;
/**
* 签到范围
*/
private
String
clockInScope
;
/**
* 签到/签退二维码
*/
private
String
qrCode
;
/**
* 学校类型
*/
private
String
cslx
;
/**
* 备注
*/
private
String
bz
;
/**
* 创建时间
*/
private
Date
createTime
;
/**
* 更新时间
*/
private
Date
updateTime
;
public
String
getName
()
{
return
name
;
}
public
void
setName
(
String
name
)
{
this
.
name
=
name
==
null
?
null
:
name
.
trim
();
}
public
String
getCsid
()
{
return
csid
;
}
public
void
setCsid
(
String
csid
)
{
this
.
csid
=
csid
==
null
?
null
:
csid
.
trim
();
}
public
String
getChockInTime
()
{
return
chockInTime
;
}
public
void
setChockInTime
(
String
chockInTime
)
{
this
.
chockInTime
=
chockInTime
==
null
?
null
:
chockInTime
.
trim
();
}
public
String
getClockInScope
()
{
return
clockInScope
;
}
public
void
setClockInScope
(
String
clockInScope
)
{
this
.
clockInScope
=
clockInScope
==
null
?
null
:
clockInScope
.
trim
();
}
public
String
getQrCode
()
{
return
qrCode
;
}
public
void
setQrCode
(
String
qrCode
)
{
this
.
qrCode
=
qrCode
==
null
?
null
:
qrCode
.
trim
();
}
public
String
getCslx
()
{
return
cslx
;
}
public
void
setCslx
(
String
cslx
)
{
this
.
cslx
=
cslx
==
null
?
null
:
cslx
.
trim
();
}
public
String
getBz
()
{
return
bz
;
}
public
void
setBz
(
String
bz
)
{
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
;
}
}
src/main/java/com/zksy/szpt/domain/dto/SzptFwxxDTO.java
0 → 100644
View file @
b1ab4f43
package
com
.
zksy
.
szpt
.
domain
.
dto
;
import
com.fasterxml.jackson.annotation.JsonFormat
;
import
org.springframework.format.annotation.DateTimeFormat
;
import
javax.validation.constraints.NotBlank
;
import
java.util.Date
;
public
class
SzptFwxxDTO
{
/**
* 区域ID
*/
private
String
qyid
;
/**
* 场所ID
*/
private
String
csid
;
/**
* 房屋简称
*/
private
String
fwjc
;
/**
* 居住情况(1059):01-出租,02-自住,03-借住,04-空置
*/
private
String
jzqk
;
/**
* 出租用途(1043):03-出租房,04-经营用房,06-员工宿舍,07-网约房
*/
private
String
czyt
;
/**
* 户型结构(1042):01-1室,02-2室,03-3室,04-4室,05-5室,06-6室,07-7室,08-8室,09-9室
*/
private
String
hxjg
;
/**
* 房型ID
*/
private
String
fxid
;
/**
* 出租备案(1044):1-已备案,2-未备案
*/
private
String
czba
;
/**
* 出租备案号
*/
private
String
czbah
;
/**
* 出租备案起始
*/
private
String
czbaqs
;
/**
* 出租备案截止
*/
private
String
czbajz
;
/**
* 房主姓名
*/
private
String
fzxm
;
/**
* 房主身份证号
*/
private
String
fzsfzh
;
/**
* 房主人员id
*/
private
String
fzryid
;
/**
* 房主联系电话
*/
private
String
fzlxdh
;
/**
* 房屋楼层
*/
private
String
fwlc
;
/**
* 房屋房间号(数字)
*/
private
String
fwfjh
;
/**
* 房屋状态(3136):0-废弃,1-空闲,2-在住,3-保留
*/
private
String
fwzt
;
/**
* 清洁模式(3137):0-无,1-默认清洁
*/
private
String
qjms
;
/**
* 清洁状态(3138):1-净,2-脏
*/
private
String
qjzt
;
/**
* 最近清洁时间
*/
@JsonFormat
(
pattern
=
"yyyy-MM-dd HH:mm:ss"
)
private
Date
zjqjsj
;
/**
* 账单日期
*/
private
String
zdrq
;
/**
* 账单周期(3161):1-月付,2-季付,3-半年付,4-年付
*/
private
String
zdzq
;
/**
* 房屋参数JSON,扩展用
*/
private
String
fwcs
;
/**
* 管理人类型(3175):0-房主本人,1-亲戚,2-朋友,3-二房东,4-运营公司,5-运营子场所
*/
private
String
glrlx
;
/**
* 管理人姓名
*/
private
String
glrxm
;
/**
* 管理人身份证号
*/
private
String
glrsfzh
;
/**
* 管理人人员id
*/
private
String
glrryid
;
/**
* 管理人联系电话
*/
private
String
glrlxdh
;
/**
* 管理运营公司名称
*/
private
String
glrgsmc
;
/**
* 子场所ID
*/
private
String
zcsid
;
/**
* 备注
*/
private
String
bz
;
/**
* 访客登记自动审核标志(3001):0-否1-是
*/
@NotBlank
(
message
=
"访客登记自动审核标志(3001):0-否1-是不能为空"
)
private
String
fkdjzdsh
;
/**
* 其他房屋用途
*/
private
String
qtfwyt
;
/**
* 健康码核验时间
*/
private
Date
jkmhysj
;
/**
* 房主证件照片
*/
private
String
fzzjzp
;
public
String
getQyid
()
{
return
qyid
;
}
public
void
setQyid
(
String
qyid
)
{
this
.
qyid
=
qyid
==
null
?
null
:
qyid
.
trim
();
}
public
String
getCsid
()
{
return
csid
;
}
public
void
setCsid
(
String
csid
)
{
this
.
csid
=
csid
==
null
?
null
:
csid
.
trim
();
}
public
String
getFwjc
()
{
return
fwjc
;
}
public
void
setFwjc
(
String
fwjc
)
{
this
.
fwjc
=
fwjc
==
null
?
null
:
fwjc
.
trim
();
}
public
String
getJzqk
()
{
return
jzqk
;
}
public
void
setJzqk
(
String
jzqk
)
{
this
.
jzqk
=
jzqk
==
null
?
null
:
jzqk
.
trim
();
}
public
String
getCzyt
()
{
return
czyt
;
}
public
void
setCzyt
(
String
czyt
)
{
this
.
czyt
=
czyt
==
null
?
null
:
czyt
.
trim
();
}
public
String
getHxjg
()
{
return
hxjg
;
}
public
void
setHxjg
(
String
hxjg
)
{
this
.
hxjg
=
hxjg
==
null
?
null
:
hxjg
.
trim
();
}
public
String
getFxid
()
{
return
fxid
;
}
public
void
setFxid
(
String
fxid
)
{
this
.
fxid
=
fxid
==
null
?
null
:
fxid
.
trim
();
}
public
String
getCzba
()
{
return
czba
;
}
public
void
setCzba
(
String
czba
)
{
this
.
czba
=
czba
==
null
?
null
:
czba
.
trim
();
}
public
String
getCzbah
()
{
return
czbah
;
}
public
void
setCzbah
(
String
czbah
)
{
this
.
czbah
=
czbah
==
null
?
null
:
czbah
.
trim
();
}
public
String
getCzbaqs
()
{
return
czbaqs
;
}
public
void
setCzbaqs
(
String
czbaqs
)
{
this
.
czbaqs
=
czbaqs
==
null
?
null
:
czbaqs
.
trim
();
}
public
String
getCzbajz
()
{
return
czbajz
;
}
public
void
setCzbajz
(
String
czbajz
)
{
this
.
czbajz
=
czbajz
==
null
?
null
:
czbajz
.
trim
();
}
public
String
getFzxm
()
{
return
fzxm
;
}
public
void
setFzxm
(
String
fzxm
)
{
this
.
fzxm
=
fzxm
==
null
?
null
:
fzxm
.
trim
();
}
public
String
getFzsfzh
()
{
return
fzsfzh
;
}
public
void
setFzsfzh
(
String
fzsfzh
)
{
this
.
fzsfzh
=
fzsfzh
==
null
?
null
:
fzsfzh
.
trim
();
}
public
String
getFzryid
()
{
return
fzryid
;
}
public
void
setFzryid
(
String
fzryid
)
{
this
.
fzryid
=
fzryid
==
null
?
null
:
fzryid
.
trim
();
}
public
String
getFzlxdh
()
{
return
fzlxdh
;
}
public
void
setFzlxdh
(
String
fzlxdh
)
{
this
.
fzlxdh
=
fzlxdh
==
null
?
null
:
fzlxdh
.
trim
();
}
public
String
getFwlc
()
{
return
fwlc
;
}
public
void
setFwlc
(
String
fwlc
)
{
this
.
fwlc
=
fwlc
==
null
?
null
:
fwlc
.
trim
();
}
public
String
getFwfjh
()
{
return
fwfjh
;
}
public
void
setFwfjh
(
String
fwfjh
)
{
this
.
fwfjh
=
fwfjh
==
null
?
null
:
fwfjh
.
trim
();
}
public
String
getFwzt
()
{
return
fwzt
;
}
public
void
setFwzt
(
String
fwzt
)
{
this
.
fwzt
=
fwzt
==
null
?
null
:
fwzt
.
trim
();
}
public
String
getQjms
()
{
return
qjms
;
}
public
void
setQjms
(
String
qjms
)
{
this
.
qjms
=
qjms
==
null
?
null
:
qjms
.
trim
();
}
public
String
getQjzt
()
{
return
qjzt
;
}
public
void
setQjzt
(
String
qjzt
)
{
this
.
qjzt
=
qjzt
==
null
?
null
:
qjzt
.
trim
();
}
public
Date
getZjqjsj
()
{
return
zjqjsj
;
}
public
void
setZjqjsj
(
Date
zjqjsj
)
{
this
.
zjqjsj
=
zjqjsj
;
}
public
String
getZdrq
()
{
return
zdrq
;
}
public
void
setZdrq
(
String
zdrq
)
{
this
.
zdrq
=
zdrq
==
null
?
null
:
zdrq
.
trim
();
}
public
String
getZdzq
()
{
return
zdzq
;
}
public
void
setZdzq
(
String
zdzq
)
{
this
.
zdzq
=
zdzq
==
null
?
null
:
zdzq
.
trim
();
}
public
String
getFwcs
()
{
return
fwcs
;
}
public
void
setFwcs
(
String
fwcs
)
{
this
.
fwcs
=
fwcs
==
null
?
null
:
fwcs
.
trim
();
}
public
String
getGlrlx
()
{
return
glrlx
;
}
public
void
setGlrlx
(
String
glrlx
)
{
this
.
glrlx
=
glrlx
==
null
?
null
:
glrlx
.
trim
();
}
public
String
getGlrxm
()
{
return
glrxm
;
}
public
void
setGlrxm
(
String
glrxm
)
{
this
.
glrxm
=
glrxm
==
null
?
null
:
glrxm
.
trim
();
}
public
String
getGlrsfzh
()
{
return
glrsfzh
;
}
public
void
setGlrsfzh
(
String
glrsfzh
)
{
this
.
glrsfzh
=
glrsfzh
==
null
?
null
:
glrsfzh
.
trim
();
}
public
String
getGlrryid
()
{
return
glrryid
;
}
public
void
setGlrryid
(
String
glrryid
)
{
this
.
glrryid
=
glrryid
==
null
?
null
:
glrryid
.
trim
();
}
public
String
getGlrlxdh
()
{
return
glrlxdh
;
}
public
void
setGlrlxdh
(
String
glrlxdh
)
{
this
.
glrlxdh
=
glrlxdh
==
null
?
null
:
glrlxdh
.
trim
();
}
public
String
getGlrgsmc
()
{
return
glrgsmc
;
}
public
void
setGlrgsmc
(
String
glrgsmc
)
{
this
.
glrgsmc
=
glrgsmc
==
null
?
null
:
glrgsmc
.
trim
();
}
public
String
getZcsid
()
{
return
zcsid
;
}
public
void
setZcsid
(
String
zcsid
)
{
this
.
zcsid
=
zcsid
==
null
?
null
:
zcsid
.
trim
();
}
public
String
getBz
()
{
return
bz
;
}
public
void
setBz
(
String
bz
)
{
this
.
bz
=
bz
==
null
?
null
:
bz
.
trim
();
}
public
String
getFkdjzdsh
()
{
return
fkdjzdsh
;
}
public
void
setFkdjzdsh
(
String
fkdjzdsh
)
{
this
.
fkdjzdsh
=
fkdjzdsh
==
null
?
null
:
fkdjzdsh
.
trim
();
}
public
String
getQtfwyt
()
{
return
qtfwyt
;
}
public
void
setQtfwyt
(
String
qtfwyt
)
{
this
.
qtfwyt
=
qtfwyt
==
null
?
null
:
qtfwyt
.
trim
();
}
public
Date
getJkmhysj
()
{
return
jkmhysj
;
}
public
void
setJkmhysj
(
Date
jkmhysj
)
{
this
.
jkmhysj
=
jkmhysj
;
}
public
String
getFzzjzp
()
{
return
fzzjzp
;
}
public
void
setFzzjzp
(
String
fzzjzp
)
{
this
.
fzzjzp
=
fzzjzp
==
null
?
null
:
fzzjzp
.
trim
();
}
}
src/main/java/com/zksy/szpt/domain/po/SzptClockIn.java
View file @
b1ab4f43
package
com
.
zksy
.
szpt
.
domain
.
po
;
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
java.util.Date
;
import
java.util.Date
;
@TableName
public
class
SzptClockIn
{
public
class
SzptClockIn
{
/**
/**
*
*
*/
*/
@TableId
(
type
=
IdType
.
AUTO
)
private
Integer
id
;
private
Integer
id
;
/**
/**
...
...
src/main/java/com/zksy/szpt/domain/po/SzptClockInExample.java
View file @
b1ab4f43
package
com
.
zksy
.
szpt
.
domain
.
po
;
package
com
.
zksy
.
szpt
.
domain
.
po
;
import
com.baomidou.mybatisplus.annotation.TableName
;
import
java.util.ArrayList
;
import
java.util.ArrayList
;
import
java.util.Date
;
import
java.util.Date
;
import
java.util.List
;
import
java.util.List
;
@TableName
public
class
SzptClockInExample
{
public
class
SzptClockInExample
{
protected
String
orderByClause
;
protected
String
orderByClause
;
...
...
src/main/java/com/zksy/szpt/domain/po/SzptClockInRules.java
View file @
b1ab4f43
package
com
.
zksy
.
szpt
.
domain
.
po
;
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
java.util.Date
;
import
java.util.Date
;
@TableName
public
class
SzptClockInRules
{
public
class
SzptClockInRules
{
/**
/**
*
*
*/
*/
@TableId
(
type
=
IdType
.
AUTO
)
private
Integer
id
;
private
Integer
id
;
/**
/**
...
...
src/main/java/com/zksy/szpt/domain/po/SzptFwxx.java
View file @
b1ab4f43
package
com
.
zksy
.
szpt
.
domain
.
po
;
package
com
.
zksy
.
szpt
.
domain
.
po
;
import
com.baomidou.mybatisplus.annotation.*
;
import
javax.validation.constraints.NotBlank
;
import
java.util.Date
;
import
java.util.Date
;
@TableName
public
class
SzptFwxx
{
public
class
SzptFwxx
{
/**
/**
* 区域ID
* 区域ID
*/
*/
@NotBlank
(
message
=
"区域ID不能为空"
)
@TableId
(
type
=
IdType
.
ASSIGN_ID
)
private
String
qyid
;
private
String
qyid
;
/**
/**
...
@@ -181,46 +187,55 @@ public class SzptFwxx {
...
@@ -181,46 +187,55 @@ public class SzptFwxx {
/**
/**
* 数据归属单位代码
* 数据归属单位代码
*/
*/
@TableField
(
fill
=
FieldFill
.
INSERT
)
private
String
sjgsdwdm
;
private
String
sjgsdwdm
;
/**
/**
* 数据归属单位名称
* 数据归属单位名称
*/
*/
@TableField
(
fill
=
FieldFill
.
INSERT
)
private
String
sjgsdwmc
;
private
String
sjgsdwmc
;
/**
/**
* 登记公安机关机构代码
* 登记公安机关机构代码
*/
*/
@TableField
(
fill
=
FieldFill
.
INSERT
)
private
String
createGajgjgdm
;
private
String
createGajgjgdm
;
/**
/**
* 登记公安机关名称
* 登记公安机关名称
*/
*/
@TableField
(
fill
=
FieldFill
.
INSERT
)
private
String
createGajgmc
;
private
String
createGajgmc
;
/**
/**
* 创建人id
* 创建人id
*/
*/
@TableField
(
fill
=
FieldFill
.
INSERT
)
private
String
createId
;
private
String
createId
;
/**
/**
* 创建人
* 创建人
*/
*/
@TableField
(
fill
=
FieldFill
.
INSERT
)
private
String
createBy
;
private
String
createBy
;
/**
/**
* 创建日期
* 创建日期
*/
*/
@TableField
(
fill
=
FieldFill
.
INSERT
)
private
Date
createTime
;
private
Date
createTime
;
/**
/**
* 创建操作终端: web,app,import
* 创建操作终端: web,app,import
*/
*/
@TableField
(
fill
=
FieldFill
.
INSERT
)
private
String
createTerminal
;
private
String
createTerminal
;
/**
/**
* 创建操作ip
* 创建操作ip
*/
*/
@TableField
(
fill
=
FieldFill
.
INSERT
)
private
String
createIp
;
private
String
createIp
;
/**
/**
...
@@ -261,7 +276,8 @@ public class SzptFwxx {
...
@@ -261,7 +276,8 @@ public class SzptFwxx {
/**
/**
* 删除状态(0-正常,1-删除至回收站)
* 删除状态(0-正常,1-删除至回收站)
*/
*/
private
Boolean
delFlag
;
@TableField
(
fill
=
FieldFill
.
INSERT
)
private
Integer
delFlag
;
/**
/**
* 房主证件照片
* 房主证件照片
...
@@ -676,11 +692,11 @@ public class SzptFwxx {
...
@@ -676,11 +692,11 @@ public class SzptFwxx {
this
.
updateIp
=
updateIp
==
null
?
null
:
updateIp
.
trim
();
this
.
updateIp
=
updateIp
==
null
?
null
:
updateIp
.
trim
();
}
}
public
Boolean
getDelFlag
()
{
public
Integer
getDelFlag
()
{
return
delFlag
;
return
delFlag
;
}
}
public
void
setDelFlag
(
Boolean
delFlag
)
{
public
void
setDelFlag
(
Integer
delFlag
)
{
this
.
delFlag
=
delFlag
;
this
.
delFlag
=
delFlag
;
}
}
...
...
src/main/java/com/zksy/szpt/handler/SzptMetaObjectHandler.java
View file @
b1ab4f43
...
@@ -21,7 +21,18 @@ public class SzptMetaObjectHandler implements MetaObjectHandler {
...
@@ -21,7 +21,18 @@ public class SzptMetaObjectHandler implements MetaObjectHandler {
// this.strictInsertFill(metaObject, "cjsj", Date.class, new Date());
// this.strictInsertFill(metaObject, "cjsj", Date.class, new Date());
List
<
StrictFill
>
fields
=
Arrays
.
asList
(
List
<
StrictFill
>
fields
=
Arrays
.
asList
(
StrictFill
.
of
(
"createTime"
,
Date
.
class
,
new
Date
()),
StrictFill
.
of
(
"createTime"
,
Date
.
class
,
new
Date
()),
StrictFill
.
of
(
"cjsj"
,
Date
.
class
,
new
Date
())
StrictFill
.
of
(
"cjsj"
,
Date
.
class
,
new
Date
()),
StrictFill
.
of
(
"sjgsdwdm"
,
String
.
class
,
"1"
),
StrictFill
.
of
(
"sjgsdwmc"
,
String
.
class
,
"1"
),
StrictFill
.
of
(
"createGajgjgdm"
,
String
.
class
,
"1"
),
StrictFill
.
of
(
"createGajgmc"
,
String
.
class
,
"1"
),
StrictFill
.
of
(
"createId"
,
String
.
class
,
"1"
),
StrictFill
.
of
(
"createBy"
,
String
.
class
,
"1"
),
StrictFill
.
of
(
"createTerminal"
,
String
.
class
,
"1"
),
StrictFill
.
of
(
"createIp"
,
String
.
class
,
"1"
),
StrictFill
.
of
(
"delFlag"
,
Integer
.
class
,
0
)
// StrictFill.of("del_flag", Integer.class,0)
);
);
this
.
strictInsertFill
(
findTableInfo
(
metaObject
),
metaObject
,
fields
);
this
.
strictInsertFill
(
findTableInfo
(
metaObject
),
metaObject
,
fields
);
}
}
...
@@ -32,7 +43,15 @@ public class SzptMetaObjectHandler implements MetaObjectHandler {
...
@@ -32,7 +43,15 @@ public class SzptMetaObjectHandler implements MetaObjectHandler {
StrictFill
.
of
(
"updateTime"
,
Date
.
class
,
new
Date
()),
StrictFill
.
of
(
"updateTime"
,
Date
.
class
,
new
Date
()),
StrictFill
.
of
(
"gxrid"
,
String
.
class
,
"1"
),
StrictFill
.
of
(
"gxrid"
,
String
.
class
,
"1"
),
StrictFill
.
of
(
"gxsj"
,
Date
.
class
,
new
Date
()),
StrictFill
.
of
(
"gxsj"
,
Date
.
class
,
new
Date
()),
StrictFill
.
of
(
"gxrxm"
,
String
.
class
,
"测试"
)
StrictFill
.
of
(
"gxrxm"
,
String
.
class
,
"测试"
),
StrictFill
.
of
(
"update_gajgjgdm"
,
String
.
class
,
'1'
),
StrictFill
.
of
(
"update_gajgmc"
,
String
.
class
,
'1'
),
StrictFill
.
of
(
"update_id"
,
String
.
class
,
'1'
),
StrictFill
.
of
(
"update_by"
,
String
.
class
,
'1'
),
StrictFill
.
of
(
"update_time"
,
Date
.
class
,
new
Date
()),
StrictFill
.
of
(
"update_terminal"
,
String
.
class
,
'1'
),
StrictFill
.
of
(
"update_ip"
,
String
.
class
,
'1'
)
// StrictFill.of("del_flag", Integer.class,0)
);
);
this
.
strictInsertFill
(
findTableInfo
(
metaObject
),
metaObject
,
fields
);
this
.
strictInsertFill
(
findTableInfo
(
metaObject
),
metaObject
,
fields
);
// this.strictInsertFill(metaObject, "updateTime", Date.class, new Date());
// this.strictInsertFill(metaObject, "updateTime", Date.class, new Date());
...
...
src/main/java/com/zksy/szpt/mapper/SzptClockInMapper.java
View file @
b1ab4f43
package
com
.
zksy
.
szpt
.
mapper
;
package
com
.
zksy
.
szpt
.
mapper
;
import
com.baomidou.mybatisplus.core.mapper.BaseMapper
;
import
com.zksy.szpt.domain.po.SzptClockIn
;
import
com.zksy.szpt.domain.po.SzptClockIn
;
import
com.zksy.szpt.domain.po.SzptClockInExample
;
import
com.zksy.szpt.domain.po.SzptClockInExample
;
import
java.util.List
;
import
java.util.List
;
import
org.apache.ibatis.annotations.Param
;
import
org.apache.ibatis.annotations.Param
;
public
interface
SzptClockInMapper
{
public
interface
SzptClockInMapper
extends
BaseMapper
<
SzptClockIn
>
{
long
countByExample
(
SzptClockInExample
example
);
long
countByExample
(
SzptClockInExample
example
);
int
deleteByExample
(
SzptClockInExample
example
);
int
deleteByExample
(
SzptClockInExample
example
);
int
deleteByPrimaryKey
(
Integer
id
);
int
deleteByPrimaryKey
(
Integer
id
);
int
insert
(
SzptClockIn
record
);
//
int insert(SzptClockIn record);
int
insertSelective
(
SzptClockIn
record
);
int
insertSelective
(
SzptClockIn
record
);
...
...
src/main/java/com/zksy/szpt/mapper/SzptClockInRulesMapper.java
View file @
b1ab4f43
package
com
.
zksy
.
szpt
.
mapper
;
package
com
.
zksy
.
szpt
.
mapper
;
import
com.baomidou.mybatisplus.core.mapper.BaseMapper
;
import
com.zksy.szpt.domain.po.SzptClockInRules
;
import
com.zksy.szpt.domain.po.SzptClockInRules
;
import
com.zksy.szpt.domain.po.SzptClockInRulesExample
;
import
com.zksy.szpt.domain.po.SzptClockInRulesExample
;
import
java.util.List
;
import
java.util.List
;
import
org.apache.ibatis.annotations.Param
;
import
org.apache.ibatis.annotations.Param
;
public
interface
SzptClockInRulesMapper
{
public
interface
SzptClockInRulesMapper
extends
BaseMapper
<
SzptClockInRules
>
{
long
countByExample
(
SzptClockInRulesExample
example
);
long
countByExample
(
SzptClockInRulesExample
example
);
int
deleteByExample
(
SzptClockInRulesExample
example
);
int
deleteByExample
(
SzptClockInRulesExample
example
);
int
deleteByPrimaryKey
(
Integer
id
);
int
deleteByPrimaryKey
(
Integer
id
);
int
insert
(
SzptClockInRules
record
);
//
int insert(SzptClockInRules record);
int
insertSelective
(
SzptClockInRules
record
);
int
insertSelective
(
SzptClockInRules
record
);
...
...
src/main/java/com/zksy/szpt/mapper/SzptFwxxMapper.java
View file @
b1ab4f43
package
com
.
zksy
.
szpt
.
mapper
;
package
com
.
zksy
.
szpt
.
mapper
;
import
com.baomidou.mybatisplus.core.mapper.BaseMapper
;
import
com.zksy.szpt.domain.po.SzptFwxx
;
import
com.zksy.szpt.domain.po.SzptFwxx
;
import
com.zksy.szpt.domain.po.SzptFwxxExample
;
import
com.zksy.szpt.domain.po.SzptFwxxExample
;
import
java.util.List
;
import
java.util.List
;
import
org.apache.ibatis.annotations.Param
;
import
org.apache.ibatis.annotations.Param
;
public
interface
SzptFwxxMapper
{
public
interface
SzptFwxxMapper
extends
BaseMapper
<
SzptFwxx
>
{
long
countByExample
(
SzptFwxxExample
example
);
long
countByExample
(
SzptFwxxExample
example
);
int
deleteByExample
(
SzptFwxxExample
example
);
int
deleteByExample
(
SzptFwxxExample
example
);
int
deleteByPrimaryKey
(
String
qyid
);
int
deleteByPrimaryKey
(
String
qyid
);
int
insert
(
SzptFwxx
record
);
//
int insert(SzptFwxx record);
int
insertSelective
(
SzptFwxx
record
);
int
insertSelective
(
SzptFwxx
record
);
...
...
src/main/java/com/zksy/szpt/service/IndexService.java
View file @
b1ab4f43
package
com
.
zksy
.
szpt
.
service
;
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.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.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.mapper.XxRwwcqkMapper
;
import
com.zksy.szpt.util.BeanMapperUtil
;
import
com.zksy.szpt.util.BeanMapperUtil
;
import
org.springframework.stereotype.Service
;
import
org.springframework.stereotype.Service
;
...
@@ -18,4 +27,25 @@ public class IndexService {
...
@@ -18,4 +27,25 @@ public class IndexService {
XxRwwcqk
xxRwwcqk
=
BeanMapperUtil
.
map
(
xxRwwcqkDTO
,
XxRwwcqk
.
class
);
XxRwwcqk
xxRwwcqk
=
BeanMapperUtil
.
map
(
xxRwwcqkDTO
,
XxRwwcqk
.
class
);
return
xxRwwcqkMapper
.
insert
(
xxRwwcqk
);
return
xxRwwcqkMapper
.
insert
(
xxRwwcqk
);
}
}
@Resource
private
SzptClockInMapper
szptClockInMapper
;
public
Integer
addSzptClockIn
(
SzptClockInDTO
szptClockInDTO
){
SzptClockIn
szptClockIn
=
BeanMapperUtil
.
map
(
szptClockInDTO
,
SzptClockIn
.
class
);
return
szptClockInMapper
.
insert
(
szptClockIn
);
}
@Resource
private
SzptClockInRulesMapper
szptClockInRulesMapper
;
public
Integer
addSzptClockInRules
(
SzptClockInRulesDTO
szptClockInRulesDTO
){
SzptClockInRules
szptClockInRules
=
BeanMapperUtil
.
map
(
szptClockInRulesDTO
,
SzptClockInRules
.
class
);
return
szptClockInRulesMapper
.
insert
(
szptClockInRules
);
}
@Resource
private
SzptFwxxMapper
szptFwxxMapper
;
public
Integer
addSzptFwxx
(
SzptFwxxDTO
szptFwxxDTO
){
SzptFwxx
szptFwxx
=
BeanMapperUtil
.
map
(
szptFwxxDTO
,
SzptFwxx
.
class
);
return
szptFwxxMapper
.
insert
(
szptFwxx
);
}
}
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment