提交 043dc158 authored 作者: LJJ's avatar LJJ

上传项目

上级 d3ad1f3d
File mode changed from 100644 to 100755
File mode changed from 100644 to 100755
File mode changed from 100644 to 100755
File mode changed from 100644 to 100755
File mode changed from 100644 to 100755
File mode changed from 100644 to 100755
File mode changed from 100644 to 100755
File mode changed from 100644 to 100755
File mode changed from 100644 to 100755
File mode changed from 100644 to 100755
File mode changed from 100644 to 100755
File mode changed from 100644 to 100755
File mode changed from 100644 to 100755
File mode changed from 100644 to 100755
File mode changed from 100644 to 100755
File mode changed from 100644 to 100755
File mode changed from 100644 to 100755
File mode changed from 100644 to 100755
File mode changed from 100644 to 100755
File mode changed from 100644 to 100755
File mode changed from 100644 to 100755
File mode changed from 100644 to 100755
File mode changed from 100644 to 100755
File mode changed from 100644 to 100755
File mode changed from 100644 to 100755
File mode changed from 100644 to 100755
File mode changed from 100644 to 100755
File mode changed from 100644 to 100755
File mode changed from 100644 to 100755
File mode changed from 100644 to 100755
File mode changed from 100644 to 100755
File mode changed from 100644 to 100755
File mode changed from 100644 to 100755
File mode changed from 100644 to 100755
...@@ -27,7 +27,7 @@ public class Swagger2Config { ...@@ -27,7 +27,7 @@ public class Swagger2Config {
return new Docket(DocumentationType.SWAGGER_2) return new Docket(DocumentationType.SWAGGER_2)
.produces(Sets.newHashSet("application/json")) .produces(Sets.newHashSet("application/json"))
.consumes(Sets.newHashSet("application/json")) .consumes(Sets.newHashSet("application/json"))
.protocols(Sets.newHashSet("http","https")) .protocols(Sets.newHashSet("http"))
.apiInfo(apiInfo()) .apiInfo(apiInfo())
.forCodeGeneration(true) .forCodeGeneration(true)
.useDefaultResponseMessages(true) .useDefaultResponseMessages(true)
......
...@@ -43,7 +43,7 @@ public class MD5Untils { ...@@ -43,7 +43,7 @@ public class MD5Untils {
//27FB10C9C07BC00CD4B8CE3A7F34B8C7 //27FB10C9C07BC00CD4B8CE3A7F34B8C7
System.out.println(getMD5Str("meeting" + "1576475225319")); System.out.println(getMD5Str("ljj123456"));
} }
// public static String MD5ToUpp16(String sourceStr) { // public static String MD5ToUpp16(String sourceStr) {
......
File mode changed from 100644 to 100755
File mode changed from 100644 to 100755
File mode changed from 100644 to 100755
File mode changed from 100644 to 100755
...@@ -8,7 +8,6 @@ import lombok.extern.slf4j.Slf4j; ...@@ -8,7 +8,6 @@ import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.CommandLineRunner; import org.springframework.boot.CommandLineRunner;
import org.springframework.stereotype.Component; import org.springframework.stereotype.Component;
import sun.security.provider.MD5;
import java.util.Date; import java.util.Date;
import java.util.List; import java.util.List;
......
File mode changed from 100644 to 100755
...@@ -20,15 +20,20 @@ spring.jpa.open-in-view=true ...@@ -20,15 +20,20 @@ spring.jpa.open-in-view=true
spring.servlet.multipart.max-file-size=100MB spring.servlet.multipart.max-file-size=100MB
spring.servlet.multipart.max-request-size=100MB spring.servlet.multipart.max-request-size=100MB
server.tomcat.max-http-form-post-size=0 #server.tomcat.max-http-form-post-size=0
file.address=/Users/ljj/software/ftp file.address=/Users/ljj/software/ftp
## SSL config f # SSL config
# path
#server.ssl.key-store=classpath:3725333_filetransfer.products.zjtys.com.cn.pfx #server.ssl.key-store=classpath:3725333_filetransfer.products.zjtys.com.cn.pfx
## 证书密码,请修改为您自己证书的密码. ## 证书密码,请修改为您自己证书的密码.
#server.ssl.key-store-password=lR4072XF #server.ssl.key-store-password=lR4072XF
## 秘钥库类型 ## 秘钥库类型
#server.ssl.keyStoreType=PKCS12 #server.ssl.keyStoreType=PKCS12
## 证书别名 ## 证书别名
#server.ssl.keyAlias= alias #server.ssl.keyAlias= alias
\ No newline at end of file
## spring-security config
#spring.security.user.name=root
#spring.security.user.password=root
\ No newline at end of file
File mode changed from 100644 to 100755
File mode changed from 100644 to 100755
File mode changed from 100644 to 100755
File mode changed from 100644 to 100755
File mode changed from 100644 to 100755
File mode changed from 100644 to 100755
...@@ -15,9 +15,6 @@ import org.springframework.web.bind.annotation.*; ...@@ -15,9 +15,6 @@ import org.springframework.web.bind.annotation.*;
import java.util.Date; import java.util.Date;
import java.util.List; import java.util.List;
import static org.springframework.web.bind.annotation.RequestMethod.*;
import static org.springframework.web.bind.annotation.RequestMethod.OPTIONS;
/** /**
* @author LJJ cnljj1995@gmail.com * @author LJJ cnljj1995@gmail.com
* on 2020-03-24 * on 2020-03-24
...@@ -68,22 +65,16 @@ public class UserController { ...@@ -68,22 +65,16 @@ public class UserController {
@ApiImplicitParam(name="id",value="人员id",dataType="string", paramType = "query") @ApiImplicitParam(name="id",value="人员id",dataType="string", paramType = "query")
}) })
public ResponseEntity<UserPwdVo> resetStatus(@RequestParam(value = "id") String id) { public ResponseEntity<UserPwdVo> resetStatus(@RequestParam(value = "id") String id) {
String pwd = "qwer1234"; String pwd = "qwer1234";
UserDo userDo = userService.resetPassword(id, pwd); UserDo userDo = userService.resetPassword(id, pwd);
return ResponseEntity.ok(new UserPwdVo(id, pwd, userDo.getAccount())); return ResponseEntity.ok(new UserPwdVo(id, pwd, userDo.getAccount()));
} }
@PutMapping("/pwd") @PutMapping("/pwd")
@ApiOperation(value = "用户修改密码") @ApiOperation(value = "用户修改密码")
@ApiImplicitParams({
})
public ResponseEntity<UserPwdVo> updatePwd( public ResponseEntity<UserPwdVo> updatePwd(
@RequestBody AccVo accVo @RequestBody AccVo accVo
) { ) {
String oPwd = accVo.getOPwd(); String oPwd = accVo.getOPwd();
String nPwd = accVo.getNPwd(); String nPwd = accVo.getNPwd();
String id = accVo.getId(); String id = accVo.getId();
...@@ -143,6 +134,7 @@ public class UserController { ...@@ -143,6 +134,7 @@ public class UserController {
} else { } else {
return ResponseEntity.ok(user); return ResponseEntity.ok(user);
} }
} }
@Autowired @Autowired
......
...@@ -18,9 +18,7 @@ public interface UserDao extends JpaRepository<UserDo, String>, JpaSpecification ...@@ -18,9 +18,7 @@ public interface UserDao extends JpaRepository<UserDo, String>, JpaSpecification
List<UserDo> findByAccount(String account); List<UserDo> findByAccount(String account);
void deleteUserDosByAccount(String name);
List<UserDo> findByUnit(String name); List<UserDo> findByUnit(String name);
} }
package com.zjty.efs.user.subject.entity;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
/**
* 返回给前端的通用类
*
* @author LJJ cnljj1995@gmail.com
* on 2020-04-15
*/
@Data
@AllArgsConstructor
@NoArgsConstructor
public class RspVo<T> {
private String msg;
private T data;
}
File mode changed from 100644 to 100755
File mode changed from 100644 to 100755
File mode changed from 100644 to 100755
差异被折叠。
File mode changed from 100644 to 100755
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论