提交 ed1db60f 编写于 作者: rushui.chen's avatar rushui.chen

20200107 删除医生数据日志

上级 0ce6103e
流水线 #20299 已失败 于阶段
in 0 second
......@@ -11,9 +11,13 @@ import com.pica.cloud.foundation.encryption.util.EncryptUtils;
import com.pica.cloud.foundation.entity.PicaResponse;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;
/**
* Created on 2019/9/10 18:51
* author:crs
......@@ -24,6 +28,8 @@ import org.springframework.web.bind.annotation.*;
@RequestMapping("/doctor")
public class DoctorController extends AccountBaseController {
private Logger logger= LoggerFactory.getLogger(DoctorController.class);
@Autowired
private DoctorService doctorService;
......@@ -75,6 +81,7 @@ public class DoctorController extends AccountBaseController {
@ApiOperation("客服系统删除医生信息")
@DeleteMapping(value = "/delete/{id}")
public PicaResponse deleteDoctor(@PathVariable("id") Integer id) {
logger.info("id,super.getDoctorIdByToken()"+id+"------>"+super.getDoctorIdByToken());
doctorService.deleteDoctorInfo(id,super.getDoctorIdByToken());
return PicaResponse.toResponse();
}
......
......@@ -179,27 +179,27 @@ public class AESUtil {
* 测试
*/
public static void main(String[] args) throws Exception {
// String KEY="zJJ$c5md3$yuuhWW";
// System.out.println("-------------加密---------");
// String content = "18621903846";
//
//
// System.out.println("加密前:" + content);
// System.out.println("加密密钥和解密密钥:" + KEY);
//
// System.out.println("-------------解密---------");
// String encrypt = aesEncrypt(content, KEY);
// System.out.println("加密后:" + encrypt);
// String decrypt = aesDecrypt("ieE4wN+GkIxm8S8tSVqTow==", KEY);
// System.out.println("解密后:" + decrypt);
String KEY="zJJ$c5md3$yuuhWW";
System.out.println("-------------加密---------");
String content = "17521591001";
System.out.println("加密前:" + content);
System.out.println("加密密钥和解密密钥:" + KEY);
System.out.println("-------------解密---------");
String encrypt = aesEncrypt(content, KEY);
System.out.println("加密后:" + encrypt);
String decrypt = aesDecrypt(encrypt, KEY);
System.out.println("解密后:" + decrypt);
//请求参数解密处理
String key="aPzpkXKhX0xsgwG0L7uOiz47fKQKKW1pzzIyx9wRSoCtm4vux1+ctjKzQ77jb+Vvt4zB/z0wr7U5nszk7kXLKQR4A6nU5nt8O44CHjCHUU0dWbpPyd2TKFdZ58ZyKLsk1+Xc4wJ1HB0FQjxJefWvo5ioFYLasOpxSbKU7oHqXq4=";
String decrypt = RSAUtil.decrypt(key,procPrivateKey);
System.out.println(decrypt);
String content="x/119w4nmos1xMG1DFNzBDeUP7BmyGViwXB66UCCk2HaCoJWhNg6qL1WoDMLGkiMJni8GV8fzEpd+1h9z4LA99wEkn47rbK6+MLaGkMIv+QmXzMLxThpLJNxadb2ltRyKgz5wERoFB/AH/xxgRn8kw==";
String result = AESUtil.aesDecrypt(content, decrypt);
System.out.println(result);
// String key="aPzpkXKhX0xsgwG0L7uOiz47fKQKKW1pzzIyx9wRSoCtm4vux1+ctjKzQ77jb+Vvt4zB/z0wr7U5nszk7kXLKQR4A6nU5nt8O44CHjCHUU0dWbpPyd2TKFdZ58ZyKLsk1+Xc4wJ1HB0FQjxJefWvo5ioFYLasOpxSbKU7oHqXq4=";
// String decrypt = RSAUtil.decrypt(key,procPrivateKey);
// System.out.println(decrypt);
// String content="x/119w4nmos1xMG1DFNzBDeUP7BmyGViwXB66UCCk2HaCoJWhNg6qL1WoDMLGkiMJni8GV8fzEpd+1h9z4LA99wEkn47rbK6+MLaGkMIv+QmXzMLxThpLJNxadb2ltRyKgz5wERoFB/AH/xxgRn8kw==";
// String result = AESUtil.aesDecrypt(content, decrypt);
// System.out.println(result);
// ArrayList<String> list = new ArrayList<>();
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册