|
@ -16,6 +16,7 @@ import com.epmet.resi.partymember.dto.partyOrg.form.ActAndScheduleListFormDTO; |
|
|
import com.epmet.resi.partymember.dto.partyOrg.form.HomeMonthTotalFormDTO; |
|
|
import com.epmet.resi.partymember.dto.partyOrg.form.HomeMonthTotalFormDTO; |
|
|
import com.epmet.resi.partymember.dto.partyOrg.result.ActAndScheduleListResultDTO; |
|
|
import com.epmet.resi.partymember.dto.partyOrg.result.ActAndScheduleListResultDTO; |
|
|
import com.epmet.resi.partymember.dto.partyOrg.result.HomeMonthTotalResultDTO; |
|
|
import com.epmet.resi.partymember.dto.partyOrg.result.HomeMonthTotalResultDTO; |
|
|
|
|
|
import org.apache.commons.collections4.CollectionUtils; |
|
|
import org.apache.commons.lang3.StringUtils; |
|
|
import org.apache.commons.lang3.StringUtils; |
|
|
import org.springframework.beans.factory.annotation.Autowired; |
|
|
import org.springframework.beans.factory.annotation.Autowired; |
|
|
import org.springframework.web.bind.annotation.*; |
|
|
import org.springframework.web.bind.annotation.*; |
|
@ -38,7 +39,7 @@ public class IcPartyActController { |
|
|
private IcPartyActService icPartyActService; |
|
|
private IcPartyActService icPartyActService; |
|
|
|
|
|
|
|
|
/** |
|
|
/** |
|
|
* 添加、修改活动 |
|
|
* 添加、修改活动各端通用 |
|
|
* @param tokenDto |
|
|
* @param tokenDto |
|
|
* @param formDTO |
|
|
* @param formDTO |
|
|
* @return |
|
|
* @return |
|
@ -142,4 +143,34 @@ public class IcPartyActController { |
|
|
return new Result<List<ActAndScheduleListResultDTO>>().ok(icPartyActService.homeSearch(formDTO)); |
|
|
return new Result<List<ActAndScheduleListResultDTO>>().ok(icPartyActService.homeSearch(formDTO)); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
|
* pc活动列表-发布活动 |
|
|
|
|
|
* pc党建日历左下角列表,点击发布 |
|
|
|
|
|
* 工作端小程序点击发布 |
|
|
|
|
|
* @param tokenDto |
|
|
|
|
|
* @param icPartyActId |
|
|
|
|
|
* @return |
|
|
|
|
|
*/ |
|
|
|
|
|
@PostMapping("publish/{icPartyActId}") |
|
|
|
|
|
public Result publicshIcPartyAct(@LoginUser TokenDto tokenDto,@PathVariable("icPartyActId")String icPartyActId){ |
|
|
|
|
|
icPartyActService.publicshIcPartyAct(tokenDto.getUserId(),icPartyActId); |
|
|
|
|
|
return new Result(); |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
|
* pc活动列表-发布活动 |
|
|
|
|
|
* pc党建日历左下角列表,点击删除 |
|
|
|
|
|
* pc生成年度记录,删除活动 |
|
|
|
|
|
* 工作端小程序-详情页面,删除 |
|
|
|
|
|
* @param tokenDto |
|
|
|
|
|
* @param icPartyActIds |
|
|
|
|
|
* @return |
|
|
|
|
|
*/ |
|
|
|
|
|
@PostMapping("del") |
|
|
|
|
|
public Result deleteIcPartyAct(@LoginUser TokenDto tokenDto,@RequestBody List<String> icPartyActIds){ |
|
|
|
|
|
if(CollectionUtils.isNotEmpty(icPartyActIds)){ |
|
|
|
|
|
icPartyActService.deleteIcPartyAct(tokenDto.getCustomerId(),tokenDto.getUserId(),icPartyActIds); |
|
|
|
|
|
} |
|
|
|
|
|
return new Result(); |
|
|
|
|
|
} |
|
|
} |
|
|
} |
|
|