diff --git a/src/main/java/cn/com/tenlion/usercenter/controller/app/api/activityjoin/ActivityJoinAppController.java b/src/main/java/cn/com/tenlion/usercenter/controller/app/api/activityjoin/ActivityJoinAppController.java index 4fd9588..7c77e2c 100644 --- a/src/main/java/cn/com/tenlion/usercenter/controller/app/api/activityjoin/ActivityJoinAppController.java +++ b/src/main/java/cn/com/tenlion/usercenter/controller/app/api/activityjoin/ActivityJoinAppController.java @@ -170,7 +170,6 @@ public class ActivityJoinAppController extends DefaultBaseController { @ApiOperation(value = "我的证书查询", notes = "我的活动列表接口") @ApiImplicitParams({ - @ApiImplicitParam(name = "token", value = "token", paramType = "header"), @ApiImplicitParam(name = "name", value = "姓名", paramType = "path", dataType = "String"), @ApiImplicitParam(name = "cardNum", value = "身份证号", paramType = "path", dataType = "String"), @ApiImplicitParam(name = "phone", value = "手机号", paramType = "path", dataType = "String") diff --git a/src/main/java/cn/com/tenlion/usercenter/controller/app/api/activityjoincompany/ActivityJoinCompanyAppController.java b/src/main/java/cn/com/tenlion/usercenter/controller/app/api/activityjoincompany/ActivityJoinCompanyAppController.java index 4910609..1d59ae3 100644 --- a/src/main/java/cn/com/tenlion/usercenter/controller/app/api/activityjoincompany/ActivityJoinCompanyAppController.java +++ b/src/main/java/cn/com/tenlion/usercenter/controller/app/api/activityjoincompany/ActivityJoinCompanyAppController.java @@ -137,7 +137,7 @@ public class ActivityJoinCompanyAppController extends DefaultBaseController { @ApiImplicitParam(name = "token", value = "token", paramType = "header") }) @ApiResponses({@ApiResponse(code = 400, message = "请求失败", response = ErrorResult.class)}) - @GetMapping("myCertificateListPage") + @GetMapping("/"+ ISystemConstant.APP_RELEASE_SUFFIX + "/myCertificateListPage") public SuccessResultList> myCertificateListPage(@RequestHeader("token") String token, ListPage page) { Map params = requestParams(); page.setParams(params); @@ -152,7 +152,7 @@ public class ActivityJoinCompanyAppController extends DefaultBaseController { @ApiImplicitParam(name = "phone", value = "手机号", paramType = "path", dataType = "String") }) @ApiResponses({@ApiResponse(code = 400, message = "请求失败", response = ErrorResult.class)}) - @GetMapping("myCertificateListPageNoToken") + @GetMapping("/"+ ISystemConstant.APP_RELEASE_SUFFIX + "/myCertificateListPageNoToken") public SuccessResultList> myCertificateListPage(ListPage page) { Map params = requestParams(); page.setParams(params); diff --git a/src/main/java/cn/com/tenlion/usercenter/service/activityjoin/impl/ActivityJoinServiceImpl.java b/src/main/java/cn/com/tenlion/usercenter/service/activityjoin/impl/ActivityJoinServiceImpl.java index 756e16a..512a5e9 100644 --- a/src/main/java/cn/com/tenlion/usercenter/service/activityjoin/impl/ActivityJoinServiceImpl.java +++ b/src/main/java/cn/com/tenlion/usercenter/service/activityjoin/impl/ActivityJoinServiceImpl.java @@ -373,6 +373,25 @@ public class ActivityJoinServiceImpl extends DefaultBaseService implements IActi setAppUpdateInfo(token, params); } activityJoinDao.updateAll(params); + + if(1 == activityJoinVO.getIsCheck()) { + for (String s : idList) { + ActivityJoinDTO activityJoinDTO = this.get(s); + if(null != activityJoinDTO) { + // 发送短信 + smsService.sendContentDirectlyByPhone(activityJoinDTO.getPhone(), "报名审核成功"); + } + } + } + if(-1 == activityJoinVO.getIsCheck()) { + for (String s : idList) { + ActivityJoinDTO activityJoinDTO = this.get(s); + if (null != activityJoinDTO) { + // 发送短信 + smsService.sendContentDirectlyByPhone(activityJoinDTO.getPhone(), "活动审核不通过,原因:" + activityJoinVO.getCheckReason()); + } + } + } } private List myCertificate(String token, Map params) { diff --git a/src/main/java/cn/com/tenlion/usercenter/service/activityjoincompany/impl/ActivityJoinCompanyServiceImpl.java b/src/main/java/cn/com/tenlion/usercenter/service/activityjoincompany/impl/ActivityJoinCompanyServiceImpl.java index 18c590c..a5a3714 100644 --- a/src/main/java/cn/com/tenlion/usercenter/service/activityjoincompany/impl/ActivityJoinCompanyServiceImpl.java +++ b/src/main/java/cn/com/tenlion/usercenter/service/activityjoincompany/impl/ActivityJoinCompanyServiceImpl.java @@ -6,6 +6,7 @@ import cn.com.tenlion.usercenter.dao.activityjoincompany.IActivityJoinCompanyDao import cn.com.tenlion.usercenter.dao.certificatemanage.ICertificateManageDao; import cn.com.tenlion.usercenter.pojo.bos.activityjoincompany.ActivityJoinCompanyBO; import cn.com.tenlion.usercenter.pojo.dtos.activity.ActivityDTO; +import cn.com.tenlion.usercenter.pojo.dtos.activityjoin.ActivityJoinDTO; import cn.com.tenlion.usercenter.pojo.dtos.activityjoincompany.ActivityJoinCompanyDTO; import cn.com.tenlion.usercenter.pojo.dtos.certificatemanage.CertificateManageDTO; import cn.com.tenlion.usercenter.pojo.pos.activityjoincompany.ActivityJoinCompanyPO; @@ -308,6 +309,25 @@ public class ActivityJoinCompanyServiceImpl extends DefaultBaseService implement setAppUpdateInfo(token, params); } activityJoinCompanyDao.updateAll(params); + + if(1 == activityJoinCompanyVO.getIsCheck()) { + for (String s : idList) { + ActivityJoinCompanyDTO activityJoinCompanyDTO = this.get(s); + if(null != activityJoinCompanyDTO) { + // 发送短信 + smsService.sendContentDirectlyByPhone(activityJoinCompanyDTO.getPhone(), "报名审核成功"); + } + } + } + if(-1 == activityJoinCompanyVO.getIsCheck()) { + for (String s : idList) { + ActivityJoinCompanyDTO activityJoinCompanyDTO = this.get(s); + if (null != activityJoinCompanyDTO) { + // 发送短信 + smsService.sendContentDirectlyByPhone(activityJoinCompanyDTO.getPhone(), "活动审核不通过,原因:" + activityJoinCompanyVO.getCheckReason()); + } + } + } } private List getActivityMsg(List list, Map params) { diff --git a/src/main/resources/mybatis/mapper/activity-join-company/activity-join-company-mapper.xml b/src/main/resources/mybatis/mapper/activity-join-company/activity-join-company-mapper.xml index 175cb4c..edf676b 100644 --- a/src/main/resources/mybatis/mapper/activity-join-company/activity-join-company-mapper.xml +++ b/src/main/resources/mybatis/mapper/activity-join-company/activity-join-company-mapper.xml @@ -272,11 +272,15 @@ AND t1.activity_id = #{activityId} + + AND t1.user_name = #{userName} + + + AND t1.phone = #{phone} + AND ( t1.company_name LIKE CONCAT('%', #{keywords}, '%') - OR t1.user_name LIKE CONCAT('%', #{keywords}, '%') - OR t1.phone LIKE CONCAT('%', #{keywords}, '%') ) diff --git a/src/main/resources/mybatis/mapper/activity-join/activity-join-mapper.xml b/src/main/resources/mybatis/mapper/activity-join/activity-join-mapper.xml index c347c40..4a3f93e 100644 --- a/src/main/resources/mybatis/mapper/activity-join/activity-join-mapper.xml +++ b/src/main/resources/mybatis/mapper/activity-join/activity-join-mapper.xml @@ -335,11 +335,15 @@ AND t1.parent_id = #{parentId} + + AND t1.card_num = #{cardNum} + + + AND t1.phone = #{phone} + AND ( t1.name LIKE CONCAT('%', #{keywords}, '%') - OR t1.card_num LIKE CONCAT('%', #{keywords}, '%') - OR t1.phone LIKE CONCAT('%', #{keywords}, '%') ) diff --git a/src/main/resources/mybatis/mapper/activity/activity-mapper.xml b/src/main/resources/mybatis/mapper/activity/activity-mapper.xml index 0164062..2f032e0 100644 --- a/src/main/resources/mybatis/mapper/activity/activity-mapper.xml +++ b/src/main/resources/mybatis/mapper/activity/activity-mapper.xml @@ -449,6 +449,14 @@ AND status = #{status} + + AND + join_count = #{joinCount} + + + AND + activity_type = #{activityType} + AND activity_type_id = #{activityTypeId} diff --git a/src/main/resources/mybatis/mapper/certificatemanage/certificate-manage-mapper.xml b/src/main/resources/mybatis/mapper/certificatemanage/certificate-manage-mapper.xml index d4392ee..f8c3363 100644 --- a/src/main/resources/mybatis/mapper/certificatemanage/certificate-manage-mapper.xml +++ b/src/main/resources/mybatis/mapper/certificatemanage/certificate-manage-mapper.xml @@ -13,6 +13,7 @@ + @@ -424,6 +425,9 @@ AND t2.activity_id = #{activityId} + + AND t2.user_id = #{userId} + AND t1.certificate_manage_id = #{certificateManageId} @@ -450,7 +454,7 @@ WHERE t1.is_delete = 0 - AND t2.user_name = #{name} + AND t2.company_name = #{name} AND t2.activity_id = #{activityId} diff --git a/src/main/resources/templates/activity-join-company/list.html b/src/main/resources/templates/activity-join-company/list.html index fda1189..1875b52 100644 --- a/src/main/resources/templates/activity-join-company/list.html +++ b/src/main/resources/templates/activity-join-company/list.html @@ -18,14 +18,36 @@
- -
- 新增时间 -
- +
- + +
+
+ +
+
+ +
+
+ +
+
+