| | |
| | | AND CONCAT(title,source_name) |
| | | LIKE CONCAT ('%', #{article.keyword},'%') |
| | | </if> |
| | | <if test="(article.rolename==null and article.rolename=='') or (article.rolename!='administrator' and article.rolename!='policeAdmin')"> |
| | | AND publish = 1 |
| | | </if> |
| | | and iswords = "0" and type!=1 |
| | | order by create_time desc |
| | | </select> |
| | |
| | | .set("cardid", user.getCardid()) |
| | | .set("phone", user.getPhone()) |
| | | .set("workjurisdiction", user.getWorkjurisdiction()) |
| | | .set("firstlogin", user.getFirstlogin()) |
| | | .set(TokenConstant.OAUTH_ID, userInfo.getOauthId()) |
| | | .set(TokenConstant.ACCOUNT, user.getAccount()) |
| | | .set(TokenConstant.USER_NAME, user.getAccount()) |
| | |
| | | return R.data(res); |
| | | } |
| | | |
| | | |
| | | /** |
| | | * 首次登录发送祝贺信 |
| | | */ |
| | | @GetMapping("/firstLogin") |
| | | public R firstLogin(String id) { |
| | | return R.status(userService.firstLogin(id)); |
| | | } |
| | | } |
| | | |
| | |
| | | private String signals; |
| | | @TableField("job_unit") |
| | | private String jobUnit; |
| | | private String firstlogin; |
| | | } |
| | |
| | | */ |
| | | Integer selectCountAccount(@Param("account") String account); |
| | | void updateAcc(String stype,String account); |
| | | boolean firstLogin(String id); |
| | | void delete(String account); |
| | | |
| | | } |
| | |
| | | </select> |
| | | |
| | | <update id="updateAcc"> |
| | | update blade_user set stype=#{stype} where account=#{account} |
| | | update blade_user set stype=#{stype},firstlogin = "1" where account=#{account} |
| | | </update> |
| | | <update id="firstLogin"> |
| | | update blade_user set firstlogin = "0" where id=#{id} |
| | | </update> |
| | | |
| | | <delete id="delete"> |
| | |
| | | */ |
| | | Integer selectCount(String account); |
| | | void updateAcc(String stype,String account); |
| | | boolean firstLogin(String id); |
| | | void delete(String account); |
| | | |
| | | |
| | |
| | | public void updateAcc(String stype, String account) { |
| | | baseMapper.updateAcc(stype, account); |
| | | } |
| | | @Override |
| | | public boolean firstLogin(String id) { |
| | | return baseMapper.firstLogin(id); |
| | | } |
| | | |
| | | @Override |
| | | public void delete(String account) { |
| | |
| | | user.setWorkjurisdiction(zc.getWorkjurisdiction()); |
| | | user.setExamination_type("0"); |
| | | user.setExamination_mx("正常"); |
| | | user.setFirstlogin("0"); |
| | | user.setCardid(zc.getCardid()); |
| | | if (!zc.getSignals().equals("")) { |
| | | user.setSignals(zc.getSignals()); |