Merge remote-tracking branch 'origin/master'
This commit is contained in:
+2
@@ -57,6 +57,8 @@ public class AuthenticationUtils {
|
|||||||
* @return
|
* @return
|
||||||
*/
|
*/
|
||||||
public void check(String token,String publicKey) {
|
public void check(String token,String publicKey) {
|
||||||
|
token = token.replace(" ","+");
|
||||||
|
publicKey = publicKey.replace(" ","+");
|
||||||
//从redis拿到私钥
|
//从redis拿到私钥
|
||||||
String privateKey = String.valueOf(redisUtil.get(publicKey));
|
String privateKey = String.valueOf(redisUtil.get(publicKey));
|
||||||
RSA rsa = new RSA(privateKey,null);
|
RSA rsa = new RSA(privateKey,null);
|
||||||
|
|||||||
+6
@@ -92,6 +92,10 @@ public class ShiroConfig {
|
|||||||
filterChainDefinitionMap.put("/sys/common/pdf/**", "anon");//pdf预览
|
filterChainDefinitionMap.put("/sys/common/pdf/**", "anon");//pdf预览
|
||||||
filterChainDefinitionMap.put("/generic/**", "anon");//pdf预览需要文件
|
filterChainDefinitionMap.put("/generic/**", "anon");//pdf预览需要文件
|
||||||
filterChainDefinitionMap.put("/paymentRecord/payPaymentRecord/standardsAddAR", "anon");//标协会员添加来款
|
filterChainDefinitionMap.put("/paymentRecord/payPaymentRecord/standardsAddAR", "anon");//标协会员添加来款
|
||||||
|
//和会员系统交互的接口
|
||||||
|
filterChainDefinitionMap.put("/meeting/payMeeting/addStandards","anon");//会员系统推送会议
|
||||||
|
filterChainDefinitionMap.put("/meeting/payMeeting/addStandardsFile","anon");//会员系统推送文件
|
||||||
|
filterChainDefinitionMap.put("/meeting/payMeetingSituation/page2","anon");//查询参会人
|
||||||
|
|
||||||
filterChainDefinitionMap.put("/", "anon");
|
filterChainDefinitionMap.put("/", "anon");
|
||||||
filterChainDefinitionMap.put("/doc.html", "anon");
|
filterChainDefinitionMap.put("/doc.html", "anon");
|
||||||
@@ -136,6 +140,8 @@ public class ShiroConfig {
|
|||||||
//性能监控 TODO 存在安全漏洞泄露TOEKN(durid连接池也有)
|
//性能监控 TODO 存在安全漏洞泄露TOEKN(durid连接池也有)
|
||||||
filterChainDefinitionMap.put("/actuator/**", "anon");
|
filterChainDefinitionMap.put("/actuator/**", "anon");
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
// 添加自己的过滤器并且取名为jwt
|
// 添加自己的过滤器并且取名为jwt
|
||||||
Map<String, Filter> filterMap = new HashMap<String, Filter>(1);
|
Map<String, Filter> filterMap = new HashMap<String, Filter>(1);
|
||||||
//如果cloudServer为空 则说明是单体 需要加载跨域配置
|
//如果cloudServer为空 则说明是单体 需要加载跨域配置
|
||||||
|
|||||||
+5
@@ -22,6 +22,7 @@ import com.jero.company.common.PayCompanyManagementCommon;
|
|||||||
import com.jero.company.common.PayContactsManagementCommon;
|
import com.jero.company.common.PayContactsManagementCommon;
|
||||||
import com.jero.company.entity.PayCompanyManagement;
|
import com.jero.company.entity.PayCompanyManagement;
|
||||||
import com.jero.company.service.IPayCompanyManagementService;
|
import com.jero.company.service.IPayCompanyManagementService;
|
||||||
|
import com.jero.company.service.ProjectCountService;
|
||||||
import org.apache.commons.collections.CollectionUtils;
|
import org.apache.commons.collections.CollectionUtils;
|
||||||
import org.apache.commons.lang3.StringUtils;
|
import org.apache.commons.lang3.StringUtils;
|
||||||
import lombok.extern.slf4j.Slf4j;
|
import lombok.extern.slf4j.Slf4j;
|
||||||
@@ -56,6 +57,8 @@ public class PayCompanyManagementController extends JeroController<PayCompanyMan
|
|||||||
private IPayCompanyManagementService payCompanyManagementService;
|
private IPayCompanyManagementService payCompanyManagementService;
|
||||||
@Autowired
|
@Autowired
|
||||||
private Environment env;
|
private Environment env;
|
||||||
|
@Autowired
|
||||||
|
private ProjectCountService projectCountService;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 分页列表查询
|
* 分页列表查询
|
||||||
@@ -233,6 +236,7 @@ public class PayCompanyManagementController extends JeroController<PayCompanyMan
|
|||||||
if(StringUtils.isBlank(id)){
|
if(StringUtils.isBlank(id)){
|
||||||
return Result.error("id不能为空!");
|
return Result.error("id不能为空!");
|
||||||
}
|
}
|
||||||
|
projectCountService.getProjectCount(id,null);
|
||||||
payCompanyManagementService.removePayCompanyManagementById(id);
|
payCompanyManagementService.removePayCompanyManagementById(id);
|
||||||
return Result.OK("删除成功!");
|
return Result.OK("删除成功!");
|
||||||
}
|
}
|
||||||
@@ -254,6 +258,7 @@ public class PayCompanyManagementController extends JeroController<PayCompanyMan
|
|||||||
if(StringUtils.isBlank(s1)){
|
if(StringUtils.isBlank(s1)){
|
||||||
return Result.error("id不能为空!");
|
return Result.error("id不能为空!");
|
||||||
}
|
}
|
||||||
|
projectCountService.getProjectCount(s1,null);
|
||||||
}
|
}
|
||||||
this.payCompanyManagementService.removePayCompanyManagementByIds(Arrays.asList(ids.split(",")));
|
this.payCompanyManagementService.removePayCompanyManagementByIds(Arrays.asList(ids.split(",")));
|
||||||
return Result.OK("批量删除成功!");
|
return Result.OK("批量删除成功!");
|
||||||
|
|||||||
+5
@@ -24,6 +24,7 @@ import com.jero.company.entity.PayCompanyManagement;
|
|||||||
import com.jero.company.entity.PayContactsManagement;
|
import com.jero.company.entity.PayContactsManagement;
|
||||||
import com.jero.company.service.IPayCompanyManagementService;
|
import com.jero.company.service.IPayCompanyManagementService;
|
||||||
import com.jero.company.service.IPayContactsManagementService;
|
import com.jero.company.service.IPayContactsManagementService;
|
||||||
|
import com.jero.company.service.ProjectCountService;
|
||||||
import lombok.extern.slf4j.Slf4j;
|
import lombok.extern.slf4j.Slf4j;
|
||||||
import org.apache.commons.collections.CollectionUtils;
|
import org.apache.commons.collections.CollectionUtils;
|
||||||
import org.apache.commons.lang3.StringUtils;
|
import org.apache.commons.lang3.StringUtils;
|
||||||
@@ -59,6 +60,8 @@ public class PayContactsManagementController extends JeroController<PayContactsM
|
|||||||
private IPayCompanyManagementService payCompanyManagementService;
|
private IPayCompanyManagementService payCompanyManagementService;
|
||||||
@Autowired
|
@Autowired
|
||||||
private Environment env;
|
private Environment env;
|
||||||
|
@Autowired
|
||||||
|
private ProjectCountService projectCountService;
|
||||||
|
|
||||||
// todo 缺少联系人加入到用户表,可以登录
|
// todo 缺少联系人加入到用户表,可以登录
|
||||||
|
|
||||||
@@ -238,6 +241,7 @@ public class PayContactsManagementController extends JeroController<PayContactsM
|
|||||||
if(StringUtils.isBlank(id)){
|
if(StringUtils.isBlank(id)){
|
||||||
return Result.error("id不能为空!");
|
return Result.error("id不能为空!");
|
||||||
}
|
}
|
||||||
|
projectCountService.getProjectCount(null,id);
|
||||||
payContactsManagementService.removeById(id);
|
payContactsManagementService.removeById(id);
|
||||||
return Result.OK("删除成功!");
|
return Result.OK("删除成功!");
|
||||||
}
|
}
|
||||||
@@ -259,6 +263,7 @@ public class PayContactsManagementController extends JeroController<PayContactsM
|
|||||||
if(StringUtils.isBlank(s1)){
|
if(StringUtils.isBlank(s1)){
|
||||||
return Result.error("id不能为空!");
|
return Result.error("id不能为空!");
|
||||||
}
|
}
|
||||||
|
projectCountService.getProjectCount(null,s1);
|
||||||
}
|
}
|
||||||
this.payContactsManagementService.removeByIds(Arrays.asList(ids.split(",")));
|
this.payContactsManagementService.removeByIds(Arrays.asList(ids.split(",")));
|
||||||
return Result.OK("批量删除成功!");
|
return Result.OK("批量删除成功!");
|
||||||
|
|||||||
+15
@@ -0,0 +1,15 @@
|
|||||||
|
package com.jero.company.mapper;
|
||||||
|
|
||||||
|
import org.apache.ibatis.annotations.Param;
|
||||||
|
|
||||||
|
public interface ProjectCountMapper {
|
||||||
|
/**
|
||||||
|
* @Description 获取关联企业或者联系人的项目个数
|
||||||
|
* @Author lqt
|
||||||
|
* @Date 2021/9/15
|
||||||
|
* @Param
|
||||||
|
* @Return
|
||||||
|
* @Exception
|
||||||
|
*/
|
||||||
|
Integer getProjectCount(@Param("companyId") String companyId,@Param("contactsId") String contactsId);
|
||||||
|
}
|
||||||
+64
@@ -0,0 +1,64 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||||
|
<mapper namespace="com.jero.company.mapper.ProjectCountMapper">
|
||||||
|
|
||||||
|
<select id="getProjectCount" resultType="java.lang.Integer">
|
||||||
|
select count(*) from
|
||||||
|
(
|
||||||
|
<!-- 普通项目-->
|
||||||
|
select id from pay_common_project
|
||||||
|
<where>
|
||||||
|
<if test="companyId != null and companyId != ''">
|
||||||
|
AND charge_company_id = #{companyId}
|
||||||
|
</if>
|
||||||
|
<if test="contactsId != null and contactsId != ''">
|
||||||
|
AND contacts_id = #{contactsId}
|
||||||
|
</if>
|
||||||
|
</where>
|
||||||
|
<!--工作组项目-->
|
||||||
|
UNION ALL
|
||||||
|
select id from pay_working_group_subitem
|
||||||
|
<where>
|
||||||
|
<if test="companyId != null and companyId != ''">
|
||||||
|
AND charge_company_id = #{companyId}
|
||||||
|
</if>
|
||||||
|
<if test="contactsId != null and contactsId != ''">
|
||||||
|
AND contacts_id_one = #{contactsId}
|
||||||
|
</if>
|
||||||
|
</where>
|
||||||
|
<!-- 会议项目-->
|
||||||
|
UNION ALL
|
||||||
|
select id from pay_meeting_situation
|
||||||
|
<where>
|
||||||
|
<if test="companyId != null and companyId != ''">
|
||||||
|
AND company_id = #{companyId}
|
||||||
|
</if>
|
||||||
|
<if test="contactsId != null and contactsId != ''">
|
||||||
|
AND company_contact_id = #{contactsId}
|
||||||
|
</if>
|
||||||
|
</where>
|
||||||
|
<!-- 会员项目-->
|
||||||
|
UNION ALL
|
||||||
|
select id from pay_member_project_subitem
|
||||||
|
<where>
|
||||||
|
<if test="companyId != null and companyId != ''">
|
||||||
|
AND company_id = #{companyId}
|
||||||
|
</if>
|
||||||
|
<if test="contactsId != null and contactsId != ''">
|
||||||
|
AND company_contact_id = #{contactsId}
|
||||||
|
</if>
|
||||||
|
</where>
|
||||||
|
<!-- 标协会员项目-->
|
||||||
|
UNION ALL
|
||||||
|
select id from tb_member_project_subitem
|
||||||
|
<where>
|
||||||
|
<if test="companyId != null and companyId != ''">
|
||||||
|
AND company_id = #{companyId}
|
||||||
|
</if>
|
||||||
|
<!-- <if test="contactsId != null and contactsId != ''">-->
|
||||||
|
<!-- AND company_contact_id = #{contactsId}-->
|
||||||
|
<!-- </if>-->
|
||||||
|
</where>
|
||||||
|
) project
|
||||||
|
</select>
|
||||||
|
</mapper>
|
||||||
+15
@@ -0,0 +1,15 @@
|
|||||||
|
package com.jero.company.service;
|
||||||
|
|
||||||
|
public interface ProjectCountService {
|
||||||
|
/**
|
||||||
|
* @Description 获取关联企业或者联系人的项目个数
|
||||||
|
* @Author lqt
|
||||||
|
* @Date 2021/9/15
|
||||||
|
* @Param companyId 企业id
|
||||||
|
* @Param contactsId 联系人id
|
||||||
|
* @Return
|
||||||
|
* @Exception
|
||||||
|
*/
|
||||||
|
// todo 缺少标协会员的联系人id
|
||||||
|
void getProjectCount(String companyId,String contactsId);
|
||||||
|
}
|
||||||
+23
@@ -0,0 +1,23 @@
|
|||||||
|
package com.jero.company.service.impl;
|
||||||
|
|
||||||
|
import com.jero.common.exception.JeroBootException;
|
||||||
|
import com.jero.company.mapper.ProjectCountMapper;
|
||||||
|
import com.jero.company.service.ProjectCountService;
|
||||||
|
import org.springframework.stereotype.Service;
|
||||||
|
|
||||||
|
import javax.annotation.Resource;
|
||||||
|
|
||||||
|
@Service
|
||||||
|
public class ProjectCountServiceImpl implements ProjectCountService {
|
||||||
|
|
||||||
|
@Resource
|
||||||
|
private ProjectCountMapper projectCountMapper;
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void getProjectCount(String companyId, String contactsId) {
|
||||||
|
int count = projectCountMapper.getProjectCount(companyId, contactsId);
|
||||||
|
if(count > 0){
|
||||||
|
throw new JeroBootException("已关联项目,不可删除!");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
+36
-1
@@ -13,6 +13,7 @@ import com.jero.common.api.vo.Result;
|
|||||||
import com.jero.common.system.api.ISysBaseAPI;
|
import com.jero.common.system.api.ISysBaseAPI;
|
||||||
import com.jero.common.system.query.QueryGenerator;
|
import com.jero.common.system.query.QueryGenerator;
|
||||||
import com.jero.common.system.vo.LoginUser;
|
import com.jero.common.system.vo.LoginUser;
|
||||||
|
import com.jero.common.util.AuthenticationUtils;
|
||||||
import com.jero.common.util.PasswordUtil;
|
import com.jero.common.util.PasswordUtil;
|
||||||
import com.jero.common.util.ValidUtil;
|
import com.jero.common.util.ValidUtil;
|
||||||
import com.jero.common.util.oConvertUtils;
|
import com.jero.common.util.oConvertUtils;
|
||||||
@@ -28,6 +29,8 @@ import com.jero.meeting.vo.PayMeetingVO;
|
|||||||
import com.jero.meeting.vo.PublishReminderVO;
|
import com.jero.meeting.vo.PublishReminderVO;
|
||||||
import com.jero.meeting.vo.UploadFileVO;
|
import com.jero.meeting.vo.UploadFileVO;
|
||||||
import com.jero.meeting.vo.WorkingGroupMeetingExel;
|
import com.jero.meeting.vo.WorkingGroupMeetingExel;
|
||||||
|
import com.jero.modules.oss.entity.OSSFile;
|
||||||
|
import com.jero.modules.oss.service.IOSSFileService;
|
||||||
import com.jero.modules.system.volid.group.UpdateGroup;
|
import com.jero.modules.system.volid.group.UpdateGroup;
|
||||||
import com.jero.project.entity.PayWorkingGroup;
|
import com.jero.project.entity.PayWorkingGroup;
|
||||||
import com.jero.project.service.IPayWorkingGroupService;
|
import com.jero.project.service.IPayWorkingGroupService;
|
||||||
@@ -62,7 +65,10 @@ public class PayMeetingController extends JeroController<PayMeeting, IPayMeeting
|
|||||||
private IPayMeetingHotelContactsService meetingHotelContactsService;
|
private IPayMeetingHotelContactsService meetingHotelContactsService;
|
||||||
@Resource
|
@Resource
|
||||||
private IPayWorkingGroupService payWorkingGroupService;
|
private IPayWorkingGroupService payWorkingGroupService;
|
||||||
|
@Resource
|
||||||
|
private AuthenticationUtils authenticationUtils;
|
||||||
|
@Resource
|
||||||
|
private IOSSFileService iossFileService;
|
||||||
/**
|
/**
|
||||||
* 分页列表查询
|
* 分页列表查询
|
||||||
*/
|
*/
|
||||||
@@ -338,4 +344,33 @@ public class PayMeetingController extends JeroController<PayMeeting, IPayMeeting
|
|||||||
return Result.OK(QrcodeUtil.create(contact));
|
return Result.OK(QrcodeUtil.create(contact));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 新增标协会议
|
||||||
|
*/
|
||||||
|
@ApiOperation(value = "新增标协会议", notes = "新增标协会议")
|
||||||
|
@PostMapping(value = "/addStandards")
|
||||||
|
public Result<?> addStandards(@RequestBody PayMeeting payMeeting, HttpServletRequest request) {
|
||||||
|
String publicKey = request.getParameter("publicKey");
|
||||||
|
String token = request.getParameter("token");
|
||||||
|
authenticationUtils.check(token,publicKey);
|
||||||
|
|
||||||
|
payMeetingService.addStandards(payMeeting);
|
||||||
|
return Result.OK("合并开票成功!");
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 新增会议文件
|
||||||
|
*/
|
||||||
|
@ApiOperation(value = "新增会议文件", notes = "新增会议文件")
|
||||||
|
@PostMapping(value = "/addStandardsFile")
|
||||||
|
public Result<?> addStandardsFile(@RequestBody List<OSSFile> ossFileList, HttpServletRequest request) {
|
||||||
|
String publicKey = request.getParameter("publicKey");
|
||||||
|
String token = request.getParameter("token");
|
||||||
|
authenticationUtils.check(token,publicKey);
|
||||||
|
for (OSSFile ossFile : ossFileList) {
|
||||||
|
iossFileService.save(ossFile);
|
||||||
|
}
|
||||||
|
return Result.OK("新增会议文件成功!");
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
+170
-148
@@ -7,8 +7,10 @@ import javax.servlet.http.HttpServletRequest;
|
|||||||
|
|
||||||
import com.jero.common.api.vo.Result;
|
import com.jero.common.api.vo.Result;
|
||||||
import com.jero.common.system.query.QueryGenerator;
|
import com.jero.common.system.query.QueryGenerator;
|
||||||
|
import com.jero.common.util.AuthenticationUtils;
|
||||||
import com.jero.common.util.ValidUtil;
|
import com.jero.common.util.ValidUtil;
|
||||||
import com.jero.meeting.common.MeetingSubitemCommon;
|
import com.jero.meeting.common.MeetingSubitemCommon;
|
||||||
|
import com.jero.meeting.entity.PayMeeting;
|
||||||
import com.jero.meeting.entity.PayMeetingSituation;
|
import com.jero.meeting.entity.PayMeetingSituation;
|
||||||
import com.jero.meeting.service.IPayMeetingSituationService;
|
import com.jero.meeting.service.IPayMeetingSituationService;
|
||||||
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
|
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
|
||||||
@@ -24,176 +26,196 @@ import io.swagger.annotations.ApiOperation;
|
|||||||
import com.jero.common.aspect.annotation.AutoLog;
|
import com.jero.common.aspect.annotation.AutoLog;
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @description: 参会人员信息
|
* @description: 参会人员信息
|
||||||
* @author: jero-boot
|
* @author: jero-boot
|
||||||
* @date: 2021-09-02
|
* @date: 2021-09-02
|
||||||
* @version: V1.0
|
* @version: V1.0
|
||||||
*/
|
*/
|
||||||
@Api(tags="参会人员信息")
|
@Api(tags = "参会人员信息")
|
||||||
@RestController
|
@RestController
|
||||||
@RequestMapping("/meeting/payMeetingSituation")
|
@RequestMapping("/meeting/payMeetingSituation")
|
||||||
@Slf4j
|
@Slf4j
|
||||||
public class PayMeetingSituationController extends JeroController<PayMeetingSituation, IPayMeetingSituationService> {
|
public class PayMeetingSituationController extends JeroController<PayMeetingSituation, IPayMeetingSituationService> {
|
||||||
@Resource
|
@Resource
|
||||||
private IPayMeetingSituationService payMeetingSituationService;
|
private IPayMeetingSituationService payMeetingSituationService;
|
||||||
|
@Resource
|
||||||
/**
|
private AuthenticationUtils authenticationUtils;
|
||||||
* 分页列表查询
|
/**
|
||||||
*/
|
* 分页列表查询
|
||||||
@AutoLog(value = "参会人员信息-分页列表查询")
|
*/
|
||||||
@ApiOperation(value="参会人员信息-分页列表查询", notes="参会人员信息-分页列表查询")
|
@AutoLog(value = "参会人员信息-分页列表查询")
|
||||||
@GetMapping(value = "/page")
|
@ApiOperation(value = "参会人员信息-分页列表查询", notes = "参会人员信息-分页列表查询")
|
||||||
public Result<?> queryPageList(PayMeetingSituation payMeetingSituation,
|
@GetMapping(value = "/page")
|
||||||
@RequestParam(name="pageNo", defaultValue="1") Integer pageNo,
|
public Result<?> queryPageList(PayMeetingSituation payMeetingSituation,
|
||||||
@RequestParam(name="pageSize", defaultValue="10") Integer pageSize,
|
@RequestParam(name = "pageNo", defaultValue = "1") Integer pageNo,
|
||||||
HttpServletRequest req) {
|
@RequestParam(name = "pageSize", defaultValue = "10") Integer pageSize,
|
||||||
QueryWrapper<PayMeetingSituation> queryWrapper = QueryGenerator.initQueryWrapper(payMeetingSituation, req.getParameterMap());
|
HttpServletRequest req) {
|
||||||
Page<PayMeetingSituation> page = new Page<>(pageNo, pageSize);
|
QueryWrapper<PayMeetingSituation> queryWrapper = QueryGenerator.initQueryWrapper(payMeetingSituation, req.getParameterMap());
|
||||||
IPage<PayMeetingSituation> pageList = payMeetingSituationService.page(page, queryWrapper);
|
Page<PayMeetingSituation> page = new Page<>(pageNo, pageSize);
|
||||||
return Result.OK(pageList);
|
IPage<PayMeetingSituation> pageList = payMeetingSituationService.page(page, queryWrapper);
|
||||||
}
|
return Result.OK(pageList);
|
||||||
|
}
|
||||||
/**
|
|
||||||
* 分页列表查询
|
|
||||||
*/
|
|
||||||
@AutoLog(value = "报名信息-分页列表查询")
|
|
||||||
@ApiOperation(value="报名信息-分页列表查询", notes="报名信息-分页列表查询")
|
|
||||||
@GetMapping(value = "/signUpPage")
|
|
||||||
public Result<?> signUpPage(PayMeetingSituation payMeetingSituation,
|
|
||||||
@RequestParam(name="pageNo", defaultValue="1") Integer pageNo,
|
|
||||||
@RequestParam(name="pageSize", defaultValue="10") Integer pageSize,
|
|
||||||
HttpServletRequest req) {
|
|
||||||
QueryWrapper<PayMeetingSituation> queryWrapper = QueryGenerator.initQueryWrapper(payMeetingSituation, req.getParameterMap());
|
|
||||||
queryWrapper.ne("status",MeetingSubitemCommon.STATUS_3);
|
|
||||||
Page<PayMeetingSituation> page = new Page<>(pageNo, pageSize);
|
|
||||||
IPage<PayMeetingSituation> pageList = payMeetingSituationService.page(page, queryWrapper);
|
|
||||||
return Result.OK(pageList);
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 列表查询
|
* 分页列表查询
|
||||||
*/
|
*/
|
||||||
@AutoLog(value = "参会人员信息-列表查询")
|
@AutoLog(value = "参会人员信息-分页列表查询")
|
||||||
@ApiOperation(value="参会人员信息-列表查询", notes="参会人员信息-列表查询")
|
@ApiOperation(value = "参会人员信息-分页列表查询", notes = "参会人员信息-分页列表查询")
|
||||||
@GetMapping(value = "/list")
|
@GetMapping(value = "/page2")
|
||||||
public Result<List<PayMeetingSituation>> queryList() {
|
public Result<?> queryPageList2(PayMeetingSituation payMeetingSituation,
|
||||||
|
@RequestParam(name = "pageNo", defaultValue = "1") Integer pageNo,
|
||||||
|
@RequestParam(name = "pageSize", defaultValue = "10") Integer pageSize,
|
||||||
|
HttpServletRequest req) {
|
||||||
|
String publicKey = req.getParameter("publicKey");
|
||||||
|
String token = req.getParameter("token");
|
||||||
|
authenticationUtils.check(token,publicKey);
|
||||||
|
QueryWrapper<PayMeetingSituation> queryWrapper = QueryGenerator.initQueryWrapper(payMeetingSituation, req.getParameterMap());
|
||||||
|
Page<PayMeetingSituation> page = new Page<>(pageNo, pageSize);
|
||||||
|
IPage<PayMeetingSituation> pageList = payMeetingSituationService.page(page, queryWrapper);
|
||||||
|
return Result.OK(pageList);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 分页列表查询
|
||||||
|
*/
|
||||||
|
@AutoLog(value = "报名信息-分页列表查询")
|
||||||
|
@ApiOperation(value = "报名信息-分页列表查询", notes = "报名信息-分页列表查询")
|
||||||
|
@GetMapping(value = "/signUpPage")
|
||||||
|
public Result<?> signUpPage(PayMeetingSituation payMeetingSituation,
|
||||||
|
@RequestParam(name = "pageNo", defaultValue = "1") Integer pageNo,
|
||||||
|
@RequestParam(name = "pageSize", defaultValue = "10") Integer pageSize,
|
||||||
|
HttpServletRequest req) {
|
||||||
|
QueryWrapper<PayMeetingSituation> queryWrapper = QueryGenerator.initQueryWrapper(payMeetingSituation, req.getParameterMap());
|
||||||
|
queryWrapper.ne("status", MeetingSubitemCommon.STATUS_3);
|
||||||
|
Page<PayMeetingSituation> page = new Page<>(pageNo, pageSize);
|
||||||
|
IPage<PayMeetingSituation> pageList = payMeetingSituationService.page(page, queryWrapper);
|
||||||
|
return Result.OK(pageList);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 列表查询
|
||||||
|
*/
|
||||||
|
@AutoLog(value = "参会人员信息-列表查询")
|
||||||
|
@ApiOperation(value = "参会人员信息-列表查询", notes = "参会人员信息-列表查询")
|
||||||
|
@GetMapping(value = "/list")
|
||||||
|
public Result<List<PayMeetingSituation>> queryList() {
|
||||||
List<PayMeetingSituation> list = payMeetingSituationService.queryList();
|
List<PayMeetingSituation> list = payMeetingSituationService.queryList();
|
||||||
return Result.OK(list);
|
return Result.OK(list);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* 添加参会人
|
|
||||||
*/
|
|
||||||
@AutoLog(value = "参会人员信息-添加参会人")
|
|
||||||
@ApiOperation(value="参会人员信息-添加参会人", notes="参会人员信息-添加参会人")
|
|
||||||
@PostMapping(value = "/add")
|
|
||||||
public Result<?> add(@RequestBody PayMeetingSituation payMeetingSituation) {
|
|
||||||
payMeetingSituationService.add(payMeetingSituation);
|
|
||||||
return Result.OK("添加成功!");
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 报名
|
|
||||||
*/
|
|
||||||
@AutoLog(value = "报名信息-报名")
|
|
||||||
@ApiOperation(value="报名信息-报名", notes="报名信息-报名")
|
|
||||||
@PostMapping(value = "/signUp")
|
|
||||||
public Result<?> signUp(@RequestBody PayMeetingSituation payMeetingSituation) {
|
|
||||||
payMeetingSituationService.signUp(payMeetingSituation);
|
|
||||||
return Result.OK("添加成功!");
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 编辑
|
|
||||||
*/
|
|
||||||
@AutoLog(value = "参会人员信息-编辑")
|
|
||||||
@ApiOperation(value="参会人员信息-编辑", notes="参会人员信息-编辑")
|
|
||||||
@PostMapping(value = "/edit")
|
|
||||||
public Result<?> edit(@RequestBody PayMeetingSituationVO payMeetingSituationVO) {
|
|
||||||
payMeetingSituationService.editById(payMeetingSituationVO);
|
|
||||||
return Result.OK("编辑成功!");
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 通过id删除
|
|
||||||
*/
|
|
||||||
@AutoLog(value = "参会人员信息-通过id删除")
|
|
||||||
@ApiOperation(value="参会人员信息-通过id删除", notes="参会人员信息-通过id删除")
|
|
||||||
@GetMapping(value = "/delete")
|
|
||||||
public Result<?> delete(@RequestParam(name="id") String id) {
|
|
||||||
payMeetingSituationService.deleteById(id);
|
|
||||||
return Result.OK("删除成功!");
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 批量删除
|
|
||||||
*/
|
|
||||||
@AutoLog(value = "参会人员信息-批量删除")
|
|
||||||
@ApiOperation(value="参会人员信息-批量删除", notes="参会人员信息-批量删除")
|
|
||||||
@GetMapping(value = "/deleteBatch")
|
|
||||||
public Result<?> deleteBatch(@RequestParam(name="ids") String ids) {
|
|
||||||
this.payMeetingSituationService.deleteByIds(Arrays.asList(ids.split(",")));
|
|
||||||
return Result.OK("批量删除成功!");
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 通过id查询
|
|
||||||
*/
|
|
||||||
@AutoLog(value = "参会人员信息-通过id查询")
|
|
||||||
@ApiOperation(value="参会人员信息-通过id查询", notes="参会人员信息-通过id查询")
|
|
||||||
@GetMapping(value = "/queryById")
|
|
||||||
public Result<?> queryById(@RequestParam(name="id") String id) {
|
|
||||||
PayMeetingSituation payMeetingSituation = payMeetingSituationService.queryById(id);
|
|
||||||
if(payMeetingSituation==null) {
|
|
||||||
return Result.error("未找到对应数据");
|
|
||||||
}
|
|
||||||
return Result.OK(payMeetingSituation);
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 导出excel
|
* 添加参会人
|
||||||
*/
|
*/
|
||||||
|
@AutoLog(value = "参会人员信息-添加参会人")
|
||||||
|
@ApiOperation(value = "参会人员信息-添加参会人", notes = "参会人员信息-添加参会人")
|
||||||
|
@PostMapping(value = "/add")
|
||||||
|
public Result<?> add(@RequestBody PayMeetingSituation payMeetingSituation) {
|
||||||
|
payMeetingSituationService.add(payMeetingSituation);
|
||||||
|
return Result.OK("添加成功!");
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 报名
|
||||||
|
*/
|
||||||
|
@AutoLog(value = "报名信息-报名")
|
||||||
|
@ApiOperation(value = "报名信息-报名", notes = "报名信息-报名")
|
||||||
|
@PostMapping(value = "/signUp")
|
||||||
|
public Result<?> signUp(@RequestBody PayMeetingSituation payMeetingSituation) {
|
||||||
|
payMeetingSituationService.signUp(payMeetingSituation);
|
||||||
|
return Result.OK("添加成功!");
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 编辑
|
||||||
|
*/
|
||||||
|
@AutoLog(value = "参会人员信息-编辑")
|
||||||
|
@ApiOperation(value = "参会人员信息-编辑", notes = "参会人员信息-编辑")
|
||||||
|
@PostMapping(value = "/edit")
|
||||||
|
public Result<?> edit(@RequestBody PayMeetingSituationVO payMeetingSituationVO) {
|
||||||
|
payMeetingSituationService.editById(payMeetingSituationVO);
|
||||||
|
return Result.OK("编辑成功!");
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 通过id删除
|
||||||
|
*/
|
||||||
|
@AutoLog(value = "参会人员信息-通过id删除")
|
||||||
|
@ApiOperation(value = "参会人员信息-通过id删除", notes = "参会人员信息-通过id删除")
|
||||||
|
@GetMapping(value = "/delete")
|
||||||
|
public Result<?> delete(@RequestParam(name = "id") String id) {
|
||||||
|
payMeetingSituationService.deleteById(id);
|
||||||
|
return Result.OK("删除成功!");
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 批量删除
|
||||||
|
*/
|
||||||
|
@AutoLog(value = "参会人员信息-批量删除")
|
||||||
|
@ApiOperation(value = "参会人员信息-批量删除", notes = "参会人员信息-批量删除")
|
||||||
|
@GetMapping(value = "/deleteBatch")
|
||||||
|
public Result<?> deleteBatch(@RequestParam(name = "ids") String ids) {
|
||||||
|
this.payMeetingSituationService.deleteByIds(Arrays.asList(ids.split(",")));
|
||||||
|
return Result.OK("批量删除成功!");
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 通过id查询
|
||||||
|
*/
|
||||||
|
@AutoLog(value = "参会人员信息-通过id查询")
|
||||||
|
@ApiOperation(value = "参会人员信息-通过id查询", notes = "参会人员信息-通过id查询")
|
||||||
|
@GetMapping(value = "/queryById")
|
||||||
|
public Result<?> queryById(@RequestParam(name = "id") String id) {
|
||||||
|
PayMeetingSituation payMeetingSituation = payMeetingSituationService.queryById(id);
|
||||||
|
if (payMeetingSituation == null) {
|
||||||
|
return Result.error("未找到对应数据");
|
||||||
|
}
|
||||||
|
return Result.OK(payMeetingSituation);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 导出excel
|
||||||
|
*/
|
||||||
@GetMapping(value = "/exportXls")
|
@GetMapping(value = "/exportXls")
|
||||||
public ModelAndView exportXls(HttpServletRequest request, PayMeetingSituation payMeetingSituation) {
|
public ModelAndView exportXls(HttpServletRequest request, PayMeetingSituation payMeetingSituation) {
|
||||||
return super.exportXls(request, payMeetingSituation, PayMeetingSituation.class, "参会人员信息");
|
return super.exportXls(request, payMeetingSituation, PayMeetingSituation.class, "参会人员信息");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 设置对接人
|
* 设置对接人
|
||||||
*/
|
*/
|
||||||
@AutoLog(value = "设置对接人")
|
@AutoLog(value = "设置对接人")
|
||||||
@ApiOperation(value="设置对接人", notes="设置对接人")
|
@ApiOperation(value = "设置对接人", notes = "设置对接人")
|
||||||
@PostMapping(value = "/addDock")
|
@PostMapping(value = "/addDock")
|
||||||
public Result<?> addDock(@RequestBody AddDockVO addDockVO) {
|
public Result<?> addDock(@RequestBody AddDockVO addDockVO) {
|
||||||
payMeetingSituationService.addDock(addDockVO);
|
payMeetingSituationService.addDock(addDockVO);
|
||||||
return Result.OK("设置对接人成功!");
|
return Result.OK("设置对接人成功!");
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 审核
|
* 审核
|
||||||
*/
|
*/
|
||||||
@AutoLog(value = "审核")
|
@AutoLog(value = "审核")
|
||||||
@ApiOperation(value="审核", notes="审核")
|
@ApiOperation(value = "审核", notes = "审核")
|
||||||
@PostMapping(value = "/check")
|
@PostMapping(value = "/check")
|
||||||
public Result<?> check(@RequestBody CheckVO checkVO) {
|
public Result<?> check(@RequestBody CheckVO checkVO) {
|
||||||
payMeetingSituationService.check(checkVO);
|
payMeetingSituationService.check(checkVO);
|
||||||
return Result.OK("审核成功!");
|
return Result.OK("审核成功!");
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 合并开票
|
* 合并开票
|
||||||
*/
|
*/
|
||||||
@AutoLog(value = "合并开票")
|
@AutoLog(value = "合并开票")
|
||||||
@ApiOperation(value="合并开票", notes="合并开票")
|
@ApiOperation(value = "合并开票", notes = "合并开票")
|
||||||
@PostMapping(value = "/batchPayBill")
|
@PostMapping(value = "/batchPayBill")
|
||||||
public Result<?> mergePayBill(@RequestBody MergePayBillVO mergePayBillVO) {
|
public Result<?> mergePayBill(@RequestBody MergePayBillVO mergePayBillVO) {
|
||||||
ValidUtil.validate(mergePayBillVO);
|
ValidUtil.validate(mergePayBillVO);
|
||||||
payMeetingSituationService.mergePayBill(mergePayBillVO);
|
payMeetingSituationService.mergePayBill(mergePayBillVO);
|
||||||
return Result.OK("合并开票成功!");
|
return Result.OK("合并开票成功!");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
+10
-2
@@ -21,7 +21,13 @@ public interface IPayMeetingService extends IService<PayMeeting> {
|
|||||||
void add(PayMeetingVO payMeetingVO);
|
void add(PayMeetingVO payMeetingVO);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 新增会议
|
* 新增标协会议
|
||||||
|
* @param payMeeting
|
||||||
|
*/
|
||||||
|
void addStandards(PayMeeting payMeeting);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 编辑会议
|
||||||
*/
|
*/
|
||||||
void editById(PayMeetingVO payMeeting);
|
void editById(PayMeetingVO payMeeting);
|
||||||
|
|
||||||
@@ -47,8 +53,10 @@ public interface IPayMeetingService extends IService<PayMeeting> {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* 发布提醒
|
* 发布提醒
|
||||||
* @param meetingId
|
* @param meetingIds
|
||||||
* @param subitemIds
|
* @param subitemIds
|
||||||
*/
|
*/
|
||||||
void publishReminder(List<String> meetingIds, List<String> subitemIds);
|
void publishReminder(List<String> meetingIds, List<String> subitemIds);
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
+19
@@ -19,6 +19,7 @@ import com.jero.meeting.valid.group.InternationalMeeting;
|
|||||||
import com.jero.meeting.valid.group.StandardMeeting;
|
import com.jero.meeting.valid.group.StandardMeeting;
|
||||||
import com.jero.meeting.valid.group.WorkingGroupMeeting;
|
import com.jero.meeting.valid.group.WorkingGroupMeeting;
|
||||||
import com.jero.meeting.vo.PayMeetingVO;
|
import com.jero.meeting.vo.PayMeetingVO;
|
||||||
|
import com.jero.modules.oss.service.IOSSFileService;
|
||||||
import com.jero.project.entity.PayWorkingGroup;
|
import com.jero.project.entity.PayWorkingGroup;
|
||||||
import com.jero.project.entity.PayWorkingGroupSubItem;
|
import com.jero.project.entity.PayWorkingGroupSubItem;
|
||||||
import com.jero.project.service.IPayWorkingGroupService;
|
import com.jero.project.service.IPayWorkingGroupService;
|
||||||
@@ -86,6 +87,24 @@ public class PayMeetingServiceImpl extends ServiceImpl<PayMeetingMapper, PayMeet
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void addStandards(PayMeeting payMeeting) {
|
||||||
|
saveOrUpdate(payMeeting);
|
||||||
|
List<PayMeetingHotelContacts> hotelContactsList = payMeeting.getHotelContactsList();
|
||||||
|
//如果酒店联系人列表不为空,就新增
|
||||||
|
if (!CollectionUtils.isEmpty(hotelContactsList)){
|
||||||
|
String meetingId = payMeeting.getId();
|
||||||
|
//先删除原先的酒店联系人,在添加新的
|
||||||
|
LambdaQueryWrapper<PayMeetingHotelContacts> queryWrapper = new LambdaQueryWrapper<>();
|
||||||
|
queryWrapper.eq(PayMeetingHotelContacts::getMeetingId,meetingId);
|
||||||
|
meetingHotelContactsService.remove(queryWrapper);
|
||||||
|
hotelContactsList.forEach(hotelContacts ->
|
||||||
|
hotelContacts.setMeetingId(meetingId)
|
||||||
|
);
|
||||||
|
meetingHotelContactsService.saveBatch(hotelContactsList);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 更新
|
* 更新
|
||||||
*/
|
*/
|
||||||
|
|||||||
+3
-62
@@ -60,7 +60,7 @@ public class StableCrossTrainingServiceImpl extends ServiceImpl<StableCrossTrain
|
|||||||
StableCrossTraining stableCrossTraining = new StableCrossTraining();
|
StableCrossTraining stableCrossTraining = new StableCrossTraining();
|
||||||
stableCrossTraining.setId(payMeeting.getId());
|
stableCrossTraining.setId(payMeeting.getId());
|
||||||
stableCrossTraining.setName(payMeeting.getMeetingName());
|
stableCrossTraining.setName(payMeeting.getMeetingName());
|
||||||
stableCrossTraining.setMeetingType(payMeeting.getMeetingType());
|
stableCrossTraining.setMeetingType(payMeeting.getTbMeetingType());
|
||||||
stableCrossTraining.setYear(payMeeting.getParticularYear());
|
stableCrossTraining.setYear(payMeeting.getParticularYear());
|
||||||
Date startTime = payMeeting.getStartTime();
|
Date startTime = payMeeting.getStartTime();
|
||||||
Date endTime = payMeeting.getEndTime();
|
Date endTime = payMeeting.getEndTime();
|
||||||
@@ -69,7 +69,8 @@ public class StableCrossTrainingServiceImpl extends ServiceImpl<StableCrossTrain
|
|||||||
stableCrossTraining.setConvokeEndTime(endTime);
|
stableCrossTraining.setConvokeEndTime(endTime);
|
||||||
stableCrossTraining.setConvokeLocale(payMeeting.getConvokeLocale());
|
stableCrossTraining.setConvokeLocale(payMeeting.getConvokeLocale());
|
||||||
stableCrossTraining.setPlaceName(payMeeting.getVenue());
|
stableCrossTraining.setPlaceName(payMeeting.getVenue());
|
||||||
stableCrossTraining.setMeetingFiles(payMeeting.getMeetingFiles());
|
stableCrossTraining.setMeetingFiles(payMeeting.getMeetingData());
|
||||||
|
stableCrossTraining.setMeetingNotifyFiles(payMeeting.getMeetingFiles());
|
||||||
stableCrossTraining.setMeetingDescription(payMeeting.getMeetingContent());
|
stableCrossTraining.setMeetingDescription(payMeeting.getMeetingContent());
|
||||||
stableCrossTraining.setRemark(payMeeting.getRemark());
|
stableCrossTraining.setRemark(payMeeting.getRemark());
|
||||||
Date startSignInTime = payMeeting.getStartSignInTime();
|
Date startSignInTime = payMeeting.getStartSignInTime();
|
||||||
@@ -123,66 +124,6 @@ public class StableCrossTrainingServiceImpl extends ServiceImpl<StableCrossTrain
|
|||||||
return resFlag;
|
return resFlag;
|
||||||
}
|
}
|
||||||
|
|
||||||
//判空
|
|
||||||
public void ifEntityIsEmpty(StableCrossTraining stableCrossTraining) {
|
|
||||||
if (StringUtils.isBlank(stableCrossTraining.getName())) {
|
|
||||||
throw new JeroBootException(Result.NULL_NAME);
|
|
||||||
} else {
|
|
||||||
if (stableCrossTraining.getName().length() > 50) {
|
|
||||||
throw new JeroBootException("会议名称输入超过限定长度!");
|
|
||||||
}
|
|
||||||
}
|
|
||||||
if (StringUtils.isBlank(stableCrossTraining.getMeetingApply())) {
|
|
||||||
throw new JeroBootException("请核实会议报名是否存在!");
|
|
||||||
} else {
|
|
||||||
if (stableCrossTraining.getMeetingApply().length() > 500) {
|
|
||||||
throw new JeroBootException("会议报名输入超过限定长度!");
|
|
||||||
}
|
|
||||||
if (!Assert.iswebsit(stableCrossTraining.getMeetingApply())) {
|
|
||||||
throw new JeroBootException("报名链接请输入网址格式");
|
|
||||||
}
|
|
||||||
}
|
|
||||||
if (null == stableCrossTraining.getMeetingType()) {
|
|
||||||
throw new JeroBootException("请核实培训类型是否存在!");
|
|
||||||
}
|
|
||||||
if (StringUtils.isBlank(stableCrossTraining.getYear())) {
|
|
||||||
throw new JeroBootException("请核实年份是否存在!");
|
|
||||||
}
|
|
||||||
if (StringUtils.isBlank(stableCrossTraining.getConvokeTime())) {
|
|
||||||
throw new JeroBootException("请核实培训召开时间是否存在!");
|
|
||||||
}
|
|
||||||
if (StringUtils.isBlank(stableCrossTraining.getConvokeLocale())) {
|
|
||||||
throw new JeroBootException("请核实培训召开地点是否存在!");
|
|
||||||
}
|
|
||||||
if (StringUtils.isBlank(stableCrossTraining.getPlaceName())) {
|
|
||||||
throw new JeroBootException("请核实省市名称是否存在!");
|
|
||||||
}
|
|
||||||
if (StringUtils.isNotBlank(stableCrossTraining.getRemark())) {
|
|
||||||
if (stableCrossTraining.getRemark().length() > 500) {
|
|
||||||
throw new JeroBootException("备注输入超过限定长度!");
|
|
||||||
}
|
|
||||||
}
|
|
||||||
if (StringUtils.isBlank(stableCrossTraining.getSignInTime())) {
|
|
||||||
throw new JeroBootException("请核实注册签到是否存在!");
|
|
||||||
} else {
|
|
||||||
if (stableCrossTraining.getSignInTime().length() > 50) {
|
|
||||||
throw new JeroBootException("注册签到输入超过限定长度!");
|
|
||||||
}
|
|
||||||
}
|
|
||||||
if (StringUtils.isNotBlank(stableCrossTraining.getMeetingFiles())) {
|
|
||||||
List<String> newsReportList = Arrays.asList(stableCrossTraining.getMeetingFiles().split(","));
|
|
||||||
if (newsReportList.size() > 10) {
|
|
||||||
throw new JeroBootException("会议文件最多为10个");
|
|
||||||
}
|
|
||||||
}
|
|
||||||
if (StringUtils.isNotBlank(stableCrossTraining.getMeetingNotifyFiles())) {
|
|
||||||
List<String> newsReportList = Arrays.asList(stableCrossTraining.getMeetingNotifyFiles().split(","));
|
|
||||||
if (newsReportList.size() > 10) {
|
|
||||||
throw new JeroBootException("会议通知文件最多为10个");
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
//判断培训状态
|
//判断培训状态
|
||||||
public StableCrossTraining isTrainingState(StableCrossTraining stableCrossTraining) {
|
public StableCrossTraining isTrainingState(StableCrossTraining stableCrossTraining) {
|
||||||
|
|||||||
Reference in New Issue
Block a user