|
@ -7,6 +7,7 @@ import com.epmet.commons.tools.security.dto.TokenDto; |
|
|
import com.epmet.commons.tools.utils.Result; |
|
|
import com.epmet.commons.tools.utils.Result; |
|
|
import com.epmet.commons.tools.validator.ValidatorUtils; |
|
|
import com.epmet.commons.tools.validator.ValidatorUtils; |
|
|
import com.epmet.modules.partyOrg.service.IcPartyActService; |
|
|
import com.epmet.modules.partyOrg.service.IcPartyActService; |
|
|
|
|
|
import com.epmet.resi.partymember.dto.icpartyact.form.BatchAddPartyActFormDTO; |
|
|
import com.epmet.resi.partymember.dto.icpartyact.form.IcPartyActAddOrUpdateFormDTO; |
|
|
import com.epmet.resi.partymember.dto.icpartyact.form.IcPartyActAddOrUpdateFormDTO; |
|
|
import com.epmet.resi.partymember.dto.icpartyact.form.IcPartyActPageFormDTO; |
|
|
import com.epmet.resi.partymember.dto.icpartyact.form.IcPartyActPageFormDTO; |
|
|
import com.epmet.resi.partymember.dto.icpartyact.result.IcPartActTypeDTO; |
|
|
import com.epmet.resi.partymember.dto.icpartyact.result.IcPartActTypeDTO; |
|
@ -61,6 +62,30 @@ public class IcPartyActController { |
|
|
return new Result<Map<String, String>>().ok(map); |
|
|
return new Result<Map<String, String>>().ok(map); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
|
* 生成年度计划 |
|
|
|
|
|
* @param tokenDto |
|
|
|
|
|
* @param formDTO |
|
|
|
|
|
* @return |
|
|
|
|
|
*/ |
|
|
|
|
|
@PostMapping("batch-add") |
|
|
|
|
|
public Result batchAdd(@LoginUser TokenDto tokenDto,@RequestBody BatchAddPartyActFormDTO formDTO){ |
|
|
|
|
|
formDTO.getActList().forEach(dto->{ |
|
|
|
|
|
dto.setCustomerId(tokenDto.getCustomerId()); |
|
|
|
|
|
dto.setPublishStaffId(tokenDto.getUserId()); |
|
|
|
|
|
if(StringUtils.isNotBlank(dto.getIcPartyActId())){ |
|
|
|
|
|
//修改活动
|
|
|
|
|
|
ValidatorUtils.validateEntity(dto,IcPartyActAddOrUpdateFormDTO.UpdateUserShowGroup.class,IcPartyActAddOrUpdateFormDTO.UpdateUserInternalGroup.class); |
|
|
|
|
|
}else{ |
|
|
|
|
|
//添加活动
|
|
|
|
|
|
ValidatorUtils.validateEntity(dto,IcPartyActAddOrUpdateFormDTO.AddUserShowGroup.class,IcPartyActAddOrUpdateFormDTO.AddUserInternalGroup.class); |
|
|
|
|
|
} |
|
|
|
|
|
icPartyActService.addOrUpdate(dto); |
|
|
|
|
|
}); |
|
|
|
|
|
icPartyActService.deleteIcPartyAct(tokenDto.getCustomerId(),tokenDto.getUserId(),formDTO.getDelActIds()); |
|
|
|
|
|
return new Result(); |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
/** |
|
|
/** |
|
|
* 【活动列表】分页查询(工作端小程序通用) |
|
|
* 【活动列表】分页查询(工作端小程序通用) |
|
|
* @param tokenDto |
|
|
* @param tokenDto |
|
|