From 19c229f5a58ed53d9bb9a872889088d782491e58 Mon Sep 17 00:00:00 2001 From: loser <12524321+loser111@user.noreply.gitee.com> Date: Thu, 11 May 2023 12:58:14 +0800 Subject: [PATCH] =?UTF-8?q?=E7=B2=BE=E7=AE=80=E5=8A=9F=E8=83=BD=E6=A8=A1?= =?UTF-8?q?=E5=9D=97=EF=BC=8C=E5=AE=8C=E6=88=90=E6=89=93=E5=8D=A1=E8=AE=B0?= =?UTF-8?q?=E5=BD=95=E7=AE=A1=E7=90=86=E9=99=A4=E6=9B=B4=E6=94=B9=E4=BB=A5?= =?UTF-8?q?=E5=A4=96=E6=89=80=E6=9C=89=E6=A8=A1=E5=9D=97?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../com/ruoyi/web/controller/CheckController.java | 67 ----- .../ajax/libs/validate/jquery.validate.extend.js | 2 +- .../resources/templates/check/checkManage/add.html | 271 +++++++++++++++------ .../templates/check/checkManage/checkManage.html | 67 +++-- .../templates/check/checkManage/edit.html | 16 +- .../resources/templates/individual/check/add.html | 84 ------- .../templates/individual/check/check.html | 207 ---------------- .../resources/templates/individual/check/edit.html | 85 ------- .../templates/system/user/profile/profile.html | 23 ++ .../main/java/com/ruoyi/system/domain/Check.java | 157 ------------ .../java/com/ruoyi/system/domain/CheckManage.java | 179 ++++++-------- .../com/ruoyi/system/mapper/CheckManageMapper.java | 2 +- .../java/com/ruoyi/system/mapper/CheckMapper.java | 24 -- .../com/ruoyi/system/service/ICheckService.java | 23 -- .../service/impl/CheckManageServiceImpl.java | 10 +- .../system/service/impl/CheckServiceImpl.java | 32 --- .../system/service/impl/SysUserServiceImpl.java | 1 - .../main/resources/mapper/CheckManageMapper.xml | 89 ++++--- .../src/main/resources/mapper/CheckMapper.xml | 44 ---- .../main/resources/mapper/PatientManageMapper.xml | 8 +- 20 files changed, 395 insertions(+), 996 deletions(-) delete mode 100644 ruoyi-admin/src/main/java/com/ruoyi/web/controller/CheckController.java delete mode 100644 ruoyi-admin/src/main/resources/templates/individual/check/add.html delete mode 100644 ruoyi-admin/src/main/resources/templates/individual/check/check.html delete mode 100644 ruoyi-admin/src/main/resources/templates/individual/check/edit.html delete mode 100644 ruoyi-system/src/main/java/com/ruoyi/system/domain/Check.java delete mode 100644 ruoyi-system/src/main/java/com/ruoyi/system/mapper/CheckMapper.java delete mode 100644 ruoyi-system/src/main/java/com/ruoyi/system/service/ICheckService.java delete mode 100644 ruoyi-system/src/main/java/com/ruoyi/system/service/impl/CheckServiceImpl.java delete mode 100644 ruoyi-system/src/main/resources/mapper/CheckMapper.xml diff --git a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/CheckController.java b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/CheckController.java deleted file mode 100644 index 45f3ea0..0000000 --- a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/CheckController.java +++ /dev/null @@ -1,67 +0,0 @@ -package com.ruoyi.web.controller; - -import java.util.List; -import org.apache.shiro.authz.annotation.RequiresPermissions; -import org.springframework.beans.factory.annotation.Autowired; -import org.springframework.stereotype.Controller; -import org.springframework.ui.ModelMap; -import org.springframework.validation.annotation.Validated; -import org.springframework.web.bind.annotation.GetMapping; -import org.springframework.web.bind.annotation.PathVariable; -import org.springframework.web.bind.annotation.PostMapping; -import org.springframework.web.bind.annotation.RequestMapping; -import org.springframework.web.bind.annotation.ResponseBody; -import com.ruoyi.common.annotation.Log; -import com.ruoyi.common.enums.BusinessType; -import com.ruoyi.system.domain.Check; -import com.ruoyi.system.service.ICheckService; -import com.ruoyi.common.core.controller.BaseController; -import com.ruoyi.common.core.domain.AjaxResult; -import com.ruoyi.common.utils.poi.ExcelUtil; -import com.ruoyi.common.core.page.TableDataInfo; - -/** - * 个人打卡Controller - * - * @author zlx - * @date 2023-04-22 - */ -@Controller -@RequestMapping("/individual/check") -public class CheckController extends BaseController -{ - private String prefix = "individual/check"; - - @Autowired - private ICheckService checkService; - - @RequiresPermissions("individual:check:view") - @GetMapping() - public String check() - { - return prefix + "/check"; - } - - /** - * 新增个人打卡 - */ - @GetMapping("/add") - public String add() - { - return prefix + "/add"; - } - - /** - * 新增保存个人打卡 - */ - @RequiresPermissions("individual:check:add") - @Log(title = "个人打卡", businessType = BusinessType.INSERT) - @PostMapping("/add") - @ResponseBody - public AjaxResult addSave(@Validated Check check) - { - return toAjax(checkService.insertCheck(check)); - } - - -} diff --git a/ruoyi-admin/src/main/resources/static/ajax/libs/validate/jquery.validate.extend.js b/ruoyi-admin/src/main/resources/static/ajax/libs/validate/jquery.validate.extend.js index d0958db..9c7535f 100644 --- a/ruoyi-admin/src/main/resources/static/ajax/libs/validate/jquery.validate.extend.js +++ b/ruoyi-admin/src/main/resources/static/ajax/libs/validate/jquery.validate.extend.js @@ -30,7 +30,7 @@ $(document).ready(function(){ jQuery.validator.addMethod("isTemperature",function(value,element){ var userName=/^[.0-9]{2,13}$/; return this.optional(element) || (userName).test(value); - },'请输入数字,可使用"."号'); + },'请输入体温单位为℃,可使用"."号'); //校验身份证 jQuery.validator.addMethod("isIdentity",function(value,element){ var id= /^(\d{15}$|^\d{18}$|^\d{17}(\d|X))$/; diff --git a/ruoyi-admin/src/main/resources/templates/check/checkManage/add.html b/ruoyi-admin/src/main/resources/templates/check/checkManage/add.html index 417dd39..9ba02f4 100644 --- a/ruoyi-admin/src/main/resources/templates/check/checkManage/add.html +++ b/ruoyi-admin/src/main/resources/templates/check/checkManage/add.html @@ -1,85 +1,220 @@ - + - + - -
-
-
- -
- -
-
-
- -
- -
-
-
- -
- -
-
-
- -
- -
-
-
- -
- -
-
-
- -
- -
-
-
- -
- -
-
-
- -
- + +
+ +
+

