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

20191028 添加判断条件

上级 aa040f96
流水线 #16351 已失败 于阶段
in 2 second
...@@ -166,25 +166,24 @@ public class AESUtil { ...@@ -166,25 +166,24 @@ public class AESUtil {
* 测试 * 测试
*/ */
public static void main(String[] args) throws Exception { public static void main(String[] args) throws Exception {
// String KEY="zJJ$c5md3$yuuhWW"; String KEY="zJJ$c5md3$yuuhWW";
// System.out.println("-------------加密---------"); System.out.println("-------------加密---------");
// String content = "13024112588"; String content = "13693714485";
// System.out.println("加密前:" + content); System.out.println("加密前:" + content);
// System.out.println("加密密钥和解密密钥:" + KEY); System.out.println("加密密钥和解密密钥:" + KEY);
//
// System.out.println("-------------解密---------"); System.out.println("-------------解密---------");
// String encrypt = aesEncrypt(content, KEY); String encrypt = aesEncrypt(content, KEY);
// System.out.println("加密后:" + encrypt); System.out.println("加密后:" + encrypt);
// String decrypt = aesDecrypt(encrypt, KEY); String decrypt = aesDecrypt(encrypt, KEY);
// System.out.println("解密后:" + decrypt); System.out.println("解密后:" + decrypt);
//请求参数解密处理 //请求参数解密处理
// String encrypt="eZujXEvfG80W1Jp4yUnGqrnwedYIng+Sk3+BGN01B9TgXRwijp0Gd0DtJBDnrAJ/LIZqh2vVcb46IMtv5Yx1CL53ohUCThsp2cBxlFgpD8btBHKn+3I7J7D2Hyttl8RxjckhlChCKs/kZ9HWNn+XcBBO14I33ydNmmNjzUyTO9w=";
// String encrypt="mkYDBWaW0EsWboHLGZYP7ANcXrUsm8pz553zJaUsRTKdzJPSU5bMRklcpiIcxQxy2RaCxmyBckVA+ECk2C7HfSS/iZgs/BwwKjvNWLSMu3aKmeBGfbhIhXQoroj8Q0fX7DZM/NLc15CXwWNcXVn0RnU0l+T0HHHtwNG6gPz9LpU=";
// String decrypt = RSAUtil.decrypt(encrypt,privateKey); // String decrypt = RSAUtil.decrypt(encrypt,privateKey);
// System.out.println(decrypt); // System.out.println(decrypt);
// //System.out.println("YCPQPx4qpQjEjDea"); // //System.out.println("YCPQPx4qpQjEjDea");
// String content="knx6jN8noH4ay0pRiTyVCCGInoN31ouglRTrtjmX9u/y1y7ogTmpfUBYsvz5WtZi"; // String content="6fz7TiskNgfoKxl20O8MlKEiY3BQ3iF6wccrs3BO72QukkK8iTdugr27yCwv5ogFSJtgz3gRuMu5LfQlFyoK2aGxHpnxVIHB43LVoDbLLGE=";
// String result = AESUtil.aesDecrypt(content, decrypt); // String result = AESUtil.aesDecrypt(content, decrypt);
// System.out.println(result); // System.out.println(result);
...@@ -198,6 +197,8 @@ public class AESUtil { ...@@ -198,6 +197,8 @@ public class AESUtil {
} }
......
...@@ -51,13 +51,13 @@ ...@@ -51,13 +51,13 @@
<!--更新用户的手机号--> <!--更新用户的手机号-->
<update id="updateMobileByPrimaryKey" <update id="updateMobileByPrimaryKey"
parameterType="com.pica.cloud.account.account.server.entity.AccountInfoEntity"> parameterType="com.pica.cloud.account.account.server.entity.AccountInfoEntity">
update account_info set modified_id=#{id}, modified_time=#{modifiedTime},mobile_phone=#{mobilePhone} where id=#{id} update account_info set modified_id=#{id}, modified_time=#{modifiedTime},mobile_phone=#{mobilePhone} where id=#{id} and delete_flag=1
</update> </update>
<!--修改用户的密码--> <!--修改用户的密码-->
<update id="updatePasswordByPrimaryKey" <update id="updatePasswordByPrimaryKey"
parameterType="com.pica.cloud.account.account.server.entity.AccountInfoEntity"> parameterType="com.pica.cloud.account.account.server.entity.AccountInfoEntity">
update account_info set modified_id=#{id}, modified_time=now(),password=#{password} where id=#{id} update account_info set modified_id=#{id}, modified_time=now(),password=#{password} where id=#{id} and delete_flag=1
</update> </update>
<delete id="deleteByPrimaryKey" parameterType="java.lang.Integer"> <delete id="deleteByPrimaryKey" parameterType="java.lang.Integer">
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册