| | |
| | | * @throws Exception |
| | | */ |
| | | @Override |
| | | public ResultUtil saveData(Integer orderId, Integer orderType, Integer fraction, String content) throws Exception { |
| | | public ResultUtil saveData(Integer orderId, Integer orderType, Integer fraction, String content, Integer language) throws Exception { |
| | | if(ToolUtil.isNotEmpty(content)){ |
| | | if(null != content && content.length() > 500){ |
| | | return ResultUtil.error("评价内容过长"); |
| | | return ResultUtil.error(language == 1 ? "评价内容过长" : language == 2 ? "The evaluation is too long" : "Contenu trop long de l’évaluation"); |
| | | } |
| | | List<SensitiveWords> sensitiveWords = sensitiveWordsMapper.selectList(null); |
| | | for(SensitiveWords s : sensitiveWords){ |
| | |
| | | orderEvaluate.setUserId(uid); |
| | | this.insert(orderEvaluate); |
| | | |
| | | systemNoticeService.addSystemNotice(1, "您已成功添加订单评价,谢谢使用!", uid, 1); |
| | | systemNoticeService.addSystemNotice(1, language == 1 ? "您已成功添加订单评价,谢谢使用!" : language == 2 ? "You have successfully added the order evaluation, thank you for using!" : "Vous avez ajouté une évaluation de commande avec succès. Merci d’utiliser!", uid, 1); |
| | | return ResultUtil.success(orderEvaluate.getId()); |
| | | } |
| | | |
| | |
| | | pageNum = (pageNum - 1) * size; |
| | | return orderEvaluateMapper.queryOrderEvaluate(driverId, pageNum, size); |
| | | } |
| | | |
| | | |
| | | @Override |
| | | public Double queryDriverScore(Integer driverId) throws Exception { |
| | | return this.baseMapper.queryDriverScore(driverId); |
| | | } |
| | | } |