打卡信息提交

+
+
+
+ +
+ + +
-
- -
- +
+
+ +
+
+ + +
+
-
- -
- +
+
+
+
+ +
+
+ + +
+
+
+
+
+
+ +
+
+ +
+
+
+
+
+
+
+
+ +
+ +
+
+
+
+
+ +
+ +
+ +
+ +
-
- -
+
+
+
+ +
+ +
+
+
+
+

其他信息

+
+
+
+ +
+ +
+
+
+
+
+
+   + +
+
+
+
+ +
- + \ No newline at end of file diff --git a/ruoyi-admin/src/main/resources/templates/check/checkManage/checkManage.html b/ruoyi-admin/src/main/resources/templates/check/checkManage/checkManage.html index 25a9a66..7d2a358 100644 --- a/ruoyi-admin/src/main/resources/templates/check/checkManage/checkManage.html +++ b/ruoyi-admin/src/main/resources/templates/check/checkManage/checkManage.html @@ -15,25 +15,25 @@
  • - - + +
  • - - -
  • -
  • - +
  • + + + +
  •  搜索  重置 @@ -44,16 +44,13 @@
  • - - 添加 - 修改 删除 - + 导入 @@ -74,7 +71,6 @@ $(function() { var options = { url: prefix + "/list", - createUrl: prefix + "/add", updateUrl: prefix + "/edit/{id}", removeUrl: prefix + "/remove", exportUrl: prefix + "/export", @@ -93,46 +89,43 @@ field: 'checkName', title: '打卡人姓名' }, + // { + // field: 'sex', + // title: '性别' + // }, { - field: 'checkAge', - title: '打卡人年龄' - }, - { - field: 'checkSex', - title: '打卡人性别' - }, - { - field: 'patientIdCard', - title: '身份证' + field: 'checkPhonenumber', + title: '打卡人电话' }, + // { + // field: 'patientIdCard', + // title: '身份证' + // }, { - field: 'isDiagnosed', - title: '确诊状态' - }, - { - field: 'isCure', - title: '治愈状态' + field: 'isHigh', + title: '是否去高风险地区' }, { field: 'isTouch', title: '密接状态' }, + { - field: 'isDead', - title: '死亡状态' - }, - { - field: 'description', - title: '备注' - }, - { - field: 'checkPostition', + field: 'currentPosition', title: '最近接触地区' }, { field: 'temperature', title: '体温' }, + { + field:'healthState', + title:'健康状况' + }, + { + field: 'description', + title: '备注' + }, { title: '操作', align: 'center', diff --git a/ruoyi-admin/src/main/resources/templates/check/checkManage/edit.html b/ruoyi-admin/src/main/resources/templates/check/checkManage/edit.html index 3b5754c..ecaba4f 100644 --- a/ruoyi-admin/src/main/resources/templates/check/checkManage/edit.html +++ b/ruoyi-admin/src/main/resources/templates/check/checkManage/edit.html @@ -14,21 +14,21 @@
    - +
    - +
    -
    +
    - +
    - +
    @@ -44,9 +44,9 @@
    - +
    - +
    @@ -58,7 +58,7 @@
    - +
    diff --git a/ruoyi-admin/src/main/resources/templates/individual/check/add.html b/ruoyi-admin/src/main/resources/templates/individual/check/add.html deleted file mode 100644 index 86f906c..0000000 --- a/ruoyi-admin/src/main/resources/templates/individual/check/add.html +++ /dev/null @@ -1,84 +0,0 @@ - - - - - - - -
    -
    -
    - -
    - -
    -
    -
    - -
    - -
    -
    -
    - -
    - -
    -
    -
    - -
    - -
    -
    -
    - -
    - -
    -
    -
    - -
    - -
    -
    -
    - -
    -
    - - -
    -
    -
    -
    - -
    - -
    -
    -
    -
    - - - - - \ No newline at end of file diff --git a/ruoyi-admin/src/main/resources/templates/individual/check/check.html b/ruoyi-admin/src/main/resources/templates/individual/check/check.html deleted file mode 100644 index 551230e..0000000 --- a/ruoyi-admin/src/main/resources/templates/individual/check/check.html +++ /dev/null @@ -1,207 +0,0 @@ - - - - - - -
    -
    -
    -

    打卡信息提交

    -
    -
    -
    - -
    - - -
    -
    -
    -
    -
    - -
    -
    - - -
    -
    -
    -
    -
    -
    -
    -
    - -
    -
    - - -
    -
    -
    -
    -
    -
    - -
    -
    - -
    -
    -
    -
    -
    -
    -
    -
    - -
    - -
    -
    -
    -
    -
    - -
    - -
    - -
    - -
    -
    -
    -

    其他信息

    -
    -
    -
    - -
    - -
    -
    -
    -
    -
    -
    -   - -
    -
    -
    -
    -
    -
    - - - - - \ No newline at end of file diff --git a/ruoyi-admin/src/main/resources/templates/individual/check/edit.html b/ruoyi-admin/src/main/resources/templates/individual/check/edit.html deleted file mode 100644 index 8fc86e0..0000000 --- a/ruoyi-admin/src/main/resources/templates/individual/check/edit.html +++ /dev/null @@ -1,85 +0,0 @@ - - - - - - - -
    -
    - -
    - -
    - -
    -
    -
    - -
    - -
    -
    -
    - -
    - -
    -
    -
    - -
    - -
    -
    -
    - -
    - -
    -
    -
    - -
    - -
    -
    -
    - -
    -
    - - -
    -
    -
    -
    - -
    - -
    -
    -
    -
    - - - - - \ No newline at end of file diff --git a/ruoyi-admin/src/main/resources/templates/system/user/profile/profile.html b/ruoyi-admin/src/main/resources/templates/system/user/profile/profile.html index 35c0cb8..3470b56 100644 --- a/ruoyi-admin/src/main/resources/templates/system/user/profile/profile.html +++ b/ruoyi-admin/src/main/resources/templates/system/user/profile/profile.html @@ -75,6 +75,12 @@
    + +
    + +
    +
    +
    @@ -217,6 +223,23 @@ } } }, + idNumber:{ + required:true, + isIdentity18:true, + remote: { + url: prefix + "system/user/checkIdNumberUnique", + type: "post", + dataType: "json", + data: { + "userId": function() { + return $("#userId").val(); + }, + "idNumber": function () { + return $.common.trim($("#idNumber").val()); + } + } + } + }, }, messages: { "userName": { diff --git a/ruoyi-system/src/main/java/com/ruoyi/system/domain/Check.java b/ruoyi-system/src/main/java/com/ruoyi/system/domain/Check.java deleted file mode 100644 index 6485b90..0000000 --- a/ruoyi-system/src/main/java/com/ruoyi/system/domain/Check.java +++ /dev/null @@ -1,157 +0,0 @@ -package com.ruoyi.system.domain; - -import java.util.Date; -import com.fasterxml.jackson.annotation.JsonFormat; -import com.ruoyi.common.xss.Xss; -import org.apache.commons.lang3.builder.ToStringBuilder; -import org.apache.commons.lang3.builder.ToStringStyle; -import com.ruoyi.common.annotation.Excel; -import com.ruoyi.common.core.domain.BaseEntity; -import org.apache.ibatis.annotations.Param; - -import javax.validation.constraints.Size; - -/** - * 个人打卡对象 check - * - * @author zlx - * @date 2023-04-22 - */ -public class Check extends BaseEntity -{ - private static final long serialVersionUID = 1L; - - /** 打卡id */ - private Long checkId; - - /** 打卡人姓名 */ - @Excel(name = "打卡人姓名") - private String checkName; - - /** 体温 */ - @Excel(name = "体温") - private String temperature; - - /** 健康状况 */ - @Excel(name = "健康状况") - private String state; - - /** 是否去过高风险地区 */ - @Excel(name = "是否去过高风险地区") - private Integer isHigh; - - /** 是否接触过密接人员 */ - @Excel(name = "是否接触过密接人员") - private Integer isTouch; - - /** 个人状况描述 */ - @Excel(name = "个人状况描述") - private String description; - - /** 当前时间 */ - @JsonFormat(pattern = "yyyy-MM-dd") - @Excel(name = "当前时间", width = 30, dateFormat = "yyyy-MM-dd") - private Date checkDatetime; - - /** 打卡位置 */ - @Excel(name = "打卡位置") - private String currentPosition; - - public void setCheckId(Long checkId) - { - this.checkId = checkId; - } - - public Long getCheckId() - { - return checkId; - } - public void setCheckName(String checkName) - { - this.checkName = checkName; - } - @Xss(message = "用户昵称不能包含脚本字符") - @Size(min = 2, max = 30, message = "不能为空,用户昵称长度不能超过30个字符") - public String getCheckName() - { - return checkName; - } - public void setTemperature(String temperature) - { - this.temperature = temperature; - } - - @Size(min = 2, message = "体温只能为数字") - public String getTemperature() - { - return temperature; - } - public void setState(String state) - { - this.state = state; - } - - public String getState() - { - return state; - } - public void setIsHigh(Integer isHigh) - { - this.isHigh = isHigh; - } - - public Integer getIsHigh() - { - return isHigh; - } - public void setIsTouch(Integer isTouch) - { - this.isTouch = isTouch; - } - - public Integer getIsTouch() - { - return isTouch; - } - public void setDescription(String description) - { - this.description = description; - } - - public String getDescription() - { - return description; - } - public void setCheckDatetime(Date checkDatetime) - { - this.checkDatetime = checkDatetime; - } - public Date getCheckDatetime() - { - return checkDatetime; - } - public void setCurrentPosition(String currentPosition) - { - this.currentPosition = currentPosition; - } - - public String getCurrentPosition() - { - return currentPosition; - } - - @Override - public String toString() { - return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE) - .append("checkId", getCheckId()) - .append("checkName", getCheckName()) - .append("temperature", getTemperature()) - .append("state", getState()) - .append("isHigh", getIsHigh()) - .append("isTouch", getIsTouch()) - .append("description", getDescription()) - .append("checkDatetime", getCheckDatetime()) - .append("currentPosition", getCurrentPosition()) - .toString(); - } -} diff --git a/ruoyi-system/src/main/java/com/ruoyi/system/domain/CheckManage.java b/ruoyi-system/src/main/java/com/ruoyi/system/domain/CheckManage.java index fc933e0..ef24edc 100644 --- a/ruoyi-system/src/main/java/com/ruoyi/system/domain/CheckManage.java +++ b/ruoyi-system/src/main/java/com/ruoyi/system/domain/CheckManage.java @@ -1,10 +1,15 @@ package com.ruoyi.system.domain; +import com.fasterxml.jackson.annotation.JsonFormat; +import com.ruoyi.common.xss.Xss; import org.apache.commons.lang3.builder.ToStringBuilder; import org.apache.commons.lang3.builder.ToStringStyle; import com.ruoyi.common.annotation.Excel; import com.ruoyi.common.core.domain.BaseEntity; +import javax.validation.constraints.Size; +import java.util.Date; + /** * 打卡管理对象 check_manage * @@ -22,170 +27,142 @@ public class CheckManage extends BaseEntity @Excel(name = "打卡人姓名") private String checkName; - /** 打卡人年龄 */ - @Excel(name = "打卡人年龄") - private String checkAge; - - /** 打卡人性别 */ - @Excel(name = "打卡人性别") - private Integer checkSex; - - /** 身份证 */ - @Excel(name = "身份证") - private String patientIdCard; + /** 体温 */ + @Excel(name = "体温") + private String temperature; - /** 确诊状态 */ - @Excel(name = "确诊状态") - private Integer isDiagnosed; + /** 健康状况 */ + @Excel(name = "健康状况") + private String healthState; - /** 治愈状态 */ - @Excel(name = "治愈状态") - private Integer isCure; + /** 是否去过高风险地区 */ + @Excel(name = "是否去过高风险地区") + private Integer isHigh; - /** 密接状态 */ - @Excel(name = "密接状态") + /** 是否接触过密接人员 */ + @Excel(name = "是否接触过密接人员") private Integer isTouch; - /** 死亡状态 */ - @Excel(name = "死亡状态") - private Integer isDead; - /** 备注 */ @Excel(name = "备注") private String description; - /** 最近接触地区 */ - @Excel(name = "最近接触地区") - private String checkPostition; + /** 当前时间 */ + @JsonFormat(pattern = "yyyy-MM-dd") + @Excel(name = "当前时间", width = 30, dateFormat = "yyyy-MM-dd") + private Date checkDatetime; - /** 体温 */ - @Excel(name = "体温") - private String temperature; + /** 打卡位置 */ + @Excel(name = "打卡位置") + private String currentPosition; - public void setCheckManageId(Long checkManageId) - { - this.checkManageId = checkManageId; - } + /** 当前使用电话 */ + @Excel(name = "当前使用电话") + private String checkPhonenumber; - public Long getCheckManageId() - { + public Long getCheckManageId() { return checkManageId; } - public void setCheckName(String checkName) - { - this.checkName = checkName; - } - public String getCheckName() - { - return checkName; - } - public void setCheckAge(String checkAge) - { - this.checkAge = checkAge; + public void setCheckManageId(Long checkManageId) { + this.checkManageId = checkManageId; } - public String getCheckAge() + public void setCheckName(String checkName) { - return checkAge; - } - public void setCheckSex(Integer checkSex) - { - this.checkSex = checkSex; + this.checkName = checkName; } - - public Integer getCheckSex() + @Xss(message = "用户昵称不能包含脚本字符") + @Size(min = 2, max = 30, message = "不能为空,用户昵称长度不能超过30个字符") + public String getCheckName() { - return checkSex; + return checkName; } - public void setPatientIdCard(String patientIdCard) + public void setTemperature(String temperature) { - this.patientIdCard = patientIdCard; + this.temperature = temperature; } - public String getPatientIdCard() + @Size(min = 2, message = "体温只能为数字") + public String getTemperature() { - return patientIdCard; + return temperature; } - public void setIsDiagnosed(Integer isDiagnosed) + public void setHealthState(String healthState) { - this.isDiagnosed = isDiagnosed; + this.healthState = healthState; } - public Integer getIsDiagnosed() + public String getHealthState() { - return isDiagnosed; + return healthState; } - public void setIsCure(Integer isCure) + public void setIsHigh(Integer isHigh) { - this.isCure = isCure; + this.isHigh = isHigh; } - public Integer getIsCure() + public Integer getIsHigh() { - return isCure; + return isHigh; } - public void setIsTouch(Integer isTouch) + public void setIsTouch(Integer isTouch) { this.isTouch = isTouch; } - public Integer getIsTouch() + public Integer getIsTouch() { return isTouch; } - public void setIsDead(Integer isDead) + public void setDescription(String description) { - this.isDead = isDead; + this.description = description; } - public Integer getIsDead() + public String getDescription() { - return isDead; + return description; } - public void setDescription(String description) + public void setCheckDatetime(Date checkDatetime) { - this.description = description; + this.checkDatetime = checkDatetime; } - - public String getDescription() + public Date getCheckDatetime() { - return description; + return checkDatetime; } - public void setCheckPostition(String checkPostition) + public void setCurrentPosition(String currentPosition) { - this.checkPostition = checkPostition; + this.currentPosition = currentPosition; } - public String getCheckPostition() + public String getCurrentPosition() { - return checkPostition; + return currentPosition; } - public void setTemperature(String temperature) - { - this.temperature = temperature; + + public String getCheckPhonenumber() { + return checkPhonenumber; } - public String getTemperature() - { - return temperature; + public void setCheckPhonenumber(String checkPhonenumber) { + this.checkPhonenumber = checkPhonenumber; } @Override public String toString() { return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE) - .append("checkManageId", getCheckManageId()) - .append("checkName", getCheckName()) - .append("checkAge", getCheckAge()) - .append("checkSex", getCheckSex()) - .append("patientIdCard", getPatientIdCard()) - .append("isDiagnosed", getIsDiagnosed()) - .append("isCure", getIsCure()) - .append("isTouch", getIsTouch()) - .append("isDead", getIsDead()) - .append("description", getDescription()) - .append("checkPostition", getCheckPostition()) - .append("temperature", getTemperature()) - .toString(); + .append("checkMangeId", getCheckManageId()) + .append("checkName", getCheckName()) + .append("temperature", getTemperature()) + .append("healthState", getHealthState()) + .append("isHigh", getIsHigh()) + .append("isTouch", getIsTouch()) + .append("description", getDescription()) + .append("checkDatetime", getCheckDatetime()) + .append("currentPosition", getCurrentPosition()) + .append("checkPhonenumber", getCheckPhonenumber()) + .toString(); } } diff --git a/ruoyi-system/src/main/java/com/ruoyi/system/mapper/CheckManageMapper.java b/ruoyi-system/src/main/java/com/ruoyi/system/mapper/CheckManageMapper.java index 40ed2a6..e86a177 100644 --- a/ruoyi-system/src/main/java/com/ruoyi/system/mapper/CheckManageMapper.java +++ b/ruoyi-system/src/main/java/com/ruoyi/system/mapper/CheckManageMapper.java @@ -65,5 +65,5 @@ public interface CheckManageMapper * @param patientIdCard 身份证 * @return 患者信息 */ - public CheckManage selectCheckByPatientIdCard(String patientIdCard); + public CheckManage selectCheckByPhonenumber(String patientIdCard); } diff --git a/ruoyi-system/src/main/java/com/ruoyi/system/mapper/CheckMapper.java b/ruoyi-system/src/main/java/com/ruoyi/system/mapper/CheckMapper.java deleted file mode 100644 index b890705..0000000 --- a/ruoyi-system/src/main/java/com/ruoyi/system/mapper/CheckMapper.java +++ /dev/null @@ -1,24 +0,0 @@ -package com.ruoyi.system.mapper; - -import java.util.List; -import com.ruoyi.system.domain.Check; - -/** - * 个人打卡Mapper接口 - * - * @author zlx - * @date 2023-04-22 - */ -public interface CheckMapper -{ - - /** - * 新增个人打卡 - * - * @param check 个人打卡 - * @return 结果 - */ - public int insertCheck(Check check); - - -} diff --git a/ruoyi-system/src/main/java/com/ruoyi/system/service/ICheckService.java b/ruoyi-system/src/main/java/com/ruoyi/system/service/ICheckService.java deleted file mode 100644 index f9cee86..0000000 --- a/ruoyi-system/src/main/java/com/ruoyi/system/service/ICheckService.java +++ /dev/null @@ -1,23 +0,0 @@ -package com.ruoyi.system.service; - -import java.util.List; -import com.ruoyi.system.domain.Check; - -/** - * 个人打卡Service接口 - * - * @author zlx - * @date 2023-04-22 - */ -public interface ICheckService -{ - - /** - * 新增个人打卡 - * - * @param check 个人打卡 - * @return 结果 - */ - public int insertCheck(Check check); - -} diff --git a/ruoyi-system/src/main/java/com/ruoyi/system/service/impl/CheckManageServiceImpl.java b/ruoyi-system/src/main/java/com/ruoyi/system/service/impl/CheckManageServiceImpl.java index dedd996..d6bd2ca 100644 --- a/ruoyi-system/src/main/java/com/ruoyi/system/service/impl/CheckManageServiceImpl.java +++ b/ruoyi-system/src/main/java/com/ruoyi/system/service/impl/CheckManageServiceImpl.java @@ -117,13 +117,13 @@ public class CheckManageServiceImpl implements ICheckManageService try { // 验证是否存在这个患者 - CheckManage p = checkManageMapper.selectCheckByPatientIdCard(checkManage.getPatientIdCard()); + CheckManage p = checkManageMapper.selectCheckByPhonenumber(checkManage.getCheckPhonenumber()); if (StringUtils.isNull(p)) { BeanValidators.validateWithException(validator, checkManage); this.insertCheckManage(checkManage); successNum++; - successMsg.append("
    " + successNum + "、身份证: " + checkManage.getPatientIdCard() + " 导入成功"); + successMsg.append("
    " + successNum + "、电话为: " + checkManage.getCheckPhonenumber() + " 的打卡信息导入成功"); } else if (isUpdateSupport) { @@ -131,18 +131,18 @@ public class CheckManageServiceImpl implements ICheckManageService checkManage.setCheckManageId(p.getCheckManageId()); this.updateCheckManage(checkManage); successNum++; - successMsg.append("
    " + successNum + "、身份证: " + checkManage.getPatientIdCard() + " 的打卡信息更新成功"); + successMsg.append("
    " + successNum + "、电话为 " + checkManage.getCheckName() + " 的打卡信息更新成功"); } else { failureNum++; - failureMsg.append("
    " + failureNum + "、身份证 " + checkManage.getPatientIdCard() + " 已存在"); + failureMsg.append("
    " + failureNum + "、电话为 " + checkManage.getCheckPhonenumber() + " 已存在"); } } catch (Exception e) { failureNum++; - String msg = "
    " + failureNum + "、身份证 " + checkManage.getPatientIdCard() + " 导入失败:"; + String msg = "
    " + failureNum + "、电话为 " + checkManage.getCheckPhonenumber() + " 导入失败:"; failureMsg.append(msg + e.getMessage()); log.error(msg, e); } diff --git a/ruoyi-system/src/main/java/com/ruoyi/system/service/impl/CheckServiceImpl.java b/ruoyi-system/src/main/java/com/ruoyi/system/service/impl/CheckServiceImpl.java deleted file mode 100644 index 2997ae9..0000000 --- a/ruoyi-system/src/main/java/com/ruoyi/system/service/impl/CheckServiceImpl.java +++ /dev/null @@ -1,32 +0,0 @@ -package com.ruoyi.system.service.impl; - -import java.util.List; -import org.springframework.beans.factory.annotation.Autowired; -import org.springframework.stereotype.Service; -import com.ruoyi.system.mapper.CheckMapper; -import com.ruoyi.system.domain.Check; -import com.ruoyi.system.service.ICheckService; - - -/** - * 个人打卡Service业务层处理 - * - * @author zlx - * @date 2023-04-22 - */ -@Service -public class CheckServiceImpl implements ICheckService { - @Autowired - private CheckMapper checkMapper; - - /** - * 新增个人打卡 - * - * @param check 个人打卡 - * @return 结果 - */ - @Override - public int insertCheck(Check check) { - return checkMapper.insertCheck(check); - } -} diff --git a/ruoyi-system/src/main/java/com/ruoyi/system/service/impl/SysUserServiceImpl.java b/ruoyi-system/src/main/java/com/ruoyi/system/service/impl/SysUserServiceImpl.java index ad26f5d..34cc538 100644 --- a/ruoyi-system/src/main/java/com/ruoyi/system/service/impl/SysUserServiceImpl.java +++ b/ruoyi-system/src/main/java/com/ruoyi/system/service/impl/SysUserServiceImpl.java @@ -31,7 +31,6 @@ import com.ruoyi.system.mapper.SysUserPostMapper; import com.ruoyi.system.mapper.SysUserRoleMapper; import com.ruoyi.system.service.ISysConfigService; import com.ruoyi.system.service.ISysUserService; -import com.ruoyi.system.service.ISysUserService; /** * 用户 业务层处理 diff --git a/ruoyi-system/src/main/resources/mapper/CheckManageMapper.xml b/ruoyi-system/src/main/resources/mapper/CheckManageMapper.xml index b48c93e..5277558 100644 --- a/ruoyi-system/src/main/resources/mapper/CheckManageMapper.xml +++ b/ruoyi-system/src/main/resources/mapper/CheckManageMapper.xml @@ -7,37 +7,35 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" - - - - + + + + + - - - + - select check_manage_id, check_name, check_sex, patient_id_card, is_diagnosed, is_cure, is_touch, is_dead, description, check_postition, temperature from check_manage + select check_manage_id, check_name, temperature, health_state, is_high, is_touch, description, check_datetime, current_position, check_phonenumber + from check_manage - + \ No newline at end of file diff --git a/ruoyi-system/src/main/resources/mapper/CheckMapper.xml b/ruoyi-system/src/main/resources/mapper/CheckMapper.xml deleted file mode 100644 index 04319fb..0000000 --- a/ruoyi-system/src/main/resources/mapper/CheckMapper.xml +++ /dev/null @@ -1,44 +0,0 @@ - - - - - - - - - - - - - - - - - - insert into individual_check - - check_name, - temperature, - state, - description, - is_high, - is_touch, - current_position, - check_datetime, - - - #{checkName}, - #{temperature}, - #{state}, - #{description}, - #{isHigh}, - #{isTouch}, - #{currentPosition}, - #{checkDatetime}, - - - - - \ No newline at end of file diff --git a/ruoyi-system/src/main/resources/mapper/PatientManageMapper.xml b/ruoyi-system/src/main/resources/mapper/PatientManageMapper.xml index 002d3a0..694c303 100644 --- a/ruoyi-system/src/main/resources/mapper/PatientManageMapper.xml +++ b/ruoyi-system/src/main/resources/mapper/PatientManageMapper.xml @@ -21,7 +21,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" - select patient_id, patient_name, patient_age, patient_sex, patient_id_card, description, curren_postition, temperature, diagnosed_time, is_diagnosed, is_cure, is_touch, is_dead from patient_manage + select patient_id, patient_name, patient_age, patient_sex, patient_id_card, description, current_position, temperature, diagnosed_time, is_diagnosed, is_cure, is_touch, is_dead from patient_manage