From e0d1b7e8ed3dfb1799c95b90d3461ff972621e11 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?haoyuanfu=E2=80=9C=EF=BC=9Bgit=20config=20--global=20user?= =?UTF-8?q?=2Ename=20haoyuanfu=E2=80=9C?= <46495777@qq.com> Date: Wed, 7 May 2025 09:44:15 +0800 Subject: [PATCH 1/3] =?UTF-8?q?=E5=A4=A7=E5=8D=8E=E6=8E=A5=E5=8F=A3?= =?UTF-8?q?=E9=89=B4=E6=9D=83=E4=BB=A5=E5=8F=8A=E5=BC=95=E7=94=A8=E5=8C=85?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pom.xml | 7 ++ ....java => IntelligenceSiteApplication.java} | 4 +- .../accesscontrol/QueryRecordRequest.java | 52 +++++++++ .../accesscontrol/QueryRecordResponse.java | 84 +++++++++++++++ .../attendance/GetRecordPageRequest.java | 37 +++++++ .../attendance/GetRecordPageResponse.java | 53 +++++++++ .../attendance/GetResultPageRequest.java | 42 ++++++++ .../attendance/GetResultPageResponse.java | 101 +++++++++++++++++ .../boot/dahua/config/OauthConfigUtil.java | 31 ++++++ .../boot/dahua/config/PlatformConfig.java | 89 +++++++++++++++ .../dahua/controller/DahuaController.java | 102 ++++++++++++++++++ 11 files changed, 600 insertions(+), 2 deletions(-) rename src/main/java/com/zilber/boot/{TermiCheckLabApplication.java => IntelligenceSiteApplication.java} (88%) create mode 100644 src/main/java/com/zilber/boot/dahua/accesscontrol/QueryRecordRequest.java create mode 100644 src/main/java/com/zilber/boot/dahua/accesscontrol/QueryRecordResponse.java create mode 100644 src/main/java/com/zilber/boot/dahua/attendance/GetRecordPageRequest.java create mode 100644 src/main/java/com/zilber/boot/dahua/attendance/GetRecordPageResponse.java create mode 100644 src/main/java/com/zilber/boot/dahua/attendance/GetResultPageRequest.java create mode 100644 src/main/java/com/zilber/boot/dahua/attendance/GetResultPageResponse.java create mode 100644 src/main/java/com/zilber/boot/dahua/config/OauthConfigUtil.java create mode 100644 src/main/java/com/zilber/boot/dahua/config/PlatformConfig.java create mode 100644 src/main/java/com/zilber/boot/dahua/controller/DahuaController.java diff --git a/pom.xml b/pom.xml index b4aeb7f..5548f41 100644 --- a/pom.xml +++ b/pom.xml @@ -262,6 +262,13 @@ 3.15.1 + + + com.dahuatech.icc + java-sdk-oauth + 1.0.13.10 + + diff --git a/src/main/java/com/zilber/boot/TermiCheckLabApplication.java b/src/main/java/com/zilber/boot/IntelligenceSiteApplication.java similarity index 88% rename from src/main/java/com/zilber/boot/TermiCheckLabApplication.java rename to src/main/java/com/zilber/boot/IntelligenceSiteApplication.java index 6736bda..44410bd 100644 --- a/src/main/java/com/zilber/boot/TermiCheckLabApplication.java +++ b/src/main/java/com/zilber/boot/IntelligenceSiteApplication.java @@ -12,11 +12,11 @@ import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration; */ @SpringBootApplication(exclude = DataSourceAutoConfiguration.class) @EnableKnife4j -public class TermiCheckLabApplication +public class IntelligenceSiteApplication { public static void main(String[] args) { - SpringApplication.run(TermiCheckLabApplication.class, args); + SpringApplication.run(IntelligenceSiteApplication.class, args); System.out.println("(♥◠‿◠)ノ゙ 启动成功 ლ(´ڡ`ლ)゙ \n" + " _ _ _ \n" + " (_) | | \n" + diff --git a/src/main/java/com/zilber/boot/dahua/accesscontrol/QueryRecordRequest.java b/src/main/java/com/zilber/boot/dahua/accesscontrol/QueryRecordRequest.java new file mode 100644 index 0000000..2ac5e90 --- /dev/null +++ b/src/main/java/com/zilber/boot/dahua/accesscontrol/QueryRecordRequest.java @@ -0,0 +1,52 @@ +package com.zilber.boot.dahua.accesscontrol; + +import lombok.Data; + +import java.util.List; + +@Data +public class QueryRecordRequest { + + /** 页码,正整数 */ + private Integer pageNum; + /** 分页大小,正整数 */ + private Integer pageSize; + /** 查询开始时间,格式:yyyy-MM-dd HH:mm:ss */ + private String startSwingTime; + /** 查询结束时间,格式:yyyy-MM-dd HH:mm:ss */ + private String endSwingTime; + /** 入库开始时间,格式:yyyy-MM-dd HH:mm:ss */ + private String startCreateTime; + /** 入库结束时间,格式:yyyy-MM-dd HH:mm:ss */ + private String endCreateTime; + /** 开门类型 */ + private Integer openType; + /** 开门类型多选 */ + private List openTypes; + /** 卡片类型 */ + private String category; + /** 人员名称 */ + private String personName; + /** 人员编号 */ + private String personCode; + /** 通道编码列表 */ + private List channelCodes; + /** 部门ID */ + private String deptIds; + /** 卡号 */ + private String cardNumber; + /** 事件类型 */ + private Integer enterOrExit; + /** 开门结果 */ + private Integer openResult; + /** 是否超温 */ + private Boolean overTemp; + /** 体温低限 */ + private Float curTempStart; + /** 体温高限 */ + private Float curTempEnd; + /** 口罩状态 3-带口罩,2—没带口罩,1-未识别 */ + private Integer maskState; + /** 访客筛选,1 - 只查询访客记录 2 - 只查询非访客记录 */ + private Integer visitorFilter; +} diff --git a/src/main/java/com/zilber/boot/dahua/accesscontrol/QueryRecordResponse.java b/src/main/java/com/zilber/boot/dahua/accesscontrol/QueryRecordResponse.java new file mode 100644 index 0000000..0d28a4f --- /dev/null +++ b/src/main/java/com/zilber/boot/dahua/accesscontrol/QueryRecordResponse.java @@ -0,0 +1,84 @@ +package com.zilber.boot.dahua.accesscontrol; + +import com.dahuatech.icc.oauth.http.IccResponse; +import lombok.Data; + +import java.util.List; + +@Data +public class QueryRecordResponse extends IccResponse { + + /** */ + private Data data; + + @lombok.Data + public static class Data { + /** 当前页 */ + private Integer currentPage; + /** 是否启用云数据库,false-不启用,true-启用 */ + private Boolean enableCloudDB; + /** 分页大小 */ + private Integer pageSize; + /** 总页码 */ + private Integer totalPage; + /** 总条数 */ + private Integer totalRows; + /** 分页数据 */ + private List pageData; + + @lombok.Data + public static class PageData{ + /** 卡号 */ + private String cardNumber; + /** 卡状态,-1-空白卡,0-正常卡,1-挂失卡,2-注销卡 */ + private Integer cardStatus; + /** 卡类型,0-IC卡, 1-有源RFID, 2-CPU卡 */ + private Integer cardType; + /** 通道编码 */ + private String channelCode; + /** 通道名称 */ + private String channelName; + /** 部门名称 */ + private String deptName; + /** 设备编码 */ + private String deviceCode; + /** 设备名称 */ + private String deviceName; + /** 进出门类型,1-进门, 2出门, 3-进/出门 */ + private Integer enterOrExit; + /** 记录id */ + private Long id; + /** 1-内部人员, 2-访客 */ + private Integer imageType; + /** 开门结果,0-失败,1-成功 */ + private Integer openResult; + /** 开门类型 */ + private Integer openType; + /** 证件号码 */ + private String paperNumber; + /** 人员编号 */ + private String personCode; + /** 人员ID */ + private Long personId; + /** 人员姓名 */ + private String personName; + /** 抓图,相对路径 */ + private String recordImageUrl; + /** 抓图,绝对路径 */ + private String recordImage; + /** 开门失败原因 */ + private String remark; + /** 刷卡时间 */ + private String swingTime; + /** 入库时间 */ + private String createTime; + /** 口罩状态(3-带口罩,2—没带口罩,1-未识别) */ + private Integer maskState; + /** 是否超温 */ + private Boolean overTemp; + /** 体温 */ + private Float curTemp; + } + } + +} diff --git a/src/main/java/com/zilber/boot/dahua/attendance/GetRecordPageRequest.java b/src/main/java/com/zilber/boot/dahua/attendance/GetRecordPageRequest.java new file mode 100644 index 0000000..dac9bd5 --- /dev/null +++ b/src/main/java/com/zilber/boot/dahua/attendance/GetRecordPageRequest.java @@ -0,0 +1,37 @@ +package com.zilber.boot.dahua.attendance; + +import lombok.Data; + +import java.util.List; + +/** + * program:java-sdk-demo + * @Author: 355079 + * @Date:2024-04-28 14:06 + * @Description: 打卡记录查询请求参数 + */ +@Data +public class GetRecordPageRequest { + /** 当前页 */ + private Integer pageNum; + /** 每页记录数 */ + private Integer pageSize; + /** 开始时间,格式: yyyy-MM-dd HH:mm:ss */ + private String actionTimeAfter; + /** 结束时间,格式: yyyy-MM-dd HH:mm:ss */ + private String actionTimeBefore; + /** 卡号 */ + private String cardNo; + /** 考勤类型(0:刷卡考勤;1:人像考勤;2:指纹考勤) */ + private String attendanceType; + /** 人员id集合 */ + private List personIds; + /** 模糊查询参数(人员姓名) */ + private String personName; + /** 模糊查询参数(人员编号) */ + private String personCode; + /** 排序字段 */ + private String sort; + /** DESC-降序, ASC-升序 */ + private String sortType; +} diff --git a/src/main/java/com/zilber/boot/dahua/attendance/GetRecordPageResponse.java b/src/main/java/com/zilber/boot/dahua/attendance/GetRecordPageResponse.java new file mode 100644 index 0000000..f0622d3 --- /dev/null +++ b/src/main/java/com/zilber/boot/dahua/attendance/GetRecordPageResponse.java @@ -0,0 +1,53 @@ +package com.zilber.boot.dahua.attendance; + +import com.dahuatech.icc.oauth.http.IccResponse; +import lombok.Data; + +import java.util.List; + +/** + * program:java-sdk-demo + * @Author: 355079 + * @Date:2024-04-28 14:13 + * @Description: 打卡记录查询返回参数 + */ +@Data +public class GetRecordPageResponse extends IccResponse { + private Data data; + @lombok.Data + public static class Data{ + /** 当前页 */ + private Integer currentPage; + /** 每页条数 */ + private Integer pageSize; + /** 总页数 */ + private Integer totalPage; + /** 总条数 */ + private Integer totalRows; + /** 分页数据 */ + private List pageData; + @lombok.Data + public static class PageData{ + /** 刷卡时间(yyyy-MM-dd HH:mm:ss) */ + private String actionTime; + /** 考勤方式 */ + private String attendanceType; + /** 卡号 */ + private String cardNo; + /** 部门名称 */ + private String deptName; + /** 人员编号 */ + private String personCode; + /** 人员id */ + private Integer personId; + /** 人员姓名 */ + private String personName; + /** 上报时间(yyyy-MM-dd HH:mm:ss) */ + private String reportTime; + /** 考勤点id */ + private String siteId; + /** 考勤点名称 */ + private String siteName; + } + } +} diff --git a/src/main/java/com/zilber/boot/dahua/attendance/GetResultPageRequest.java b/src/main/java/com/zilber/boot/dahua/attendance/GetResultPageRequest.java new file mode 100644 index 0000000..6007bf9 --- /dev/null +++ b/src/main/java/com/zilber/boot/dahua/attendance/GetResultPageRequest.java @@ -0,0 +1,42 @@ +package com.zilber.boot.dahua.attendance; + +import lombok.Data; + +import java.util.List; + +/** + * program:java-sdk-demo + * + * @Author: 355079 + * @Date:2024-04-29 13:48 + * @Description: 分页获取考勤结果请求参数 + */ +@Data +public class GetResultPageRequest { + /** 第几页 */ + private Integer pageNum; + /** 每页条数 */ + private Integer pageSize; + /** 开始时间(yyyy-MM-dd) */ + private String dutyDateAfter; + /** 结束时间(yyyy-MM-dd) */ + private String dutyDateBefore; + /** 考勤结果(0-异常,1-正常) */ + private Integer result; + /** 班次类型: 1-固定班, 2-弹性班, 3-签到班, 4-休班 */ + private String dailyType; + /** 单个人员编号 */ + private String personCode; + /** 部门id(部门间以逗号隔开) */ + private String deptIdsString; + /** 人员id集合 */ + private List personIds; + /** 班次中各时段状态: 0-异常, 1-正常 */ + private List attendanceStatus; + /** 选择的班次id集合 */ + private List classesIds; + /** 排序字段 */ + private String sort; + /** DESC-降序, ASC-升序 */ + private String sortType; +} diff --git a/src/main/java/com/zilber/boot/dahua/attendance/GetResultPageResponse.java b/src/main/java/com/zilber/boot/dahua/attendance/GetResultPageResponse.java new file mode 100644 index 0000000..beb999f --- /dev/null +++ b/src/main/java/com/zilber/boot/dahua/attendance/GetResultPageResponse.java @@ -0,0 +1,101 @@ +package com.zilber.boot.dahua.attendance; + +import com.dahuatech.icc.oauth.http.IccResponse; +import lombok.Data; + +import java.util.List; + +/** + * program:java-sdk-demo + * + * @Author: 355079 + * @Date:2024-04-29 14:21 + * @Description: 分页获取考勤结果请求参数 + */ +@Data +public class GetResultPageResponse extends IccResponse { + private Data data; + @lombok.Data + public static class Data{ + /** 当前页 */ + private Integer currentPage; + /** 每页条数 */ + private Integer pageSize; + /** 总页数 */ + private Integer totalPage; + /** 总条数 */ + private Integer totalRows; + /** 分页数据 */ + private List pageData; + @lombok.Data + public static class PageData{ + /** 考勤时间(yyyy-MM-dd) */ + private String dutyDate; + /** 员工姓名 */ + private String personName; + /** 员工编号 */ + private String personCode; + /** 员工id */ + private Long personId; + /** 部门id */ + private Integer departmentId; + /** 部门名称 */ + private String deptName; + /** 班次id */ + private String dailyId; + /** 班次名称 */ + private String dailyName; + /** 班次类型 */ + private Integer dailyType; + /** 考勤结果 */ + private Integer result; + /** 时间段1签入情况:0-异常,1-正常 */ + private Integer timeOneSignIn; + /** 时间段1签出情况 */ + private Integer timeOneSignOut; + /** 时间段2签入情况 */ + private Integer timeTwoSignIn; + /** 时间段2签出情况 */ + private Integer timeTwoSignOut; + /** 时间段3签入情况 */ + private Integer timeThreeSignIn; + /** 时间段3签出情况 */ + private Integer timeThreeSignOut; + /** 时间段4签入情况 */ + private Integer timeFourSignIn; + /** 时间段4签出情况 */ + private Integer timeFourSignOut; + /** 时间段5签入情况 */ + private Integer timeFiveSignIn; + /** 时间段5签出情况 */ + private Integer timeFiveSignOut; + /** 应勤时长,单位小时 */ + private Float plannedWorkHours; + /** 实际时长,单位小时 */ + private Float actualWorkHours; + /** 缺勤时长,单位小时 */ + private Float absenceWorkHours; + /** 旷工时长,单位小时 */ + private Float absenteeismWorkHours; + /** 迟到时长,单位小时 */ + private Float lateWorkHours; + /** 早退时长,单位小时 */ + private Float earlyLeaveWorkHours; + /** 出差时长,单位小时 */ + private Float travelWorkHours; + /** 周内加班时长 ,单位小时 */ + private Float overtimeWeekday; + /** 周末加班时长,单位小时 */ + private Float overtimeWeekend; + /** 节假日加班时长,单位小时 */ + private Float overtimeHoliday; + /** 无薪时长,单位小时 */ + private Float unpaidWorkHours; + /** 有薪时长,单位小时 */ + private Float paidWorkHours; + /** 单据编号 */ + private String documentNumber; + + } + } +} diff --git a/src/main/java/com/zilber/boot/dahua/config/OauthConfigUtil.java b/src/main/java/com/zilber/boot/dahua/config/OauthConfigUtil.java new file mode 100644 index 0000000..f853730 --- /dev/null +++ b/src/main/java/com/zilber/boot/dahua/config/OauthConfigUtil.java @@ -0,0 +1,31 @@ +package com.zilber.boot.dahua.config; + +import com.dahuatech.icc.oauth.model.v202010.OauthConfigUserPwdInfo; + +/** + * 公钥加密 + * 使用RSA加密 + */ +public class OauthConfigUtil { + /** + * 获取Oauth配置信息 + * + * @return Oauth配置信息 + */ + public static OauthConfigUserPwdInfo getOauthConfig() { + PlatformConfig platformConfig = new PlatformConfig();//读取配置 + OauthConfigUserPwdInfo oauthConfigUserPwdInfo = new OauthConfigUserPwdInfo( + platformConfig.getHost(), + platformConfig.getClientId(), + platformConfig.getClientSecret(), + platformConfig.getUsername(), + platformConfig.getPassword(), + false, + platformConfig.getHttpsPort(), + platformConfig.getHttpPort() + ); + oauthConfigUserPwdInfo.getHttpConfigInfo().setReadTimeout(platformConfig.getReadTimeout()); + oauthConfigUserPwdInfo.getHttpConfigInfo().setConnectionTimeout(platformConfig.getConnectionTimeout()); + return oauthConfigUserPwdInfo; + } +} diff --git a/src/main/java/com/zilber/boot/dahua/config/PlatformConfig.java b/src/main/java/com/zilber/boot/dahua/config/PlatformConfig.java new file mode 100644 index 0000000..ea0a000 --- /dev/null +++ b/src/main/java/com/zilber/boot/dahua/config/PlatformConfig.java @@ -0,0 +1,89 @@ +package com.zilber.boot.dahua.config; + +/** + * 平台信息配置 + */ +public class PlatformConfig { + + private String clientId = "CompanyName";//凭证ID自定义,配合申请凭证流程申请 + private String clientSecret = "42bec152-8f04-476a-9aec-e7d616ff3cb3";//凭证密钥,参考此地址申请https://open-icc.dahuatech.com/iccdoc/enterprisebase/5.0.15/wiki/common/quickstart.html#%E7%94%B3%E8%AF%B7OpenAPI%E7%94%A8%E6%88%B7 + private String username = "TEST";//平台登录用户名 + private String password = "OGR28u6_cc";//平台登录密码 + private String host = "124.160.33.135";//平台IP,联调环境IP + private String httpsPort = "4077";//https默认端口是443,联调环境443映射外网端口为4077 + private String httpPort = "4078";//http默认端口是83,但不开启,,联调环境83映射外网端口为4078;需运维中心开启http调试模式后才支持;isEnableHttpTest=true时有效, + private Long connectionTimeout = -1l;//连接超时 + private Long readTimeout = -1l;//读取超时 + + public String getClientId() { + return clientId; + } + + public void setClientId(String clientId) { + this.clientId = clientId; + } + + public String getClientSecret() { + return clientSecret; + } + + public void setClientSecret(String clientSecret) { + this.clientSecret = clientSecret; + } + + public String getUsername() { + return username; + } + + public void setUsername(String username) { + this.username = username; + } + + public String getPassword() { + return password; + } + + public void setPassword(String password) { + this.password = password; + } + + public String getHost() { + return host; + } + + public void setHost(String host) { + this.host = host; + } + + public String getHttpsPort() { + return httpsPort; + } + + public void setHttpsPort(String httpsPort) { + this.httpsPort = httpsPort; + } + + public String getHttpPort() { + return httpPort; + } + + public void setHttpPort(String httpPort) { + this.httpPort = httpPort; + } + + public Long getConnectionTimeout() { + return connectionTimeout; + } + + public void setConnectionTimeout(Long connectionTimeout) { + this.connectionTimeout = connectionTimeout; + } + + public Long getReadTimeout() { + return readTimeout; + } + + public void setReadTimeout(Long readTimeout) { + this.readTimeout = readTimeout; + } +} diff --git a/src/main/java/com/zilber/boot/dahua/controller/DahuaController.java b/src/main/java/com/zilber/boot/dahua/controller/DahuaController.java new file mode 100644 index 0000000..a965bf5 --- /dev/null +++ b/src/main/java/com/zilber/boot/dahua/controller/DahuaController.java @@ -0,0 +1,102 @@ +package com.zilber.boot.dahua.controller; + +import com.dahuatech.hutool.http.Method; +import com.dahuatech.hutool.json.JSONUtil; +import com.dahuatech.icc.exception.ClientException; +import com.dahuatech.icc.oauth.model.v202010.OauthConfigUserPwdInfo; +import com.dahuatech.icc.oauth.utils.HttpUtils; +import com.zilber.boot.dahua.accesscontrol.QueryRecordRequest; +import com.zilber.boot.dahua.accesscontrol.QueryRecordResponse; +import com.zilber.boot.dahua.attendance.GetRecordPageRequest; +import com.zilber.boot.dahua.attendance.GetRecordPageResponse; +import com.zilber.boot.dahua.attendance.GetResultPageRequest; +import com.zilber.boot.dahua.attendance.GetResultPageResponse; +import com.zilber.boot.dahua.config.OauthConfigUtil; +import io.swagger.annotations.Api; +import io.swagger.annotations.ApiOperation; +import lombok.extern.slf4j.Slf4j; +import org.springframework.web.bind.annotation.PostMapping; +import org.springframework.web.bind.annotation.RequestBody; +import org.springframework.web.bind.annotation.RequestMapping; +import org.springframework.web.bind.annotation.RestController; + +@RestController +@Api(tags = "大华接口") +@RequestMapping("/dahua") +@Slf4j +public class DahuaController { + + /** + * 打卡记录查询 + * @param getRecordPageRequest + * @return + * @throws ClientException + * 参考API:https://open-icc.dahuatech.com/#/home?url=%3Fnav%3Dwiki%2Fevo-attendance%2Fatt_information.html%23%E6%89%93%E5%8D%A1%E8%AE%B0%E5%BD%95%E6%9F%A5%E8%AF%A2&version=enterprisebase/5.0.16&blank=true + */ + @ApiOperation(value = "打卡记录查询",notes = "打卡记录查询") + @PostMapping("/attendance/getRecordPage") + public GetRecordPageResponse getAttendanceRecordPage(@RequestBody GetRecordPageRequest getRecordPageRequest) { + OauthConfigUserPwdInfo config = OauthConfigUtil.getOauthConfig(); + GetRecordPageResponse response=null; + try { + log.info("InfoQueryDemo,getAttendanceRecordPage,request:{}", JSONUtil.toJsonStr(getRecordPageRequest)); + response = HttpUtils.executeJson("/evo-apigw/evo-attendance/1.1.0/attendance/record/page", getRecordPageRequest,null, Method.POST , config, GetRecordPageResponse.class); + log.info("InfoQueryDemo,getAttendanceRecordPage,response:{}", JSONUtil.toJsonStr(response)); + } catch (ClientException e) { + log.error(e.getErrMsg(), e); + } + if(!response.isSuccess()) { + log.info("打卡记录查询失败:{}",response.getErrMsg()); + } + return response; + } + + /** + * 分页获取考勤结果 + * @param getResultPageRequest + * @return + * @throws ClientException + */ + @ApiOperation(value = "分页获取考勤结果",notes = "分页获取考勤结果") + @PostMapping("/attendance/getResultPage") + public GetResultPageResponse getAttendanceResultPage(@RequestBody GetResultPageRequest getResultPageRequest) { + OauthConfigUserPwdInfo config = OauthConfigUtil.getOauthConfig(); + GetResultPageResponse response=null; + try { + log.info("InfoQueryDemo,getAttendanceRecordPage,request:{}", JSONUtil.toJsonStr(getResultPageRequest)); + response = HttpUtils.executeJson("/evo-apigw/evo-attendance/1.1.0/attendance/result/page", getResultPageRequest,null, Method.POST , config, GetResultPageResponse.class); + log.info("InfoQueryDemo,getAttendanceRecordPage,response:{}", JSONUtil.toJsonStr(response)); + } catch (ClientException e) { + log.error(e.getErrMsg(), e); + } + if(!response.isSuccess()) { + log.info("分页获取考勤结果失败:{}",response.getErrMsg()); + } + return response; + } + + /** + * 门禁 + * @return + * @throws ClientException + * 参考API:https://open-icc.dahuatech.com/#/home?url=%3Fnav%3Dwiki%2Fevo-accesscontrol%2Fevent.html&version=enterprisebase/5.0.16&blank=true + */ + @ApiOperation(value = "门禁记录查询",notes = "门禁记录查询") + @PostMapping("/accessControl/getRecordPage") + public QueryRecordResponse getRecordPage(@RequestBody QueryRecordRequest queryRecordRequest){ + OauthConfigUserPwdInfo config = OauthConfigUtil.getOauthConfig(); + QueryRecordResponse response=null; + try { + log.info("DeviceDemo,getRecordPage,request:{}", JSONUtil.toJsonStr(queryRecordRequest)); + response = HttpUtils.executeJson("/evo-apigw/evo-accesscontrol/1.0.0/card/accessControl/swingCardRecord/bycondition/combined", queryRecordRequest,null, Method.POST , config, QueryRecordResponse.class); + log.info("DeviceDemo,getRecordPage,response:{}", JSONUtil.toJsonStr(response)); + } catch (ClientException e) { + log.error(e.getErrMsg(), e); + } + if(!response.isSuccess()) { + log.info("门禁记录分页查询失败:{}",response.getErrMsg()); + } + return response; + } + +} From cb437fab323fae68f990594aa8e14e856c2fd788 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=88=98=E8=83=9C=E8=B6=85?= <504565038@qq.com> Date: Wed, 7 May 2025 17:36:49 +0800 Subject: [PATCH 2/3] =?UTF-8?q?=E9=A6=96=E6=AC=A1=E6=8F=90=E4=BA=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../IConstructionReportController.java | 20 ++++++ .../controller/IEngineerLogController.java | 20 ++++++ .../controller/IManpowerController.java | 20 ++++++ .../controller/IMaterialsController.java | 20 ++++++ .../controller/IProductionPlanController.java | 20 ++++++ .../controller/IProgressController.java | 20 ++++++ .../IResourceScheduleController.java | 20 ++++++ .../controller/ISafeController.java | 20 ++++++ .../controller/IUserController.java | 20 ++++++ .../controller/IWarnController.java | 20 ++++++ .../entity/IConstructionReport.java | 71 +++++++++++++++++++ .../intelligencesite/entity/IEngineerLog.java | 68 ++++++++++++++++++ .../intelligencesite/entity/IManpower.java | 60 ++++++++++++++++ .../intelligencesite/entity/IMaterials.java | 68 ++++++++++++++++++ .../entity/IProductionPlan.java | 65 +++++++++++++++++ .../intelligencesite/entity/IProgress.java | 53 ++++++++++++++ .../entity/IResourceSchedule.java | 59 +++++++++++++++ .../boot/intelligencesite/entity/ISafe.java | 47 ++++++++++++ .../boot/intelligencesite/entity/IUser.java | 53 ++++++++++++++ .../boot/intelligencesite/entity/IWarn.java | 56 +++++++++++++++ .../mapper/IConstructionReportMapper.java | 16 +++++ .../mapper/IEngineerLogMapper.java | 16 +++++ .../mapper/IManpowerMapper.java | 16 +++++ .../mapper/IMaterialsMapper.java | 16 +++++ .../mapper/IProductionPlanMapper.java | 16 +++++ .../mapper/IProgressMapper.java | 16 +++++ .../mapper/IResourceScheduleMapper.java | 16 +++++ .../intelligencesite/mapper/ISafeMapper.java | 16 +++++ .../intelligencesite/mapper/IUserMapper.java | 16 +++++ .../intelligencesite/mapper/IWarnMapper.java | 16 +++++ .../service/IIConstructionReportService.java | 16 +++++ .../service/IIEngineerLogService.java | 16 +++++ .../service/IIManpowerService.java | 16 +++++ .../service/IIMaterialsService.java | 16 +++++ .../service/IIProductionPlanService.java | 16 +++++ .../service/IIProgressService.java | 16 +++++ .../service/IIResourceScheduleService.java | 16 +++++ .../service/IISafeService.java | 16 +++++ .../service/IIUserService.java | 16 +++++ .../service/IIWarnService.java | 16 +++++ .../impl/IConstructionReportServiceImpl.java | 20 ++++++ .../service/impl/IEngineerLogServiceImpl.java | 20 ++++++ .../service/impl/IManpowerServiceImpl.java | 20 ++++++ .../service/impl/IMaterialsServiceImpl.java | 20 ++++++ .../impl/IProductionPlanServiceImpl.java | 20 ++++++ .../service/impl/IProgressServiceImpl.java | 20 ++++++ .../impl/IResourceScheduleServiceImpl.java | 20 ++++++ .../service/impl/ISafeServiceImpl.java | 20 ++++++ .../service/impl/IUserServiceImpl.java | 20 ++++++ .../service/impl/IWarnServiceImpl.java | 20 ++++++ .../mapper/IConstructionReportMapper.xml | 27 +++++++ .../resources/mapper/IEngineerLogMapper.xml | 34 +++++++++ .../main/resources/mapper/IManpowerMapper.xml | 26 +++++++ .../resources/mapper/IMaterialsMapper.xml | 26 +++++++ .../mapper/IProductionPlanMapper.xml | 25 +++++++ .../main/resources/mapper/IProgressMapper.xml | 21 ++++++ .../mapper/IResourceScheduleMapper.xml | 23 ++++++ .../src/main/resources/mapper/ISafeMapper.xml | 19 +++++ .../src/main/resources/mapper/IUserMapper.xml | 21 ++++++ .../src/main/resources/mapper/IWarnMapper.xml | 22 ++++++ 60 files changed, 1564 insertions(+) create mode 100644 intelligencesite/src/main/java/com/zilber/boot/intelligencesite/controller/IConstructionReportController.java create mode 100644 intelligencesite/src/main/java/com/zilber/boot/intelligencesite/controller/IEngineerLogController.java create mode 100644 intelligencesite/src/main/java/com/zilber/boot/intelligencesite/controller/IManpowerController.java create mode 100644 intelligencesite/src/main/java/com/zilber/boot/intelligencesite/controller/IMaterialsController.java create mode 100644 intelligencesite/src/main/java/com/zilber/boot/intelligencesite/controller/IProductionPlanController.java create mode 100644 intelligencesite/src/main/java/com/zilber/boot/intelligencesite/controller/IProgressController.java create mode 100644 intelligencesite/src/main/java/com/zilber/boot/intelligencesite/controller/IResourceScheduleController.java create mode 100644 intelligencesite/src/main/java/com/zilber/boot/intelligencesite/controller/ISafeController.java create mode 100644 intelligencesite/src/main/java/com/zilber/boot/intelligencesite/controller/IUserController.java create mode 100644 intelligencesite/src/main/java/com/zilber/boot/intelligencesite/controller/IWarnController.java create mode 100644 intelligencesite/src/main/java/com/zilber/boot/intelligencesite/entity/IConstructionReport.java create mode 100644 intelligencesite/src/main/java/com/zilber/boot/intelligencesite/entity/IEngineerLog.java create mode 100644 intelligencesite/src/main/java/com/zilber/boot/intelligencesite/entity/IManpower.java create mode 100644 intelligencesite/src/main/java/com/zilber/boot/intelligencesite/entity/IMaterials.java create mode 100644 intelligencesite/src/main/java/com/zilber/boot/intelligencesite/entity/IProductionPlan.java create mode 100644 intelligencesite/src/main/java/com/zilber/boot/intelligencesite/entity/IProgress.java create mode 100644 intelligencesite/src/main/java/com/zilber/boot/intelligencesite/entity/IResourceSchedule.java create mode 100644 intelligencesite/src/main/java/com/zilber/boot/intelligencesite/entity/ISafe.java create mode 100644 intelligencesite/src/main/java/com/zilber/boot/intelligencesite/entity/IUser.java create mode 100644 intelligencesite/src/main/java/com/zilber/boot/intelligencesite/entity/IWarn.java create mode 100644 intelligencesite/src/main/java/com/zilber/boot/intelligencesite/mapper/IConstructionReportMapper.java create mode 100644 intelligencesite/src/main/java/com/zilber/boot/intelligencesite/mapper/IEngineerLogMapper.java create mode 100644 intelligencesite/src/main/java/com/zilber/boot/intelligencesite/mapper/IManpowerMapper.java create mode 100644 intelligencesite/src/main/java/com/zilber/boot/intelligencesite/mapper/IMaterialsMapper.java create mode 100644 intelligencesite/src/main/java/com/zilber/boot/intelligencesite/mapper/IProductionPlanMapper.java create mode 100644 intelligencesite/src/main/java/com/zilber/boot/intelligencesite/mapper/IProgressMapper.java create mode 100644 intelligencesite/src/main/java/com/zilber/boot/intelligencesite/mapper/IResourceScheduleMapper.java create mode 100644 intelligencesite/src/main/java/com/zilber/boot/intelligencesite/mapper/ISafeMapper.java create mode 100644 intelligencesite/src/main/java/com/zilber/boot/intelligencesite/mapper/IUserMapper.java create mode 100644 intelligencesite/src/main/java/com/zilber/boot/intelligencesite/mapper/IWarnMapper.java create mode 100644 intelligencesite/src/main/java/com/zilber/boot/intelligencesite/service/IIConstructionReportService.java create mode 100644 intelligencesite/src/main/java/com/zilber/boot/intelligencesite/service/IIEngineerLogService.java create mode 100644 intelligencesite/src/main/java/com/zilber/boot/intelligencesite/service/IIManpowerService.java create mode 100644 intelligencesite/src/main/java/com/zilber/boot/intelligencesite/service/IIMaterialsService.java create mode 100644 intelligencesite/src/main/java/com/zilber/boot/intelligencesite/service/IIProductionPlanService.java create mode 100644 intelligencesite/src/main/java/com/zilber/boot/intelligencesite/service/IIProgressService.java create mode 100644 intelligencesite/src/main/java/com/zilber/boot/intelligencesite/service/IIResourceScheduleService.java create mode 100644 intelligencesite/src/main/java/com/zilber/boot/intelligencesite/service/IISafeService.java create mode 100644 intelligencesite/src/main/java/com/zilber/boot/intelligencesite/service/IIUserService.java create mode 100644 intelligencesite/src/main/java/com/zilber/boot/intelligencesite/service/IIWarnService.java create mode 100644 intelligencesite/src/main/java/com/zilber/boot/intelligencesite/service/impl/IConstructionReportServiceImpl.java create mode 100644 intelligencesite/src/main/java/com/zilber/boot/intelligencesite/service/impl/IEngineerLogServiceImpl.java create mode 100644 intelligencesite/src/main/java/com/zilber/boot/intelligencesite/service/impl/IManpowerServiceImpl.java create mode 100644 intelligencesite/src/main/java/com/zilber/boot/intelligencesite/service/impl/IMaterialsServiceImpl.java create mode 100644 intelligencesite/src/main/java/com/zilber/boot/intelligencesite/service/impl/IProductionPlanServiceImpl.java create mode 100644 intelligencesite/src/main/java/com/zilber/boot/intelligencesite/service/impl/IProgressServiceImpl.java create mode 100644 intelligencesite/src/main/java/com/zilber/boot/intelligencesite/service/impl/IResourceScheduleServiceImpl.java create mode 100644 intelligencesite/src/main/java/com/zilber/boot/intelligencesite/service/impl/ISafeServiceImpl.java create mode 100644 intelligencesite/src/main/java/com/zilber/boot/intelligencesite/service/impl/IUserServiceImpl.java create mode 100644 intelligencesite/src/main/java/com/zilber/boot/intelligencesite/service/impl/IWarnServiceImpl.java create mode 100644 intelligencesite/src/main/resources/mapper/IConstructionReportMapper.xml create mode 100644 intelligencesite/src/main/resources/mapper/IEngineerLogMapper.xml create mode 100644 intelligencesite/src/main/resources/mapper/IManpowerMapper.xml create mode 100644 intelligencesite/src/main/resources/mapper/IMaterialsMapper.xml create mode 100644 intelligencesite/src/main/resources/mapper/IProductionPlanMapper.xml create mode 100644 intelligencesite/src/main/resources/mapper/IProgressMapper.xml create mode 100644 intelligencesite/src/main/resources/mapper/IResourceScheduleMapper.xml create mode 100644 intelligencesite/src/main/resources/mapper/ISafeMapper.xml create mode 100644 intelligencesite/src/main/resources/mapper/IUserMapper.xml create mode 100644 intelligencesite/src/main/resources/mapper/IWarnMapper.xml diff --git a/intelligencesite/src/main/java/com/zilber/boot/intelligencesite/controller/IConstructionReportController.java b/intelligencesite/src/main/java/com/zilber/boot/intelligencesite/controller/IConstructionReportController.java new file mode 100644 index 0000000..c0e9a44 --- /dev/null +++ b/intelligencesite/src/main/java/com/zilber/boot/intelligencesite/controller/IConstructionReportController.java @@ -0,0 +1,20 @@ +package com.zilber.boot.intelligencesite.controller; + + +import org.springframework.web.bind.annotation.RequestMapping; + +import org.springframework.web.bind.annotation.RestController; + +/** + *

+ * 施工报告 前端控制器 + *

+ * + * @author lsc + * @since 2025-05-06 + */ +@RestController +@RequestMapping("/i-construction-report") +public class IConstructionReportController { + +} diff --git a/intelligencesite/src/main/java/com/zilber/boot/intelligencesite/controller/IEngineerLogController.java b/intelligencesite/src/main/java/com/zilber/boot/intelligencesite/controller/IEngineerLogController.java new file mode 100644 index 0000000..5f8bf86 --- /dev/null +++ b/intelligencesite/src/main/java/com/zilber/boot/intelligencesite/controller/IEngineerLogController.java @@ -0,0 +1,20 @@ +package com.zilber.boot.intelligencesite.controller; + + +import org.springframework.web.bind.annotation.RequestMapping; + +import org.springframework.web.bind.annotation.RestController; + +/** + *

+ * 工程日志 前端控制器 + *

+ * + * @author lsc + * @since 2025-05-06 + */ +@RestController +@RequestMapping("/i-engineer-log") +public class IEngineerLogController { + +} diff --git a/intelligencesite/src/main/java/com/zilber/boot/intelligencesite/controller/IManpowerController.java b/intelligencesite/src/main/java/com/zilber/boot/intelligencesite/controller/IManpowerController.java new file mode 100644 index 0000000..ae2d195 --- /dev/null +++ b/intelligencesite/src/main/java/com/zilber/boot/intelligencesite/controller/IManpowerController.java @@ -0,0 +1,20 @@ +package com.zilber.boot.intelligencesite.controller; + + +import org.springframework.web.bind.annotation.RequestMapping; + +import org.springframework.web.bind.annotation.RestController; + +/** + *

+ * 人力信息表 前端控制器 + *

+ * + * @author lsc + * @since 2025-05-06 + */ +@RestController +@RequestMapping("/i-manpower") +public class IManpowerController { + +} diff --git a/intelligencesite/src/main/java/com/zilber/boot/intelligencesite/controller/IMaterialsController.java b/intelligencesite/src/main/java/com/zilber/boot/intelligencesite/controller/IMaterialsController.java new file mode 100644 index 0000000..ae6752e --- /dev/null +++ b/intelligencesite/src/main/java/com/zilber/boot/intelligencesite/controller/IMaterialsController.java @@ -0,0 +1,20 @@ +package com.zilber.boot.intelligencesite.controller; + + +import org.springframework.web.bind.annotation.RequestMapping; + +import org.springframework.web.bind.annotation.RestController; + +/** + *

+ * 材料信息表 前端控制器 + *

+ * + * @author lsc + * @since 2025-05-06 + */ +@RestController +@RequestMapping("/i-materials") +public class IMaterialsController { + +} diff --git a/intelligencesite/src/main/java/com/zilber/boot/intelligencesite/controller/IProductionPlanController.java b/intelligencesite/src/main/java/com/zilber/boot/intelligencesite/controller/IProductionPlanController.java new file mode 100644 index 0000000..f6d3f28 --- /dev/null +++ b/intelligencesite/src/main/java/com/zilber/boot/intelligencesite/controller/IProductionPlanController.java @@ -0,0 +1,20 @@ +package com.zilber.boot.intelligencesite.controller; + + +import org.springframework.web.bind.annotation.RequestMapping; + +import org.springframework.web.bind.annotation.RestController; + +/** + *

+ * 生产计划表 前端控制器 + *

+ * + * @author lsc + * @since 2025-05-06 + */ +@RestController +@RequestMapping("/i-production-plan") +public class IProductionPlanController { + +} diff --git a/intelligencesite/src/main/java/com/zilber/boot/intelligencesite/controller/IProgressController.java b/intelligencesite/src/main/java/com/zilber/boot/intelligencesite/controller/IProgressController.java new file mode 100644 index 0000000..55dcee6 --- /dev/null +++ b/intelligencesite/src/main/java/com/zilber/boot/intelligencesite/controller/IProgressController.java @@ -0,0 +1,20 @@ +package com.zilber.boot.intelligencesite.controller; + + +import org.springframework.web.bind.annotation.RequestMapping; + +import org.springframework.web.bind.annotation.RestController; + +/** + *

+ * 进度跟踪表 前端控制器 + *

+ * + * @author lsc + * @since 2025-05-06 + */ +@RestController +@RequestMapping("/i-progress") +public class IProgressController { + +} diff --git a/intelligencesite/src/main/java/com/zilber/boot/intelligencesite/controller/IResourceScheduleController.java b/intelligencesite/src/main/java/com/zilber/boot/intelligencesite/controller/IResourceScheduleController.java new file mode 100644 index 0000000..94f2af1 --- /dev/null +++ b/intelligencesite/src/main/java/com/zilber/boot/intelligencesite/controller/IResourceScheduleController.java @@ -0,0 +1,20 @@ +package com.zilber.boot.intelligencesite.controller; + + +import org.springframework.web.bind.annotation.RequestMapping; + +import org.springframework.web.bind.annotation.RestController; + +/** + *

+ * 资源调度表 前端控制器 + *

+ * + * @author lsc + * @since 2025-05-06 + */ +@RestController +@RequestMapping("/i-resource-schedule") +public class IResourceScheduleController { + +} diff --git a/intelligencesite/src/main/java/com/zilber/boot/intelligencesite/controller/ISafeController.java b/intelligencesite/src/main/java/com/zilber/boot/intelligencesite/controller/ISafeController.java new file mode 100644 index 0000000..06c9f77 --- /dev/null +++ b/intelligencesite/src/main/java/com/zilber/boot/intelligencesite/controller/ISafeController.java @@ -0,0 +1,20 @@ +package com.zilber.boot.intelligencesite.controller; + + +import org.springframework.web.bind.annotation.RequestMapping; + +import org.springframework.web.bind.annotation.RestController; + +/** + *

+ * 安全教育 前端控制器 + *

+ * + * @author lsc + * @since 2025-05-06 + */ +@RestController +@RequestMapping("/i-safe") +public class ISafeController { + +} diff --git a/intelligencesite/src/main/java/com/zilber/boot/intelligencesite/controller/IUserController.java b/intelligencesite/src/main/java/com/zilber/boot/intelligencesite/controller/IUserController.java new file mode 100644 index 0000000..9458117 --- /dev/null +++ b/intelligencesite/src/main/java/com/zilber/boot/intelligencesite/controller/IUserController.java @@ -0,0 +1,20 @@ +package com.zilber.boot.intelligencesite.controller; + + +import org.springframework.web.bind.annotation.RequestMapping; + +import org.springframework.web.bind.annotation.RestController; + +/** + *

+ * 实名制与信息管理 前端控制器 + *

+ * + * @author lsc + * @since 2025-05-06 + */ +@RestController +@RequestMapping("/i-user") +public class IUserController { + +} diff --git a/intelligencesite/src/main/java/com/zilber/boot/intelligencesite/controller/IWarnController.java b/intelligencesite/src/main/java/com/zilber/boot/intelligencesite/controller/IWarnController.java new file mode 100644 index 0000000..dded1f5 --- /dev/null +++ b/intelligencesite/src/main/java/com/zilber/boot/intelligencesite/controller/IWarnController.java @@ -0,0 +1,20 @@ +package com.zilber.boot.intelligencesite.controller; + + +import org.springframework.web.bind.annotation.RequestMapping; + +import org.springframework.web.bind.annotation.RestController; + +/** + *

+ * 预警表 前端控制器 + *

+ * + * @author lsc + * @since 2025-05-06 + */ +@RestController +@RequestMapping("/i-warn") +public class IWarnController { + +} diff --git a/intelligencesite/src/main/java/com/zilber/boot/intelligencesite/entity/IConstructionReport.java b/intelligencesite/src/main/java/com/zilber/boot/intelligencesite/entity/IConstructionReport.java new file mode 100644 index 0000000..57dcad7 --- /dev/null +++ b/intelligencesite/src/main/java/com/zilber/boot/intelligencesite/entity/IConstructionReport.java @@ -0,0 +1,71 @@ +package com.zilber.boot.intelligencesite.entity; + +import com.baomidou.mybatisplus.annotation.TableName; +import com.baomidou.mybatisplus.annotation.IdType; +import com.baomidou.mybatisplus.annotation.TableId; +import java.time.LocalDateTime; +import java.io.Serializable; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import lombok.Data; +import lombok.EqualsAndHashCode; +import lombok.experimental.Accessors; + +/** + *

+ * 施工报告 + *

+ * + * @author lsc + * @since 2025-05-06 + */ +@Data +@EqualsAndHashCode(callSuper = false) +@Accessors(chain = true) +@TableName("i_construction_report") +@ApiModel(value="IConstructionReport对象", description="施工报告") +public class IConstructionReport implements Serializable { + + private static final long serialVersionUID = 1L; + + @TableId(value = "id", type = IdType.AUTO) + private Long id; + + @ApiModelProperty(value = "报告日期") + private LocalDateTime date; + + @ApiModelProperty(value = "报告周期") + private String cycle; + + @ApiModelProperty(value = "计划id") + private Long planId; + + @ApiModelProperty(value = "计划名称") + private String planName; + + @ApiModelProperty(value = "总体进度") + private String totalProgress; + + @ApiModelProperty(value = "人力投入") + private String manpower; + + @ApiModelProperty(value = "材料使用") + private String materialsUse; + + @ApiModelProperty(value = "机械设备运行") + private String equipmentOperation; + + @ApiModelProperty(value = "质量安全") + private String qs; + + @ApiModelProperty(value = "建议") + private String advise; + + @ApiModelProperty(value = "创建时间") + private LocalDateTime createTime; + + @ApiModelProperty(value = "创建人") + private String creator; + + +} diff --git a/intelligencesite/src/main/java/com/zilber/boot/intelligencesite/entity/IEngineerLog.java b/intelligencesite/src/main/java/com/zilber/boot/intelligencesite/entity/IEngineerLog.java new file mode 100644 index 0000000..af036dd --- /dev/null +++ b/intelligencesite/src/main/java/com/zilber/boot/intelligencesite/entity/IEngineerLog.java @@ -0,0 +1,68 @@ +package com.zilber.boot.intelligencesite.entity; + +import com.baomidou.mybatisplus.annotation.TableName; +import com.baomidou.mybatisplus.annotation.IdType; +import com.baomidou.mybatisplus.annotation.TableId; +import java.time.LocalDateTime; +import java.io.Serializable; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import lombok.Data; +import lombok.EqualsAndHashCode; +import lombok.experimental.Accessors; + +/** + *

+ * 工程日志 + *

+ * + * @author lsc + * @since 2025-05-06 + */ +@Data +@EqualsAndHashCode(callSuper = false) +@Accessors(chain = true) +@TableName("i_engineer_log") +@ApiModel(value="IEngineerLog对象", description="工程日志") +public class IEngineerLog implements Serializable { + + private static final long serialVersionUID = 1L; + + @TableId(value = "id", type = IdType.AUTO) + private Long id; + + @ApiModelProperty(value = "日期") + private LocalDateTime date; + + @ApiModelProperty(value = "天气") + private String +weather; + + @ApiModelProperty(value = "温度") + private String temperature; + + @ApiModelProperty(value = "风力") + private String wind; + + @ApiModelProperty(value = "现场负责人姓名") + private String +principalName; + + @ApiModelProperty(value = "现场负责人联系方式") + private String +principalTel; + + @ApiModelProperty(value = "施工情况") + private String constructionSituation; + + @ApiModelProperty(value = "其他事项") + private String otherBusiness; + + @ApiModelProperty(value = "创建时间") + private LocalDateTime createTime; + + @ApiModelProperty(value = "创建人") + private String creator; + + +} diff --git a/intelligencesite/src/main/java/com/zilber/boot/intelligencesite/entity/IManpower.java b/intelligencesite/src/main/java/com/zilber/boot/intelligencesite/entity/IManpower.java new file mode 100644 index 0000000..6ff63a5 --- /dev/null +++ b/intelligencesite/src/main/java/com/zilber/boot/intelligencesite/entity/IManpower.java @@ -0,0 +1,60 @@ +package com.zilber.boot.intelligencesite.entity; + +import com.baomidou.mybatisplus.annotation.TableName; +import com.baomidou.mybatisplus.annotation.IdType; +import com.baomidou.mybatisplus.annotation.TableId; +import java.time.LocalDateTime; +import java.io.Serializable; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import lombok.Data; +import lombok.EqualsAndHashCode; +import lombok.experimental.Accessors; + +/** + *

+ * 人力信息表 + *

+ * + * @author lsc + * @since 2025-05-06 + */ +@Data +@EqualsAndHashCode(callSuper = false) +@Accessors(chain = true) +@TableName("i_manpower") +@ApiModel(value="IManpower对象", description="人力信息表") +public class IManpower implements Serializable { + + private static final long serialVersionUID = 1L; + + @TableId(value = "id", type = IdType.AUTO) + private Long id; + + @ApiModelProperty(value = "姓名") + private String name; + + @ApiModelProperty(value = "工种") + private String workType; + + @ApiModelProperty(value = "数量") + private Integer +quantity; + + @ApiModelProperty(value = "计划投入时间") + private Integer planDevoteTime; + + @ApiModelProperty(value = "实际投入时间") + private Integer actualDevoteTime; + + @ApiModelProperty(value = "预计离场时间") + private LocalDateTime leaveTime; + + @ApiModelProperty(value = "创建时间") + private LocalDateTime createTime; + + @ApiModelProperty(value = "创建人") + private String creator; + + +} diff --git a/intelligencesite/src/main/java/com/zilber/boot/intelligencesite/entity/IMaterials.java b/intelligencesite/src/main/java/com/zilber/boot/intelligencesite/entity/IMaterials.java new file mode 100644 index 0000000..cdf68ca --- /dev/null +++ b/intelligencesite/src/main/java/com/zilber/boot/intelligencesite/entity/IMaterials.java @@ -0,0 +1,68 @@ +package com.zilber.boot.intelligencesite.entity; + +import com.baomidou.mybatisplus.annotation.TableName; +import com.baomidou.mybatisplus.annotation.IdType; +import com.baomidou.mybatisplus.annotation.TableId; +import java.time.LocalDateTime; +import java.io.Serializable; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import lombok.Data; +import lombok.EqualsAndHashCode; +import lombok.experimental.Accessors; + +/** + *

+ * 材料信息表 + *

+ * + * @author lsc + * @since 2025-05-06 + */ +@Data +@EqualsAndHashCode(callSuper = false) +@Accessors(chain = true) +@TableName("i_materials") +@ApiModel(value="IMaterials对象", description="材料信息表") +public class IMaterials implements Serializable { + + private static final long serialVersionUID = 1L; + + @TableId(value = "id", type = IdType.AUTO) + private Long id; + + @ApiModelProperty(value = "材料名称") + private String name; + + @ApiModelProperty(value = "规格型号") + private String specification; + + @ApiModelProperty(value = "单位") + private String unit; + + @ApiModelProperty(value = "计划需求量") + private Integer planNeed; + + @ApiModelProperty(value = "实际进厂量") + private Integer actualIn; + + @ApiModelProperty(value = "剩余量") + private Integer surplus; + + @ApiModelProperty(value = "供应商名称") + private String supplierName; + + @ApiModelProperty(value = "采购时间") + private LocalDateTime purchaseTime; + + @ApiModelProperty(value = "预计使用时间") + private LocalDateTime planUseTime; + + @ApiModelProperty(value = "创建时间") + private LocalDateTime createTime; + + @ApiModelProperty(value = "创建人") + private String creator; + + +} diff --git a/intelligencesite/src/main/java/com/zilber/boot/intelligencesite/entity/IProductionPlan.java b/intelligencesite/src/main/java/com/zilber/boot/intelligencesite/entity/IProductionPlan.java new file mode 100644 index 0000000..e7de429 --- /dev/null +++ b/intelligencesite/src/main/java/com/zilber/boot/intelligencesite/entity/IProductionPlan.java @@ -0,0 +1,65 @@ +package com.zilber.boot.intelligencesite.entity; + +import com.baomidou.mybatisplus.annotation.TableName; +import com.baomidou.mybatisplus.annotation.IdType; +import com.baomidou.mybatisplus.annotation.TableId; +import java.time.LocalDateTime; +import java.io.Serializable; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import lombok.Data; +import lombok.EqualsAndHashCode; +import lombok.experimental.Accessors; + +/** + *

+ * 生产计划表 + *

+ * + * @author lsc + * @since 2025-05-06 + */ +@Data +@EqualsAndHashCode(callSuper = false) +@Accessors(chain = true) +@TableName("i_production_plan") +@ApiModel(value="IProductionPlan对象", description="生产计划表") +public class IProductionPlan implements Serializable { + + private static final long serialVersionUID = 1L; + + @TableId(value = "id", type = IdType.AUTO) + private Long id; + + @ApiModelProperty(value = "计划名称") + private String planName; + + @ApiModelProperty(value = "所属项目阶段") + private String projectStage; + + @ApiModelProperty(value = "计划描述") + private String description; + + @ApiModelProperty(value = "计划开始时间") + private LocalDateTime startTime; + + @ApiModelProperty(value = "计划结束时间") + private LocalDateTime endTime; + + @ApiModelProperty(value = "创建时间") + private LocalDateTime createTime; + + @ApiModelProperty(value = "创建人") + private String creator; + + @ApiModelProperty(value = "总工期天数") + private Integer duration; + + @ApiModelProperty(value = "关键节点时间") + private LocalDateTime keystageTime; + + @ApiModelProperty(value = "计划负责人") + private String principal; + + +} diff --git a/intelligencesite/src/main/java/com/zilber/boot/intelligencesite/entity/IProgress.java b/intelligencesite/src/main/java/com/zilber/boot/intelligencesite/entity/IProgress.java new file mode 100644 index 0000000..e902792 --- /dev/null +++ b/intelligencesite/src/main/java/com/zilber/boot/intelligencesite/entity/IProgress.java @@ -0,0 +1,53 @@ +package com.zilber.boot.intelligencesite.entity; + +import com.baomidou.mybatisplus.annotation.TableName; +import com.baomidou.mybatisplus.annotation.IdType; +import com.baomidou.mybatisplus.annotation.TableId; +import java.time.LocalDateTime; +import java.io.Serializable; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import lombok.Data; +import lombok.EqualsAndHashCode; +import lombok.experimental.Accessors; + +/** + *

+ * 进度跟踪表 + *

+ * + * @author lsc + * @since 2025-05-06 + */ +@Data +@EqualsAndHashCode(callSuper = false) +@Accessors(chain = true) +@TableName("i_progress") +@ApiModel(value="IProgress对象", description="进度跟踪表") +public class IProgress implements Serializable { + + private static final long serialVersionUID = 1L; + + @TableId(value = "id", type = IdType.AUTO) + private Long id; + + @ApiModelProperty(value = "计划id") + private Long planId; + + @ApiModelProperty(value = "计划名称") + private String planName; + + @ApiModelProperty(value = "当日完成进度") + private Integer dayProgress; + + @ApiModelProperty(value = "累计完成进度") + private Integer accumulativeProgress; + + @ApiModelProperty(value = "创建时间") + private LocalDateTime createTime; + + @ApiModelProperty(value = "创建人") + private String creator; + + +} diff --git a/intelligencesite/src/main/java/com/zilber/boot/intelligencesite/entity/IResourceSchedule.java b/intelligencesite/src/main/java/com/zilber/boot/intelligencesite/entity/IResourceSchedule.java new file mode 100644 index 0000000..d726a30 --- /dev/null +++ b/intelligencesite/src/main/java/com/zilber/boot/intelligencesite/entity/IResourceSchedule.java @@ -0,0 +1,59 @@ +package com.zilber.boot.intelligencesite.entity; + +import com.baomidou.mybatisplus.annotation.TableName; +import com.baomidou.mybatisplus.annotation.IdType; +import com.baomidou.mybatisplus.annotation.TableId; +import java.time.LocalDateTime; +import java.io.Serializable; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import lombok.Data; +import lombok.EqualsAndHashCode; +import lombok.experimental.Accessors; + +/** + *

+ * 资源调度表 + *

+ * + * @author lsc + * @since 2025-05-06 + */ +@Data +@EqualsAndHashCode(callSuper = false) +@Accessors(chain = true) +@TableName("i_resource_schedule") +@ApiModel(value="IResourceSchedule对象", description="资源调度表") +public class IResourceSchedule implements Serializable { + + private static final long serialVersionUID = 1L; + + @TableId(value = "id", type = IdType.AUTO) + private Long id; + + @ApiModelProperty(value = "计划id") + private Long planId; + + @ApiModelProperty(value = "计划名称") + private String planName; + + @ApiModelProperty(value = "计划开始时间") + private LocalDateTime startTime; + + @ApiModelProperty(value = "计划结束时间") + private LocalDateTime endTime; + + @ApiModelProperty(value = "创建时间") + private LocalDateTime createTime; + + @ApiModelProperty(value = "创建人") + private String creator; + + @ApiModelProperty(value = "当前进度") + private Integer currentProgress; + + @ApiModelProperty(value = "建议") + private String advise; + + +} diff --git a/intelligencesite/src/main/java/com/zilber/boot/intelligencesite/entity/ISafe.java b/intelligencesite/src/main/java/com/zilber/boot/intelligencesite/entity/ISafe.java new file mode 100644 index 0000000..2d83b19 --- /dev/null +++ b/intelligencesite/src/main/java/com/zilber/boot/intelligencesite/entity/ISafe.java @@ -0,0 +1,47 @@ +package com.zilber.boot.intelligencesite.entity; + +import com.baomidou.mybatisplus.annotation.TableName; +import com.baomidou.mybatisplus.annotation.IdType; +import java.time.LocalDateTime; +import com.baomidou.mybatisplus.annotation.TableId; +import java.io.Serializable; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import lombok.Data; +import lombok.EqualsAndHashCode; +import lombok.experimental.Accessors; + +/** + *

+ * 安全教育 + *

+ * + * @author lsc + * @since 2025-05-06 + */ +@Data +@EqualsAndHashCode(callSuper = false) +@Accessors(chain = true) +@TableName("i_safe") +@ApiModel(value="ISafe对象", description="安全教育") +public class ISafe implements Serializable { + + private static final long serialVersionUID = 1L; + + @TableId(value = "id", type = IdType.AUTO) + private Long id; + + @ApiModelProperty(value = "姓名") + private String name; + + @ApiModelProperty(value = "进项安全教育啥时间") + private LocalDateTime date; + + @ApiModelProperty(value = "创建时间") + private LocalDateTime createTime; + + @ApiModelProperty(value = "创建人") + private String creator; + + +} diff --git a/intelligencesite/src/main/java/com/zilber/boot/intelligencesite/entity/IUser.java b/intelligencesite/src/main/java/com/zilber/boot/intelligencesite/entity/IUser.java new file mode 100644 index 0000000..c6d1f66 --- /dev/null +++ b/intelligencesite/src/main/java/com/zilber/boot/intelligencesite/entity/IUser.java @@ -0,0 +1,53 @@ +package com.zilber.boot.intelligencesite.entity; + +import com.baomidou.mybatisplus.annotation.TableName; +import com.baomidou.mybatisplus.annotation.IdType; +import com.baomidou.mybatisplus.annotation.TableId; +import java.time.LocalDateTime; +import java.io.Serializable; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import lombok.Data; +import lombok.EqualsAndHashCode; +import lombok.experimental.Accessors; + +/** + *

+ * 实名制与信息管理 + *

+ * + * @author lsc + * @since 2025-05-06 + */ +@Data +@EqualsAndHashCode(callSuper = false) +@Accessors(chain = true) +@TableName("i_user") +@ApiModel(value="IUser对象", description="实名制与信息管理") +public class IUser implements Serializable { + + private static final long serialVersionUID = 1L; + + @TableId(value = "id", type = IdType.AUTO) + private Long id; + + @ApiModelProperty(value = "姓名") + private String name; + + @ApiModelProperty(value = "联系方式") + private String tel; + + @ApiModelProperty(value = "身份证") + private String idCard; + + @ApiModelProperty(value = "工种") + private String workType; + + @ApiModelProperty(value = "创建时间") + private LocalDateTime createTime; + + @ApiModelProperty(value = "创建人") + private String creator; + + +} diff --git a/intelligencesite/src/main/java/com/zilber/boot/intelligencesite/entity/IWarn.java b/intelligencesite/src/main/java/com/zilber/boot/intelligencesite/entity/IWarn.java new file mode 100644 index 0000000..31bb5c2 --- /dev/null +++ b/intelligencesite/src/main/java/com/zilber/boot/intelligencesite/entity/IWarn.java @@ -0,0 +1,56 @@ +package com.zilber.boot.intelligencesite.entity; + +import com.baomidou.mybatisplus.annotation.TableName; +import com.baomidou.mybatisplus.annotation.IdType; +import com.baomidou.mybatisplus.annotation.TableId; +import java.time.LocalDateTime; +import java.io.Serializable; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import lombok.Data; +import lombok.EqualsAndHashCode; +import lombok.experimental.Accessors; + +/** + *

+ * 预警表 + *

+ * + * @author lsc + * @since 2025-05-06 + */ +@Data +@EqualsAndHashCode(callSuper = false) +@Accessors(chain = true) +@TableName("i_warn") +@ApiModel(value="IWarn对象", description="预警表") +public class IWarn implements Serializable { + + private static final long serialVersionUID = 1L; + + @TableId(value = "id", type = IdType.AUTO) + private Long id; + + @ApiModelProperty(value = "计划id") + private Long planId; + + @ApiModelProperty(value = "计划名称") + private String planName; + + @ApiModelProperty(value = "偏差类型1提前2滞后") + private Integer deviationType; + + @ApiModelProperty(value = "偏差天数") + private Integer deviationDays; + + @ApiModelProperty(value = "预警信息") + private String warnInfo; + + @ApiModelProperty(value = "创建时间") + private LocalDateTime createTime; + + @ApiModelProperty(value = "创建人") + private String creator; + + +} diff --git a/intelligencesite/src/main/java/com/zilber/boot/intelligencesite/mapper/IConstructionReportMapper.java b/intelligencesite/src/main/java/com/zilber/boot/intelligencesite/mapper/IConstructionReportMapper.java new file mode 100644 index 0000000..3eadd67 --- /dev/null +++ b/intelligencesite/src/main/java/com/zilber/boot/intelligencesite/mapper/IConstructionReportMapper.java @@ -0,0 +1,16 @@ +package com.zilber.boot.intelligencesite.mapper; + +import com.zilber.boot.intelligencesite.entity.IConstructionReport; +import com.baomidou.mybatisplus.core.mapper.BaseMapper; + +/** + *

+ * 施工报告 Mapper 接口 + *

+ * + * @author lsc + * @since 2025-05-06 + */ +public interface IConstructionReportMapper extends BaseMapper { + +} diff --git a/intelligencesite/src/main/java/com/zilber/boot/intelligencesite/mapper/IEngineerLogMapper.java b/intelligencesite/src/main/java/com/zilber/boot/intelligencesite/mapper/IEngineerLogMapper.java new file mode 100644 index 0000000..bafbba3 --- /dev/null +++ b/intelligencesite/src/main/java/com/zilber/boot/intelligencesite/mapper/IEngineerLogMapper.java @@ -0,0 +1,16 @@ +package com.zilber.boot.intelligencesite.mapper; + +import com.zilber.boot.intelligencesite.entity.IEngineerLog; +import com.baomidou.mybatisplus.core.mapper.BaseMapper; + +/** + *

+ * 工程日志 Mapper 接口 + *

+ * + * @author lsc + * @since 2025-05-06 + */ +public interface IEngineerLogMapper extends BaseMapper { + +} diff --git a/intelligencesite/src/main/java/com/zilber/boot/intelligencesite/mapper/IManpowerMapper.java b/intelligencesite/src/main/java/com/zilber/boot/intelligencesite/mapper/IManpowerMapper.java new file mode 100644 index 0000000..fe35648 --- /dev/null +++ b/intelligencesite/src/main/java/com/zilber/boot/intelligencesite/mapper/IManpowerMapper.java @@ -0,0 +1,16 @@ +package com.zilber.boot.intelligencesite.mapper; + +import com.zilber.boot.intelligencesite.entity.IManpower; +import com.baomidou.mybatisplus.core.mapper.BaseMapper; + +/** + *

+ * 人力信息表 Mapper 接口 + *

+ * + * @author lsc + * @since 2025-05-06 + */ +public interface IManpowerMapper extends BaseMapper { + +} diff --git a/intelligencesite/src/main/java/com/zilber/boot/intelligencesite/mapper/IMaterialsMapper.java b/intelligencesite/src/main/java/com/zilber/boot/intelligencesite/mapper/IMaterialsMapper.java new file mode 100644 index 0000000..a91c036 --- /dev/null +++ b/intelligencesite/src/main/java/com/zilber/boot/intelligencesite/mapper/IMaterialsMapper.java @@ -0,0 +1,16 @@ +package com.zilber.boot.intelligencesite.mapper; + +import com.zilber.boot.intelligencesite.entity.IMaterials; +import com.baomidou.mybatisplus.core.mapper.BaseMapper; + +/** + *

+ * 材料信息表 Mapper 接口 + *

+ * + * @author lsc + * @since 2025-05-06 + */ +public interface IMaterialsMapper extends BaseMapper { + +} diff --git a/intelligencesite/src/main/java/com/zilber/boot/intelligencesite/mapper/IProductionPlanMapper.java b/intelligencesite/src/main/java/com/zilber/boot/intelligencesite/mapper/IProductionPlanMapper.java new file mode 100644 index 0000000..17cc417 --- /dev/null +++ b/intelligencesite/src/main/java/com/zilber/boot/intelligencesite/mapper/IProductionPlanMapper.java @@ -0,0 +1,16 @@ +package com.zilber.boot.intelligencesite.mapper; + +import com.zilber.boot.intelligencesite.entity.IProductionPlan; +import com.baomidou.mybatisplus.core.mapper.BaseMapper; + +/** + *

+ * 生产计划表 Mapper 接口 + *

+ * + * @author lsc + * @since 2025-05-06 + */ +public interface IProductionPlanMapper extends BaseMapper { + +} diff --git a/intelligencesite/src/main/java/com/zilber/boot/intelligencesite/mapper/IProgressMapper.java b/intelligencesite/src/main/java/com/zilber/boot/intelligencesite/mapper/IProgressMapper.java new file mode 100644 index 0000000..6f49bd4 --- /dev/null +++ b/intelligencesite/src/main/java/com/zilber/boot/intelligencesite/mapper/IProgressMapper.java @@ -0,0 +1,16 @@ +package com.zilber.boot.intelligencesite.mapper; + +import com.zilber.boot.intelligencesite.entity.IProgress; +import com.baomidou.mybatisplus.core.mapper.BaseMapper; + +/** + *

+ * 进度跟踪表 Mapper 接口 + *

+ * + * @author lsc + * @since 2025-05-06 + */ +public interface IProgressMapper extends BaseMapper { + +} diff --git a/intelligencesite/src/main/java/com/zilber/boot/intelligencesite/mapper/IResourceScheduleMapper.java b/intelligencesite/src/main/java/com/zilber/boot/intelligencesite/mapper/IResourceScheduleMapper.java new file mode 100644 index 0000000..13f28c8 --- /dev/null +++ b/intelligencesite/src/main/java/com/zilber/boot/intelligencesite/mapper/IResourceScheduleMapper.java @@ -0,0 +1,16 @@ +package com.zilber.boot.intelligencesite.mapper; + +import com.zilber.boot.intelligencesite.entity.IResourceSchedule; +import com.baomidou.mybatisplus.core.mapper.BaseMapper; + +/** + *

+ * 资源调度表 Mapper 接口 + *

+ * + * @author lsc + * @since 2025-05-06 + */ +public interface IResourceScheduleMapper extends BaseMapper { + +} diff --git a/intelligencesite/src/main/java/com/zilber/boot/intelligencesite/mapper/ISafeMapper.java b/intelligencesite/src/main/java/com/zilber/boot/intelligencesite/mapper/ISafeMapper.java new file mode 100644 index 0000000..2f054b3 --- /dev/null +++ b/intelligencesite/src/main/java/com/zilber/boot/intelligencesite/mapper/ISafeMapper.java @@ -0,0 +1,16 @@ +package com.zilber.boot.intelligencesite.mapper; + +import com.zilber.boot.intelligencesite.entity.ISafe; +import com.baomidou.mybatisplus.core.mapper.BaseMapper; + +/** + *

+ * 安全教育 Mapper 接口 + *

+ * + * @author lsc + * @since 2025-05-06 + */ +public interface ISafeMapper extends BaseMapper { + +} diff --git a/intelligencesite/src/main/java/com/zilber/boot/intelligencesite/mapper/IUserMapper.java b/intelligencesite/src/main/java/com/zilber/boot/intelligencesite/mapper/IUserMapper.java new file mode 100644 index 0000000..eebf55e --- /dev/null +++ b/intelligencesite/src/main/java/com/zilber/boot/intelligencesite/mapper/IUserMapper.java @@ -0,0 +1,16 @@ +package com.zilber.boot.intelligencesite.mapper; + +import com.zilber.boot.intelligencesite.entity.IUser; +import com.baomidou.mybatisplus.core.mapper.BaseMapper; + +/** + *

+ * 实名制与信息管理 Mapper 接口 + *

+ * + * @author lsc + * @since 2025-05-06 + */ +public interface IUserMapper extends BaseMapper { + +} diff --git a/intelligencesite/src/main/java/com/zilber/boot/intelligencesite/mapper/IWarnMapper.java b/intelligencesite/src/main/java/com/zilber/boot/intelligencesite/mapper/IWarnMapper.java new file mode 100644 index 0000000..06946e3 --- /dev/null +++ b/intelligencesite/src/main/java/com/zilber/boot/intelligencesite/mapper/IWarnMapper.java @@ -0,0 +1,16 @@ +package com.zilber.boot.intelligencesite.mapper; + +import com.zilber.boot.intelligencesite.entity.IWarn; +import com.baomidou.mybatisplus.core.mapper.BaseMapper; + +/** + *

+ * 预警表 Mapper 接口 + *

+ * + * @author lsc + * @since 2025-05-06 + */ +public interface IWarnMapper extends BaseMapper { + +} diff --git a/intelligencesite/src/main/java/com/zilber/boot/intelligencesite/service/IIConstructionReportService.java b/intelligencesite/src/main/java/com/zilber/boot/intelligencesite/service/IIConstructionReportService.java new file mode 100644 index 0000000..bb92cb5 --- /dev/null +++ b/intelligencesite/src/main/java/com/zilber/boot/intelligencesite/service/IIConstructionReportService.java @@ -0,0 +1,16 @@ +package com.zilber.boot.intelligencesite.service; + +import com.zilber.boot.intelligencesite.entity.IConstructionReport; +import com.baomidou.mybatisplus.extension.service.IService; + +/** + *

+ * 施工报告 服务类 + *

+ * + * @author lsc + * @since 2025-05-06 + */ +public interface IIConstructionReportService extends IService { + +} diff --git a/intelligencesite/src/main/java/com/zilber/boot/intelligencesite/service/IIEngineerLogService.java b/intelligencesite/src/main/java/com/zilber/boot/intelligencesite/service/IIEngineerLogService.java new file mode 100644 index 0000000..dd57057 --- /dev/null +++ b/intelligencesite/src/main/java/com/zilber/boot/intelligencesite/service/IIEngineerLogService.java @@ -0,0 +1,16 @@ +package com.zilber.boot.intelligencesite.service; + +import com.zilber.boot.intelligencesite.entity.IEngineerLog; +import com.baomidou.mybatisplus.extension.service.IService; + +/** + *

+ * 工程日志 服务类 + *

+ * + * @author lsc + * @since 2025-05-06 + */ +public interface IIEngineerLogService extends IService { + +} diff --git a/intelligencesite/src/main/java/com/zilber/boot/intelligencesite/service/IIManpowerService.java b/intelligencesite/src/main/java/com/zilber/boot/intelligencesite/service/IIManpowerService.java new file mode 100644 index 0000000..f492d9d --- /dev/null +++ b/intelligencesite/src/main/java/com/zilber/boot/intelligencesite/service/IIManpowerService.java @@ -0,0 +1,16 @@ +package com.zilber.boot.intelligencesite.service; + +import com.zilber.boot.intelligencesite.entity.IManpower; +import com.baomidou.mybatisplus.extension.service.IService; + +/** + *

+ * 人力信息表 服务类 + *

+ * + * @author lsc + * @since 2025-05-06 + */ +public interface IIManpowerService extends IService { + +} diff --git a/intelligencesite/src/main/java/com/zilber/boot/intelligencesite/service/IIMaterialsService.java b/intelligencesite/src/main/java/com/zilber/boot/intelligencesite/service/IIMaterialsService.java new file mode 100644 index 0000000..a7776f7 --- /dev/null +++ b/intelligencesite/src/main/java/com/zilber/boot/intelligencesite/service/IIMaterialsService.java @@ -0,0 +1,16 @@ +package com.zilber.boot.intelligencesite.service; + +import com.zilber.boot.intelligencesite.entity.IMaterials; +import com.baomidou.mybatisplus.extension.service.IService; + +/** + *

+ * 材料信息表 服务类 + *

+ * + * @author lsc + * @since 2025-05-06 + */ +public interface IIMaterialsService extends IService { + +} diff --git a/intelligencesite/src/main/java/com/zilber/boot/intelligencesite/service/IIProductionPlanService.java b/intelligencesite/src/main/java/com/zilber/boot/intelligencesite/service/IIProductionPlanService.java new file mode 100644 index 0000000..68f618a --- /dev/null +++ b/intelligencesite/src/main/java/com/zilber/boot/intelligencesite/service/IIProductionPlanService.java @@ -0,0 +1,16 @@ +package com.zilber.boot.intelligencesite.service; + +import com.zilber.boot.intelligencesite.entity.IProductionPlan; +import com.baomidou.mybatisplus.extension.service.IService; + +/** + *

+ * 生产计划表 服务类 + *

+ * + * @author lsc + * @since 2025-05-06 + */ +public interface IIProductionPlanService extends IService { + +} diff --git a/intelligencesite/src/main/java/com/zilber/boot/intelligencesite/service/IIProgressService.java b/intelligencesite/src/main/java/com/zilber/boot/intelligencesite/service/IIProgressService.java new file mode 100644 index 0000000..580d46e --- /dev/null +++ b/intelligencesite/src/main/java/com/zilber/boot/intelligencesite/service/IIProgressService.java @@ -0,0 +1,16 @@ +package com.zilber.boot.intelligencesite.service; + +import com.zilber.boot.intelligencesite.entity.IProgress; +import com.baomidou.mybatisplus.extension.service.IService; + +/** + *

+ * 进度跟踪表 服务类 + *

+ * + * @author lsc + * @since 2025-05-06 + */ +public interface IIProgressService extends IService { + +} diff --git a/intelligencesite/src/main/java/com/zilber/boot/intelligencesite/service/IIResourceScheduleService.java b/intelligencesite/src/main/java/com/zilber/boot/intelligencesite/service/IIResourceScheduleService.java new file mode 100644 index 0000000..fd0ea28 --- /dev/null +++ b/intelligencesite/src/main/java/com/zilber/boot/intelligencesite/service/IIResourceScheduleService.java @@ -0,0 +1,16 @@ +package com.zilber.boot.intelligencesite.service; + +import com.zilber.boot.intelligencesite.entity.IResourceSchedule; +import com.baomidou.mybatisplus.extension.service.IService; + +/** + *

+ * 资源调度表 服务类 + *

+ * + * @author lsc + * @since 2025-05-06 + */ +public interface IIResourceScheduleService extends IService { + +} diff --git a/intelligencesite/src/main/java/com/zilber/boot/intelligencesite/service/IISafeService.java b/intelligencesite/src/main/java/com/zilber/boot/intelligencesite/service/IISafeService.java new file mode 100644 index 0000000..e09531e --- /dev/null +++ b/intelligencesite/src/main/java/com/zilber/boot/intelligencesite/service/IISafeService.java @@ -0,0 +1,16 @@ +package com.zilber.boot.intelligencesite.service; + +import com.zilber.boot.intelligencesite.entity.ISafe; +import com.baomidou.mybatisplus.extension.service.IService; + +/** + *

+ * 安全教育 服务类 + *

+ * + * @author lsc + * @since 2025-05-06 + */ +public interface IISafeService extends IService { + +} diff --git a/intelligencesite/src/main/java/com/zilber/boot/intelligencesite/service/IIUserService.java b/intelligencesite/src/main/java/com/zilber/boot/intelligencesite/service/IIUserService.java new file mode 100644 index 0000000..9b1b113 --- /dev/null +++ b/intelligencesite/src/main/java/com/zilber/boot/intelligencesite/service/IIUserService.java @@ -0,0 +1,16 @@ +package com.zilber.boot.intelligencesite.service; + +import com.zilber.boot.intelligencesite.entity.IUser; +import com.baomidou.mybatisplus.extension.service.IService; + +/** + *

+ * 实名制与信息管理 服务类 + *

+ * + * @author lsc + * @since 2025-05-06 + */ +public interface IIUserService extends IService { + +} diff --git a/intelligencesite/src/main/java/com/zilber/boot/intelligencesite/service/IIWarnService.java b/intelligencesite/src/main/java/com/zilber/boot/intelligencesite/service/IIWarnService.java new file mode 100644 index 0000000..9f05f99 --- /dev/null +++ b/intelligencesite/src/main/java/com/zilber/boot/intelligencesite/service/IIWarnService.java @@ -0,0 +1,16 @@ +package com.zilber.boot.intelligencesite.service; + +import com.zilber.boot.intelligencesite.entity.IWarn; +import com.baomidou.mybatisplus.extension.service.IService; + +/** + *

+ * 预警表 服务类 + *

+ * + * @author lsc + * @since 2025-05-06 + */ +public interface IIWarnService extends IService { + +} diff --git a/intelligencesite/src/main/java/com/zilber/boot/intelligencesite/service/impl/IConstructionReportServiceImpl.java b/intelligencesite/src/main/java/com/zilber/boot/intelligencesite/service/impl/IConstructionReportServiceImpl.java new file mode 100644 index 0000000..6a511a0 --- /dev/null +++ b/intelligencesite/src/main/java/com/zilber/boot/intelligencesite/service/impl/IConstructionReportServiceImpl.java @@ -0,0 +1,20 @@ +package com.zilber.boot.intelligencesite.service.impl; + +import com.zilber.boot.intelligencesite.entity.IConstructionReport; +import com.zilber.boot.intelligencesite.mapper.IConstructionReportMapper; +import com.zilber.boot.intelligencesite.service.IIConstructionReportService; +import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; +import org.springframework.stereotype.Service; + +/** + *

+ * 施工报告 服务实现类 + *

+ * + * @author lsc + * @since 2025-05-06 + */ +@Service +public class IConstructionReportServiceImpl extends ServiceImpl implements IIConstructionReportService { + +} diff --git a/intelligencesite/src/main/java/com/zilber/boot/intelligencesite/service/impl/IEngineerLogServiceImpl.java b/intelligencesite/src/main/java/com/zilber/boot/intelligencesite/service/impl/IEngineerLogServiceImpl.java new file mode 100644 index 0000000..5038fd1 --- /dev/null +++ b/intelligencesite/src/main/java/com/zilber/boot/intelligencesite/service/impl/IEngineerLogServiceImpl.java @@ -0,0 +1,20 @@ +package com.zilber.boot.intelligencesite.service.impl; + +import com.zilber.boot.intelligencesite.entity.IEngineerLog; +import com.zilber.boot.intelligencesite.mapper.IEngineerLogMapper; +import com.zilber.boot.intelligencesite.service.IIEngineerLogService; +import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; +import org.springframework.stereotype.Service; + +/** + *

+ * 工程日志 服务实现类 + *

+ * + * @author lsc + * @since 2025-05-06 + */ +@Service +public class IEngineerLogServiceImpl extends ServiceImpl implements IIEngineerLogService { + +} diff --git a/intelligencesite/src/main/java/com/zilber/boot/intelligencesite/service/impl/IManpowerServiceImpl.java b/intelligencesite/src/main/java/com/zilber/boot/intelligencesite/service/impl/IManpowerServiceImpl.java new file mode 100644 index 0000000..1a4b07e --- /dev/null +++ b/intelligencesite/src/main/java/com/zilber/boot/intelligencesite/service/impl/IManpowerServiceImpl.java @@ -0,0 +1,20 @@ +package com.zilber.boot.intelligencesite.service.impl; + +import com.zilber.boot.intelligencesite.entity.IManpower; +import com.zilber.boot.intelligencesite.mapper.IManpowerMapper; +import com.zilber.boot.intelligencesite.service.IIManpowerService; +import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; +import org.springframework.stereotype.Service; + +/** + *

+ * 人力信息表 服务实现类 + *

+ * + * @author lsc + * @since 2025-05-06 + */ +@Service +public class IManpowerServiceImpl extends ServiceImpl implements IIManpowerService { + +} diff --git a/intelligencesite/src/main/java/com/zilber/boot/intelligencesite/service/impl/IMaterialsServiceImpl.java b/intelligencesite/src/main/java/com/zilber/boot/intelligencesite/service/impl/IMaterialsServiceImpl.java new file mode 100644 index 0000000..e4e6e8e --- /dev/null +++ b/intelligencesite/src/main/java/com/zilber/boot/intelligencesite/service/impl/IMaterialsServiceImpl.java @@ -0,0 +1,20 @@ +package com.zilber.boot.intelligencesite.service.impl; + +import com.zilber.boot.intelligencesite.entity.IMaterials; +import com.zilber.boot.intelligencesite.mapper.IMaterialsMapper; +import com.zilber.boot.intelligencesite.service.IIMaterialsService; +import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; +import org.springframework.stereotype.Service; + +/** + *

+ * 材料信息表 服务实现类 + *

+ * + * @author lsc + * @since 2025-05-06 + */ +@Service +public class IMaterialsServiceImpl extends ServiceImpl implements IIMaterialsService { + +} diff --git a/intelligencesite/src/main/java/com/zilber/boot/intelligencesite/service/impl/IProductionPlanServiceImpl.java b/intelligencesite/src/main/java/com/zilber/boot/intelligencesite/service/impl/IProductionPlanServiceImpl.java new file mode 100644 index 0000000..60153e2 --- /dev/null +++ b/intelligencesite/src/main/java/com/zilber/boot/intelligencesite/service/impl/IProductionPlanServiceImpl.java @@ -0,0 +1,20 @@ +package com.zilber.boot.intelligencesite.service.impl; + +import com.zilber.boot.intelligencesite.entity.IProductionPlan; +import com.zilber.boot.intelligencesite.mapper.IProductionPlanMapper; +import com.zilber.boot.intelligencesite.service.IIProductionPlanService; +import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; +import org.springframework.stereotype.Service; + +/** + *

+ * 生产计划表 服务实现类 + *

+ * + * @author lsc + * @since 2025-05-06 + */ +@Service +public class IProductionPlanServiceImpl extends ServiceImpl implements IIProductionPlanService { + +} diff --git a/intelligencesite/src/main/java/com/zilber/boot/intelligencesite/service/impl/IProgressServiceImpl.java b/intelligencesite/src/main/java/com/zilber/boot/intelligencesite/service/impl/IProgressServiceImpl.java new file mode 100644 index 0000000..f1d08aa --- /dev/null +++ b/intelligencesite/src/main/java/com/zilber/boot/intelligencesite/service/impl/IProgressServiceImpl.java @@ -0,0 +1,20 @@ +package com.zilber.boot.intelligencesite.service.impl; + +import com.zilber.boot.intelligencesite.entity.IProgress; +import com.zilber.boot.intelligencesite.mapper.IProgressMapper; +import com.zilber.boot.intelligencesite.service.IIProgressService; +import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; +import org.springframework.stereotype.Service; + +/** + *

+ * 进度跟踪表 服务实现类 + *

+ * + * @author lsc + * @since 2025-05-06 + */ +@Service +public class IProgressServiceImpl extends ServiceImpl implements IIProgressService { + +} diff --git a/intelligencesite/src/main/java/com/zilber/boot/intelligencesite/service/impl/IResourceScheduleServiceImpl.java b/intelligencesite/src/main/java/com/zilber/boot/intelligencesite/service/impl/IResourceScheduleServiceImpl.java new file mode 100644 index 0000000..01b20bc --- /dev/null +++ b/intelligencesite/src/main/java/com/zilber/boot/intelligencesite/service/impl/IResourceScheduleServiceImpl.java @@ -0,0 +1,20 @@ +package com.zilber.boot.intelligencesite.service.impl; + +import com.zilber.boot.intelligencesite.entity.IResourceSchedule; +import com.zilber.boot.intelligencesite.mapper.IResourceScheduleMapper; +import com.zilber.boot.intelligencesite.service.IIResourceScheduleService; +import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; +import org.springframework.stereotype.Service; + +/** + *

+ * 资源调度表 服务实现类 + *

+ * + * @author lsc + * @since 2025-05-06 + */ +@Service +public class IResourceScheduleServiceImpl extends ServiceImpl implements IIResourceScheduleService { + +} diff --git a/intelligencesite/src/main/java/com/zilber/boot/intelligencesite/service/impl/ISafeServiceImpl.java b/intelligencesite/src/main/java/com/zilber/boot/intelligencesite/service/impl/ISafeServiceImpl.java new file mode 100644 index 0000000..4848a3d --- /dev/null +++ b/intelligencesite/src/main/java/com/zilber/boot/intelligencesite/service/impl/ISafeServiceImpl.java @@ -0,0 +1,20 @@ +package com.zilber.boot.intelligencesite.service.impl; + +import com.zilber.boot.intelligencesite.entity.ISafe; +import com.zilber.boot.intelligencesite.mapper.ISafeMapper; +import com.zilber.boot.intelligencesite.service.IISafeService; +import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; +import org.springframework.stereotype.Service; + +/** + *

+ * 安全教育 服务实现类 + *

+ * + * @author lsc + * @since 2025-05-06 + */ +@Service +public class ISafeServiceImpl extends ServiceImpl implements IISafeService { + +} diff --git a/intelligencesite/src/main/java/com/zilber/boot/intelligencesite/service/impl/IUserServiceImpl.java b/intelligencesite/src/main/java/com/zilber/boot/intelligencesite/service/impl/IUserServiceImpl.java new file mode 100644 index 0000000..f3cccd7 --- /dev/null +++ b/intelligencesite/src/main/java/com/zilber/boot/intelligencesite/service/impl/IUserServiceImpl.java @@ -0,0 +1,20 @@ +package com.zilber.boot.intelligencesite.service.impl; + +import com.zilber.boot.intelligencesite.entity.IUser; +import com.zilber.boot.intelligencesite.mapper.IUserMapper; +import com.zilber.boot.intelligencesite.service.IIUserService; +import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; +import org.springframework.stereotype.Service; + +/** + *

+ * 实名制与信息管理 服务实现类 + *

+ * + * @author lsc + * @since 2025-05-06 + */ +@Service +public class IUserServiceImpl extends ServiceImpl implements IIUserService { + +} diff --git a/intelligencesite/src/main/java/com/zilber/boot/intelligencesite/service/impl/IWarnServiceImpl.java b/intelligencesite/src/main/java/com/zilber/boot/intelligencesite/service/impl/IWarnServiceImpl.java new file mode 100644 index 0000000..90f86eb --- /dev/null +++ b/intelligencesite/src/main/java/com/zilber/boot/intelligencesite/service/impl/IWarnServiceImpl.java @@ -0,0 +1,20 @@ +package com.zilber.boot.intelligencesite.service.impl; + +import com.zilber.boot.intelligencesite.entity.IWarn; +import com.zilber.boot.intelligencesite.mapper.IWarnMapper; +import com.zilber.boot.intelligencesite.service.IIWarnService; +import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; +import org.springframework.stereotype.Service; + +/** + *

+ * 预警表 服务实现类 + *

+ * + * @author lsc + * @since 2025-05-06 + */ +@Service +public class IWarnServiceImpl extends ServiceImpl implements IIWarnService { + +} diff --git a/intelligencesite/src/main/resources/mapper/IConstructionReportMapper.xml b/intelligencesite/src/main/resources/mapper/IConstructionReportMapper.xml new file mode 100644 index 0000000..8ffb0d0 --- /dev/null +++ b/intelligencesite/src/main/resources/mapper/IConstructionReportMapper.xml @@ -0,0 +1,27 @@ + + + + + + + + + + + + + + + + + + + + + + + + id, date, cycle, plan_id, plan_name, total_progress, manpower, materials_use, equipment_operation, qs, advise, create_time, creator + + + diff --git a/intelligencesite/src/main/resources/mapper/IEngineerLogMapper.xml b/intelligencesite/src/main/resources/mapper/IEngineerLogMapper.xml new file mode 100644 index 0000000..bd7fd23 --- /dev/null +++ b/intelligencesite/src/main/resources/mapper/IEngineerLogMapper.xml @@ -0,0 +1,34 @@ + + + + + + + + + + + + + + + + + + + + + + id, date, +weather, temperature, wind, +principal_name, +principal_tel, construction_situation, other_business, create_time, creator + + + diff --git a/intelligencesite/src/main/resources/mapper/IManpowerMapper.xml b/intelligencesite/src/main/resources/mapper/IManpowerMapper.xml new file mode 100644 index 0000000..57409f1 --- /dev/null +++ b/intelligencesite/src/main/resources/mapper/IManpowerMapper.xml @@ -0,0 +1,26 @@ + + + + + + + + + + + + + + + + + + + + id, name, work_type, +quantity, plan_devote_time, actual_devote_time, leave_time, create_time, creator + + + diff --git a/intelligencesite/src/main/resources/mapper/IMaterialsMapper.xml b/intelligencesite/src/main/resources/mapper/IMaterialsMapper.xml new file mode 100644 index 0000000..8abd7b5 --- /dev/null +++ b/intelligencesite/src/main/resources/mapper/IMaterialsMapper.xml @@ -0,0 +1,26 @@ + + + + + + + + + + + + + + + + + + + + + + + id, name, specification, unit, plan_need, actual_in, surplus, supplier_name, purchase_time, plan_use_time, create_time, creator + + + diff --git a/intelligencesite/src/main/resources/mapper/IProductionPlanMapper.xml b/intelligencesite/src/main/resources/mapper/IProductionPlanMapper.xml new file mode 100644 index 0000000..97f066e --- /dev/null +++ b/intelligencesite/src/main/resources/mapper/IProductionPlanMapper.xml @@ -0,0 +1,25 @@ + + + + + + + + + + + + + + + + + + + + + + id, plan_name, project_stage, description, start_time, end_time, create_time, creator, duration, keystage_time, principal + + + diff --git a/intelligencesite/src/main/resources/mapper/IProgressMapper.xml b/intelligencesite/src/main/resources/mapper/IProgressMapper.xml new file mode 100644 index 0000000..d69504c --- /dev/null +++ b/intelligencesite/src/main/resources/mapper/IProgressMapper.xml @@ -0,0 +1,21 @@ + + + + + + + + + + + + + + + + + + id, plan_id, plan_name, day_progress, accumulative_progress, create_time, creator + + + diff --git a/intelligencesite/src/main/resources/mapper/IResourceScheduleMapper.xml b/intelligencesite/src/main/resources/mapper/IResourceScheduleMapper.xml new file mode 100644 index 0000000..f58d20d --- /dev/null +++ b/intelligencesite/src/main/resources/mapper/IResourceScheduleMapper.xml @@ -0,0 +1,23 @@ + + + + + + + + + + + + + + + + + + + + id, plan_id, plan_name, start_time, end_time, create_time, creator, current_progress, advise + + + diff --git a/intelligencesite/src/main/resources/mapper/ISafeMapper.xml b/intelligencesite/src/main/resources/mapper/ISafeMapper.xml new file mode 100644 index 0000000..cedfcca --- /dev/null +++ b/intelligencesite/src/main/resources/mapper/ISafeMapper.xml @@ -0,0 +1,19 @@ + + + + + + + + + + + + + + + + id, name, date, create_time, creator + + + diff --git a/intelligencesite/src/main/resources/mapper/IUserMapper.xml b/intelligencesite/src/main/resources/mapper/IUserMapper.xml new file mode 100644 index 0000000..f42a8f8 --- /dev/null +++ b/intelligencesite/src/main/resources/mapper/IUserMapper.xml @@ -0,0 +1,21 @@ + + + + + + + + + + + + + + + + + + id, name, tel, id_card, work_type, create_time, creator + + + diff --git a/intelligencesite/src/main/resources/mapper/IWarnMapper.xml b/intelligencesite/src/main/resources/mapper/IWarnMapper.xml new file mode 100644 index 0000000..a006c12 --- /dev/null +++ b/intelligencesite/src/main/resources/mapper/IWarnMapper.xml @@ -0,0 +1,22 @@ + + + + + + + + + + + + + + + + + + + id, plan_id, plan_name, deviation_type, deviation_days, warn_info, create_time, creator + + + From 42c54522ec0de7b34965f0b25af9624520164cca Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=88=98=E8=83=9C=E8=B6=85?= <504565038@qq.com> Date: Wed, 7 May 2025 17:40:51 +0800 Subject: [PATCH 3/3] =?UTF-8?q?=E9=A6=96=E6=AC=A1=E6=8F=90=E4=BA=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../IConstructionReportController.java | 76 ++++++++++++++++ .../controller/IEngineerLogController.java | 78 ++++++++++++++++ .../controller/IManpowerController.java | 77 ++++++++++++++++ .../controller/IMaterialsController.java | 76 ++++++++++++++++ .../controller/IProductionPlanController.java | 90 +++++++++++++++++++ .../controller/IProgressController.java | 75 ++++++++++++++++ .../IResourceScheduleController.java | 74 +++++++++++++++ .../controller/ISafeController.java | 77 ++++++++++++++++ .../controller/IUserController.java | 77 ++++++++++++++++ .../controller/IWarnController.java | 78 ++++++++++++++++ .../entity/IConstructionReport.java | 78 ++++++++++++++++ .../intelligencesite/entity/IEngineerLog.java | 75 ++++++++++++++++ .../intelligencesite/entity/IManpower.java | 67 ++++++++++++++ .../intelligencesite/entity/IMaterials.java | 77 ++++++++++++++++ .../entity/IProductionPlan.java | 77 ++++++++++++++++ .../intelligencesite/entity/IProgress.java | 58 ++++++++++++ .../entity/IResourceSchedule.java | 68 ++++++++++++++ .../boot/intelligencesite/entity/ISafe.java | 54 +++++++++++ .../boot/intelligencesite/entity/IUser.java | 58 ++++++++++++ .../boot/intelligencesite/entity/IWarn.java | 61 +++++++++++++ .../mapper/IConstructionReportMapper.java | 20 +++++ .../mapper/IEngineerLogMapper.java | 19 ++++ .../mapper/IManpowerMapper.java | 19 ++++ .../mapper/IMaterialsMapper.java | 19 ++++ .../mapper/IProductionPlanMapper.java | 19 ++++ .../mapper/IProgressMapper.java | 19 ++++ .../mapper/IResourceScheduleMapper.java | 19 ++++ .../intelligencesite/mapper/ISafeMapper.java | 19 ++++ .../intelligencesite/mapper/IUserMapper.java | 19 ++++ .../intelligencesite/mapper/IWarnMapper.java | 19 ++++ .../service/IIConstructionReportService.java | 22 +++++ .../service/IIEngineerLogService.java | 19 ++++ .../service/IIManpowerService.java | 19 ++++ .../service/IIMaterialsService.java | 19 ++++ .../service/IIProductionPlanService.java | 24 +++++ .../service/IIProgressService.java | 22 +++++ .../service/IIResourceScheduleService.java | 19 ++++ .../service/IISafeService.java | 19 ++++ .../service/IIUserService.java | 19 ++++ .../service/IIWarnService.java | 19 ++++ .../impl/IConstructionReportServiceImpl.java | 32 +++++++ .../service/impl/IEngineerLogServiceImpl.java | 31 +++++++ .../service/impl/IManpowerServiceImpl.java | 33 +++++++ .../service/impl/IMaterialsServiceImpl.java | 33 +++++++ .../impl/IProductionPlanServiceImpl.java | 83 +++++++++++++++++ .../service/impl/IProgressServiceImpl.java | 43 +++++++++ .../impl/IResourceScheduleServiceImpl.java | 34 +++++++ .../service/impl/ISafeServiceImpl.java | 32 +++++++ .../service/impl/IUserServiceImpl.java | 32 +++++++ .../service/impl/IWarnServiceImpl.java | 32 +++++++ .../controller/SysDictionaryController.java | 78 ++++++++++++++++ .../boot/system/dao/SysDictionaryMapper.java | 15 ++++ .../boot/system/pojo/SysDictionary.java | 75 ++++++++++++++++ .../system/service/ISysDictionaryService.java | 17 ++++ .../impl/SysDictionaryServiceImpl.java | 61 +++++++++++++ .../java/com/zilber/boot/utils/DateUtils.java | 13 +++ .../mappers/IConstructionReportMapper.xml | 50 +++++++++++ .../resources/mappers/IEngineerLogMapper.xml | 46 ++++++++++ .../resources/mappers/IManpowerMapper.xml | 53 +++++++++++ .../resources/mappers/IMaterialsMapper.xml | 47 ++++++++++ .../mappers/IProductionPlanMapper.xml | 47 ++++++++++ .../resources/mappers/IProgressMapper.xml | 43 +++++++++ .../mappers/IResourceScheduleMapper.xml | 40 +++++++++ src/main/resources/mappers/ISafeMapper.xml | 33 +++++++ src/main/resources/mappers/IUserMapper.xml | 38 ++++++++ src/main/resources/mappers/IWarnMapper.xml | 39 ++++++++ 66 files changed, 2923 insertions(+) create mode 100644 src/main/java/com/zilber/boot/intelligencesite/controller/IConstructionReportController.java create mode 100644 src/main/java/com/zilber/boot/intelligencesite/controller/IEngineerLogController.java create mode 100644 src/main/java/com/zilber/boot/intelligencesite/controller/IManpowerController.java create mode 100644 src/main/java/com/zilber/boot/intelligencesite/controller/IMaterialsController.java create mode 100644 src/main/java/com/zilber/boot/intelligencesite/controller/IProductionPlanController.java create mode 100644 src/main/java/com/zilber/boot/intelligencesite/controller/IProgressController.java create mode 100644 src/main/java/com/zilber/boot/intelligencesite/controller/IResourceScheduleController.java create mode 100644 src/main/java/com/zilber/boot/intelligencesite/controller/ISafeController.java create mode 100644 src/main/java/com/zilber/boot/intelligencesite/controller/IUserController.java create mode 100644 src/main/java/com/zilber/boot/intelligencesite/controller/IWarnController.java create mode 100644 src/main/java/com/zilber/boot/intelligencesite/entity/IConstructionReport.java create mode 100644 src/main/java/com/zilber/boot/intelligencesite/entity/IEngineerLog.java create mode 100644 src/main/java/com/zilber/boot/intelligencesite/entity/IManpower.java create mode 100644 src/main/java/com/zilber/boot/intelligencesite/entity/IMaterials.java create mode 100644 src/main/java/com/zilber/boot/intelligencesite/entity/IProductionPlan.java create mode 100644 src/main/java/com/zilber/boot/intelligencesite/entity/IProgress.java create mode 100644 src/main/java/com/zilber/boot/intelligencesite/entity/IResourceSchedule.java create mode 100644 src/main/java/com/zilber/boot/intelligencesite/entity/ISafe.java create mode 100644 src/main/java/com/zilber/boot/intelligencesite/entity/IUser.java create mode 100644 src/main/java/com/zilber/boot/intelligencesite/entity/IWarn.java create mode 100644 src/main/java/com/zilber/boot/intelligencesite/mapper/IConstructionReportMapper.java create mode 100644 src/main/java/com/zilber/boot/intelligencesite/mapper/IEngineerLogMapper.java create mode 100644 src/main/java/com/zilber/boot/intelligencesite/mapper/IManpowerMapper.java create mode 100644 src/main/java/com/zilber/boot/intelligencesite/mapper/IMaterialsMapper.java create mode 100644 src/main/java/com/zilber/boot/intelligencesite/mapper/IProductionPlanMapper.java create mode 100644 src/main/java/com/zilber/boot/intelligencesite/mapper/IProgressMapper.java create mode 100644 src/main/java/com/zilber/boot/intelligencesite/mapper/IResourceScheduleMapper.java create mode 100644 src/main/java/com/zilber/boot/intelligencesite/mapper/ISafeMapper.java create mode 100644 src/main/java/com/zilber/boot/intelligencesite/mapper/IUserMapper.java create mode 100644 src/main/java/com/zilber/boot/intelligencesite/mapper/IWarnMapper.java create mode 100644 src/main/java/com/zilber/boot/intelligencesite/service/IIConstructionReportService.java create mode 100644 src/main/java/com/zilber/boot/intelligencesite/service/IIEngineerLogService.java create mode 100644 src/main/java/com/zilber/boot/intelligencesite/service/IIManpowerService.java create mode 100644 src/main/java/com/zilber/boot/intelligencesite/service/IIMaterialsService.java create mode 100644 src/main/java/com/zilber/boot/intelligencesite/service/IIProductionPlanService.java create mode 100644 src/main/java/com/zilber/boot/intelligencesite/service/IIProgressService.java create mode 100644 src/main/java/com/zilber/boot/intelligencesite/service/IIResourceScheduleService.java create mode 100644 src/main/java/com/zilber/boot/intelligencesite/service/IISafeService.java create mode 100644 src/main/java/com/zilber/boot/intelligencesite/service/IIUserService.java create mode 100644 src/main/java/com/zilber/boot/intelligencesite/service/IIWarnService.java create mode 100644 src/main/java/com/zilber/boot/intelligencesite/service/impl/IConstructionReportServiceImpl.java create mode 100644 src/main/java/com/zilber/boot/intelligencesite/service/impl/IEngineerLogServiceImpl.java create mode 100644 src/main/java/com/zilber/boot/intelligencesite/service/impl/IManpowerServiceImpl.java create mode 100644 src/main/java/com/zilber/boot/intelligencesite/service/impl/IMaterialsServiceImpl.java create mode 100644 src/main/java/com/zilber/boot/intelligencesite/service/impl/IProductionPlanServiceImpl.java create mode 100644 src/main/java/com/zilber/boot/intelligencesite/service/impl/IProgressServiceImpl.java create mode 100644 src/main/java/com/zilber/boot/intelligencesite/service/impl/IResourceScheduleServiceImpl.java create mode 100644 src/main/java/com/zilber/boot/intelligencesite/service/impl/ISafeServiceImpl.java create mode 100644 src/main/java/com/zilber/boot/intelligencesite/service/impl/IUserServiceImpl.java create mode 100644 src/main/java/com/zilber/boot/intelligencesite/service/impl/IWarnServiceImpl.java create mode 100644 src/main/java/com/zilber/boot/system/controller/SysDictionaryController.java create mode 100644 src/main/java/com/zilber/boot/system/dao/SysDictionaryMapper.java create mode 100644 src/main/java/com/zilber/boot/system/pojo/SysDictionary.java create mode 100644 src/main/java/com/zilber/boot/system/service/ISysDictionaryService.java create mode 100644 src/main/java/com/zilber/boot/system/service/impl/SysDictionaryServiceImpl.java create mode 100644 src/main/resources/mappers/IConstructionReportMapper.xml create mode 100644 src/main/resources/mappers/IEngineerLogMapper.xml create mode 100644 src/main/resources/mappers/IManpowerMapper.xml create mode 100644 src/main/resources/mappers/IMaterialsMapper.xml create mode 100644 src/main/resources/mappers/IProductionPlanMapper.xml create mode 100644 src/main/resources/mappers/IProgressMapper.xml create mode 100644 src/main/resources/mappers/IResourceScheduleMapper.xml create mode 100644 src/main/resources/mappers/ISafeMapper.xml create mode 100644 src/main/resources/mappers/IUserMapper.xml create mode 100644 src/main/resources/mappers/IWarnMapper.xml diff --git a/src/main/java/com/zilber/boot/intelligencesite/controller/IConstructionReportController.java b/src/main/java/com/zilber/boot/intelligencesite/controller/IConstructionReportController.java new file mode 100644 index 0000000..33b8cf3 --- /dev/null +++ b/src/main/java/com/zilber/boot/intelligencesite/controller/IConstructionReportController.java @@ -0,0 +1,76 @@ +package com.zilber.boot.intelligencesite.controller; + + +import com.github.pagehelper.PageHelper; +import com.github.pagehelper.PageInfo; +import com.zilber.boot.intelligencesite.entity.IConstructionReport; +import com.zilber.boot.intelligencesite.service.IIConstructionReportService; +import com.zilber.boot.utils.AjaxResult; +import io.swagger.annotations.Api; +import io.swagger.annotations.ApiOperation; +import org.springframework.validation.annotation.Validated; +import org.springframework.web.bind.annotation.*; + +import javax.annotation.Resource; +import java.util.List; + +/** + *

+ * 施工报告 前端控制器 + *

+ * + * @author lsc + * @since 2025-05-06 + */ +@RestController +@RequestMapping("/iconstructionreport") +@Api(tags = "施工报告") +public class IConstructionReportController { + + + @Resource + private IIConstructionReportService iiConstructionReportService; + + + @GetMapping("/list") + @ApiOperation(value="分页查询",notes="分页查询") + @ResponseBody + public AjaxResult queryList(IConstructionReport iConstructionReport, @RequestParam(defaultValue = "1") Integer pageNo, + @RequestParam(defaultValue = "10") Integer pageSize) { + PageHelper.startPage(pageNo, pageSize); + List iConstructionReports = iiConstructionReportService.queryList(iConstructionReport); + PageInfo page = new PageInfo<>(iConstructionReports); + return AjaxResult.success(page); + } + + /*** + * 查询单个 + */ + @GetMapping("/getById") + @ApiOperation("查询单个") + public AjaxResult getById(Integer id) { + return AjaxResult.success(iiConstructionReportService.getById(id)); + } + + + @PostMapping("/add") + @ApiOperation("增加") + public AjaxResult add(@RequestBody IConstructionReport iConstructionReport) { + return AjaxResult.success(iiConstructionReportService.save(iConstructionReport)); + } + + + @PutMapping("/update") + @ApiOperation("修改") + public AjaxResult update(@RequestBody @Validated IConstructionReport iConstructionReport) { + iiConstructionReportService.updateById(iConstructionReport); + return AjaxResult.success(); + } + + @DeleteMapping("/delete") + @ApiOperation("删除") + public AjaxResult delete(Integer id) { + return AjaxResult.success(iiConstructionReportService.removeById(id)); + } + +} diff --git a/src/main/java/com/zilber/boot/intelligencesite/controller/IEngineerLogController.java b/src/main/java/com/zilber/boot/intelligencesite/controller/IEngineerLogController.java new file mode 100644 index 0000000..c1ebcb7 --- /dev/null +++ b/src/main/java/com/zilber/boot/intelligencesite/controller/IEngineerLogController.java @@ -0,0 +1,78 @@ +package com.zilber.boot.intelligencesite.controller; + + +import com.github.pagehelper.PageHelper; +import com.github.pagehelper.PageInfo; +import com.zilber.boot.intelligencesite.entity.IConstructionReport; +import com.zilber.boot.intelligencesite.entity.IEngineerLog; +import com.zilber.boot.intelligencesite.service.IIConstructionReportService; +import com.zilber.boot.intelligencesite.service.IIEngineerLogService; +import com.zilber.boot.utils.AjaxResult; +import io.swagger.annotations.Api; +import io.swagger.annotations.ApiOperation; +import org.springframework.validation.annotation.Validated; +import org.springframework.web.bind.annotation.*; + +import javax.annotation.Resource; +import java.util.List; + +/** + *

+ * 工程日志 前端控制器 + *

+ * + * @author lsc + * @since 2025-05-06 + */ +@RestController +@RequestMapping("/iengineerlog") +@Api(tags = "工程日志") +public class IEngineerLogController { + + @Resource + private IIEngineerLogService iiEngineerLogService; + + + @GetMapping("/list") + @ApiOperation(value="分页查询",notes="分页查询") + @ResponseBody + public AjaxResult queryList(IEngineerLog iEngineerLog, @RequestParam(defaultValue = "1") Integer pageNo, + @RequestParam(defaultValue = "10") Integer pageSize) { + PageHelper.startPage(pageNo, pageSize); + List iEngineerLogs = iiEngineerLogService.queryList(iEngineerLog); + PageInfo page = new PageInfo<>(iEngineerLogs); + return AjaxResult.success(page); + } + + /*** + * 查询单个 + */ + @GetMapping("/getById") + @ApiOperation("查询单个") + public AjaxResult getById(Integer id) { + return AjaxResult.success(iiEngineerLogService.getById(id)); + } + + + @PostMapping("/add") + @ApiOperation("增加") + public AjaxResult add(@RequestBody IEngineerLog iEngineerLog) { + return AjaxResult.success(iiEngineerLogService.save(iEngineerLog)); + } + + + @PutMapping("/update") + @ApiOperation("修改") + public AjaxResult update(@RequestBody @Validated IEngineerLog iEngineerLog) { + iiEngineerLogService.updateById(iEngineerLog); + return AjaxResult.success(); + } + + @DeleteMapping("/delete") + @ApiOperation("删除") + public AjaxResult delete(Integer id) { + return AjaxResult.success(iiEngineerLogService.removeById(id)); + } + + +} diff --git a/src/main/java/com/zilber/boot/intelligencesite/controller/IManpowerController.java b/src/main/java/com/zilber/boot/intelligencesite/controller/IManpowerController.java new file mode 100644 index 0000000..344b803 --- /dev/null +++ b/src/main/java/com/zilber/boot/intelligencesite/controller/IManpowerController.java @@ -0,0 +1,77 @@ +package com.zilber.boot.intelligencesite.controller; + + +import com.github.pagehelper.PageHelper; +import com.github.pagehelper.PageInfo; +import com.zilber.boot.intelligencesite.entity.IEngineerLog; +import com.zilber.boot.intelligencesite.entity.IManpower; +import com.zilber.boot.intelligencesite.service.IIEngineerLogService; +import com.zilber.boot.intelligencesite.service.IIManpowerService; +import com.zilber.boot.utils.AjaxResult; +import io.swagger.annotations.Api; +import io.swagger.annotations.ApiOperation; +import org.springframework.validation.annotation.Validated; +import org.springframework.web.bind.annotation.*; + +import javax.annotation.Resource; +import java.util.List; + +/** + *

+ * 人力信息表 前端控制器 + *

+ * + * @author lsc + * @since 2025-05-06 + */ +@RestController +@RequestMapping("/imanpower") +@Api(tags = "人力信息") +public class IManpowerController { + + @Resource + private IIManpowerService iiManpowerService; + + @GetMapping("/list") + @ApiOperation(value="分页查询",notes="分页查询") + @ResponseBody + public AjaxResult queryList(IManpower iManpower, @RequestParam(defaultValue = "1") Integer pageNo, + @RequestParam(defaultValue = "10") Integer pageSize) { + PageHelper.startPage(pageNo, pageSize); + List iManpowers = iiManpowerService.queryList(iManpower); + PageInfo page = new PageInfo<>(iManpowers); + return AjaxResult.success(page); + } + + /*** + * 查询单个 + */ + @GetMapping("/getById") + @ApiOperation("查询单个") + public AjaxResult getById(Integer id) { + return AjaxResult.success(iiManpowerService.getById(id)); + } + + + @PostMapping("/add") + @ApiOperation("增加") + public AjaxResult add(@RequestBody IManpower iManpower) { + return AjaxResult.success(iiManpowerService.save(iManpower)); + } + + + @PutMapping("/update") + @ApiOperation("修改") + public AjaxResult update(@RequestBody @Validated IManpower iManpower) { + iiManpowerService.updateById(iManpower); + return AjaxResult.success(); + } + + @DeleteMapping("/delete") + @ApiOperation("删除") + public AjaxResult delete(Integer id) { + return AjaxResult.success(iiManpowerService.removeById(id)); + } + + +} diff --git a/src/main/java/com/zilber/boot/intelligencesite/controller/IMaterialsController.java b/src/main/java/com/zilber/boot/intelligencesite/controller/IMaterialsController.java new file mode 100644 index 0000000..24ae664 --- /dev/null +++ b/src/main/java/com/zilber/boot/intelligencesite/controller/IMaterialsController.java @@ -0,0 +1,76 @@ +package com.zilber.boot.intelligencesite.controller; + + +import com.github.pagehelper.PageHelper; +import com.github.pagehelper.PageInfo; +import com.zilber.boot.intelligencesite.entity.IManpower; +import com.zilber.boot.intelligencesite.entity.IMaterials; +import com.zilber.boot.intelligencesite.service.IIManpowerService; +import com.zilber.boot.intelligencesite.service.IIMaterialsService; +import com.zilber.boot.utils.AjaxResult; +import io.swagger.annotations.Api; +import io.swagger.annotations.ApiOperation; +import org.springframework.validation.annotation.Validated; +import org.springframework.web.bind.annotation.*; + +import javax.annotation.Resource; +import java.util.List; + +/** + *

+ * 材料信息表 前端控制器 + *

+ * + * @author lsc + * @since 2025-05-06 + */ +@RestController +@RequestMapping("/imaterials") +@Api(tags = "材料信息") +public class IMaterialsController { + + @Resource + private IIMaterialsService iiMaterialsService; + + @GetMapping("/list") + @ApiOperation(value="分页查询",notes="分页查询") + @ResponseBody + public AjaxResult queryList(IMaterials iMaterials, @RequestParam(defaultValue = "1") Integer pageNo, + @RequestParam(defaultValue = "10") Integer pageSize) { + PageHelper.startPage(pageNo, pageSize); + List iMaterials1 = iiMaterialsService.queryList(iMaterials); + PageInfo page = new PageInfo<>(iMaterials1); + return AjaxResult.success(page); + } + + /*** + * 查询单个 + */ + @GetMapping("/getById") + @ApiOperation("查询单个") + public AjaxResult getById(Integer id) { + return AjaxResult.success(iiMaterialsService.getById(id)); + } + + + @PostMapping("/add") + @ApiOperation("增加") + public AjaxResult add(@RequestBody IMaterials iMaterials) { + return AjaxResult.success(iiMaterialsService.save(iMaterials)); + } + + + @PutMapping("/update") + @ApiOperation("修改") + public AjaxResult update(@RequestBody @Validated IMaterials iMaterials) { + iiMaterialsService.updateById(iMaterials); + return AjaxResult.success(); + } + + @DeleteMapping("/delete") + @ApiOperation("删除") + public AjaxResult delete(Integer id) { + return AjaxResult.success(iiMaterialsService.removeById(id)); + } + +} diff --git a/src/main/java/com/zilber/boot/intelligencesite/controller/IProductionPlanController.java b/src/main/java/com/zilber/boot/intelligencesite/controller/IProductionPlanController.java new file mode 100644 index 0000000..70986ad --- /dev/null +++ b/src/main/java/com/zilber/boot/intelligencesite/controller/IProductionPlanController.java @@ -0,0 +1,90 @@ +package com.zilber.boot.intelligencesite.controller; + + +import com.github.pagehelper.PageHelper; +import com.github.pagehelper.PageInfo; +import com.zilber.boot.intelligencesite.entity.IMaterials; +import com.zilber.boot.intelligencesite.entity.IProductionPlan; +import com.zilber.boot.intelligencesite.service.IIMaterialsService; +import com.zilber.boot.intelligencesite.service.IIProductionPlanService; +import com.zilber.boot.utils.AjaxResult; +import io.swagger.annotations.Api; +import io.swagger.annotations.ApiOperation; +import org.springframework.validation.annotation.Validated; +import org.springframework.web.bind.annotation.*; + +import javax.annotation.Resource; +import java.util.List; + +/** + *

+ * 生产计划表 前端控制器 + *

+ * + * @author lsc + * @since 2025-05-06 + */ +@RestController +@RequestMapping("/iproductionplan") +@Api(tags = "生产计划") +public class IProductionPlanController { + + @Resource + private IIProductionPlanService iiProductionPlanService; + + + @GetMapping("/list") + @ApiOperation(value="分页查询",notes="分页查询") + @ResponseBody + public AjaxResult queryList(IProductionPlan iProductionPlan, @RequestParam(defaultValue = "1") Integer pageNo, + @RequestParam(defaultValue = "10") Integer pageSize) { + PageHelper.startPage(pageNo, pageSize); + List iProductionPlans = iiProductionPlanService.queryList(iProductionPlan); + PageInfo page = new PageInfo<>(iProductionPlans); + return AjaxResult.success(page); + } + + /*** + * 查询单个 + */ + @GetMapping("/getById") + @ApiOperation("查询单个") + public AjaxResult getById(Integer id) { + return AjaxResult.success(iiProductionPlanService.getById(id)); + } + + + @PostMapping("/add") + @ApiOperation("增加") + public AjaxResult add(@RequestBody IProductionPlan iProductionPlan) { + return AjaxResult.success(iiProductionPlanService.save(iProductionPlan)); + } + + + @PutMapping("/update") + @ApiOperation("修改") + public AjaxResult update(@RequestBody @Validated IProductionPlan iProductionPlan) { + iiProductionPlanService.updateById(iProductionPlan); + return AjaxResult.success(); + } + + @DeleteMapping("/delete") + @ApiOperation("删除") + public AjaxResult delete(Integer id) { + return AjaxResult.success(iiProductionPlanService.removeById(id)); + } + + + @GetMapping("/statistics") + @ApiOperation("自动统计计划进度与实际进度") + public AjaxResult statistics() { + return AjaxResult.success(iiProductionPlanService.statistics()); + } + + @GetMapping("/querywarn") + @ApiOperation("预警提示") + public AjaxResult querywarn(Integer day) { + return AjaxResult.success(iiProductionPlanService.querywarn(day)); + } + +} diff --git a/src/main/java/com/zilber/boot/intelligencesite/controller/IProgressController.java b/src/main/java/com/zilber/boot/intelligencesite/controller/IProgressController.java new file mode 100644 index 0000000..53dd5ba --- /dev/null +++ b/src/main/java/com/zilber/boot/intelligencesite/controller/IProgressController.java @@ -0,0 +1,75 @@ +package com.zilber.boot.intelligencesite.controller; + + +import com.github.pagehelper.PageHelper; +import com.github.pagehelper.PageInfo; +import com.zilber.boot.intelligencesite.entity.IProgress; +import com.zilber.boot.intelligencesite.service.IIProgressService; +import com.zilber.boot.utils.AjaxResult; +import io.swagger.annotations.Api; +import io.swagger.annotations.ApiOperation; +import org.springframework.validation.annotation.Validated; +import org.springframework.web.bind.annotation.*; + +import javax.annotation.Resource; +import java.util.List; + +/** + *

+ * 进度跟踪表 前端控制器 + *

+ * + * @author lsc + * @since 2025-05-06 + */ +@RestController +@RequestMapping("/iprogress") +@Api(tags = "进度跟踪") +public class IProgressController { + + @Resource + private IIProgressService iiProgressService; + + + @GetMapping("/list") + @ApiOperation(value="分页查询",notes="分页查询") + @ResponseBody + public AjaxResult queryList(IProgress iProgress, @RequestParam(defaultValue = "1") Integer pageNo, + @RequestParam(defaultValue = "10") Integer pageSize) { + PageHelper.startPage(pageNo, pageSize); + List iProgresses = iiProgressService.queryList(iProgress); + PageInfo page = new PageInfo<>(iProgresses); + return AjaxResult.success(page); + } + + /*** + * 查询单个 + */ + @GetMapping("/getById") + @ApiOperation("查询单个") + public AjaxResult getById(Integer id) { + return AjaxResult.success(iiProgressService.getById(id)); + } + + + @PostMapping("/add") + @ApiOperation("增加") + public AjaxResult add(@RequestBody IProgress iProgress) { + return AjaxResult.success(iiProgressService.add(iProgress)); + } + + + @PutMapping("/update") + @ApiOperation("修改") + public AjaxResult update(@RequestBody @Validated IProgress iProgress) { + iiProgressService.updateById(iProgress); + return AjaxResult.success(); + } + + @DeleteMapping("/delete") + @ApiOperation("删除") + public AjaxResult delete(Integer id) { + return AjaxResult.success(iiProgressService.removeById(id)); + } + +} diff --git a/src/main/java/com/zilber/boot/intelligencesite/controller/IResourceScheduleController.java b/src/main/java/com/zilber/boot/intelligencesite/controller/IResourceScheduleController.java new file mode 100644 index 0000000..458a746 --- /dev/null +++ b/src/main/java/com/zilber/boot/intelligencesite/controller/IResourceScheduleController.java @@ -0,0 +1,74 @@ +package com.zilber.boot.intelligencesite.controller; + + +import com.github.pagehelper.PageHelper; +import com.github.pagehelper.PageInfo; +import com.zilber.boot.intelligencesite.entity.IResourceSchedule; +import com.zilber.boot.intelligencesite.service.IIResourceScheduleService; +import com.zilber.boot.utils.AjaxResult; +import io.swagger.annotations.Api; +import io.swagger.annotations.ApiOperation; +import org.springframework.validation.annotation.Validated; +import org.springframework.web.bind.annotation.*; + +import javax.annotation.Resource; +import java.util.List; + +/** + *

+ * 资源调度表 前端控制器 + *

+ * + * @author lsc + * @since 2025-05-06 + */ +@RestController +@RequestMapping("/iresourceschedule") +@Api(tags = "资源调度") +public class IResourceScheduleController { + @Resource + private IIResourceScheduleService iiResourceScheduleService; + + + @GetMapping("/list") + @ApiOperation(value="分页查询",notes="分页查询") + @ResponseBody + public AjaxResult queryList(IResourceSchedule iResourceSchedule, @RequestParam(defaultValue = "1") Integer pageNo, + @RequestParam(defaultValue = "10") Integer pageSize) { + PageHelper.startPage(pageNo, pageSize); + List iResourceSchedules = iiResourceScheduleService.queryList(iResourceSchedule); + PageInfo page = new PageInfo<>(iResourceSchedules); + return AjaxResult.success(page); + } + + /*** + * 查询单个 + */ + @GetMapping("/getById") + @ApiOperation("查询单个") + public AjaxResult getById(Integer id) { + return AjaxResult.success(iiResourceScheduleService.getById(id)); + } + + + @PostMapping("/add") + @ApiOperation("增加") + public AjaxResult add(@RequestBody IResourceSchedule iResourceSchedule) { + return AjaxResult.success(iiResourceScheduleService.save(iResourceSchedule)); + } + + + @PutMapping("/update") + @ApiOperation("修改") + public AjaxResult update(@RequestBody @Validated IResourceSchedule iResourceSchedule) { + iiResourceScheduleService.updateById(iResourceSchedule); + return AjaxResult.success(); + } + + @DeleteMapping("/delete") + @ApiOperation("删除") + public AjaxResult delete(Integer id) { + return AjaxResult.success(iiResourceScheduleService.removeById(id)); + } + +} diff --git a/src/main/java/com/zilber/boot/intelligencesite/controller/ISafeController.java b/src/main/java/com/zilber/boot/intelligencesite/controller/ISafeController.java new file mode 100644 index 0000000..ae69326 --- /dev/null +++ b/src/main/java/com/zilber/boot/intelligencesite/controller/ISafeController.java @@ -0,0 +1,77 @@ +package com.zilber.boot.intelligencesite.controller; + + +import com.github.pagehelper.PageHelper; +import com.github.pagehelper.PageInfo; +import com.zilber.boot.intelligencesite.entity.IResourceSchedule; +import com.zilber.boot.intelligencesite.entity.ISafe; +import com.zilber.boot.intelligencesite.service.IIResourceScheduleService; +import com.zilber.boot.intelligencesite.service.IISafeService; +import com.zilber.boot.utils.AjaxResult; +import io.swagger.annotations.Api; +import io.swagger.annotations.ApiOperation; +import org.springframework.validation.annotation.Validated; +import org.springframework.web.bind.annotation.*; + +import javax.annotation.Resource; +import java.util.List; + +/** + *

+ * 安全教育 前端控制器 + *

+ * + * @author lsc + * @since 2025-05-06 + */ +@RestController +@RequestMapping("/isafe") +@Api(tags = "安全教育") +public class ISafeController { + + @Resource + private IISafeService IISafeService; + + + @GetMapping("/list") + @ApiOperation(value="分页查询",notes="分页查询") + @ResponseBody + public AjaxResult queryList(ISafe iSafe, @RequestParam(defaultValue = "1") Integer pageNo, + @RequestParam(defaultValue = "10") Integer pageSize) { + PageHelper.startPage(pageNo, pageSize); + List iSafes = IISafeService.queryList(iSafe); + PageInfo page = new PageInfo<>(iSafes); + return AjaxResult.success(page); + } + + /*** + * 查询单个 + */ + @GetMapping("/getById") + @ApiOperation("查询单个") + public AjaxResult getById(Integer id) { + return AjaxResult.success(IISafeService.getById(id)); + } + + + @PostMapping("/add") + @ApiOperation("增加") + public AjaxResult add(@RequestBody ISafe iSafe) { + return AjaxResult.success(IISafeService.save(iSafe)); + } + + + @PutMapping("/update") + @ApiOperation("修改") + public AjaxResult update(@RequestBody @Validated ISafe iSafe) { + IISafeService.updateById(iSafe); + return AjaxResult.success(); + } + + @DeleteMapping("/delete") + @ApiOperation("删除") + public AjaxResult delete(Integer id) { + return AjaxResult.success(IISafeService.removeById(id)); + } + +} diff --git a/src/main/java/com/zilber/boot/intelligencesite/controller/IUserController.java b/src/main/java/com/zilber/boot/intelligencesite/controller/IUserController.java new file mode 100644 index 0000000..06ae267 --- /dev/null +++ b/src/main/java/com/zilber/boot/intelligencesite/controller/IUserController.java @@ -0,0 +1,77 @@ +package com.zilber.boot.intelligencesite.controller; + + +import com.github.pagehelper.PageHelper; +import com.github.pagehelper.PageInfo; +import com.zilber.boot.intelligencesite.entity.ISafe; +import com.zilber.boot.intelligencesite.entity.IUser; +import com.zilber.boot.intelligencesite.service.IISafeService; +import com.zilber.boot.intelligencesite.service.IIUserService; +import com.zilber.boot.utils.AjaxResult; +import io.swagger.annotations.Api; +import io.swagger.annotations.ApiOperation; +import org.springframework.validation.annotation.Validated; +import org.springframework.web.bind.annotation.*; + +import javax.annotation.Resource; +import java.util.List; + +/** + *

+ * 实名制与信息管理 前端控制器 + *

+ * + * @author lsc + * @since 2025-05-06 + */ +@RestController +@RequestMapping("/iuser") +@Api(tags = "实名制与信息管理") +public class IUserController { + + @Resource + private IIUserService iiUserService; + + + @GetMapping("/list") + @ApiOperation(value="分页查询",notes="分页查询") + @ResponseBody + public AjaxResult queryList(IUser iUser, @RequestParam(defaultValue = "1") Integer pageNo, + @RequestParam(defaultValue = "10") Integer pageSize) { + PageHelper.startPage(pageNo, pageSize); + List iUsers = iiUserService.queryList(iUser); + PageInfo page = new PageInfo<>(iUsers); + return AjaxResult.success(page); + } + + /*** + * 查询单个 + */ + @GetMapping("/getById") + @ApiOperation("查询单个") + public AjaxResult getById(Integer id) { + return AjaxResult.success(iiUserService.getById(id)); + } + + + @PostMapping("/add") + @ApiOperation("增加") + public AjaxResult add(@RequestBody IUser iUser) { + return AjaxResult.success(iiUserService.save(iUser)); + } + + + @PutMapping("/update") + @ApiOperation("修改") + public AjaxResult update(@RequestBody @Validated IUser iUser) { + iiUserService.updateById(iUser); + return AjaxResult.success(); + } + + @DeleteMapping("/delete") + @ApiOperation("删除") + public AjaxResult delete(Integer id) { + return AjaxResult.success(iiUserService.removeById(id)); + } + +} diff --git a/src/main/java/com/zilber/boot/intelligencesite/controller/IWarnController.java b/src/main/java/com/zilber/boot/intelligencesite/controller/IWarnController.java new file mode 100644 index 0000000..1ef1080 --- /dev/null +++ b/src/main/java/com/zilber/boot/intelligencesite/controller/IWarnController.java @@ -0,0 +1,78 @@ +package com.zilber.boot.intelligencesite.controller; + + +import com.github.pagehelper.PageHelper; +import com.github.pagehelper.PageInfo; +import com.zilber.boot.intelligencesite.entity.IUser; +import com.zilber.boot.intelligencesite.entity.IWarn; +import com.zilber.boot.intelligencesite.service.IIUserService; +import com.zilber.boot.intelligencesite.service.IIWarnService; +import com.zilber.boot.utils.AjaxResult; +import io.swagger.annotations.Api; +import io.swagger.annotations.ApiOperation; +import org.springframework.validation.annotation.Validated; +import org.springframework.web.bind.annotation.*; + +import javax.annotation.Resource; +import java.util.List; + +/** + *

+ * 预警表 前端控制器 + *

+ * + * @author lsc + * @since 2025-05-06 + */ +@RestController +@RequestMapping("/iwarn") +@Api(tags = "预警") +public class IWarnController { + + @Resource + private IIWarnService iiWarnService; + + + @GetMapping("/list") + @ApiOperation(value="分页查询",notes="分页查询") + @ResponseBody + public AjaxResult queryList(IWarn iWarn, @RequestParam(defaultValue = "1") Integer pageNo, + @RequestParam(defaultValue = "10") Integer pageSize) { + PageHelper.startPage(pageNo, pageSize); + List iWarns = iiWarnService.queryList(iWarn); + PageInfo page = new PageInfo<>(iWarns); + return AjaxResult.success(page); + } + + /*** + * 查询单个 + */ + @GetMapping("/getById") + @ApiOperation("查询单个") + public AjaxResult getById(Integer id) { + return AjaxResult.success(iiWarnService.getById(id)); + } + + + @PostMapping("/add") + @ApiOperation("增加") + public AjaxResult add(@RequestBody IWarn iWarn) { + return AjaxResult.success(iiWarnService.save(iWarn)); + } + + + @PutMapping("/update") + @ApiOperation("修改") + public AjaxResult update(@RequestBody @Validated IWarn iWarn) { + iiWarnService.updateById(iWarn); + return AjaxResult.success(); + } + + @DeleteMapping("/delete") + @ApiOperation("删除") + public AjaxResult delete(Integer id) { + return AjaxResult.success(iiWarnService.removeById(id)); + } + + +} diff --git a/src/main/java/com/zilber/boot/intelligencesite/entity/IConstructionReport.java b/src/main/java/com/zilber/boot/intelligencesite/entity/IConstructionReport.java new file mode 100644 index 0000000..2d15f63 --- /dev/null +++ b/src/main/java/com/zilber/boot/intelligencesite/entity/IConstructionReport.java @@ -0,0 +1,78 @@ +package com.zilber.boot.intelligencesite.entity; + +import com.baomidou.mybatisplus.annotation.TableName; +import com.baomidou.mybatisplus.annotation.IdType; +import com.baomidou.mybatisplus.annotation.TableId; +import java.time.LocalDateTime; +import java.io.Serializable; + +import com.fasterxml.jackson.annotation.JsonFormat; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import lombok.Data; +import lombok.EqualsAndHashCode; +import lombok.experimental.Accessors; +import org.springframework.format.annotation.DateTimeFormat; + +/** + *

+ * 施工报告 + *

+ * + * @author lsc + * @since 2025-05-06 + */ +@Data +@EqualsAndHashCode(callSuper = false) +@Accessors(chain = true) +@TableName("i_construction_report") +@ApiModel(value="IConstructionReport对象", description="施工报告") +public class IConstructionReport implements Serializable { + + private static final long serialVersionUID = 1L; + + @TableId(value = "id", type = IdType.AUTO) + private Long id; + + @ApiModelProperty(value = "报告日期") + @DateTimeFormat(pattern = "yyyy-MM-dd") + @JsonFormat(pattern = "yyyy-MM-dd") + private LocalDateTime date; + + @ApiModelProperty(value = "报告周期") + private String cycle; + + @ApiModelProperty(value = "计划id") + private Long planId; + + @ApiModelProperty(value = "计划名称") + private String planName; + + @ApiModelProperty(value = "总体进度") + private String totalProgress; + + @ApiModelProperty(value = "人力投入") + private String manpower; + + @ApiModelProperty(value = "材料使用") + private String materialsUse; + + @ApiModelProperty(value = "机械设备运行") + private String equipmentOperation; + + @ApiModelProperty(value = "质量安全") + private String qs; + + @ApiModelProperty(value = "建议") + private String advise; + + @ApiModelProperty(value = "创建时间") + @DateTimeFormat(pattern = "yyyy-MM-dd") + @JsonFormat(pattern = "yyyy-MM-dd") + private LocalDateTime createTime; + + @ApiModelProperty(value = "创建人") + private String creator; + + +} diff --git a/src/main/java/com/zilber/boot/intelligencesite/entity/IEngineerLog.java b/src/main/java/com/zilber/boot/intelligencesite/entity/IEngineerLog.java new file mode 100644 index 0000000..6a882f4 --- /dev/null +++ b/src/main/java/com/zilber/boot/intelligencesite/entity/IEngineerLog.java @@ -0,0 +1,75 @@ +package com.zilber.boot.intelligencesite.entity; + +import com.baomidou.mybatisplus.annotation.TableName; +import com.baomidou.mybatisplus.annotation.IdType; +import com.baomidou.mybatisplus.annotation.TableId; +import java.time.LocalDateTime; +import java.io.Serializable; + +import com.fasterxml.jackson.annotation.JsonFormat; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import lombok.Data; +import lombok.EqualsAndHashCode; +import lombok.experimental.Accessors; +import org.springframework.format.annotation.DateTimeFormat; + +/** + *

+ * 工程日志 + *

+ * + * @author lsc + * @since 2025-05-06 + */ +@Data +@EqualsAndHashCode(callSuper = false) +@Accessors(chain = true) +@TableName("i_engineer_log") +@ApiModel(value="IEngineerLog对象", description="工程日志") +public class IEngineerLog implements Serializable { + + private static final long serialVersionUID = 1L; + + @TableId(value = "id", type = IdType.AUTO) + private Long id; + + @ApiModelProperty(value = "日期") + @DateTimeFormat(pattern = "yyyy-MM-dd") + @JsonFormat(pattern = "yyyy-MM-dd") + private LocalDateTime date; + + @ApiModelProperty(value = "天气") + private String weather; + + + @ApiModelProperty(value = "温度") + private String temperature; + + @ApiModelProperty(value = "风力") + private String wind; + + @ApiModelProperty(value = "现场负责人姓名") + private String principalName; + + + @ApiModelProperty(value = "现场负责人联系方式") + private String principalTel; + + + @ApiModelProperty(value = "施工情况") + private String constructionSituation; + + @ApiModelProperty(value = "其他事项") + private String otherBusiness; + + @ApiModelProperty(value = "创建时间") + @DateTimeFormat(pattern = "yyyy-MM-dd") + @JsonFormat(pattern = "yyyy-MM-dd") + private LocalDateTime createTime; + + @ApiModelProperty(value = "创建人") + private String creator; + + +} diff --git a/src/main/java/com/zilber/boot/intelligencesite/entity/IManpower.java b/src/main/java/com/zilber/boot/intelligencesite/entity/IManpower.java new file mode 100644 index 0000000..c3ec382 --- /dev/null +++ b/src/main/java/com/zilber/boot/intelligencesite/entity/IManpower.java @@ -0,0 +1,67 @@ +package com.zilber.boot.intelligencesite.entity; + +import com.baomidou.mybatisplus.annotation.TableName; +import com.baomidou.mybatisplus.annotation.IdType; +import com.baomidou.mybatisplus.annotation.TableId; +import java.time.LocalDateTime; +import java.io.Serializable; + +import com.fasterxml.jackson.annotation.JsonFormat; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import lombok.Data; +import lombok.EqualsAndHashCode; +import lombok.experimental.Accessors; +import org.springframework.format.annotation.DateTimeFormat; + +/** + *

+ * 人力信息表 + *

+ * + * @author lsc + * @since 2025-05-06 + */ +@Data +@EqualsAndHashCode(callSuper = false) +@Accessors(chain = true) +@TableName("i_manpower") +@ApiModel(value="IManpower对象", description="人力信息表") +public class IManpower implements Serializable { + + private static final long serialVersionUID = 1L; + + @TableId(value = "id", type = IdType.AUTO) + private Long id; + + @ApiModelProperty(value = "姓名") + private String name; + + @ApiModelProperty(value = "工种") + private String workType; + + @ApiModelProperty(value = "数量") + private Integer quantity; + + + @ApiModelProperty(value = "计划投入时间") + private Integer planDevoteTime; + + @ApiModelProperty(value = "实际投入时间") + private Integer actualDevoteTime; + + @ApiModelProperty(value = "预计离场时间") + @DateTimeFormat(pattern = "yyyy-MM-dd") + @JsonFormat(pattern = "yyyy-MM-dd") + private LocalDateTime leaveTime; + + @ApiModelProperty(value = "创建时间") + @DateTimeFormat(pattern = "yyyy-MM-dd") + @JsonFormat(pattern = "yyyy-MM-dd") + private LocalDateTime createTime; + + @ApiModelProperty(value = "创建人") + private String creator; + + +} diff --git a/src/main/java/com/zilber/boot/intelligencesite/entity/IMaterials.java b/src/main/java/com/zilber/boot/intelligencesite/entity/IMaterials.java new file mode 100644 index 0000000..2c1d6cb --- /dev/null +++ b/src/main/java/com/zilber/boot/intelligencesite/entity/IMaterials.java @@ -0,0 +1,77 @@ +package com.zilber.boot.intelligencesite.entity; + +import com.baomidou.mybatisplus.annotation.TableName; +import com.baomidou.mybatisplus.annotation.IdType; +import com.baomidou.mybatisplus.annotation.TableId; +import java.time.LocalDateTime; +import java.io.Serializable; + +import com.fasterxml.jackson.annotation.JsonFormat; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import lombok.Data; +import lombok.EqualsAndHashCode; +import lombok.experimental.Accessors; +import org.springframework.format.annotation.DateTimeFormat; + +/** + *

+ * 材料信息表 + *

+ * + * @author lsc + * @since 2025-05-06 + */ +@Data +@EqualsAndHashCode(callSuper = false) +@Accessors(chain = true) +@TableName("i_materials") +@ApiModel(value="IMaterials对象", description="材料信息表") +public class IMaterials implements Serializable { + + private static final long serialVersionUID = 1L; + + @TableId(value = "id", type = IdType.AUTO) + private Long id; + + @ApiModelProperty(value = "材料名称") + private String name; + + @ApiModelProperty(value = "规格型号") + private String specification; + + @ApiModelProperty(value = "单位") + private String unit; + + @ApiModelProperty(value = "计划需求量") + private Integer planNeed; + + @ApiModelProperty(value = "实际进厂量") + private Integer actualIn; + + @ApiModelProperty(value = "剩余量") + private Integer surplus; + + @ApiModelProperty(value = "供应商名称") + private String supplierName; + + @ApiModelProperty(value = "采购时间") + @DateTimeFormat(pattern = "yyyy-MM-dd") + @JsonFormat(pattern = "yyyy-MM-dd") + private LocalDateTime purchaseTime; + + @ApiModelProperty(value = "预计使用时间") + @DateTimeFormat(pattern = "yyyy-MM-dd") + @JsonFormat(pattern = "yyyy-MM-dd") + private LocalDateTime planUseTime; + + @ApiModelProperty(value = "创建时间") + @DateTimeFormat(pattern = "yyyy-MM-dd") + @JsonFormat(pattern = "yyyy-MM-dd") + private LocalDateTime createTime; + + @ApiModelProperty(value = "创建人") + private String creator; + + +} diff --git a/src/main/java/com/zilber/boot/intelligencesite/entity/IProductionPlan.java b/src/main/java/com/zilber/boot/intelligencesite/entity/IProductionPlan.java new file mode 100644 index 0000000..42abb85 --- /dev/null +++ b/src/main/java/com/zilber/boot/intelligencesite/entity/IProductionPlan.java @@ -0,0 +1,77 @@ +package com.zilber.boot.intelligencesite.entity; + +import com.baomidou.mybatisplus.annotation.TableName; +import com.baomidou.mybatisplus.annotation.IdType; +import com.baomidou.mybatisplus.annotation.TableId; +import java.time.LocalDateTime; +import java.io.Serializable; +import java.util.Date; + +import com.fasterxml.jackson.annotation.JsonFormat; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import lombok.Data; +import lombok.EqualsAndHashCode; +import lombok.experimental.Accessors; +import org.springframework.format.annotation.DateTimeFormat; + +/** + *

+ * 生产计划表 + *

+ * + * @author lsc + * @since 2025-05-06 + */ +@Data +@EqualsAndHashCode(callSuper = false) +@Accessors(chain = true) +@TableName("i_production_plan") +@ApiModel(value="IProductionPlan对象", description="生产计划表") +public class IProductionPlan implements Serializable { + + private static final long serialVersionUID = 1L; + + @TableId(value = "id", type = IdType.AUTO) + private Long id; + + @ApiModelProperty(value = "计划名称") + private String planName; + + @ApiModelProperty(value = "所属项目阶段") + private String projectStage; + + @ApiModelProperty(value = "计划描述") + private String description; + + @ApiModelProperty(value = "计划开始时间") + @DateTimeFormat(pattern = "yyyy-MM-dd") + @JsonFormat(pattern = "yyyy-MM-dd") + private Date startTime; + + @ApiModelProperty(value = "计划结束时间") + @DateTimeFormat(pattern = "yyyy-MM-dd") + @JsonFormat(pattern = "yyyy-MM-dd") + private Date endTime; + + @ApiModelProperty(value = "创建时间") + @DateTimeFormat(pattern = "yyyy-MM-dd") + @JsonFormat(pattern = "yyyy-MM-dd") + private Date createTime; + + @ApiModelProperty(value = "创建人") + private String creator; + + @ApiModelProperty(value = "总工期天数") + private Integer duration; + + @ApiModelProperty(value = "关键节点时间") + @DateTimeFormat(pattern = "yyyy-MM-dd") + @JsonFormat(pattern = "yyyy-MM-dd") + private LocalDateTime keystageTime; + + @ApiModelProperty(value = "计划负责人") + private String principal; + + +} diff --git a/src/main/java/com/zilber/boot/intelligencesite/entity/IProgress.java b/src/main/java/com/zilber/boot/intelligencesite/entity/IProgress.java new file mode 100644 index 0000000..32938b3 --- /dev/null +++ b/src/main/java/com/zilber/boot/intelligencesite/entity/IProgress.java @@ -0,0 +1,58 @@ +package com.zilber.boot.intelligencesite.entity; + +import com.baomidou.mybatisplus.annotation.TableName; +import com.baomidou.mybatisplus.annotation.IdType; +import com.baomidou.mybatisplus.annotation.TableId; +import java.time.LocalDateTime; +import java.io.Serializable; + +import com.fasterxml.jackson.annotation.JsonFormat; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import lombok.Data; +import lombok.EqualsAndHashCode; +import lombok.experimental.Accessors; +import org.springframework.format.annotation.DateTimeFormat; + +/** + *

+ * 进度跟踪表 + *

+ * + * @author lsc + * @since 2025-05-06 + */ +@Data +@EqualsAndHashCode(callSuper = false) +@Accessors(chain = true) +@TableName("i_progress") +@ApiModel(value="IProgress对象", description="进度跟踪表") +public class IProgress implements Serializable { + + private static final long serialVersionUID = 1L; + + @TableId(value = "id", type = IdType.AUTO) + private Long id; + + @ApiModelProperty(value = "计划id") + private Long planId; + + @ApiModelProperty(value = "计划名称") + private String planName; + + @ApiModelProperty(value = "当日完成进度") + private Integer dayProgress; + + @ApiModelProperty(value = "累计完成进度") + private Integer accumulativeProgress; + + @ApiModelProperty(value = "创建时间") + @DateTimeFormat(pattern = "yyyy-MM-dd") + @JsonFormat(pattern = "yyyy-MM-dd") + private LocalDateTime createTime; + + @ApiModelProperty(value = "创建人") + private String creator; + + +} diff --git a/src/main/java/com/zilber/boot/intelligencesite/entity/IResourceSchedule.java b/src/main/java/com/zilber/boot/intelligencesite/entity/IResourceSchedule.java new file mode 100644 index 0000000..88f5294 --- /dev/null +++ b/src/main/java/com/zilber/boot/intelligencesite/entity/IResourceSchedule.java @@ -0,0 +1,68 @@ +package com.zilber.boot.intelligencesite.entity; + +import com.baomidou.mybatisplus.annotation.TableName; +import com.baomidou.mybatisplus.annotation.IdType; +import com.baomidou.mybatisplus.annotation.TableId; +import java.time.LocalDateTime; +import java.io.Serializable; + +import com.fasterxml.jackson.annotation.JsonFormat; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import lombok.Data; +import lombok.EqualsAndHashCode; +import lombok.experimental.Accessors; +import org.springframework.format.annotation.DateTimeFormat; + +/** + *

+ * 资源调度表 + *

+ * + * @author lsc + * @since 2025-05-06 + */ +@Data +@EqualsAndHashCode(callSuper = false) +@Accessors(chain = true) +@TableName("i_resource_schedule") +@ApiModel(value="IResourceSchedule对象", description="资源调度表") +public class IResourceSchedule implements Serializable { + + private static final long serialVersionUID = 1L; + + @TableId(value = "id", type = IdType.AUTO) + private Long id; + + @ApiModelProperty(value = "计划id") + private Long planId; + + @ApiModelProperty(value = "计划名称") + private String planName; + + @ApiModelProperty(value = "计划开始时间") + @DateTimeFormat(pattern = "yyyy-MM-dd") + @JsonFormat(pattern = "yyyy-MM-dd") + private LocalDateTime startTime; + + @ApiModelProperty(value = "计划结束时间") + @DateTimeFormat(pattern = "yyyy-MM-dd") + @JsonFormat(pattern = "yyyy-MM-dd") + private LocalDateTime endTime; + + @ApiModelProperty(value = "创建时间") + @DateTimeFormat(pattern = "yyyy-MM-dd") + @JsonFormat(pattern = "yyyy-MM-dd") + private LocalDateTime createTime; + + @ApiModelProperty(value = "创建人") + private String creator; + + @ApiModelProperty(value = "当前进度") + private Integer currentProgress; + + @ApiModelProperty(value = "建议") + private String advise; + + +} diff --git a/src/main/java/com/zilber/boot/intelligencesite/entity/ISafe.java b/src/main/java/com/zilber/boot/intelligencesite/entity/ISafe.java new file mode 100644 index 0000000..e7def42 --- /dev/null +++ b/src/main/java/com/zilber/boot/intelligencesite/entity/ISafe.java @@ -0,0 +1,54 @@ +package com.zilber.boot.intelligencesite.entity; + +import com.baomidou.mybatisplus.annotation.TableName; +import com.baomidou.mybatisplus.annotation.IdType; +import java.time.LocalDateTime; +import com.baomidou.mybatisplus.annotation.TableId; +import java.io.Serializable; + +import com.fasterxml.jackson.annotation.JsonFormat; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import lombok.Data; +import lombok.EqualsAndHashCode; +import lombok.experimental.Accessors; +import org.springframework.format.annotation.DateTimeFormat; + +/** + *

+ * 安全教育 + *

+ * + * @author lsc + * @since 2025-05-06 + */ +@Data +@EqualsAndHashCode(callSuper = false) +@Accessors(chain = true) +@TableName("i_safe") +@ApiModel(value="ISafe对象", description="安全教育") +public class ISafe implements Serializable { + + private static final long serialVersionUID = 1L; + + @TableId(value = "id", type = IdType.AUTO) + private Long id; + + @ApiModelProperty(value = "姓名") + private String name; + + @ApiModelProperty(value = "进项安全教育啥时间") + @DateTimeFormat(pattern = "yyyy-MM-dd") + @JsonFormat(pattern = "yyyy-MM-dd") + private LocalDateTime date; + + @ApiModelProperty(value = "创建时间") + @DateTimeFormat(pattern = "yyyy-MM-dd") + @JsonFormat(pattern = "yyyy-MM-dd") + private LocalDateTime createTime; + + @ApiModelProperty(value = "创建人") + private String creator; + + +} diff --git a/src/main/java/com/zilber/boot/intelligencesite/entity/IUser.java b/src/main/java/com/zilber/boot/intelligencesite/entity/IUser.java new file mode 100644 index 0000000..5e41f41 --- /dev/null +++ b/src/main/java/com/zilber/boot/intelligencesite/entity/IUser.java @@ -0,0 +1,58 @@ +package com.zilber.boot.intelligencesite.entity; + +import com.baomidou.mybatisplus.annotation.TableName; +import com.baomidou.mybatisplus.annotation.IdType; +import com.baomidou.mybatisplus.annotation.TableId; +import java.time.LocalDateTime; +import java.io.Serializable; + +import com.fasterxml.jackson.annotation.JsonFormat; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import lombok.Data; +import lombok.EqualsAndHashCode; +import lombok.experimental.Accessors; +import org.springframework.format.annotation.DateTimeFormat; + +/** + *

+ * 实名制与信息管理 + *

+ * + * @author lsc + * @since 2025-05-06 + */ +@Data +@EqualsAndHashCode(callSuper = false) +@Accessors(chain = true) +@TableName("i_user") +@ApiModel(value="IUser对象", description="实名制与信息管理") +public class IUser implements Serializable { + + private static final long serialVersionUID = 1L; + + @TableId(value = "id", type = IdType.AUTO) + private Long id; + + @ApiModelProperty(value = "姓名") + private String name; + + @ApiModelProperty(value = "联系方式") + private String tel; + + @ApiModelProperty(value = "身份证") + private String idCard; + + @ApiModelProperty(value = "工种") + private String workType; + + @ApiModelProperty(value = "创建时间") + @DateTimeFormat(pattern = "yyyy-MM-dd") + @JsonFormat(pattern = "yyyy-MM-dd") + private LocalDateTime createTime; + + @ApiModelProperty(value = "创建人") + private String creator; + + +} diff --git a/src/main/java/com/zilber/boot/intelligencesite/entity/IWarn.java b/src/main/java/com/zilber/boot/intelligencesite/entity/IWarn.java new file mode 100644 index 0000000..a9fe2f5 --- /dev/null +++ b/src/main/java/com/zilber/boot/intelligencesite/entity/IWarn.java @@ -0,0 +1,61 @@ +package com.zilber.boot.intelligencesite.entity; + +import com.baomidou.mybatisplus.annotation.TableName; +import com.baomidou.mybatisplus.annotation.IdType; +import com.baomidou.mybatisplus.annotation.TableId; +import java.time.LocalDateTime; +import java.io.Serializable; + +import com.fasterxml.jackson.annotation.JsonFormat; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import lombok.Data; +import lombok.EqualsAndHashCode; +import lombok.experimental.Accessors; +import org.springframework.format.annotation.DateTimeFormat; + +/** + *

+ * 预警表 + *

+ * + * @author lsc + * @since 2025-05-06 + */ +@Data +@EqualsAndHashCode(callSuper = false) +@Accessors(chain = true) +@TableName("i_warn") +@ApiModel(value="IWarn对象", description="预警表") +public class IWarn implements Serializable { + + private static final long serialVersionUID = 1L; + + @TableId(value = "id", type = IdType.AUTO) + private Long id; + + @ApiModelProperty(value = "计划id") + private Long planId; + + @ApiModelProperty(value = "计划名称") + private String planName; + + @ApiModelProperty(value = "偏差类型1提前2滞后") + private Integer deviationType; + + @ApiModelProperty(value = "偏差天数") + private Integer deviationDays; + + @ApiModelProperty(value = "预警信息") + private String warnInfo; + + @ApiModelProperty(value = "创建时间") + @DateTimeFormat(pattern = "yyyy-MM-dd") + @JsonFormat(pattern = "yyyy-MM-dd") + private LocalDateTime createTime; + + @ApiModelProperty(value = "创建人") + private String creator; + + +} diff --git a/src/main/java/com/zilber/boot/intelligencesite/mapper/IConstructionReportMapper.java b/src/main/java/com/zilber/boot/intelligencesite/mapper/IConstructionReportMapper.java new file mode 100644 index 0000000..a08b10d --- /dev/null +++ b/src/main/java/com/zilber/boot/intelligencesite/mapper/IConstructionReportMapper.java @@ -0,0 +1,20 @@ +package com.zilber.boot.intelligencesite.mapper; + +import com.zilber.boot.intelligencesite.entity.IConstructionReport; +import com.baomidou.mybatisplus.core.mapper.BaseMapper; + +import java.util.List; + +/** + *

+ * 施工报告 Mapper 接口 + *

+ * + * @author lsc + * @since 2025-05-06 + */ +public interface IConstructionReportMapper extends BaseMapper { + + List queryList(IConstructionReport iConstructionReport); + +} diff --git a/src/main/java/com/zilber/boot/intelligencesite/mapper/IEngineerLogMapper.java b/src/main/java/com/zilber/boot/intelligencesite/mapper/IEngineerLogMapper.java new file mode 100644 index 0000000..e42f8ec --- /dev/null +++ b/src/main/java/com/zilber/boot/intelligencesite/mapper/IEngineerLogMapper.java @@ -0,0 +1,19 @@ +package com.zilber.boot.intelligencesite.mapper; + +import com.zilber.boot.intelligencesite.entity.IEngineerLog; +import com.baomidou.mybatisplus.core.mapper.BaseMapper; + +import java.util.List; + +/** + *

+ * 工程日志 Mapper 接口 + *

+ * + * @author lsc + * @since 2025-05-06 + */ +public interface IEngineerLogMapper extends BaseMapper { + + List queryList(IEngineerLog iEngineerLog); +} diff --git a/src/main/java/com/zilber/boot/intelligencesite/mapper/IManpowerMapper.java b/src/main/java/com/zilber/boot/intelligencesite/mapper/IManpowerMapper.java new file mode 100644 index 0000000..5afca6e --- /dev/null +++ b/src/main/java/com/zilber/boot/intelligencesite/mapper/IManpowerMapper.java @@ -0,0 +1,19 @@ +package com.zilber.boot.intelligencesite.mapper; + +import com.zilber.boot.intelligencesite.entity.IManpower; +import com.baomidou.mybatisplus.core.mapper.BaseMapper; + +import java.util.List; + +/** + *

+ * 人力信息表 Mapper 接口 + *

+ * + * @author lsc + * @since 2025-05-06 + */ +public interface IManpowerMapper extends BaseMapper { + + List queryList(IManpower iManpower); +} diff --git a/src/main/java/com/zilber/boot/intelligencesite/mapper/IMaterialsMapper.java b/src/main/java/com/zilber/boot/intelligencesite/mapper/IMaterialsMapper.java new file mode 100644 index 0000000..dd78329 --- /dev/null +++ b/src/main/java/com/zilber/boot/intelligencesite/mapper/IMaterialsMapper.java @@ -0,0 +1,19 @@ +package com.zilber.boot.intelligencesite.mapper; + +import com.zilber.boot.intelligencesite.entity.IMaterials; +import com.baomidou.mybatisplus.core.mapper.BaseMapper; + +import java.util.List; + +/** + *

+ * 材料信息表 Mapper 接口 + *

+ * + * @author lsc + * @since 2025-05-06 + */ +public interface IMaterialsMapper extends BaseMapper { + + List queryList(IMaterials iMaterials); +} diff --git a/src/main/java/com/zilber/boot/intelligencesite/mapper/IProductionPlanMapper.java b/src/main/java/com/zilber/boot/intelligencesite/mapper/IProductionPlanMapper.java new file mode 100644 index 0000000..1f28793 --- /dev/null +++ b/src/main/java/com/zilber/boot/intelligencesite/mapper/IProductionPlanMapper.java @@ -0,0 +1,19 @@ +package com.zilber.boot.intelligencesite.mapper; + +import com.zilber.boot.intelligencesite.entity.IProductionPlan; +import com.baomidou.mybatisplus.core.mapper.BaseMapper; + +import java.util.List; + +/** + *

+ * 生产计划表 Mapper 接口 + *

+ * + * @author lsc + * @since 2025-05-06 + */ +public interface IProductionPlanMapper extends BaseMapper { + + List queryList(IProductionPlan iProductionPlan); +} diff --git a/src/main/java/com/zilber/boot/intelligencesite/mapper/IProgressMapper.java b/src/main/java/com/zilber/boot/intelligencesite/mapper/IProgressMapper.java new file mode 100644 index 0000000..be7554c --- /dev/null +++ b/src/main/java/com/zilber/boot/intelligencesite/mapper/IProgressMapper.java @@ -0,0 +1,19 @@ +package com.zilber.boot.intelligencesite.mapper; + +import com.zilber.boot.intelligencesite.entity.IProgress; +import com.baomidou.mybatisplus.core.mapper.BaseMapper; + +import java.util.List; + +/** + *

+ * 进度跟踪表 Mapper 接口 + *

+ * + * @author lsc + * @since 2025-05-06 + */ +public interface IProgressMapper extends BaseMapper { + + List queryList(IProgress iProgress); +} diff --git a/src/main/java/com/zilber/boot/intelligencesite/mapper/IResourceScheduleMapper.java b/src/main/java/com/zilber/boot/intelligencesite/mapper/IResourceScheduleMapper.java new file mode 100644 index 0000000..e74bef7 --- /dev/null +++ b/src/main/java/com/zilber/boot/intelligencesite/mapper/IResourceScheduleMapper.java @@ -0,0 +1,19 @@ +package com.zilber.boot.intelligencesite.mapper; + +import com.zilber.boot.intelligencesite.entity.IResourceSchedule; +import com.baomidou.mybatisplus.core.mapper.BaseMapper; + +import java.util.List; + +/** + *

+ * 资源调度表 Mapper 接口 + *

+ * + * @author lsc + * @since 2025-05-06 + */ +public interface IResourceScheduleMapper extends BaseMapper { + + List queryList(IResourceSchedule iResourceSchedule); +} diff --git a/src/main/java/com/zilber/boot/intelligencesite/mapper/ISafeMapper.java b/src/main/java/com/zilber/boot/intelligencesite/mapper/ISafeMapper.java new file mode 100644 index 0000000..e75d7d4 --- /dev/null +++ b/src/main/java/com/zilber/boot/intelligencesite/mapper/ISafeMapper.java @@ -0,0 +1,19 @@ +package com.zilber.boot.intelligencesite.mapper; + +import com.zilber.boot.intelligencesite.entity.ISafe; +import com.baomidou.mybatisplus.core.mapper.BaseMapper; + +import java.util.List; + +/** + *

+ * 安全教育 Mapper 接口 + *

+ * + * @author lsc + * @since 2025-05-06 + */ +public interface ISafeMapper extends BaseMapper { + + List queryList(ISafe iSafe); +} diff --git a/src/main/java/com/zilber/boot/intelligencesite/mapper/IUserMapper.java b/src/main/java/com/zilber/boot/intelligencesite/mapper/IUserMapper.java new file mode 100644 index 0000000..54ad3fd --- /dev/null +++ b/src/main/java/com/zilber/boot/intelligencesite/mapper/IUserMapper.java @@ -0,0 +1,19 @@ +package com.zilber.boot.intelligencesite.mapper; + +import com.zilber.boot.intelligencesite.entity.IUser; +import com.baomidou.mybatisplus.core.mapper.BaseMapper; + +import java.util.List; + +/** + *

+ * 实名制与信息管理 Mapper 接口 + *

+ * + * @author lsc + * @since 2025-05-06 + */ +public interface IUserMapper extends BaseMapper { + + List queryList(IUser iUser); +} diff --git a/src/main/java/com/zilber/boot/intelligencesite/mapper/IWarnMapper.java b/src/main/java/com/zilber/boot/intelligencesite/mapper/IWarnMapper.java new file mode 100644 index 0000000..1f1f2a3 --- /dev/null +++ b/src/main/java/com/zilber/boot/intelligencesite/mapper/IWarnMapper.java @@ -0,0 +1,19 @@ +package com.zilber.boot.intelligencesite.mapper; + +import com.zilber.boot.intelligencesite.entity.IWarn; +import com.baomidou.mybatisplus.core.mapper.BaseMapper; + +import java.util.List; + +/** + *

+ * 预警表 Mapper 接口 + *

+ * + * @author lsc + * @since 2025-05-06 + */ +public interface IWarnMapper extends BaseMapper { + + List queryList(IWarn iWarn); +} diff --git a/src/main/java/com/zilber/boot/intelligencesite/service/IIConstructionReportService.java b/src/main/java/com/zilber/boot/intelligencesite/service/IIConstructionReportService.java new file mode 100644 index 0000000..7884184 --- /dev/null +++ b/src/main/java/com/zilber/boot/intelligencesite/service/IIConstructionReportService.java @@ -0,0 +1,22 @@ +package com.zilber.boot.intelligencesite.service; + +import com.zilber.boot.intelligencesite.entity.IConstructionReport; +import com.baomidou.mybatisplus.extension.service.IService; +import com.zilber.boot.utils.AjaxResult; +import com.zilber.boot.utils.page.PageUtils; + +import java.util.List; + +/** + *

+ * 施工报告 服务类 + *

+ * + * @author lsc + * @since 2025-05-06 + */ +public interface IIConstructionReportService extends IService { + + List queryList(IConstructionReport iConstructionReport); + +} diff --git a/src/main/java/com/zilber/boot/intelligencesite/service/IIEngineerLogService.java b/src/main/java/com/zilber/boot/intelligencesite/service/IIEngineerLogService.java new file mode 100644 index 0000000..96ff049 --- /dev/null +++ b/src/main/java/com/zilber/boot/intelligencesite/service/IIEngineerLogService.java @@ -0,0 +1,19 @@ +package com.zilber.boot.intelligencesite.service; + +import com.zilber.boot.intelligencesite.entity.IEngineerLog; +import com.baomidou.mybatisplus.extension.service.IService; + +import java.util.List; + +/** + *

+ * 工程日志 服务类 + *

+ * + * @author lsc + * @since 2025-05-06 + */ +public interface IIEngineerLogService extends IService { + + List queryList(IEngineerLog iEngineerLog); +} diff --git a/src/main/java/com/zilber/boot/intelligencesite/service/IIManpowerService.java b/src/main/java/com/zilber/boot/intelligencesite/service/IIManpowerService.java new file mode 100644 index 0000000..5e72443 --- /dev/null +++ b/src/main/java/com/zilber/boot/intelligencesite/service/IIManpowerService.java @@ -0,0 +1,19 @@ +package com.zilber.boot.intelligencesite.service; + +import com.zilber.boot.intelligencesite.entity.IManpower; +import com.baomidou.mybatisplus.extension.service.IService; + +import java.util.List; + +/** + *

+ * 人力信息表 服务类 + *

+ * + * @author lsc + * @since 2025-05-06 + */ +public interface IIManpowerService extends IService { + + List queryList(IManpower iManpower); +} diff --git a/src/main/java/com/zilber/boot/intelligencesite/service/IIMaterialsService.java b/src/main/java/com/zilber/boot/intelligencesite/service/IIMaterialsService.java new file mode 100644 index 0000000..a829eab --- /dev/null +++ b/src/main/java/com/zilber/boot/intelligencesite/service/IIMaterialsService.java @@ -0,0 +1,19 @@ +package com.zilber.boot.intelligencesite.service; + +import com.zilber.boot.intelligencesite.entity.IMaterials; +import com.baomidou.mybatisplus.extension.service.IService; + +import java.util.List; + +/** + *

+ * 材料信息表 服务类 + *

+ * + * @author lsc + * @since 2025-05-06 + */ +public interface IIMaterialsService extends IService { + + List queryList(IMaterials iMaterials); +} diff --git a/src/main/java/com/zilber/boot/intelligencesite/service/IIProductionPlanService.java b/src/main/java/com/zilber/boot/intelligencesite/service/IIProductionPlanService.java new file mode 100644 index 0000000..3318669 --- /dev/null +++ b/src/main/java/com/zilber/boot/intelligencesite/service/IIProductionPlanService.java @@ -0,0 +1,24 @@ +package com.zilber.boot.intelligencesite.service; + +import com.zilber.boot.intelligencesite.entity.IProductionPlan; +import com.baomidou.mybatisplus.extension.service.IService; + +import java.util.List; +import java.util.Map; + +/** + *

+ * 生产计划表 服务类 + *

+ * + * @author lsc + * @since 2025-05-06 + */ +public interface IIProductionPlanService extends IService { + + List queryList(IProductionPlan iProductionPlan); + + Map statistics(); + + List querywarn(Integer day); +} diff --git a/src/main/java/com/zilber/boot/intelligencesite/service/IIProgressService.java b/src/main/java/com/zilber/boot/intelligencesite/service/IIProgressService.java new file mode 100644 index 0000000..469714f --- /dev/null +++ b/src/main/java/com/zilber/boot/intelligencesite/service/IIProgressService.java @@ -0,0 +1,22 @@ +package com.zilber.boot.intelligencesite.service; + +import com.zilber.boot.intelligencesite.entity.IProgress; +import com.baomidou.mybatisplus.extension.service.IService; +import com.zilber.boot.utils.AjaxResult; + +import java.util.List; + +/** + *

+ * 进度跟踪表 服务类 + *

+ * + * @author lsc + * @since 2025-05-06 + */ +public interface IIProgressService extends IService { + + List queryList(IProgress iProgress); + + AjaxResult add(IProgress iProgress); +} diff --git a/src/main/java/com/zilber/boot/intelligencesite/service/IIResourceScheduleService.java b/src/main/java/com/zilber/boot/intelligencesite/service/IIResourceScheduleService.java new file mode 100644 index 0000000..6e1f384 --- /dev/null +++ b/src/main/java/com/zilber/boot/intelligencesite/service/IIResourceScheduleService.java @@ -0,0 +1,19 @@ +package com.zilber.boot.intelligencesite.service; + +import com.zilber.boot.intelligencesite.entity.IResourceSchedule; +import com.baomidou.mybatisplus.extension.service.IService; + +import java.util.List; + +/** + *

+ * 资源调度表 服务类 + *

+ * + * @author lsc + * @since 2025-05-06 + */ +public interface IIResourceScheduleService extends IService { + + List queryList(IResourceSchedule iResourceSchedule); +} diff --git a/src/main/java/com/zilber/boot/intelligencesite/service/IISafeService.java b/src/main/java/com/zilber/boot/intelligencesite/service/IISafeService.java new file mode 100644 index 0000000..00cf7d4 --- /dev/null +++ b/src/main/java/com/zilber/boot/intelligencesite/service/IISafeService.java @@ -0,0 +1,19 @@ +package com.zilber.boot.intelligencesite.service; + +import com.zilber.boot.intelligencesite.entity.ISafe; +import com.baomidou.mybatisplus.extension.service.IService; + +import java.util.List; + +/** + *

+ * 安全教育 服务类 + *

+ * + * @author lsc + * @since 2025-05-06 + */ +public interface IISafeService extends IService { + + List queryList(ISafe iSafe); +} diff --git a/src/main/java/com/zilber/boot/intelligencesite/service/IIUserService.java b/src/main/java/com/zilber/boot/intelligencesite/service/IIUserService.java new file mode 100644 index 0000000..5598bcc --- /dev/null +++ b/src/main/java/com/zilber/boot/intelligencesite/service/IIUserService.java @@ -0,0 +1,19 @@ +package com.zilber.boot.intelligencesite.service; + +import com.zilber.boot.intelligencesite.entity.IUser; +import com.baomidou.mybatisplus.extension.service.IService; + +import java.util.List; + +/** + *

+ * 实名制与信息管理 服务类 + *

+ * + * @author lsc + * @since 2025-05-06 + */ +public interface IIUserService extends IService { + + List queryList(IUser iUser); +} diff --git a/src/main/java/com/zilber/boot/intelligencesite/service/IIWarnService.java b/src/main/java/com/zilber/boot/intelligencesite/service/IIWarnService.java new file mode 100644 index 0000000..a6bd510 --- /dev/null +++ b/src/main/java/com/zilber/boot/intelligencesite/service/IIWarnService.java @@ -0,0 +1,19 @@ +package com.zilber.boot.intelligencesite.service; + +import com.zilber.boot.intelligencesite.entity.IWarn; +import com.baomidou.mybatisplus.extension.service.IService; + +import java.util.List; + +/** + *

+ * 预警表 服务类 + *

+ * + * @author lsc + * @since 2025-05-06 + */ +public interface IIWarnService extends IService { + + List queryList(IWarn iWarn); +} diff --git a/src/main/java/com/zilber/boot/intelligencesite/service/impl/IConstructionReportServiceImpl.java b/src/main/java/com/zilber/boot/intelligencesite/service/impl/IConstructionReportServiceImpl.java new file mode 100644 index 0000000..a904d5c --- /dev/null +++ b/src/main/java/com/zilber/boot/intelligencesite/service/impl/IConstructionReportServiceImpl.java @@ -0,0 +1,32 @@ +package com.zilber.boot.intelligencesite.service.impl; + +import com.zilber.boot.intelligencesite.entity.IConstructionReport; +import com.zilber.boot.intelligencesite.mapper.IConstructionReportMapper; +import com.zilber.boot.intelligencesite.service.IIConstructionReportService; +import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; +import org.springframework.stereotype.Service; + +import javax.annotation.Resource; +import java.util.List; + +/** + *

+ * 施工报告 服务实现类 + *

+ * + * @author lsc + * @since 2025-05-06 + */ +@Service +public class IConstructionReportServiceImpl extends ServiceImpl implements IIConstructionReportService { + + @Resource + private IConstructionReportMapper iConstructionReportMapper; + + + @Override + public List queryList(IConstructionReport iConstructionReport) { + return iConstructionReportMapper.queryList(iConstructionReport); + } + +} diff --git a/src/main/java/com/zilber/boot/intelligencesite/service/impl/IEngineerLogServiceImpl.java b/src/main/java/com/zilber/boot/intelligencesite/service/impl/IEngineerLogServiceImpl.java new file mode 100644 index 0000000..98f1c51 --- /dev/null +++ b/src/main/java/com/zilber/boot/intelligencesite/service/impl/IEngineerLogServiceImpl.java @@ -0,0 +1,31 @@ +package com.zilber.boot.intelligencesite.service.impl; + +import com.zilber.boot.intelligencesite.entity.IEngineerLog; +import com.zilber.boot.intelligencesite.mapper.IConstructionReportMapper; +import com.zilber.boot.intelligencesite.mapper.IEngineerLogMapper; +import com.zilber.boot.intelligencesite.service.IIEngineerLogService; +import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; +import org.springframework.stereotype.Service; + +import javax.annotation.Resource; +import java.util.List; + +/** + *

+ * 工程日志 服务实现类 + *

+ * + * @author lsc + * @since 2025-05-06 + */ +@Service +public class IEngineerLogServiceImpl extends ServiceImpl implements IIEngineerLogService { + + @Resource + private IEngineerLogMapper iEngineerLogMapper; + + @Override + public List queryList(IEngineerLog iEngineerLog) { + return iEngineerLogMapper.queryList(iEngineerLog); + } +} diff --git a/src/main/java/com/zilber/boot/intelligencesite/service/impl/IManpowerServiceImpl.java b/src/main/java/com/zilber/boot/intelligencesite/service/impl/IManpowerServiceImpl.java new file mode 100644 index 0000000..2483d82 --- /dev/null +++ b/src/main/java/com/zilber/boot/intelligencesite/service/impl/IManpowerServiceImpl.java @@ -0,0 +1,33 @@ +package com.zilber.boot.intelligencesite.service.impl; + +import com.zilber.boot.intelligencesite.entity.IEngineerLog; +import com.zilber.boot.intelligencesite.entity.IManpower; +import com.zilber.boot.intelligencesite.mapper.IEngineerLogMapper; +import com.zilber.boot.intelligencesite.mapper.IManpowerMapper; +import com.zilber.boot.intelligencesite.service.IIManpowerService; +import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; +import org.springframework.stereotype.Service; + +import javax.annotation.Resource; +import java.util.List; + +/** + *

+ * 人力信息表 服务实现类 + *

+ * + * @author lsc + * @since 2025-05-06 + */ +@Service +public class IManpowerServiceImpl extends ServiceImpl implements IIManpowerService { + + @Resource + private IManpowerMapper iManpowerMapper; + + + @Override + public List queryList(IManpower iManpower) { + return iManpowerMapper.queryList(iManpower); + } +} diff --git a/src/main/java/com/zilber/boot/intelligencesite/service/impl/IMaterialsServiceImpl.java b/src/main/java/com/zilber/boot/intelligencesite/service/impl/IMaterialsServiceImpl.java new file mode 100644 index 0000000..8d14764 --- /dev/null +++ b/src/main/java/com/zilber/boot/intelligencesite/service/impl/IMaterialsServiceImpl.java @@ -0,0 +1,33 @@ +package com.zilber.boot.intelligencesite.service.impl; + +import com.zilber.boot.intelligencesite.entity.IEngineerLog; +import com.zilber.boot.intelligencesite.entity.IMaterials; +import com.zilber.boot.intelligencesite.mapper.IEngineerLogMapper; +import com.zilber.boot.intelligencesite.mapper.IMaterialsMapper; +import com.zilber.boot.intelligencesite.service.IIMaterialsService; +import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; +import org.springframework.stereotype.Service; + +import javax.annotation.Resource; +import java.util.List; + +/** + *

+ * 材料信息表 服务实现类 + *

+ * + * @author lsc + * @since 2025-05-06 + */ +@Service +public class IMaterialsServiceImpl extends ServiceImpl implements IIMaterialsService { + + @Resource + private IMaterialsMapper iMaterialsMapper; + + + @Override + public List queryList(IMaterials iMaterials) { + return iMaterialsMapper.queryList(iMaterials); + } +} diff --git a/src/main/java/com/zilber/boot/intelligencesite/service/impl/IProductionPlanServiceImpl.java b/src/main/java/com/zilber/boot/intelligencesite/service/impl/IProductionPlanServiceImpl.java new file mode 100644 index 0000000..9696939 --- /dev/null +++ b/src/main/java/com/zilber/boot/intelligencesite/service/impl/IProductionPlanServiceImpl.java @@ -0,0 +1,83 @@ +package com.zilber.boot.intelligencesite.service.impl; + +import com.zilber.boot.intelligencesite.entity.IEngineerLog; +import com.zilber.boot.intelligencesite.entity.IProductionPlan; +import com.zilber.boot.intelligencesite.entity.IProgress; +import com.zilber.boot.intelligencesite.mapper.IEngineerLogMapper; +import com.zilber.boot.intelligencesite.mapper.IProductionPlanMapper; +import com.zilber.boot.intelligencesite.mapper.IProgressMapper; +import com.zilber.boot.intelligencesite.service.IIProductionPlanService; +import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; +import com.zilber.boot.utils.DateUtils; +import org.springframework.stereotype.Service; + +import javax.annotation.Resource; +import java.math.BigDecimal; +import java.time.temporal.ChronoUnit; +import java.util.*; + +/** + *

+ * 生产计划表 服务实现类 + *

+ * + * @author lsc + * @since 2025-05-06 + */ +@Service +public class IProductionPlanServiceImpl extends ServiceImpl implements IIProductionPlanService { + + @Resource + private IProductionPlanMapper iProductionPlanMapper; + @Resource + private IProgressMapper iProgressMapper; + + + + @Override + public List queryList(IProductionPlan iProductionPlan) { + return iProductionPlanMapper.queryList(iProductionPlan); + } + + @Override + public Map statistics() { + List iProductionPlans = iProductionPlanMapper.queryList(null); + List namelist=new ArrayList<>(); + List planlist=new ArrayList<>(); + List actuallist=new ArrayList<>(); + for (IProductionPlan iProductionPlan : iProductionPlans) { + //获取每个计划时间差(结束时间-开始时间) + //long datePoorByDay = DateUtils.getDatePoorByDay(iProductionPlan.getEndTime(), iProductionPlan.getStartTime()); + //获取每个计划每天应完成的百分比 + BigDecimal daypercent = new BigDecimal(1).divide(new BigDecimal(iProductionPlan.getDuration()),2,BigDecimal.ROUND_HALF_UP).multiply(new BigDecimal(100)); + //获取当前日期,减去开始日期,乘以每个计划每天应完成的百分比,算出截止今天应该完成的百分比 + BigDecimal currentpercent = BigDecimal.valueOf(DateUtils.getDatePoorByDay(new Date(), iProductionPlan.getStartTime())).multiply(daypercent); + if (DateUtils.getDatePoorByDay(new Date(), iProductionPlan.getEndTime()) > 0) { + currentpercent = BigDecimal.valueOf(100); + } + planlist.add(currentpercent); + namelist.add(iProductionPlan.getPlanName()); + //查询计划实际填报情况 + List progresseslist = iProgressMapper.queryList(new IProgress().setPlanId(iProductionPlan.getId())); + long total = progresseslist.stream().mapToLong(IProgress::getDayProgress).sum(); + actuallist.add(total); + } + Map result = new HashMap<>(); + result.put("namelist",namelist); + result.put("planlist",planlist); + result.put("actuallist",actuallist); + return result; + } + + @Override + public List querywarn(Integer day) { + List iProductionPlans = iProductionPlanMapper.queryList(null); + List newiProductionPlans=new ArrayList<>(); + for (IProductionPlan iProductionPlan : iProductionPlans) { + if (DateUtils.getDatePoorByDay(new Date(), iProductionPlan.getEndTime()) > day) { + newiProductionPlans.add(iProductionPlan); + } + } + return newiProductionPlans; + } +} diff --git a/src/main/java/com/zilber/boot/intelligencesite/service/impl/IProgressServiceImpl.java b/src/main/java/com/zilber/boot/intelligencesite/service/impl/IProgressServiceImpl.java new file mode 100644 index 0000000..e0ba5e6 --- /dev/null +++ b/src/main/java/com/zilber/boot/intelligencesite/service/impl/IProgressServiceImpl.java @@ -0,0 +1,43 @@ +package com.zilber.boot.intelligencesite.service.impl; + +import com.zilber.boot.intelligencesite.entity.IEngineerLog; +import com.zilber.boot.intelligencesite.entity.IProgress; +import com.zilber.boot.intelligencesite.mapper.IEngineerLogMapper; +import com.zilber.boot.intelligencesite.mapper.IProgressMapper; +import com.zilber.boot.intelligencesite.service.IIProgressService; +import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; +import com.zilber.boot.utils.AjaxResult; +import org.springframework.stereotype.Service; + +import javax.annotation.Resource; +import java.util.List; + +/** + *

+ * 进度跟踪表 服务实现类 + *

+ * + * @author lsc + * @since 2025-05-06 + */ +@Service +public class IProgressServiceImpl extends ServiceImpl implements IIProgressService { + + @Resource + private IProgressMapper iProgressMapper; + + @Override + public List queryList(IProgress iProgress) { + return iProgressMapper.queryList(iProgress); + } + + @Override + public AjaxResult add(IProgress iProgress) { + List list=iProgressMapper.queryList(new IProgress().setPlanId(iProgress.getPlanId())); + long total = list.stream().mapToLong(IProgress::getDayProgress).sum(); + if(iProgress.getDayProgress()+total>100){ + return AjaxResult.error("已超出最大值,最大值应为"+ (100 - total)); + } + return AjaxResult.success(iProgressMapper.insert(iProgress)); + } +} diff --git a/src/main/java/com/zilber/boot/intelligencesite/service/impl/IResourceScheduleServiceImpl.java b/src/main/java/com/zilber/boot/intelligencesite/service/impl/IResourceScheduleServiceImpl.java new file mode 100644 index 0000000..031325f --- /dev/null +++ b/src/main/java/com/zilber/boot/intelligencesite/service/impl/IResourceScheduleServiceImpl.java @@ -0,0 +1,34 @@ +package com.zilber.boot.intelligencesite.service.impl; + +import com.zilber.boot.intelligencesite.entity.IEngineerLog; +import com.zilber.boot.intelligencesite.entity.IResourceSchedule; +import com.zilber.boot.intelligencesite.mapper.IEngineerLogMapper; +import com.zilber.boot.intelligencesite.mapper.IResourceScheduleMapper; +import com.zilber.boot.intelligencesite.service.IIResourceScheduleService; +import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; +import org.springframework.stereotype.Service; + +import javax.annotation.Resource; +import java.util.List; + +/** + *

+ * 资源调度表 服务实现类 + *

+ * + * @author lsc + * @since 2025-05-06 + */ +@Service +public class IResourceScheduleServiceImpl extends ServiceImpl implements IIResourceScheduleService { + + @Resource + private IResourceScheduleMapper iResourceScheduleMapper; + + + + @Override + public List queryList(IResourceSchedule iResourceSchedule) { + return iResourceScheduleMapper.queryList(iResourceSchedule); + } +} diff --git a/src/main/java/com/zilber/boot/intelligencesite/service/impl/ISafeServiceImpl.java b/src/main/java/com/zilber/boot/intelligencesite/service/impl/ISafeServiceImpl.java new file mode 100644 index 0000000..a8d0c2b --- /dev/null +++ b/src/main/java/com/zilber/boot/intelligencesite/service/impl/ISafeServiceImpl.java @@ -0,0 +1,32 @@ +package com.zilber.boot.intelligencesite.service.impl; + +import com.zilber.boot.intelligencesite.entity.IEngineerLog; +import com.zilber.boot.intelligencesite.entity.ISafe; +import com.zilber.boot.intelligencesite.mapper.IEngineerLogMapper; +import com.zilber.boot.intelligencesite.mapper.ISafeMapper; +import com.zilber.boot.intelligencesite.service.IISafeService; +import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; +import org.springframework.stereotype.Service; + +import javax.annotation.Resource; +import java.util.List; + +/** + *

+ * 安全教育 服务实现类 + *

+ * + * @author lsc + * @since 2025-05-06 + */ +@Service +public class ISafeServiceImpl extends ServiceImpl implements IISafeService { + + @Resource + private ISafeMapper iSafeMapper; + + @Override + public List queryList(ISafe iSafe) { + return iSafeMapper.queryList(iSafe); + } +} diff --git a/src/main/java/com/zilber/boot/intelligencesite/service/impl/IUserServiceImpl.java b/src/main/java/com/zilber/boot/intelligencesite/service/impl/IUserServiceImpl.java new file mode 100644 index 0000000..dce1e7d --- /dev/null +++ b/src/main/java/com/zilber/boot/intelligencesite/service/impl/IUserServiceImpl.java @@ -0,0 +1,32 @@ +package com.zilber.boot.intelligencesite.service.impl; + +import com.zilber.boot.intelligencesite.entity.IEngineerLog; +import com.zilber.boot.intelligencesite.entity.IUser; +import com.zilber.boot.intelligencesite.mapper.IEngineerLogMapper; +import com.zilber.boot.intelligencesite.mapper.IUserMapper; +import com.zilber.boot.intelligencesite.service.IIUserService; +import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; +import org.springframework.stereotype.Service; + +import javax.annotation.Resource; +import java.util.List; + +/** + *

+ * 实名制与信息管理 服务实现类 + *

+ * + * @author lsc + * @since 2025-05-06 + */ +@Service +public class IUserServiceImpl extends ServiceImpl implements IIUserService { + + @Resource + private IUserMapper iUserMapper; + + @Override + public List queryList(IUser iUser) { + return iUserMapper.queryList(iUser); + } +} diff --git a/src/main/java/com/zilber/boot/intelligencesite/service/impl/IWarnServiceImpl.java b/src/main/java/com/zilber/boot/intelligencesite/service/impl/IWarnServiceImpl.java new file mode 100644 index 0000000..ff86714 --- /dev/null +++ b/src/main/java/com/zilber/boot/intelligencesite/service/impl/IWarnServiceImpl.java @@ -0,0 +1,32 @@ +package com.zilber.boot.intelligencesite.service.impl; + +import com.zilber.boot.intelligencesite.entity.IEngineerLog; +import com.zilber.boot.intelligencesite.entity.IWarn; +import com.zilber.boot.intelligencesite.mapper.IEngineerLogMapper; +import com.zilber.boot.intelligencesite.mapper.IWarnMapper; +import com.zilber.boot.intelligencesite.service.IIWarnService; +import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; +import org.springframework.stereotype.Service; + +import javax.annotation.Resource; +import java.util.List; + +/** + *

+ * 预警表 服务实现类 + *

+ * + * @author lsc + * @since 2025-05-06 + */ +@Service +public class IWarnServiceImpl extends ServiceImpl implements IIWarnService { + + @Resource + private IWarnMapper iWarnMapper; + + @Override + public List queryList(IWarn iWarn) { + return iWarnMapper.queryList(iWarn); + } +} diff --git a/src/main/java/com/zilber/boot/system/controller/SysDictionaryController.java b/src/main/java/com/zilber/boot/system/controller/SysDictionaryController.java new file mode 100644 index 0000000..3ae5b72 --- /dev/null +++ b/src/main/java/com/zilber/boot/system/controller/SysDictionaryController.java @@ -0,0 +1,78 @@ +package com.zilber.boot.system.controller; + +import com.zilber.boot.annotation.Anonymous; +import com.zilber.boot.system.pojo.SysDictionary; +import com.zilber.boot.system.service.ISysDictionaryService; +import com.zilber.boot.utils.AjaxResult; +import io.swagger.annotations.Api; +import io.swagger.annotations.ApiOperation; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.web.bind.annotation.*; + +import java.util.List; + +/** + * 数据字典Controller + */ +@RestController +@RequestMapping("/system/dictionary") +@Api(tags = "数据字典管理") +@Anonymous +public class SysDictionaryController { + @Autowired + private ISysDictionaryService sysDictionaryService; + + /** + * 获取数据字典列表(分页查询) + * @param sysDictionary + * @return + */ + //@PreAuthorize("@ss.hasPermi('system:dictionary:list')") + @ApiOperation(value="获取数据字典列表",notes="获取数据字典列表") + @GetMapping("/list") + public AjaxResult list(SysDictionary sysDictionary) { + /* PageHelper pageHelper = new PageHelper(); + pageHelper.startPage(pageNo, pageSize);*/ + if(sysDictionary.getParentId() == null){ + sysDictionary.setParentId(0L); + } + List list = sysDictionaryService.getList(sysDictionary); + return AjaxResult.success(list); + } + + + @ApiOperation("新增数据字典数据") + @PostMapping + public AjaxResult add(@RequestBody SysDictionary sysDictionary){ + try { + if(sysDictionaryService.addDict(sysDictionary)){ + return AjaxResult.success(); + }else { + return AjaxResult.error(); + } + }catch (Exception e){ + e.printStackTrace(); + return AjaxResult.error(e.getMessage()); + } + } + + @ApiOperation("修改数据字典数据") + @PutMapping + public AjaxResult update(@RequestBody SysDictionary sysDictionary){ + return AjaxResult.success(sysDictionaryService.updateById(sysDictionary)); + } + + @ApiOperation("删除数据字典数据") + @DeleteMapping("/{id}") + public AjaxResult delete(@PathVariable Long id){ + return AjaxResult.success(sysDictionaryService.delDict(id)); + } + + @ApiOperation("根据id获取字典数据") + @GetMapping("/{id}") + public AjaxResult getById(@PathVariable Long id){ + return AjaxResult.success(sysDictionaryService.getById(id)); + } + + +} diff --git a/src/main/java/com/zilber/boot/system/dao/SysDictionaryMapper.java b/src/main/java/com/zilber/boot/system/dao/SysDictionaryMapper.java new file mode 100644 index 0000000..315658d --- /dev/null +++ b/src/main/java/com/zilber/boot/system/dao/SysDictionaryMapper.java @@ -0,0 +1,15 @@ +package com.zilber.boot.system.dao; + +import com.baomidou.mybatisplus.core.mapper.BaseMapper; +import com.zilber.boot.system.pojo.SysDictionary; +import org.apache.ibatis.annotations.Mapper; + +import java.util.List; + +@Mapper +public interface SysDictionaryMapper extends BaseMapper { + + List getList(SysDictionary sysDictionary); + + +} diff --git a/src/main/java/com/zilber/boot/system/pojo/SysDictionary.java b/src/main/java/com/zilber/boot/system/pojo/SysDictionary.java new file mode 100644 index 0000000..66c1e9c --- /dev/null +++ b/src/main/java/com/zilber/boot/system/pojo/SysDictionary.java @@ -0,0 +1,75 @@ +package com.zilber.boot.system.pojo; + +import com.baomidou.mybatisplus.annotation.IdType; +import com.baomidou.mybatisplus.annotation.TableField; +import com.baomidou.mybatisplus.annotation.TableId; +import com.baomidou.mybatisplus.annotation.TableName; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import lombok.Data; + +import java.util.List; + +@ApiModel(value = "系统数据字典",description = "包含系统分类管理") +@TableName("sys_dictionary") +@Data +public class SysDictionary { + + @ApiModelProperty(name = "自增ID",notes = "") + @TableId(type = IdType.AUTO) + private Long id ; + + /** 字典编码 */ + @ApiModelProperty(name = "字典编码",notes = "") + private String code ; + + /** 字典名称 */ + @ApiModelProperty(name = "字典名称",notes = "") + private String name ; + + /** 字典值 */ + @ApiModelProperty(name = "字典值",notes = "") + private String value ; + + /** 字典描述 */ + @ApiModelProperty(name = "字典描述",notes = "") + private String remark ; + + /** 字典级别 */ + @ApiModelProperty(name = "字典级别",notes = "") + private Integer level ; + + /** 多层级字典路径 */ + @ApiModelProperty(name = "多层级字典路径",notes = "") + private String path ; + + /** 父级节点ID */ + @ApiModelProperty(name = "父级节点ID",notes = "") + private Long parentId ; + + /** 关联业务编码 */ + @ApiModelProperty(name = "关联业务编码",notes = "") + private String contactCode ; + + /** 删除标识 0=删除;1=生效 */ + @ApiModelProperty(name = "删除标识 0=删除;1=生效",notes = "") + private Integer isDel = 1; + + /** 排序 */ + @ApiModelProperty(name = "排序",notes = "") + private Integer sort ; + + @ApiModelProperty(name = "子节点",notes = "") + @TableField(exist = false) + private List subSysDictionaryList; + + @ApiModelProperty(name = "父节点",notes = "") + @TableField(exist = false) + private SysDictionary parentSysDictionary; + + @ApiModelProperty(name = "导入附件-ID", notes = "") + @TableField(exist = false) + private Long fileId; + + +} diff --git a/src/main/java/com/zilber/boot/system/service/ISysDictionaryService.java b/src/main/java/com/zilber/boot/system/service/ISysDictionaryService.java new file mode 100644 index 0000000..c115104 --- /dev/null +++ b/src/main/java/com/zilber/boot/system/service/ISysDictionaryService.java @@ -0,0 +1,17 @@ +package com.zilber.boot.system.service; + +import com.baomidou.mybatisplus.extension.service.IService; +import com.zilber.boot.system.pojo.SysDictionary; + +import java.util.List; + +public interface ISysDictionaryService extends IService { + + boolean addDict(SysDictionary sysDictionary) throws Exception; + + int delDict(Long id); + + List getList(SysDictionary sysDictionary); + + +} diff --git a/src/main/java/com/zilber/boot/system/service/impl/SysDictionaryServiceImpl.java b/src/main/java/com/zilber/boot/system/service/impl/SysDictionaryServiceImpl.java new file mode 100644 index 0000000..af15397 --- /dev/null +++ b/src/main/java/com/zilber/boot/system/service/impl/SysDictionaryServiceImpl.java @@ -0,0 +1,61 @@ +package com.zilber.boot.system.service.impl; + +import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper; +import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; +import com.zilber.boot.file.dao.FileDao; +import com.zilber.boot.system.dao.SysDictionaryMapper; +import com.zilber.boot.system.pojo.SysDictionary; +import com.zilber.boot.system.service.ISysDictionaryService; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.beans.factory.annotation.Value; +import org.springframework.stereotype.Service; +import org.springframework.transaction.annotation.Transactional; + +import java.util.List; + +@Service +public class SysDictionaryServiceImpl extends ServiceImpl implements ISysDictionaryService { + @Autowired + private SysDictionaryMapper sysDictionaryMapper; + + @Value("${zilberboot.profile}") + private String localtion; + + @Autowired + private FileDao fileDao; + + + @Override + @Transactional(rollbackFor = Exception.class) + public boolean addDict(SysDictionary sysDictionary) { + sysDictionaryMapper.insert(sysDictionary); + + Long parentId = sysDictionary.getParentId(); + if(parentId != null && parentId > 0L){ + SysDictionary parentDict = getById(parentId); + if(parentDict != null){ + sysDictionary.setLevel(parentDict.getLevel() + 1); + sysDictionary.setPath(parentDict.getPath() + sysDictionary.getId()+","); + } + }else{ + sysDictionary.setParentId(0L); + sysDictionary.setLevel(1); + sysDictionary.setPath(",0,"+sysDictionary.getId()+","); + } + return updateById(sysDictionary); + } + + @Override + public int delDict(Long id) { + SysDictionary sysDictionary = new SysDictionary(); + sysDictionary.setIsDel(0); + LambdaQueryWrapper queryWrapper = new LambdaQueryWrapper<>(); + queryWrapper.eq(SysDictionary::getId, id); + return sysDictionaryMapper.update(sysDictionary, queryWrapper); + } + + @Override + public List getList(SysDictionary sysDictionary) { + return sysDictionaryMapper.getList(sysDictionary); + } +} diff --git a/src/main/java/com/zilber/boot/utils/DateUtils.java b/src/main/java/com/zilber/boot/utils/DateUtils.java index eb39b04..4533e38 100644 --- a/src/main/java/com/zilber/boot/utils/DateUtils.java +++ b/src/main/java/com/zilber/boot/utils/DateUtils.java @@ -181,4 +181,17 @@ public class DateUtils extends org.apache.commons.lang3.time.DateUtils ZonedDateTime zdt = localDateTime.atZone(ZoneId.systemDefault()); return Date.from(zdt.toInstant()); } + + /** + * 计算两个时间差 + */ + public static long getDatePoorByDay(Date endDate, Date nowDate) + { + long nd = 1000 * 24 * 60 * 60; + // long ns = 1000; + // 获得两个时间的毫秒时间差异 + long diff = endDate.getTime() - nowDate.getTime(); + // 计算差多少天 + return diff / nd; + } } diff --git a/src/main/resources/mappers/IConstructionReportMapper.xml b/src/main/resources/mappers/IConstructionReportMapper.xml new file mode 100644 index 0000000..36f55d1 --- /dev/null +++ b/src/main/resources/mappers/IConstructionReportMapper.xml @@ -0,0 +1,50 @@ + + + + + + + + + + + + + + + + + + + + + + select +id, date, cycle, plan_id, plan_name, total_progress, manpower, materials_use, equipment_operation, qs, advise, create_time, creator from i_construction_report + + + + + + + + + diff --git a/src/main/resources/mappers/IEngineerLogMapper.xml b/src/main/resources/mappers/IEngineerLogMapper.xml new file mode 100644 index 0000000..baf0ae6 --- /dev/null +++ b/src/main/resources/mappers/IEngineerLogMapper.xml @@ -0,0 +1,46 @@ + + + + + + + + + + + + + + + + + + + + select +id, date, +weather, temperature, wind, +principal_name, +principal_tel, construction_situation, other_business, create_time, creator from i_engineer_log + + + + + + diff --git a/src/main/resources/mappers/IManpowerMapper.xml b/src/main/resources/mappers/IManpowerMapper.xml new file mode 100644 index 0000000..b40628b --- /dev/null +++ b/src/main/resources/mappers/IManpowerMapper.xml @@ -0,0 +1,53 @@ + + + + + + + + + + + + + + + + + + select +id, name, work_type, +quantity, plan_devote_time, actual_devote_time, leave_time, create_time, creator from i_manpower + + + + + + + + + + + diff --git a/src/main/resources/mappers/IMaterialsMapper.xml b/src/main/resources/mappers/IMaterialsMapper.xml new file mode 100644 index 0000000..a30b91b --- /dev/null +++ b/src/main/resources/mappers/IMaterialsMapper.xml @@ -0,0 +1,47 @@ + + + + + + + + + + + + + + + + + + + + + select +id, name, specification, unit, plan_need, actual_in, surplus, supplier_name, purchase_time, plan_use_time, create_time, creator from i_materials + + + + + + + + diff --git a/src/main/resources/mappers/IProductionPlanMapper.xml b/src/main/resources/mappers/IProductionPlanMapper.xml new file mode 100644 index 0000000..6dc8f61 --- /dev/null +++ b/src/main/resources/mappers/IProductionPlanMapper.xml @@ -0,0 +1,47 @@ + + + + + + + + + + + + + + + + + + + + select +id, plan_name, project_stage, description, start_time, end_time, create_time, creator, duration, keystage_time, principal from i_production_plan + + + + + + + + + + diff --git a/src/main/resources/mappers/IProgressMapper.xml b/src/main/resources/mappers/IProgressMapper.xml new file mode 100644 index 0000000..94de22b --- /dev/null +++ b/src/main/resources/mappers/IProgressMapper.xml @@ -0,0 +1,43 @@ + + + + + + + + + + + + + + + + select +id, plan_id, plan_name, day_progress, accumulative_progress, create_time, creator from i_progress + + + + + + + + + + + diff --git a/src/main/resources/mappers/IResourceScheduleMapper.xml b/src/main/resources/mappers/IResourceScheduleMapper.xml new file mode 100644 index 0000000..a78d37e --- /dev/null +++ b/src/main/resources/mappers/IResourceScheduleMapper.xml @@ -0,0 +1,40 @@ + + + + + + + + + + + + + + + + + + select +id, plan_id, plan_name, start_time, end_time, create_time, creator, current_progress, advise from i_resource_schedule + + + + + + + diff --git a/src/main/resources/mappers/ISafeMapper.xml b/src/main/resources/mappers/ISafeMapper.xml new file mode 100644 index 0000000..3875dd5 --- /dev/null +++ b/src/main/resources/mappers/ISafeMapper.xml @@ -0,0 +1,33 @@ + + + + + + + + + + + + + + select +id, name, date, create_time, creator from i_safe + + + + + + + + diff --git a/src/main/resources/mappers/IUserMapper.xml b/src/main/resources/mappers/IUserMapper.xml new file mode 100644 index 0000000..8353d5e --- /dev/null +++ b/src/main/resources/mappers/IUserMapper.xml @@ -0,0 +1,38 @@ + + + + + + + + + + + + + + + + select +id, name, tel, id_card, work_type, create_time, creator from i_user + + + + + + + + + diff --git a/src/main/resources/mappers/IWarnMapper.xml b/src/main/resources/mappers/IWarnMapper.xml new file mode 100644 index 0000000..510cd0c --- /dev/null +++ b/src/main/resources/mappers/IWarnMapper.xml @@ -0,0 +1,39 @@ + + + + + + + + + + + + + + + + + select +id, plan_id, plan_name, deviation_type, deviation_days, warn_info, create_time, creator from i_warn + + + + + + + +