瀏覽代碼

密码管理

liuwj 2 年之前
父節點
當前提交
4e86670f77

+ 63 - 0
itdmServer/module-iTDM/src/main/java/org/jeecg/modules/itdmMima/dto/ItdmMimaDTO.java

@@ -0,0 +1,63 @@
+package org.jeecg.modules.itdmMima.dto;
+
+import io.swagger.annotations.ApiModelProperty;
+import org.jeecg.modules.itdmMima.entity.ItdmMima;
+
+public class ItdmMimaDTO {
+
+    /** id */
+    @ApiModelProperty(value = "id")
+    private Long id;
+
+    /** 原密码 */
+    @ApiModelProperty(value = "原密码")
+    private String yuanmima;
+
+    /** 密码 */
+    @ApiModelProperty(value = "密码")
+    private String mima;
+
+    /** 设备id */
+    @ApiModelProperty(value = "设备id")
+    private String deviceId;
+
+    public void setId(Long id)
+    {
+        this.id = id;
+    }
+
+    public Long getId()
+    {
+        return id;
+    }
+    public void setMima(String mima)
+    {
+        this.mima = mima;
+    }
+
+    public String getMima()
+    {
+        return mima;
+    }
+    public String getYuanmima() {
+        return yuanmima;
+    }
+
+    public void setYuanmima(String yuanmima) {
+        this.yuanmima = yuanmima;
+    }
+    public String getDeviceId() {
+        return deviceId;
+    }
+
+    public void setDeviceId(String deviceId) {
+        this.deviceId = deviceId;
+    }
+
+    public ItdmMima toItdmMima(){
+        ItdmMima itdmMima = new ItdmMima();
+        itdmMima.setId(this.getId());
+        itdmMima.setMima(this.getMima());
+        return itdmMima;
+    }
+}

+ 67 - 0
itdmServer/module-iTDM/src/main/java/org/jeecg/modules/itdmMima/entity/ItdmMima.java

@@ -0,0 +1,67 @@
+package org.jeecg.modules.itdmMima.entity;
+
+import java.io.Serializable;
+import java.io.UnsupportedEncodingException;
+import java.util.Date;
+import java.math.BigDecimal;
+import com.baomidou.mybatisplus.annotation.IdType;
+import com.baomidou.mybatisplus.annotation.TableId;
+import com.baomidou.mybatisplus.annotation.TableName;
+import com.baomidou.mybatisplus.annotation.TableLogic;
+import lombok.Data;
+import com.fasterxml.jackson.annotation.JsonFormat;
+import org.springframework.format.annotation.DateTimeFormat;
+import org.jeecgframework.poi.excel.annotation.Excel;
+import org.jeecg.common.aspect.annotation.Dict;
+import io.swagger.annotations.ApiModel;
+import io.swagger.annotations.ApiModelProperty;
+import lombok.EqualsAndHashCode;
+import lombok.experimental.Accessors;
+
+/**
+ * @Description: 修改密码表
+ * @Author: jeecg-boot
+ * @Date:   2023-05-27
+ * @Version: V1.0
+ */
+@Data
+@TableName("itdm_mima")
+@Accessors(chain = true)
+@EqualsAndHashCode(callSuper = false)
+@ApiModel(value="itdm_mima对象", description="修改密码表")
+public class ItdmMima implements Serializable {
+    private static final long serialVersionUID = 1L;
+
+	/**id*/
+	@TableId(type = IdType.ASSIGN_ID)
+    @ApiModelProperty(value = "id")
+    private java.lang.Long id;
+	/**密码锁住的位置*/
+	@Excel(name = "密码锁住的位置", width = 15)
+    @ApiModelProperty(value = "密码锁住的位置")
+    private java.lang.String weizhi;
+	/**密码*/
+	@Excel(name = "密码", width = 15)
+    @ApiModelProperty(value = "密码")
+    private java.lang.String mima;
+	/**创建人*/
+    @ApiModelProperty(value = "创建人")
+    private java.lang.String createBy;
+	/**创建时间*/
+	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
+    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
+    @ApiModelProperty(value = "创建时间")
+    private java.util.Date createTime;
+	/**修改人*/
+    @ApiModelProperty(value = "修改人")
+    private java.lang.String updateBy;
+	/**修改时间*/
+	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
+    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
+    @ApiModelProperty(value = "修改时间")
+    private java.util.Date updateTime;
+	/**备注*/
+	@Excel(name = "备注", width = 15)
+    @ApiModelProperty(value = "备注")
+    private java.lang.String remark;
+}

