| | |
| | | CloseableHttpClient httpClient = HttpClients.createDefault(); |
| | | try { |
| | | BasicResponseHandler handler = new BasicResponseHandler(); |
| | | StringEntity entity = new StringEntity(json, "utf-8");//解决中文乱码问题 |
| | | //解决中文乱码问题 |
| | | StringEntity entity = new StringEntity(json, "utf-8"); |
| | | entity.setContentEncoding("UTF-8"); |
| | | entity.setContentType("application/json"); |
| | | httpPost.setEntity(entity); |
| | |
| | | return result; |
| | | } catch (Exception e) { |
| | | e.printStackTrace(); |
| | | |
| | | } finally { |
| | | try { |
| | | httpClient.close(); |
| | |
| | | //查询该vip 用户的 vip 库,从该120题中取出题目 |
| | | VipTopic vipTopic = new VipTopic(); |
| | | vipTopic.setUserId(Long.parseLong(score.getUserId())); |
| | | vipTopic.setApplyId(score.getApplyId()); |
| | | // vipTopic.setApplyId(score.getApplyId()); |
| | | VipTopic topic = vipTopicService.getOne(Condition.getQueryWrapper(vipTopic)); |
| | | if (null!=topic){ |
| | | List<String> list = Arrays.asList(topic.getTopicIds().split(",")); |
| | |
| | | <if test="trainingRegistration.auditStatus!=null and trainingRegistration.auditStatus!=0"> |
| | | and sr.audit_status = #{trainingRegistration.auditStatus} |
| | | </if> |
| | | <if test="trainingRegistration.vipStatus!=null and trainingRegistration.vipStatus!=0"> |
| | | and sr.vip_status = #{trainingRegistration.vipStatus} |
| | | </if> |
| | | <if test="trainingRegistration.deptName!=null and trainingRegistration.deptName!=''"> |
| | | and bt.dept_name like concat('%', #{trainingRegistration.deptName},'%') |
| | | </if> |
| | |
| | | jsonUrl: D:\\anbao\\ |
| | | username: root |
| | | password: ZHba@0112 |
| | | qfqkBaseApiUrl : http://localhost:83 |
| | | qfqkBaseApiUrl : http://192.168.0.110:83 |
| | | |
| | | #第三方登陆 |
| | | social: |