From 6ee863137b27eb9d5c093657c964921390a17fc0 Mon Sep 17 00:00:00 2001 From: zouyiqing <854938661@qq.com> Date: Thu, 4 Jan 2024 15:32:46 +0800 Subject: [PATCH] =?UTF-8?q?win=E4=BB=A3=E7=A0=81=E4=B8=8A=E4=BC=A0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../system/IdentifierStatusController.java | 14 ++ .../system/NormalIdentifierController.java | 20 +- .../system/SysIdentifierController.java | 2 +- .../controller/system/SysRadarController.java | 216 +----------------- .../system/normalIdentifier/add.html | 10 +- .../system/normalIdentifier/edit.html | 14 +- .../normalIdentifier/normalIdentifier.html | 22 +- .../core/domain/entity/SysIdentifier.java | 34 +++ .../system/mapper/IdentifierStatusMapper.java | 15 ++ .../system/mapper/SysIdentifierMapper.java | 8 + .../system/service/ISysIdentifierService.java | 10 +- .../service/IdentifierStatusService.java | 14 ++ .../impl/IdentifierStatusServiceImpl.java | 25 ++ .../impl/SysIdentifierServiceImpl.java | 24 +- .../mapper/system/IdentifierStatusMapper.xml | 7 + .../mapper/system/SysIdentifierMapper.xml | 204 ++++++----------- 16 files changed, 249 insertions(+), 390 deletions(-) create mode 100644 ruoyi-system/src/main/java/com/ruoyi/system/mapper/IdentifierStatusMapper.java create mode 100644 ruoyi-system/src/main/java/com/ruoyi/system/service/IdentifierStatusService.java create mode 100644 ruoyi-system/src/main/java/com/ruoyi/system/service/impl/IdentifierStatusServiceImpl.java create mode 100644 ruoyi-system/src/main/resources/mapper/system/IdentifierStatusMapper.xml diff --git a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/system/IdentifierStatusController.java b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/system/IdentifierStatusController.java index 62ec0b3..3d42c82 100644 --- a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/system/IdentifierStatusController.java +++ b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/system/IdentifierStatusController.java @@ -3,9 +3,13 @@ package com.ruoyi.web.controller.system; import com.alibaba.fastjson.JSON; import com.ruoyi.common.core.domain.AjaxResult; import com.ruoyi.common.core.domain.CxSelect; +import com.ruoyi.common.core.page.TableDataInfo; import com.ruoyi.common.json.JSONObject; import com.ruoyi.common.json.JSONObject.JSONArray; import com.ruoyi.common.utils.StringUtils; +import com.ruoyi.system.service.IdentifierStatusService; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.scheduling.annotation.Schedules; import org.springframework.stereotype.Controller; import org.springframework.ui.ModelMap; import org.springframework.web.bind.annotation.GetMapping; @@ -25,6 +29,11 @@ import java.util.List; @RequestMapping("/system/identifierStatus") public class IdentifierStatusController { + + @Autowired + private IdentifierStatusService identifierStatusService; + + private String prefix = "/system/identifierStatus"; @@ -46,6 +55,11 @@ public class IdentifierStatusController return prefix + "/select"; } + + @PostMapping("/list") + public TableDataInfo list(){ + return new TableDataInfo(); + } /** * 时间轴 */ diff --git a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/system/NormalIdentifierController.java b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/system/NormalIdentifierController.java index d888fd8..62baad9 100644 --- a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/system/NormalIdentifierController.java +++ b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/system/NormalIdentifierController.java @@ -38,7 +38,7 @@ public class NormalIdentifierController extends BaseController private String prefix = "system/normalIdentifier"; @Autowired - private NormalIdentifierService normalIdentifierService; + private ISysIdentifierService identifierService; @GetMapping() public String identifier() @@ -48,10 +48,10 @@ public class NormalIdentifierController extends BaseController @PostMapping("/list") @ResponseBody - public TableDataInfo list(NormalIdentifier normalIdentifier) + public TableDataInfo list(SysIdentifier identifier) { startPage(); - List list = normalIdentifierService.selectNormalIdentifierList(normalIdentifier); + List list = identifierService.selectNormalIdentifierList(identifier); return getDataTable(list); } @@ -71,10 +71,10 @@ public class NormalIdentifierController extends BaseController @Log(title = "用户管理", businessType = BusinessType.INSERT) @PostMapping("/add") @ResponseBody - public AjaxResult addSave(@Validated NormalIdentifier normalIdentifier) + public AjaxResult addSave(@Validated SysIdentifier identifier) { - normalIdentifier.setCreateBy(getLoginName()); - return toAjax(normalIdentifierService.insertNormalIdentifier(normalIdentifier)); + identifier.setCreateBy(getLoginName()); + return toAjax(identifierService.insertNormalIdentifier(identifier)); } /** @@ -84,7 +84,7 @@ public class NormalIdentifierController extends BaseController @GetMapping("/edit/{id}") public String edit(@PathVariable("id") Long id, ModelMap mmap) { - mmap.put("normalIdentifier", normalIdentifierService.selectIdentifierById(id)); + mmap.put("normalIdentifier", identifierService.selectNormalIdentifierById(id)); return prefix + "/edit"; } @@ -94,10 +94,10 @@ public class NormalIdentifierController extends BaseController // @RequiresPermissions("system:user:edit") @PostMapping("/edit") @ResponseBody - public AjaxResult editSave(@Validated NormalIdentifier normalIdentifier) + public AjaxResult editSave(@Validated SysIdentifier identifier) { - normalIdentifier.setUpdateBy(getLoginName()); - return toAjax(normalIdentifierService.updateUser(normalIdentifier)); + identifier.setUpdateBy(getLoginName()); + return toAjax(identifierService.updateNormalIdentifier(identifier)); } } \ No newline at end of file diff --git a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/system/SysIdentifierController.java b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/system/SysIdentifierController.java index fd2c87f..a2e4112 100644 --- a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/system/SysIdentifierController.java +++ b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/system/SysIdentifierController.java @@ -74,7 +74,7 @@ public class SysIdentifierController extends BaseController public AjaxResult addSave(@Validated SysIdentifier identifier) { identifier.setCreateBy(getLoginName()); - return toAjax(iSysIdentifierService.insertRadar(identifier)); + return toAjax(iSysIdentifierService.insertIdentifier(identifier)); } /** diff --git a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/system/SysRadarController.java b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/system/SysRadarController.java index 7800a47..2a40d07 100644 --- a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/system/SysRadarController.java +++ b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/system/SysRadarController.java @@ -30,7 +30,7 @@ import java.util.List; import java.util.stream.Collectors; /** - * 用户信息 + * 雷达配置 * * @author ruoyi */ @@ -40,22 +40,9 @@ public class SysRadarController extends BaseController { private String prefix = "system/radar"; - @Autowired - private ISysUserService userService; + @Autowired private ISysRadarService radarService; - @Autowired - private ISysRoleService roleService; - - @Autowired - private ISysDeptService deptService; - - @Autowired - private ISysPostService postService; - - @Autowired - private SysPasswordService passwordService; - @GetMapping() public String user() { @@ -71,54 +58,20 @@ public class SysRadarController extends BaseController return getDataTable(list); } - @Log(title = "用户管理", businessType = BusinessType.EXPORT) - @RequiresPermissions("system:user:export") - @PostMapping("/export") - @ResponseBody - public AjaxResult export(SysUser user) - { - List list = userService.selectUserList(user); - ExcelUtil util = new ExcelUtil(SysUser.class); - return util.exportExcel(list, "用户数据"); - } - - @Log(title = "用户管理", businessType = BusinessType.IMPORT) - @RequiresPermissions("system:user:import") - @PostMapping("/importData") - @ResponseBody - public AjaxResult importData(MultipartFile file, boolean updateSupport) throws Exception - { - ExcelUtil util = new ExcelUtil(SysUser.class); - List userList = util.importExcel(file.getInputStream()); - String message = userService.importUser(userList, updateSupport, getLoginName()); - return AjaxResult.success(message); - } - - @RequiresPermissions("system:user:view") - @GetMapping("/importTemplate") - @ResponseBody - public AjaxResult importTemplate() - { - ExcelUtil util = new ExcelUtil(SysUser.class); - return util.importTemplateExcel("用户数据"); - } - /** - * 新增用户 + * 新增雷达配置 */ @GetMapping("/add") public String add(ModelMap mmap) { - mmap.put("roles", roleService.selectRoleAll().stream().filter(r -> !r.isAdmin()).collect(Collectors.toList())); - mmap.put("posts", postService.selectPostAll()); return prefix + "/add"; } /** - * 新增保存用户 + * 新增保存雷达配置 */ // @RequiresPermissions("system:user:add") - @Log(title = "用户管理", businessType = BusinessType.INSERT) + @Log(title = "雷达配置管理", businessType = BusinessType.INSERT) @PostMapping("/add") @ResponseBody public AjaxResult addSave(@Validated SysRadar radar) @@ -128,7 +81,7 @@ public class SysRadarController extends BaseController } /** - * 修改用户 + * 修改雷达 */ // @RequiresPermissions("system:user:edit") @GetMapping("/edit/{id}") @@ -139,24 +92,10 @@ public class SysRadarController extends BaseController } /** - * 查询用户详细 - */ - @RequiresPermissions("system:user:list") - @GetMapping("/view/{userId}") - public String view(@PathVariable("userId") Long userId, ModelMap mmap) - { - userService.checkUserDataScope(userId); - mmap.put("user", userService.selectUserById(userId)); - mmap.put("roleGroup", userService.selectUserRoleGroup(userId)); - mmap.put("postGroup", userService.selectUserPostGroup(userId)); - return prefix + "/view"; - } - - /** - * 修改保存用户 + * 修改保存雷达 */ // @RequiresPermissions("system:user:edit") - @Log(title = "用户管理", businessType = BusinessType.UPDATE) + @Log(title = "雷达修改", businessType = BusinessType.UPDATE) @PostMapping("/edit") @ResponseBody public AjaxResult editSave(@Validated SysRadar radar) @@ -166,143 +105,4 @@ public class SysRadarController extends BaseController return toAjax(radarService.updateUser(radar)); } - @RequiresPermissions("system:user:resetPwd") - @GetMapping("/resetPwd/{userId}") - public String resetPwd(@PathVariable("userId") Long userId, ModelMap mmap) - { - mmap.put("user", userService.selectUserById(userId)); - return prefix + "/resetPwd"; - } - - @RequiresPermissions("system:user:resetPwd") - @Log(title = "重置密码", businessType = BusinessType.UPDATE) - @PostMapping("/resetPwd") - @ResponseBody - public AjaxResult resetPwdSave(SysUser user) - { - userService.checkUserAllowed(user); - userService.checkUserDataScope(user.getUserId()); - user.setSalt(ShiroUtils.randomSalt()); - user.setPassword(passwordService.encryptPassword(user.getLoginName(), user.getPassword(), user.getSalt())); - if (userService.resetUserPwd(user) > 0) - { - if (ShiroUtils.getUserId().longValue() == user.getUserId().longValue()) - { - setSysUser(userService.selectUserById(user.getUserId())); - } - return success(); - } - return error(); - } - - /** - * 进入授权角色页 - */ - @GetMapping("/authRole/{userId}") - public String authRole(@PathVariable("userId") Long userId, ModelMap mmap) - { - SysUser user = userService.selectUserById(userId); - // 获取用户所属的角色列表 - List roles = roleService.selectRolesByUserId(userId); - mmap.put("user", user); - mmap.put("roles", SysUser.isAdmin(userId) ? roles : roles.stream().filter(r -> !r.isAdmin()).collect(Collectors.toList())); - return prefix + "/authRole"; - } - - /** - * 用户授权角色 - */ - @RequiresPermissions("system:user:edit") - @Log(title = "用户管理", businessType = BusinessType.GRANT) - @PostMapping("/authRole/insertAuthRole") - @ResponseBody - public AjaxResult insertAuthRole(Long userId, Long[] roleIds) - { - userService.checkUserDataScope(userId); - userService.insertUserAuth(userId, roleIds); - AuthorizationUtils.clearAllCachedAuthorizationInfo(); - return success(); - } - - @RequiresPermissions("system:user:remove") - @Log(title = "用户管理", businessType = BusinessType.DELETE) - @PostMapping("/remove") - @ResponseBody - public AjaxResult remove(String ids) - { - if (ArrayUtils.contains(Convert.toLongArray(ids), getUserId())) - { - return error("当前用户不能删除"); - } - return toAjax(userService.deleteUserByIds(ids)); - } - - /** - * 校验用户名 - */ - @PostMapping("/checkLoginNameUnique") - @ResponseBody - public boolean checkLoginNameUnique(SysUser user) - { - return userService.checkLoginNameUnique(user); - } - - /** - * 校验手机号码 - */ - @PostMapping("/checkPhoneUnique") - @ResponseBody - public boolean checkPhoneUnique(SysUser user) - { - return userService.checkPhoneUnique(user); - } - - /** - * 校验email邮箱 - */ - @PostMapping("/checkEmailUnique") - @ResponseBody - public boolean checkEmailUnique(SysUser user) - { - return userService.checkEmailUnique(user); - } - - /** - * 用户状态修改 - */ - @Log(title = "用户管理", businessType = BusinessType.UPDATE) - @RequiresPermissions("system:user:edit") - @PostMapping("/changeStatus") - @ResponseBody - public AjaxResult changeStatus(SysUser user) - { - userService.checkUserAllowed(user); - userService.checkUserDataScope(user.getUserId()); - return toAjax(userService.changeStatus(user)); - } - - /** - * 加载部门列表树 - */ - @RequiresPermissions("system:user:list") - @GetMapping("/deptTreeData") - @ResponseBody - public List deptTreeData() - { - List ztrees = deptService.selectDeptTree(new SysDept()); - return ztrees; - } - - /** - * 选择部门树 - * - * @param deptId 部门ID - */ - @RequiresPermissions("system:user:list") - @GetMapping("/selectDeptTree/{deptId}") - public String selectDeptTree(@PathVariable("deptId") Long deptId, ModelMap mmap) - { - mmap.put("dept", deptService.selectDeptById(deptId)); - return prefix + "/deptTree"; - } } \ No newline at end of file diff --git a/ruoyi-admin/src/main/resources/templates/system/normalIdentifier/add.html b/ruoyi-admin/src/main/resources/templates/system/normalIdentifier/add.html index c3308f3..d712887 100644 --- a/ruoyi-admin/src/main/resources/templates/system/normalIdentifier/add.html +++ b/ruoyi-admin/src/main/resources/templates/system/normalIdentifier/add.html @@ -12,7 +12,7 @@
- +
@@ -22,7 +22,7 @@
- +
@@ -32,7 +32,7 @@
- +
@@ -42,7 +42,7 @@
- +
@@ -52,7 +52,7 @@
- +
diff --git a/ruoyi-admin/src/main/resources/templates/system/normalIdentifier/edit.html b/ruoyi-admin/src/main/resources/templates/system/normalIdentifier/edit.html index 1ee76cb..e93220a 100644 --- a/ruoyi-admin/src/main/resources/templates/system/normalIdentifier/edit.html +++ b/ruoyi-admin/src/main/resources/templates/system/normalIdentifier/edit.html @@ -13,7 +13,7 @@
- +
@@ -23,7 +23,7 @@
- +
@@ -33,7 +33,7 @@
- +
@@ -43,7 +43,7 @@
- +
@@ -53,7 +53,7 @@
- +
@@ -61,10 +61,6 @@
- - - -
diff --git a/ruoyi-admin/src/main/resources/templates/system/normalIdentifier/normalIdentifier.html b/ruoyi-admin/src/main/resources/templates/system/normalIdentifier/normalIdentifier.html index 1ea00c6..b3a8120 100644 --- a/ruoyi-admin/src/main/resources/templates/system/normalIdentifier/normalIdentifier.html +++ b/ruoyi-admin/src/main/resources/templates/system/normalIdentifier/normalIdentifier.html @@ -14,10 +14,10 @@
  • - 雷达位置: + 雷达位置:
  • - 铁包号: + 铁包号:
  •  搜索 @@ -87,27 +87,24 @@ title: '序号' }, { - field: 'normalId', + field: 'identifierId', title: '常温温标识器ID1', sortable: true, - // formatter: function (value, row, index) { - // // return '' + value + ''; - // } }, { - field: 'normalTwo', + field: 'identifierTwo', title: '常温标识器ID2' }, { - field: 'normalThree', + field: 'identifierThree', title: '常温标识器ID3' }, { - field: 'normalFour', + field: 'identifierFour', title: '常温标识器ID4' }, { - field: 'normalNumber', + field: 'ladleNumber', title: '铁包号' }, { @@ -117,11 +114,6 @@ if (row.userId != 1) { var actions = []; actions.push('编辑 '); - // actions.push('删除 '); - // var more = []; - // more.push("重置密码 "); - // more.push("分配角色"); - // actions.push('更多操作'); return actions.join(''); } else { return ""; diff --git a/ruoyi-common/src/main/java/com/ruoyi/common/core/domain/entity/SysIdentifier.java b/ruoyi-common/src/main/java/com/ruoyi/common/core/domain/entity/SysIdentifier.java index 62e119a..f080406 100644 --- a/ruoyi-common/src/main/java/com/ruoyi/common/core/domain/entity/SysIdentifier.java +++ b/ruoyi-common/src/main/java/com/ruoyi/common/core/domain/entity/SysIdentifier.java @@ -23,6 +23,13 @@ public class SysIdentifier extends BaseEntity private String identifierTwo; + private String identifierThree; + + private String identifierFour; + + private Integer type; + + private String ladleNumber; /** 删除标志(0代表存在 2代表删除) */ @@ -55,6 +62,30 @@ public class SysIdentifier extends BaseEntity this.identifierTwo = identifierTwo; } + public String getIdentifierThree() { + return identifierThree; + } + + public void setIdentifierThree(String identifierThree) { + this.identifierThree = identifierThree; + } + + public String getIdentifierFour() { + return identifierFour; + } + + public void setIdentifierFour(String identifierFour) { + this.identifierFour = identifierFour; + } + + public Integer getType() { + return type; + } + + public void setType(Integer type) { + this.type = type; + } + public String getLadleNumber() { return ladleNumber; } @@ -78,6 +109,9 @@ public class SysIdentifier extends BaseEntity .append("identifierId", getIdentifierId()) .append("identifierTwo", getIdentifierTwo()) .append("ladleNumber", getLadleNumber()) + .append("identifierThree", getIdentifierThree()) + .append("identifierFour",getIdentifierFour()) + .append("type",getType()) .append("delFlag", getDelFlag()) .append("createBy", getCreateBy()) .append("createTime", getCreateTime()) diff --git a/ruoyi-system/src/main/java/com/ruoyi/system/mapper/IdentifierStatusMapper.java b/ruoyi-system/src/main/java/com/ruoyi/system/mapper/IdentifierStatusMapper.java new file mode 100644 index 0000000..95c7279 --- /dev/null +++ b/ruoyi-system/src/main/java/com/ruoyi/system/mapper/IdentifierStatusMapper.java @@ -0,0 +1,15 @@ +package com.ruoyi.system.mapper; + +import com.ruoyi.common.core.domain.entity.SysIdentifier; + +import java.util.List; + +/** + * 用户表 数据层 + * + * @author ruoyi + */ +public interface IdentifierStatusMapper +{ + +} diff --git a/ruoyi-system/src/main/java/com/ruoyi/system/mapper/SysIdentifierMapper.java b/ruoyi-system/src/main/java/com/ruoyi/system/mapper/SysIdentifierMapper.java index 9de91f3..21e9247 100644 --- a/ruoyi-system/src/main/java/com/ruoyi/system/mapper/SysIdentifierMapper.java +++ b/ruoyi-system/src/main/java/com/ruoyi/system/mapper/SysIdentifierMapper.java @@ -22,4 +22,12 @@ public interface SysIdentifierMapper SysIdentifier selectIdentifierById(Long id); int updateIdentifier(SysIdentifier identifier); + + List selectNormalIdentifierList(SysIdentifier identifier); + + int insertNormalIdentifier(SysIdentifier identifier); + + SysIdentifier selectNormalIdentifierById(Long id); + + int updateNormalIdentifier(SysIdentifier identifier); } diff --git a/ruoyi-system/src/main/java/com/ruoyi/system/service/ISysIdentifierService.java b/ruoyi-system/src/main/java/com/ruoyi/system/service/ISysIdentifierService.java index 7fd0ff6..d6dae08 100644 --- a/ruoyi-system/src/main/java/com/ruoyi/system/service/ISysIdentifierService.java +++ b/ruoyi-system/src/main/java/com/ruoyi/system/service/ISysIdentifierService.java @@ -16,9 +16,17 @@ public interface ISysIdentifierService { public List selectIdentifierList(SysIdentifier identifier); - int insertRadar(SysIdentifier identifier); + int insertIdentifier(SysIdentifier identifier); SysIdentifier selectIdentifierById(Long id); int updateUser(SysIdentifier identifier); + + List selectNormalIdentifierList(SysIdentifier identifier); + + int insertNormalIdentifier(SysIdentifier identifier); + + SysIdentifier selectNormalIdentifierById(Long id); + + int updateNormalIdentifier(SysIdentifier identifier); } diff --git a/ruoyi-system/src/main/java/com/ruoyi/system/service/IdentifierStatusService.java b/ruoyi-system/src/main/java/com/ruoyi/system/service/IdentifierStatusService.java new file mode 100644 index 0000000..422083b --- /dev/null +++ b/ruoyi-system/src/main/java/com/ruoyi/system/service/IdentifierStatusService.java @@ -0,0 +1,14 @@ +package com.ruoyi.system.service; + +import com.ruoyi.common.core.domain.entity.SysIdentifier; + +import java.util.List; + +/** + *高温标识器 业务层 + * + * @author ruoyi + */ +public interface IdentifierStatusService +{ +} diff --git a/ruoyi-system/src/main/java/com/ruoyi/system/service/impl/IdentifierStatusServiceImpl.java b/ruoyi-system/src/main/java/com/ruoyi/system/service/impl/IdentifierStatusServiceImpl.java new file mode 100644 index 0000000..20f354d --- /dev/null +++ b/ruoyi-system/src/main/java/com/ruoyi/system/service/impl/IdentifierStatusServiceImpl.java @@ -0,0 +1,25 @@ +package com.ruoyi.system.service.impl; + +import com.ruoyi.common.core.domain.entity.SysIdentifier; +import com.ruoyi.system.mapper.SysIdentifierMapper; +import com.ruoyi.system.service.ISysIdentifierService; +import com.ruoyi.system.service.IdentifierStatusService; +import org.slf4j.Logger; +import org.slf4j.LoggerFactory; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.stereotype.Service; + +import javax.validation.Validator; +import java.util.List; + +/** + * 雷达 业务层处理 + * + * @author ruoyi + */ +@Service +public class IdentifierStatusServiceImpl implements IdentifierStatusService +{ + private static final Logger log = LoggerFactory.getLogger(IdentifierStatusServiceImpl.class); + +} diff --git a/ruoyi-system/src/main/java/com/ruoyi/system/service/impl/SysIdentifierServiceImpl.java b/ruoyi-system/src/main/java/com/ruoyi/system/service/impl/SysIdentifierServiceImpl.java index 7f6825f..de059f0 100644 --- a/ruoyi-system/src/main/java/com/ruoyi/system/service/impl/SysIdentifierServiceImpl.java +++ b/ruoyi-system/src/main/java/com/ruoyi/system/service/impl/SysIdentifierServiceImpl.java @@ -58,7 +58,7 @@ public class SysIdentifierServiceImpl implements ISysIdentifierService } @Override - public int insertRadar(SysIdentifier identifier) { + public int insertIdentifier(SysIdentifier identifier) { int rows = identifierMapper.insertIdentifier(identifier); return rows; } @@ -68,6 +68,28 @@ public class SysIdentifierServiceImpl implements ISysIdentifierService return identifierMapper.updateIdentifier(identifier); } + @Override + public List selectNormalIdentifierList(SysIdentifier identifier) { + + return identifierMapper.selectNormalIdentifierList(identifier); + } + + @Override + public int insertNormalIdentifier(SysIdentifier identifier) { + int rows = identifierMapper.insertNormalIdentifier(identifier); + return rows; + } + + @Override + public SysIdentifier selectNormalIdentifierById(Long id) { + return identifierMapper.selectNormalIdentifierById(id); + } + + @Override + public int updateNormalIdentifier(SysIdentifier identifier) { + return identifierMapper.updateNormalIdentifier(identifier); + } + @Override public SysIdentifier selectIdentifierById(Long id) { diff --git a/ruoyi-system/src/main/resources/mapper/system/IdentifierStatusMapper.xml b/ruoyi-system/src/main/resources/mapper/system/IdentifierStatusMapper.xml new file mode 100644 index 0000000..f5b985d --- /dev/null +++ b/ruoyi-system/src/main/resources/mapper/system/IdentifierStatusMapper.xml @@ -0,0 +1,7 @@ + + + + + \ No newline at end of file diff --git a/ruoyi-system/src/main/resources/mapper/system/SysIdentifierMapper.xml b/ruoyi-system/src/main/resources/mapper/system/SysIdentifierMapper.xml index 630c174..eeb83d7 100644 --- a/ruoyi-system/src/main/resources/mapper/system/SysIdentifierMapper.xml +++ b/ruoyi-system/src/main/resources/mapper/system/SysIdentifierMapper.xml @@ -8,6 +8,9 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" + + + @@ -19,7 +22,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" + select i.id,i.identifier_id,i.identifier_two,i.identifier_three,i.identifier_four,i.ladle_number,i.type,i.create_by,i.create_time,i.update_by,i.update_time,i.remark,i.del_flag from sys_identifier i + where i.del_flag = '0' and i.type = 1 + + AND i.ladle_number like concat('%',#{ladleNumber}, '%') + + + AND i.identifier_id like concat('%',#{identifierId}, '%') or + i.identifier_two like concat('%',#{identifierId}, '%') + + + + + insert into sys_identifier( + id, + identifier_id, + identifier_two, + identifier_three, + identifier_four, + ladle_number, + create_by, + remark, + type, + create_time + )values( + #{id}, + #{identifierId}, + #{identifierTwo}, + #{identifierThree}, + #{identifierFour}, + #{ladleNumber}, + #{createBy},#, + #{remark}, + 1, + sysdate() + ) + + + + + + + update sys_identifier + + identifier_id = #{identifierId}, + identifier_two = #{identifierTwo}, + identifier_three = #{identifierThree}, + identifier_four = #{identifierFour}, + ladle_number = #{ladleNumber}, + update_by = #{updateBy}, + remark = #{remark}, + update_time = sysdate() + + where id = #{id} + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file