+ 17 - 0
itdmServer/module-iTDM/src/main/java/org/jeecg/modules/itdmMima/mapper/ItdmMimaMapper.java

@@ -0,0 +1,17 @@
+package org.jeecg.modules.itdmMima.mapper;
+
+import java.util.List;
+
+import org.apache.ibatis.annotations.Param;
+import org.apache.ibatis.annotations.Select;
+import org.jeecg.modules.itdmMima.entity.ItdmMima;
+import com.baomidou.mybatisplus.core.mapper.BaseMapper;
+
+/**
+ * @Description: 修改密码表
+ * @Author: jeecg-boot
+ * @Date:   2023-05-27
+ * @Version: V1.0
+ */
+public interface ItdmMimaMapper extends BaseMapper<ItdmMima> {
+}

+ 5 - 0
itdmServer/module-iTDM/src/main/java/org/jeecg/modules/itdmMima/mapper/xml/ItdmMimaMapper.xml

@@ -0,0 +1,5 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
+<mapper namespace="org.jeecg.modules.itdmMima.mapper.ItdmMimaMapper">
+
+</mapper>

+ 14 - 0
itdmServer/module-iTDM/src/main/java/org/jeecg/modules/itdmMima/service/IItdmMimaService.java

@@ -0,0 +1,14 @@
+package org.jeecg.modules.itdmMima.service;
+
+import org.jeecg.modules.itdmMima.entity.ItdmMima;
+import com.baomidou.mybatisplus.extension.service.IService;
+
+/**
+ * @Description: 修改密码表
+ * @Author: jeecg-boot
+ * @Date:   2023-05-27
+ * @Version: V1.0
+ */
+public interface IItdmMimaService extends IService<ItdmMima> {
+
+}

+ 19 - 0
itdmServer/module-iTDM/src/main/java/org/jeecg/modules/itdmMima/service/impl/ItdmMimaServiceImpl.java

@@ -0,0 +1,19 @@
+package org.jeecg.modules.itdmMima.service.impl;
+
+import org.jeecg.modules.itdmMima.entity.ItdmMima;
+import org.jeecg.modules.itdmMima.mapper.ItdmMimaMapper;
+import org.jeecg.modules.itdmMima.service.IItdmMimaService;
+import org.springframework.stereotype.Service;
+
+import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
+
+/**
+ * @Description: 修改密码表
+ * @Author: jeecg-boot
+ * @Date:   2023-05-27
+ * @Version: V1.0
+ */
+@Service
+public class ItdmMimaServiceImpl extends ServiceImpl<ItdmMimaMapper, ItdmMima> implements IItdmMimaService {
+
+}

+ 1 - 0
itdmServer/module-iTDM/src/main/java/org/jeecg/modules/itdmTestPlan/service/impl/ItdmJCXMSHJHServiceImpl.java

@@ -58,6 +58,7 @@ public class ItdmJCXMSHJHServiceImpl implements IItdmJCXMSHJHService {
     /**
      * 项目经理新增或修改试验计划或工单master
      */
+    // TODO 初版,前端单个提交,还要改,前端可能用整体提交——删除怎么办
     public String XMJLAddOrUpdate(ItdmXMJLQueryListVO vo){
         String msg = "操作成功!";