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

打卡、打卡规则、房屋信息、场所预警忽略对象、工地人员信息、设备信息、工地信息新增更新、删除功能

parent d5da19c8
...@@ -29,8 +29,8 @@ x-szpt-sign: cf9292d20f20c3705cabe1f08d07bec7 ...@@ -29,8 +29,8 @@ x-szpt-sign: cf9292d20f20c3705cabe1f08d07bec7
} }
######打卡 ######打卡-新增
######2 ######2-1
POST http://localhost:8086/rest/index/addSzptClockIn POST http://localhost:8086/rest/index/addSzptClockIn
Content-Type: application/json Content-Type: application/json
x-szpt-appid: 1 x-szpt-appid: 1
...@@ -39,7 +39,8 @@ x-szpt-nonce: nonce ...@@ -39,7 +39,8 @@ x-szpt-nonce: nonce
x-szpt-sign: cf9292d20f20c3705cabe1f08d07bec7 x-szpt-sign: cf9292d20f20c3705cabe1f08d07bec7
{ {
"csid":"231", "id": 30,
"csid":"2311ssssss11111",
"sbqd":"wer2", "sbqd":"wer2",
"xbqt": "1", "xbqt": "1",
"xcqk": "2", "xcqk": "2",
...@@ -54,8 +55,45 @@ x-szpt-sign: cf9292d20f20c3705cabe1f08d07bec7 ...@@ -54,8 +55,45 @@ x-szpt-sign: cf9292d20f20c3705cabe1f08d07bec7
"gkdj": "2" "gkdj": "2"
} }
######打卡规则 ######打卡-更新
######3 ######2-2
POST http://localhost:8086/rest/index/updateSzptClockIn
Content-Type: application/json
x-szpt-appid: 1
x-szpt-timestamp: 21
x-szpt-nonce: nonce
x-szpt-sign: cf9292d20f20c3705cabe1f08d07bec7
{
"id": 14,
"csid":"2311111111111111111111111",
"sbqd":"wer2",
"xbqt": "1",
"xcqk": "2",
"sbsj": "3",
"sbr":"23",
"qdr":"wer",
"qdrlxdh": "1",
"qddkdd": "2",
"qddkzp": "3",
"qtdkdd":"wer",
"qtdkzp": "1",
"gkdj": "2"
}
######打卡-删除
######2-3
POST http://localhost:8086/rest/index/deleteSzptClockIn
Content-Type: application/json
x-szpt-appid: 1
x-szpt-timestamp: 21
x-szpt-nonce: nonce
x-szpt-sign: cf9292d20f20c3705cabe1f08d07bec7
[23,24]
######打卡规则-新增
######3-1
POST http://localhost:8086/rest/index/addSzptClockInRules POST http://localhost:8086/rest/index/addSzptClockInRules
Content-Type: application/json Content-Type: application/json
x-szpt-appid: 1 x-szpt-appid: 1
...@@ -64,6 +102,7 @@ x-szpt-nonce: nonce ...@@ -64,6 +102,7 @@ x-szpt-nonce: nonce
x-szpt-sign: cf9292d20f20c3705cabe1f08d07bec7 x-szpt-sign: cf9292d20f20c3705cabe1f08d07bec7
{ {
"id":7,
"name":"demo", "name":"demo",
"csid":"23", "csid":"23",
"chockInTime":"wer", "chockInTime":"wer",
...@@ -73,9 +112,9 @@ x-szpt-sign: cf9292d20f20c3705cabe1f08d07bec7 ...@@ -73,9 +112,9 @@ x-szpt-sign: cf9292d20f20c3705cabe1f08d07bec7
"bz": "3" "bz": "3"
} }
######房屋信息 ######打卡规则-更新
######4 ######3-2
POST http://localhost:8086/rest/index/addSzptFwxx POST http://localhost:8086/rest/index/updateSzptClockInRules
Content-Type: application/json Content-Type: application/json
x-szpt-appid: 1 x-szpt-appid: 1
x-szpt-timestamp: 21 x-szpt-timestamp: 21
...@@ -83,8 +122,40 @@ x-szpt-nonce: nonce ...@@ -83,8 +122,40 @@ x-szpt-nonce: nonce
x-szpt-sign: cf9292d20f20c3705cabe1f08d07bec7 x-szpt-sign: cf9292d20f20c3705cabe1f08d07bec7
{ {
"qyid":"demo", "id":7,
"name":"demo11111111",
"csid":"23", "csid":"23",
"chockInTime":"wer",
"clockInScope": "1",
"qrCode": "1",
"cslx": "2",
"bz": "3"
}
######打卡规则-删除
######3-3
POST http://localhost:8086/rest/index/deleteSzptClockInRules
Content-Type: application/json
x-szpt-appid: 1
x-szpt-timestamp: 21
x-szpt-nonce: nonce
x-szpt-sign: cf9292d20f20c3705cabe1f08d07bec7
[3,5]
######房屋信息-新增
######4-1
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":"demo2",
"csid":"1",
"fwjc":"wer", "fwjc":"wer",
"jzqk": "1", "jzqk": "1",
"czyt": "2", "czyt": "2",
...@@ -121,8 +192,67 @@ x-szpt-sign: cf9292d20f20c3705cabe1f08d07bec7 ...@@ -121,8 +192,67 @@ x-szpt-sign: cf9292d20f20c3705cabe1f08d07bec7
"sjgsdwmc":"1" "sjgsdwmc":"1"
} }
######工地场所预警忽略对象 ######房屋信息-更新
######5 ######4-2
POST http://localhost:8086/rest/index/updateSzptFwxx
Content-Type: application/json
x-szpt-appid: 1
x-szpt-timestamp: 21
x-szpt-nonce: nonce
x-szpt-sign: cf9292d20f20c3705cabe1f08d07bec7
{
"qyid":"demo2",
"csid":"122222222222222222222222",
"fwjc":"wer11111",
"jzqk": "11",
"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"
}
######房屋信息-删除
######4-3
POST http://localhost:8086/rest/index/deleteSzptFwxx
Content-Type: application/json
x-szpt-appid: 1
x-szpt-timestamp: 21
x-szpt-nonce: nonce
x-szpt-sign: cf9292d20f20c3705cabe1f08d07bec7
["demo1","demo2"]
######工地场所预警忽略对象-新增
######5-1
POST http://localhost:8086/rest/index/addSzptGdCsyjhldx POST http://localhost:8086/rest/index/addSzptGdCsyjhldx
Content-Type: application/json Content-Type: application/json
x-szpt-appid: 1 x-szpt-appid: 1
...@@ -131,6 +261,7 @@ x-szpt-nonce: nonce ...@@ -131,6 +261,7 @@ x-szpt-nonce: nonce
x-szpt-sign: cf9292d20f20c3705cabe1f08d07bec7 x-szpt-sign: cf9292d20f20c3705cabe1f08d07bec7
{ {
"id": "3",
"csid":"1", "csid":"1",
"yjlx":"2", "yjlx":"2",
"yjzlx": "3", "yjzlx": "3",
...@@ -140,9 +271,40 @@ x-szpt-sign: cf9292d20f20c3705cabe1f08d07bec7 ...@@ -140,9 +271,40 @@ x-szpt-sign: cf9292d20f20c3705cabe1f08d07bec7
"zt": "7" "zt": "7"
} }
######工地场所预警忽略对象-更新
######5-2
POST http://localhost:8086/rest/index/updateSzptGdCsyjhldx
Content-Type: application/json
x-szpt-appid: 1
x-szpt-timestamp: 21
x-szpt-nonce: nonce
x-szpt-sign: cf9292d20f20c3705cabe1f08d07bec7
{
"id": "1",
"csid":"111111111111111",
"yjlx":"2",
"yjzlx": "3",
"ywid": "4",
"ywms": "5",
"bz": "6",
"zt": "7"
}
######工地场所预警忽略对象-删除
######5-3
POST http://localhost:8086/rest/index/deleteSzptGdCsyjhldx
Content-Type: application/json
x-szpt-appid: 1
x-szpt-timestamp: 21
x-szpt-nonce: nonce
x-szpt-sign: cf9292d20f20c3705cabe1f08d07bec7
["1","2","3"]
######工地人员信息 ######工地人员信息-新增
######6 ######6-1
POST http://localhost:8086/rest/index/addSzptGdRyxx POST http://localhost:8086/rest/index/addSzptGdRyxx
Content-Type: application/json Content-Type: application/json
x-szpt-appid: 1 x-szpt-appid: 1
...@@ -151,6 +313,7 @@ x-szpt-nonce: nonce ...@@ -151,6 +313,7 @@ x-szpt-nonce: nonce
x-szpt-sign: cf9292d20f20c3705cabe1f08d07bec7 x-szpt-sign: cf9292d20f20c3705cabe1f08d07bec7
{ {
"id":"5",
"rkbm":"1", "rkbm":"1",
"csid":"2", "csid":"2",
"cjrlid": "3", "cjrlid": "3",
...@@ -195,10 +358,77 @@ x-szpt-sign: cf9292d20f20c3705cabe1f08d07bec7 ...@@ -195,10 +358,77 @@ x-szpt-sign: cf9292d20f20c3705cabe1f08d07bec7
"sjrzrs": "42" "sjrzrs": "42"
} }
######工地人员信息-更新
######6-2
POST http://localhost:8086/rest/index/updateSzptGdRyxx
Content-Type: application/json
x-szpt-appid: 1
x-szpt-timestamp: 21
x-szpt-nonce: nonce
x-szpt-sign: cf9292d20f20c3705cabe1f08d07bec7
{
"id": "1",
"rkbm":"1111111111111111",
"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"
}
######工地人员信息-删除
######6-3
POST http://localhost:8086/rest/index/deleteSzptGdRyxx
Content-Type: application/json
x-szpt-appid: 1
x-szpt-timestamp: 21
x-szpt-nonce: nonce
x-szpt-sign: cf9292d20f20c3705cabe1f08d07bec7
["3","4"]
######工地设备信息 ######工地设备信息-新增
######7 ######7-1
POST http://localhost:8086/rest/index/addSzptGdSbxx POST http://localhost:8086/rest/index/addSzptGdSbxx
Content-Type: application/json Content-Type: application/json
x-szpt-appid: 1 x-szpt-appid: 1
...@@ -207,6 +437,7 @@ x-szpt-nonce: nonce ...@@ -207,6 +437,7 @@ x-szpt-nonce: nonce
x-szpt-sign: cf9292d20f20c3705cabe1f08d07bec7 x-szpt-sign: cf9292d20f20c3705cabe1f08d07bec7
{ {
"id": "2",
"sbsn":"1", "sbsn":"1",
"sbmc":"2", "sbmc":"2",
"sbbh": "3", "sbbh": "3",
...@@ -232,8 +463,55 @@ x-szpt-sign: cf9292d20f20c3705cabe1f08d07bec7 ...@@ -232,8 +463,55 @@ x-szpt-sign: cf9292d20f20c3705cabe1f08d07bec7
} }
######工地信息 ######工地设备信息-更新
######8 ######7-2
POST http://localhost:8086/rest/index/updateSzptGdSbxx
Content-Type: application/json
x-szpt-appid: 1
x-szpt-timestamp: 21
x-szpt-nonce: nonce
x-szpt-sign: cf9292d20f20c3705cabe1f08d07bec7
{
"id": "1",
"sbsn":"1111111",
"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"
}
######工地设备信息-删除
######7-3
POST http://localhost:8086/rest/index/deleteSzptGdSbxx
Content-Type: application/json
x-szpt-appid: 1
x-szpt-timestamp: 21
x-szpt-nonce: nonce
x-szpt-sign: cf9292d20f20c3705cabe1f08d07bec7
["1","2"]
######工地信息-新增
######8-1
POST http://localhost:8086/rest/index/addSzptGdXx POST http://localhost:8086/rest/index/addSzptGdXx
Content-Type: application/json Content-Type: application/json
x-szpt-appid: 1 x-szpt-appid: 1
...@@ -242,6 +520,7 @@ x-szpt-nonce: nonce ...@@ -242,6 +520,7 @@ x-szpt-nonce: nonce
x-szpt-sign: cf9292d20f20c3705cabe1f08d07bec7 x-szpt-sign: cf9292d20f20c3705cabe1f08d07bec7
{ {
"id": "3",
"cslx":"1", "cslx":"1",
"csmc":"2", "csmc":"2",
"csms": "3", "csms": "3",
...@@ -283,6 +562,70 @@ x-szpt-sign: cf9292d20f20c3705cabe1f08d07bec7 ...@@ -283,6 +562,70 @@ x-szpt-sign: cf9292d20f20c3705cabe1f08d07bec7
} }
######工地信息-更新
######8-2
POST http://localhost:8086/rest/index/updateSzptGdXx
Content-Type: application/json
x-szpt-appid: 1
x-szpt-timestamp: 21
x-szpt-nonce: nonce
x-szpt-sign: cf9292d20f20c3705cabe1f08d07bec7
{
"id": "1",
"cslx":"1",
"csmc":"2111111",
"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"
}
######工地信息-删除
######8-3
POST http://localhost:8086/rest/index/deleteSzptGdXx
Content-Type: application/json
x-szpt-appid: 1
x-szpt-timestamp: 21
x-szpt-nonce: nonce
x-szpt-sign: cf9292d20f20c3705cabe1f08d07bec7
["1","2","3"]
######工地预警流水表 ######工地预警流水表
######9 ######9
POST http://localhost:8086/rest/index/addSzptGdYj POST http://localhost:8086/rest/index/addSzptGdYj
......
...@@ -5,10 +5,9 @@ import com.zksy.szpt.service.SzptClockInService; ...@@ -5,10 +5,9 @@ import com.zksy.szpt.service.SzptClockInService;
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.validation.annotation.Validated;
import org.springframework.web.bind.annotation.PostMapping; import org.springframework.web.bind.annotation.*;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping; import java.util.List;
import org.springframework.web.bind.annotation.RestController;
@Api(tags = "新增服务") @Api(tags = "新增服务")
@RequestMapping("/rest/index") @RequestMapping("/rest/index")
...@@ -27,4 +26,18 @@ public class SzptClockInController { ...@@ -27,4 +26,18 @@ public class SzptClockInController {
public Integer addSzptClockIn(@RequestBody @Validated SzptClockInDTO szptClockInDTO){ public Integer addSzptClockIn(@RequestBody @Validated SzptClockInDTO szptClockInDTO){
return szptClockInService.addSzptClockIn(szptClockInDTO); return szptClockInService.addSzptClockIn(szptClockInDTO);
} }
@ApiOperation(value="编辑szpt_clock_in数据")
@PostMapping("/updateSzptClockIn")
public Integer updateSzptClockIn(@RequestBody @Validated SzptClockInDTO szptClockInDTO){
return szptClockInService.updateSzptClockIn(szptClockInDTO);
}
@ApiOperation(value = "删除szpt_clock_in数据")
@PostMapping("/deleteSzptClockIn")
public Integer deleteSzptClockIn(@RequestBody List<Integer> ids) {
return szptClockInService.deleteSzptClockIn(ids);
}
} }
...@@ -5,10 +5,9 @@ import com.zksy.szpt.service.SzptClockInRulesService; ...@@ -5,10 +5,9 @@ import com.zksy.szpt.service.SzptClockInRulesService;
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.validation.annotation.Validated;
import org.springframework.web.bind.annotation.PostMapping; import org.springframework.web.bind.annotation.*;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping; import java.util.List;
import org.springframework.web.bind.annotation.RestController;
@Api(tags = "新增服务") @Api(tags = "新增服务")
@RequestMapping("/rest/index") @RequestMapping("/rest/index")
...@@ -27,4 +26,16 @@ public class SzptClockInRulesController { ...@@ -27,4 +26,16 @@ public class SzptClockInRulesController {
public Integer addSzptClockInRules(@RequestBody @Validated SzptClockInRulesDTO szptClockInRulesDTO){ public Integer addSzptClockInRules(@RequestBody @Validated SzptClockInRulesDTO szptClockInRulesDTO){
return szptClockInRulesService.addSzptClockInRules(szptClockInRulesDTO); return szptClockInRulesService.addSzptClockInRules(szptClockInRulesDTO);
} }
@ApiOperation(value="编辑szpt_clock_in_rules数据")
@PostMapping("/updateSzptClockInRules")
public Integer updateSzptClockInRules(@RequestBody @Validated SzptClockInRulesDTO szptClockInRulesDTO){
return szptClockInRulesService.updateSzptClockInRules(szptClockInRulesDTO);
}
@ApiOperation(value = "删除SzptClockInRules数据")
@PostMapping("/deleteSzptClockInRules")
public Integer deleteSzptClockInRules(@RequestBody List<Integer> ids) {
return szptClockInRulesService.deleteSzptClockInRules(ids);
}
} }
...@@ -5,10 +5,9 @@ import com.zksy.szpt.service.SzptFwxxService; ...@@ -5,10 +5,9 @@ import com.zksy.szpt.service.SzptFwxxService;
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.validation.annotation.Validated;
import org.springframework.web.bind.annotation.PostMapping; import org.springframework.web.bind.annotation.*;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping; import java.util.List;
import org.springframework.web.bind.annotation.RestController;
@Api(tags = "新增服务") @Api(tags = "新增服务")
@RequestMapping("/rest/index") @RequestMapping("/rest/index")
...@@ -28,4 +27,16 @@ public class SzptFwxxController { ...@@ -28,4 +27,16 @@ public class SzptFwxxController {
public Integer addSzptFwxx(@RequestBody @Validated SzptFwxxDTO szptFwxxDTO){ public Integer addSzptFwxx(@RequestBody @Validated SzptFwxxDTO szptFwxxDTO){
return szptFwxxService.addSzptFwxx(szptFwxxDTO); return szptFwxxService.addSzptFwxx(szptFwxxDTO);
} }
@ApiOperation(value="编辑SzptFwxx数据")
@PostMapping("/updateSzptFwxx")
public Integer updateSzptFwxx(@RequestBody @Validated SzptFwxxDTO szptFwxxDTO){
return szptFwxxService.updateSzptFwxx(szptFwxxDTO);
}
@ApiOperation(value = "删除SzptFwxx数据")
@PostMapping("/deleteSzptFwxx")
public Integer deleteSzptFwxx(@RequestBody List<String> ids) {
return szptFwxxService.deleteSzptFwxx(ids);
}
} }
...@@ -5,10 +5,9 @@ import com.zksy.szpt.service.SzptGdCsyjhldxService; ...@@ -5,10 +5,9 @@ import com.zksy.szpt.service.SzptGdCsyjhldxService;
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.validation.annotation.Validated;
import org.springframework.web.bind.annotation.PostMapping; import org.springframework.web.bind.annotation.*;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping; import java.util.List;
import org.springframework.web.bind.annotation.RestController;
@Api(tags = "新增服务") @Api(tags = "新增服务")
@RequestMapping("/rest/index") @RequestMapping("/rest/index")
...@@ -28,4 +27,16 @@ public class SzptGdCsyjhldxController { ...@@ -28,4 +27,16 @@ public class SzptGdCsyjhldxController {
public Integer addSzptGdCsyjhldx(@RequestBody @Validated SzptGdCsyjhldxDTO szptGdCsyjhldxDTO){ public Integer addSzptGdCsyjhldx(@RequestBody @Validated SzptGdCsyjhldxDTO szptGdCsyjhldxDTO){
return szptGdCsyjhldxService.addSzptGdCsyjhldx(szptGdCsyjhldxDTO); return szptGdCsyjhldxService.addSzptGdCsyjhldx(szptGdCsyjhldxDTO);
} }
@ApiOperation(value="编辑SzptGdCsyjhldx数据")
@PostMapping("/updateSzptGdCsyjhldx")
public Integer updateSzptFwxx(@RequestBody @Validated SzptGdCsyjhldxDTO szptGdCsyjhldxDTO){
return szptGdCsyjhldxService.updateSzptGdCsyjhldx(szptGdCsyjhldxDTO);
}
@ApiOperation(value = "删除SzptGdCsyjhldx数据")
@PostMapping("/deleteSzptGdCsyjhldx")
public Integer deleteSzptGdCsyjhldx(@RequestBody List<String> ids) {
return szptGdCsyjhldxService.deleteSzptGdCsyjhldx(ids);
}
} }
...@@ -10,6 +10,8 @@ import org.springframework.web.bind.annotation.RequestBody; ...@@ -10,6 +10,8 @@ import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController; import org.springframework.web.bind.annotation.RestController;
import java.util.List;
@Api(tags = "新增服务") @Api(tags = "新增服务")
@RequestMapping("/rest/index") @RequestMapping("/rest/index")
@RestController @RestController
...@@ -26,4 +28,16 @@ public class SzptGdRyxxController { ...@@ -26,4 +28,16 @@ public class SzptGdRyxxController {
public Integer addSzptGdRyxx(@RequestBody @Validated SzptGdRyxxDTO szptGdRyxxDTO){ public Integer addSzptGdRyxx(@RequestBody @Validated SzptGdRyxxDTO szptGdRyxxDTO){
return szptGdRyxxService.addSzptGdRyxx(szptGdRyxxDTO); return szptGdRyxxService.addSzptGdRyxx(szptGdRyxxDTO);
} }
@ApiOperation(value="编辑工地人员信息数据")
@PostMapping("/updateSzptGdRyxx")
public Integer updateSzptGdRyxx(@RequestBody @Validated SzptGdRyxxDTO szptGdRyxxDTO){
return szptGdRyxxService.updateSzptGdRyxx(szptGdRyxxDTO);
}
@ApiOperation(value = "删除工地人员信息数据")
@PostMapping("/deleteSzptGdRyxx")
public Integer deleteSzptGdRyxx(@RequestBody List<String> ids) {
return szptGdRyxxService.deleteSzptGdRyxx(ids);
}
} }
package com.zksy.szpt.controller; package com.zksy.szpt.controller;
import com.zksy.szpt.domain.dto.SzptGdSbxxDTO; import com.zksy.szpt.domain.dto.SzptGdSbxxDTO;
import com.zksy.szpt.service.IndexService;
import com.zksy.szpt.service.SzptGdSbxxService; import com.zksy.szpt.service.SzptGdSbxxService;
import io.swagger.annotations.Api; import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation; import io.swagger.annotations.ApiOperation;
...@@ -11,6 +10,8 @@ import org.springframework.web.bind.annotation.RequestBody; ...@@ -11,6 +10,8 @@ import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController; import org.springframework.web.bind.annotation.RestController;
import java.util.List;
@Api(tags = "新增服务") @Api(tags = "新增服务")
@RequestMapping("/rest/index") @RequestMapping("/rest/index")
@RestController @RestController
...@@ -27,4 +28,16 @@ public class SzptGdSbxxController { ...@@ -27,4 +28,16 @@ public class SzptGdSbxxController {
public Integer addSzptGdSbxx(@RequestBody @Validated SzptGdSbxxDTO szptGdSbxxDTO){ public Integer addSzptGdSbxx(@RequestBody @Validated SzptGdSbxxDTO szptGdSbxxDTO){
return szptGdSbxxService.addSzptGdSbxx(szptGdSbxxDTO); return szptGdSbxxService.addSzptGdSbxx(szptGdSbxxDTO);
} }
@ApiOperation(value="编辑设备信息数据")
@PostMapping("/updateSzptGdSbxx")
public Integer updateSzptGdSbxx(@RequestBody @Validated SzptGdSbxxDTO szptGdSbxxDTO){
return szptGdSbxxService.updateSzptGdSbxx(szptGdSbxxDTO);
}
@ApiOperation(value = "删除设备信息数据")
@PostMapping("/deleteSzptGdSbxx")
public Integer deleteSzptGdSbxx(@RequestBody List<String> ids) {
return szptGdSbxxService.deleteSzptGdSbxx(ids);
}
} }
...@@ -10,6 +10,8 @@ import org.springframework.web.bind.annotation.RequestBody; ...@@ -10,6 +10,8 @@ import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController; import org.springframework.web.bind.annotation.RestController;
import java.util.List;
@Api(tags = "新增服务") @Api(tags = "新增服务")
@RequestMapping("/rest/index") @RequestMapping("/rest/index")
@RestController @RestController
...@@ -26,4 +28,16 @@ public class SzptGdXxController { ...@@ -26,4 +28,16 @@ public class SzptGdXxController {
public Integer addSzptGdXx(@RequestBody @Validated SzptGdXxDTO szptGdXxDTO){ public Integer addSzptGdXx(@RequestBody @Validated SzptGdXxDTO szptGdXxDTO){
return szptGdXxService.addSzptGdXx(szptGdXxDTO); return szptGdXxService.addSzptGdXx(szptGdXxDTO);
} }
@ApiOperation(value="编辑工地信息数据")
@PostMapping("/updateSzptGdXx")
public Integer updateSzptGdXx(@RequestBody @Validated SzptGdXxDTO szptGdXxDTO){
return szptGdXxService.updateSzptGdXx(szptGdXxDTO);
}
@ApiOperation(value = "删除工地信息数据")
@PostMapping("/deleteSzptGdXx")
public Integer deleteSzptGdXx(@RequestBody List<String> ids) {
return szptGdXxService.deleteSzptGdXx(ids);
}
} }
package com.zksy.szpt.domain.dto; package com.zksy.szpt.domain.dto;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.util.Date; import java.util.Date;
public class SzptClockInDTO { public class SzptClockInDTO {
/**
*
*/
private Integer id;
/** /**
* 场所编号 * 场所编号
*/ */
...@@ -68,6 +75,14 @@ public class SzptClockInDTO { ...@@ -68,6 +75,14 @@ public class SzptClockInDTO {
*/ */
private String gkdj; private String gkdj;
public Integer getId() {
return id;
}
public void setId(Integer id) {
this.id = id;
}
public String getCsid() { public String getCsid() {
return csid; return csid;
} }
......
...@@ -3,7 +3,10 @@ package com.zksy.szpt.domain.dto; ...@@ -3,7 +3,10 @@ package com.zksy.szpt.domain.dto;
import java.util.Date; import java.util.Date;
public class SzptClockInRulesDTO { public class SzptClockInRulesDTO {
/**
*
*/
private Integer id;
/** /**
* 签到场所名称 * 签到场所名称
*/ */
...@@ -40,6 +43,14 @@ public class SzptClockInRulesDTO { ...@@ -40,6 +43,14 @@ public class SzptClockInRulesDTO {
private String bz; private String bz;
public Integer getId() {
return id;
}
public void setId(Integer id) {
this.id = id;
}
public String getName() { public String getName() {
return name; return name;
} }
......
package com.zksy.szpt.domain.dto; package com.zksy.szpt.domain.dto;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import javax.validation.constraints.NotBlank; import javax.validation.constraints.NotBlank;
import java.util.Date; import java.util.Date;
public class SzptGdCsyjhldxDTO { public class SzptGdCsyjhldxDTO {
/**
* 流水ID
*/
@NotBlank(message = "流水ID不能为空")
private String id;
/** /**
* 场所id * 场所id
*/ */
...@@ -43,6 +51,14 @@ public class SzptGdCsyjhldxDTO { ...@@ -43,6 +51,14 @@ public class SzptGdCsyjhldxDTO {
*/ */
private String zt; private String zt;
public String getId() {
return id;
}
public void setId(String id) {
this.id = id;
}
public String getCsid() { public String getCsid() {
return csid; return csid;
} }
......
package com.zksy.szpt.domain.dto; package com.zksy.szpt.domain.dto;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonFormat; import com.fasterxml.jackson.annotation.JsonFormat;
import javax.validation.constraints.NotBlank; import javax.validation.constraints.NotBlank;
...@@ -10,6 +12,13 @@ import java.util.Date; ...@@ -10,6 +12,13 @@ import java.util.Date;
public class SzptGdRyxxDTO { public class SzptGdRyxxDTO {
/**
* 人员ID
*/
@NotBlank(message = "人员ID不能为空")
private String id;
/** /**
* 人口编码 * 人口编码
*/ */
...@@ -235,6 +244,14 @@ public class SzptGdRyxxDTO { ...@@ -235,6 +244,14 @@ public class SzptGdRyxxDTO {
*/ */
private String sjrzrs; private String sjrzrs;
public String getId() {
return id;
}
public void setId(String id) {
this.id = id;
}
public String getRkbm() { public String getRkbm() {
return rkbm; return rkbm;
......
package com.zksy.szpt.domain.dto; package com.zksy.szpt.domain.dto;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonFormat; import com.fasterxml.jackson.annotation.JsonFormat;
import javax.validation.constraints.NotBlank; import javax.validation.constraints.NotBlank;
import java.util.Date; import java.util.Date;
public class SzptGdSbxxDTO { public class SzptGdSbxxDTO {
/**
* 设备ID
*/
@NotBlank(message = "设备ID不能为空")
private String id;
/** /**
* 设备序列号 * 设备序列号
*/ */
...@@ -125,6 +134,13 @@ public class SzptGdSbxxDTO { ...@@ -125,6 +134,13 @@ public class SzptGdSbxxDTO {
public String getId() {
return id;
}
public void setId(String id) {
this.id = id;
}
public String getSbsn() { public String getSbsn() {
return sbsn; return sbsn;
} }
......
package com.zksy.szpt.domain.dto; package com.zksy.szpt.domain.dto;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonFormat; import com.fasterxml.jackson.annotation.JsonFormat;
import javax.validation.constraints.NotBlank; import javax.validation.constraints.NotBlank;
...@@ -7,6 +9,11 @@ import java.util.Date; ...@@ -7,6 +9,11 @@ import java.util.Date;
public class SzptGdXxDTO { public class SzptGdXxDTO {
/**
* 场所ID
*/
@NotBlank(message = "场所ID不能为空")
private String id;
/** /**
* 场所类型;cslb=3109 * 场所类型;cslb=3109
*/ */
...@@ -211,6 +218,13 @@ public class SzptGdXxDTO { ...@@ -211,6 +218,13 @@ public class SzptGdXxDTO {
@NotBlank(message = "登记公安机关名称不能为空") @NotBlank(message = "登记公安机关名称不能为空")
private String createGajgmc; private String createGajgmc;
public String getId() {
return id;
}
public void setId(String id) {
this.id = id;
}
public String getCslx() { public String getCslx() {
return cslx; return cslx;
......
...@@ -9,7 +9,7 @@ public class SzptClockIn { ...@@ -9,7 +9,7 @@ public class SzptClockIn {
/** /**
* *
*/ */
@TableId(type = IdType.AUTO) @TableId(type = IdType.INPUT)
private Integer id; private Integer id;
/** /**
......
...@@ -9,7 +9,7 @@ public class SzptClockInRules { ...@@ -9,7 +9,7 @@ public class SzptClockInRules {
/** /**
* *
*/ */
@TableId(type = IdType.AUTO) @TableId(type = IdType.INPUT)
private Integer id; private Integer id;
/** /**
......
...@@ -10,7 +10,7 @@ public class SzptFwxx { ...@@ -10,7 +10,7 @@ public class SzptFwxx {
/** /**
* 区域ID * 区域ID
*/ */
@TableId(type = IdType.ASSIGN_ID) @TableId(type = IdType.INPUT)
private String qyid; private String qyid;
/** /**
......
...@@ -14,7 +14,7 @@ public class SzptGdRyxx { ...@@ -14,7 +14,7 @@ public class SzptGdRyxx {
/** /**
* 人员ID * 人员ID
*/ */
@TableId(type = IdType.ASSIGN_ID) @TableId(type = IdType.INPUT)
private String id; private String id;
/** /**
......
package com.zksy.szpt.service; package com.zksy.szpt.service;
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.core.conditions.update.LambdaUpdateWrapper;
import com.zksy.szpt.domain.dto.SzptClockInRulesDTO; import com.zksy.szpt.domain.dto.SzptClockInRulesDTO;
import com.zksy.szpt.domain.po.SzptClockInRules; import com.zksy.szpt.domain.po.SzptClockInRules;
import com.zksy.szpt.mapper.SzptClockInRulesMapper; import com.zksy.szpt.mapper.SzptClockInRulesMapper;
...@@ -7,6 +9,7 @@ import com.zksy.szpt.util.BeanMapperUtil; ...@@ -7,6 +9,7 @@ import com.zksy.szpt.util.BeanMapperUtil;
import org.springframework.stereotype.Service; import org.springframework.stereotype.Service;
import javax.annotation.Resource; import javax.annotation.Resource;
import java.util.List;
@Service @Service
public class SzptClockInRulesService { public class SzptClockInRulesService {
...@@ -17,4 +20,17 @@ public class SzptClockInRulesService { ...@@ -17,4 +20,17 @@ public class SzptClockInRulesService {
SzptClockInRules szptClockInRules = BeanMapperUtil.map(szptClockInRulesDTO, SzptClockInRules.class); SzptClockInRules szptClockInRules = BeanMapperUtil.map(szptClockInRulesDTO, SzptClockInRules.class);
return szptClockInRulesMapper.insert(szptClockInRules); return szptClockInRulesMapper.insert(szptClockInRules);
} }
public Integer updateSzptClockInRules(SzptClockInRulesDTO szptClockInRulesDTO) {
SzptClockInRules szptClockInRules = BeanMapperUtil.map(szptClockInRulesDTO, SzptClockInRules.class);
LambdaUpdateWrapper<SzptClockInRules> wrapper = new LambdaUpdateWrapper<>();
wrapper.eq(SzptClockInRules::getId, szptClockInRules.getId());
return szptClockInRulesMapper.update(szptClockInRules,wrapper);
}
public Integer deleteSzptClockInRules(List<Integer> ids) {
LambdaQueryWrapper<SzptClockInRules> wrapper = new LambdaQueryWrapper<>();
wrapper.in(SzptClockInRules::getId, ids);
return szptClockInRulesMapper.delete(wrapper);
}
} }
package com.zksy.szpt.service; package com.zksy.szpt.service;
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.core.conditions.update.LambdaUpdateWrapper;
import com.zksy.szpt.domain.dto.SzptClockInDTO; import com.zksy.szpt.domain.dto.SzptClockInDTO;
import com.zksy.szpt.domain.po.SzptClockIn; import com.zksy.szpt.domain.po.SzptClockIn;
import com.zksy.szpt.mapper.SzptClockInMapper; import com.zksy.szpt.mapper.SzptClockInMapper;
...@@ -7,6 +9,7 @@ import com.zksy.szpt.util.BeanMapperUtil; ...@@ -7,6 +9,7 @@ import com.zksy.szpt.util.BeanMapperUtil;
import org.springframework.stereotype.Service; import org.springframework.stereotype.Service;
import javax.annotation.Resource; import javax.annotation.Resource;
import java.util.List;
@Service @Service
public class SzptClockInService { public class SzptClockInService {
...@@ -17,4 +20,17 @@ public class SzptClockInService { ...@@ -17,4 +20,17 @@ public class SzptClockInService {
SzptClockIn szptClockIn = BeanMapperUtil.map(szptClockInDTO, SzptClockIn.class); SzptClockIn szptClockIn = BeanMapperUtil.map(szptClockInDTO, SzptClockIn.class);
return szptClockInMapper.insert(szptClockIn); return szptClockInMapper.insert(szptClockIn);
} }
public Integer updateSzptClockIn(SzptClockInDTO szptClockInDTO) {
SzptClockIn szptClockIn = BeanMapperUtil.map(szptClockInDTO, SzptClockIn.class);
LambdaUpdateWrapper<SzptClockIn> wrapper = new LambdaUpdateWrapper<>();
wrapper.eq(SzptClockIn::getId, szptClockIn.getId());
return szptClockInMapper.update(szptClockIn,wrapper);
}
public Integer deleteSzptClockIn(List<Integer> ids) {
LambdaQueryWrapper<SzptClockIn> wrapper = new LambdaQueryWrapper<>();
wrapper.in(SzptClockIn::getId, ids);
return szptClockInMapper.delete(wrapper);
}
} }
package com.zksy.szpt.service; package com.zksy.szpt.service;
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.core.conditions.update.LambdaUpdateWrapper;
import com.zksy.szpt.domain.dto.SzptFwxxDTO; import com.zksy.szpt.domain.dto.SzptFwxxDTO;
import com.zksy.szpt.domain.po.SzptFwxx; import com.zksy.szpt.domain.po.SzptFwxx;
import com.zksy.szpt.mapper.SzptFwxxMapper; import com.zksy.szpt.mapper.SzptFwxxMapper;
...@@ -7,6 +9,7 @@ import com.zksy.szpt.util.BeanMapperUtil; ...@@ -7,6 +9,7 @@ import com.zksy.szpt.util.BeanMapperUtil;
import org.springframework.stereotype.Service; import org.springframework.stereotype.Service;
import javax.annotation.Resource; import javax.annotation.Resource;
import java.util.List;
@Service @Service
public class SzptFwxxService { public class SzptFwxxService {
...@@ -18,4 +21,17 @@ public class SzptFwxxService { ...@@ -18,4 +21,17 @@ public class SzptFwxxService {
SzptFwxx szptFwxx = BeanMapperUtil.map(szptFwxxDTO, SzptFwxx.class); SzptFwxx szptFwxx = BeanMapperUtil.map(szptFwxxDTO, SzptFwxx.class);
return szptFwxxMapper.insert(szptFwxx); return szptFwxxMapper.insert(szptFwxx);
} }
public Integer updateSzptFwxx(SzptFwxxDTO szptFwxxDTO) {
SzptFwxx szptFwxx = BeanMapperUtil.map(szptFwxxDTO, SzptFwxx.class);
LambdaUpdateWrapper<SzptFwxx> wrapper = new LambdaUpdateWrapper<>();
wrapper.eq(SzptFwxx::getQyid, szptFwxx.getQyid());
return szptFwxxMapper.update(szptFwxx,wrapper);
}
public Integer deleteSzptFwxx(List<String> ids) {
LambdaQueryWrapper<SzptFwxx> wrapper = new LambdaQueryWrapper<>();
wrapper.in(SzptFwxx::getQyid, ids);
return szptFwxxMapper.delete(wrapper);
}
} }
package com.zksy.szpt.service; package com.zksy.szpt.service;
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.core.conditions.update.LambdaUpdateWrapper;
import com.zksy.szpt.domain.dto.SzptGdCsyjhldxDTO; import com.zksy.szpt.domain.dto.SzptGdCsyjhldxDTO;
import com.zksy.szpt.domain.po.SzptGdCsyjhldx; import com.zksy.szpt.domain.po.SzptGdCsyjhldx;
import com.zksy.szpt.mapper.SzptGdCsyjhldxMapper; import com.zksy.szpt.mapper.SzptGdCsyjhldxMapper;
...@@ -7,6 +9,7 @@ import com.zksy.szpt.util.BeanMapperUtil; ...@@ -7,6 +9,7 @@ import com.zksy.szpt.util.BeanMapperUtil;
import org.springframework.stereotype.Service; import org.springframework.stereotype.Service;
import javax.annotation.Resource; import javax.annotation.Resource;
import java.util.List;
@Service @Service
public class SzptGdCsyjhldxService { public class SzptGdCsyjhldxService {
...@@ -17,4 +20,17 @@ public class SzptGdCsyjhldxService { ...@@ -17,4 +20,17 @@ public class SzptGdCsyjhldxService {
SzptGdCsyjhldx szptGdCsyjhldx = BeanMapperUtil.map(szptGdCsyjhldxDTO, SzptGdCsyjhldx.class); SzptGdCsyjhldx szptGdCsyjhldx = BeanMapperUtil.map(szptGdCsyjhldxDTO, SzptGdCsyjhldx.class);
return szptGdCsyjhldxMapper.insert(szptGdCsyjhldx); return szptGdCsyjhldxMapper.insert(szptGdCsyjhldx);
} }
public Integer updateSzptGdCsyjhldx(SzptGdCsyjhldxDTO szptGdCsyjhldxDTO) {
SzptGdCsyjhldx szptGdCsyjhldx = BeanMapperUtil.map(szptGdCsyjhldxDTO, SzptGdCsyjhldx.class);
LambdaUpdateWrapper<SzptGdCsyjhldx> wrapper = new LambdaUpdateWrapper<>();
wrapper.eq(SzptGdCsyjhldx::getId, szptGdCsyjhldx.getId());
return szptGdCsyjhldxMapper.update(szptGdCsyjhldx,wrapper);
}
public Integer deleteSzptGdCsyjhldx(List<String> ids) {
LambdaQueryWrapper<SzptGdCsyjhldx> wrapper = new LambdaQueryWrapper<>();
wrapper.in(SzptGdCsyjhldx::getId, ids);
return szptGdCsyjhldxMapper.delete(wrapper);
}
} }
package com.zksy.szpt.service; package com.zksy.szpt.service;
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.core.conditions.update.LambdaUpdateWrapper;
import com.zksy.szpt.domain.dto.SzptGdRyxxDTO; import com.zksy.szpt.domain.dto.SzptGdRyxxDTO;
import com.zksy.szpt.domain.po.SzptGdRyxx; import com.zksy.szpt.domain.po.SzptGdRyxx;
import com.zksy.szpt.mapper.SzptGdRyxxMapper; import com.zksy.szpt.mapper.SzptGdRyxxMapper;
...@@ -7,6 +9,7 @@ import com.zksy.szpt.util.BeanMapperUtil; ...@@ -7,6 +9,7 @@ import com.zksy.szpt.util.BeanMapperUtil;
import org.springframework.stereotype.Service; import org.springframework.stereotype.Service;
import javax.annotation.Resource; import javax.annotation.Resource;
import java.util.List;
@Service @Service
public class SzptGdRyxxService { public class SzptGdRyxxService {
...@@ -17,4 +20,17 @@ public class SzptGdRyxxService { ...@@ -17,4 +20,17 @@ public class SzptGdRyxxService {
SzptGdRyxx szptGdRyxx = BeanMapperUtil.map(szptGdRyxxDTO, SzptGdRyxx.class); SzptGdRyxx szptGdRyxx = BeanMapperUtil.map(szptGdRyxxDTO, SzptGdRyxx.class);
return szptGdRyxxMapper.insert(szptGdRyxx); return szptGdRyxxMapper.insert(szptGdRyxx);
} }
public Integer updateSzptGdRyxx(SzptGdRyxxDTO szptGdRyxxDTO) {
SzptGdRyxx szptGdRyxx = BeanMapperUtil.map(szptGdRyxxDTO, SzptGdRyxx.class);
LambdaUpdateWrapper<SzptGdRyxx> wrapper = new LambdaUpdateWrapper<>();
wrapper.eq(SzptGdRyxx::getId, szptGdRyxx.getId());
return szptGdRyxxMapper.update(szptGdRyxx,wrapper);
}
public Integer deleteSzptGdRyxx(List<String> ids) {
LambdaQueryWrapper<SzptGdRyxx> wrapper = new LambdaQueryWrapper<>();
wrapper.in(SzptGdRyxx::getId, ids);
return szptGdRyxxMapper.delete(wrapper);
}
} }
package com.zksy.szpt.service; package com.zksy.szpt.service;
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.core.conditions.update.LambdaUpdateWrapper;
import com.zksy.szpt.domain.dto.SzptGdSbxxDTO; import com.zksy.szpt.domain.dto.SzptGdSbxxDTO;
import com.zksy.szpt.domain.po.SzptGdSbxx; import com.zksy.szpt.domain.po.SzptGdSbxx;
import com.zksy.szpt.mapper.SzptGdSbxxMapper; import com.zksy.szpt.mapper.SzptGdSbxxMapper;
...@@ -7,6 +9,7 @@ import com.zksy.szpt.util.BeanMapperUtil; ...@@ -7,6 +9,7 @@ import com.zksy.szpt.util.BeanMapperUtil;
import org.springframework.stereotype.Service; import org.springframework.stereotype.Service;
import javax.annotation.Resource; import javax.annotation.Resource;
import java.util.List;
@Service @Service
public class SzptGdSbxxService { public class SzptGdSbxxService {
...@@ -17,4 +20,17 @@ public class SzptGdSbxxService { ...@@ -17,4 +20,17 @@ public class SzptGdSbxxService {
SzptGdSbxx szptGdSbxx = BeanMapperUtil.map(szptGdSbxxDTO, SzptGdSbxx.class); SzptGdSbxx szptGdSbxx = BeanMapperUtil.map(szptGdSbxxDTO, SzptGdSbxx.class);
return szptGdSbxxMapper.insert(szptGdSbxx); return szptGdSbxxMapper.insert(szptGdSbxx);
} }
public Integer updateSzptGdSbxx(SzptGdSbxxDTO szptGdSbxxDTO) {
SzptGdSbxx szptGdSbxx = BeanMapperUtil.map(szptGdSbxxDTO, SzptGdSbxx.class);
LambdaUpdateWrapper<SzptGdSbxx> wrapper = new LambdaUpdateWrapper<>();
wrapper.eq(SzptGdSbxx::getId, szptGdSbxx.getId());
return szptGdSbxxMapper.update(szptGdSbxx,wrapper);
}
public Integer deleteSzptGdSbxx(List<String> ids) {
LambdaQueryWrapper<SzptGdSbxx> wrapper = new LambdaQueryWrapper<>();
wrapper.in(SzptGdSbxx::getId, ids);
return szptGdSbxxMapper.delete(wrapper);
}
} }
package com.zksy.szpt.service; package com.zksy.szpt.service;
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.core.conditions.update.LambdaUpdateWrapper;
import com.zksy.szpt.domain.dto.SzptGdXxDTO; import com.zksy.szpt.domain.dto.SzptGdXxDTO;
import com.zksy.szpt.domain.po.SzptGdXx; import com.zksy.szpt.domain.po.SzptGdXx;
import com.zksy.szpt.mapper.SzptGdXxMapper; import com.zksy.szpt.mapper.SzptGdXxMapper;
...@@ -7,6 +9,7 @@ import com.zksy.szpt.util.BeanMapperUtil; ...@@ -7,6 +9,7 @@ import com.zksy.szpt.util.BeanMapperUtil;
import org.springframework.stereotype.Service; import org.springframework.stereotype.Service;
import javax.annotation.Resource; import javax.annotation.Resource;
import java.util.List;
@Service @Service
public class SzptGdXxService { public class SzptGdXxService {
...@@ -17,4 +20,17 @@ public class SzptGdXxService { ...@@ -17,4 +20,17 @@ public class SzptGdXxService {
SzptGdXx szptGdXx = BeanMapperUtil.map(szptGdXxDTO, SzptGdXx.class); SzptGdXx szptGdXx = BeanMapperUtil.map(szptGdXxDTO, SzptGdXx.class);
return szptGdXxMapper.insert(szptGdXx); return szptGdXxMapper.insert(szptGdXx);
} }
public Integer updateSzptGdXx(SzptGdXxDTO szptGdXxDTO) {
SzptGdXx szptGdXx = BeanMapperUtil.map(szptGdXxDTO, SzptGdXx.class);
LambdaUpdateWrapper<SzptGdXx> wrapper = new LambdaUpdateWrapper<>();
wrapper.eq(SzptGdXx::getId, szptGdXx.getId());
return szptGdXxMapper.update(szptGdXx,wrapper);
}
public Integer deleteSzptGdXx(List<String> ids) {
LambdaQueryWrapper<SzptGdXx> wrapper = new LambdaQueryWrapper<>();
wrapper.in(SzptGdXx::getId, ids);
return szptGdXxMapper.delete(wrapper);
}
} }
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