| | |
| | | @ExcelIgnore |
| | | private Integer limit; |
| | | |
| | | public void setCondition(String condition) { |
| | | public void generateCondition() { |
| | | if(this.times!=null&&this.limit!=null){ |
| | | this.condition = "("+times+"/"+limit+")"; |
| | | this.condition = "("+times+"/"+ (limit.equals(-1) ? "无限" : limit) +")"; |
| | | } |
| | | |
| | | } |
| | | } |
| | |
| | | if (R.isOk(r)) { |
| | | List<ComActActSignExcelVO> excelVOS = |
| | | JSONArray.parseArray(JSONArray.toJSONString(r.getData()), ComActActSignExcelVO.class); |
| | | excelVOS.forEach(e -> e.generateCondition()); |
| | | try { |
| | | SFTPUtil sftp = new SFTPUtil(userName, password, host, port); |
| | | sftp.login(); |
| | |
| | | <select id="listActivitySign" resultType="com.panzhihua.common.model.vos.community.ActivitySignVO"> |
| | | SELECT u.user_id id, u.image_url, u.name, u.nick_name, |
| | | CASE WHEN a.is_volunteer = 1 THEN '志愿者' ELSE '居民' END identity, |
| | | u.phone, u.tags, a.create_at, a.is_volunteer, a.status , r.times , a.reason, r.times * r.award as award, t.limit |
| | | u.phone, u.tags, a.create_at, a.is_volunteer, a.status , IF(r.times IS NULL, 0, r.times) AS times, |
| | | a.reason, IF(r.times IS NULL, 0, r.award * r.times) AS award, t.limit |
| | | FROM com_act_act_sign a |
| | | JOIN sys_user u ON a.user_id = u.user_id |
| | | left join com_act_activity t on a.activity_id = t.id |