Ver código fonte

新增考察相关

Administrator 1 ano atrás
pai
commit
554243615b

+ 3 - 1
ruoyi-system/src/main/java/com/ruoyi/system/service/impl/InvestigateUserServiceImpl.java

@@ -117,7 +117,9 @@ public class InvestigateUserServiceImpl implements IInvestigateUserService {
             //查询考察密码
             String phonenumber = investigateUser.getPhonenumber();
             String templateCode = "SMS_463605860";
-            SendSmsUtils.sendSms(phonenumber, templateCode, jsonObject.toString());
+            String code = SendSmsUtils.sendSms(phonenumber, templateCode, jsonObject.toString());
+            System.out.println("发送短信回执"+code);
+            return AjaxResult.success();
         }
         return AjaxResult.error("无权限查看");
     }

+ 1 - 2
ruoyi-system/src/main/resources/mapper/system/InvestigateUserMapper.xml

@@ -20,7 +20,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
     </resultMap>
 
     <sql id="selectInvestigateUserVo">
-        select id, investigate_id, user_name, phonenumber, id_card, duty, login_date, create_by, create_time, update_by, update_time, remark from investigate_user
+        select id, investigate_id, user_name, phonenumber, id_card, duty, create_by, create_time, update_by, update_time, remark from investigate_user
     </sql>
 
     <select id="selectInvestigateUserList" parameterType="InvestigateUser" resultMap="InvestigateUserResult">
@@ -31,7 +31,6 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
             <if test="phonenumber != null  and phonenumber != ''"> and phonenumber = #{phonenumber}</if>
             <if test="idCard != null  and idCard != ''"> and id_card = #{idCard}</if>
             <if test="duty != null  and duty != ''"> and duty = #{duty}</if>
-            <if test="loginDate != null "> and login_date = #{loginDate}</if>
         </where>
     </select>