Merge remote-tracking branch 'origin/branch20211008' into branch20211008
This commit is contained in:
+1
-1
@@ -86,7 +86,7 @@ public class HuaWeiSmsUtil {
|
|||||||
long expire = redisUtil.getExpire("_verification:_phone:" + phone);
|
long expire = redisUtil.getExpire("_verification:_phone:" + phone);
|
||||||
//值为-2代表没有此数据
|
//值为-2代表没有此数据
|
||||||
if (expire != -2){
|
if (expire != -2){
|
||||||
if (600 - expire <= 60){
|
if (Integer.parseInt(codeTime) - expire <= 60){
|
||||||
throw new JeroBootException("1分钟内只能发送一次验证码");
|
throw new JeroBootException("1分钟内只能发送一次验证码");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
+1
@@ -121,6 +121,7 @@ public class ShiroConfig {
|
|||||||
filterChainDefinitionMap.put("/company/payContactsManagement/queryByName","anon");//联系人校验
|
filterChainDefinitionMap.put("/company/payContactsManagement/queryByName","anon");//联系人校验
|
||||||
filterChainDefinitionMap.put("/sys/common/download/**","anon");//下载接口
|
filterChainDefinitionMap.put("/sys/common/download/**","anon");//下载接口
|
||||||
filterChainDefinitionMap.put("/sys/oss/file/queryById","anon");//通过id查询文件
|
filterChainDefinitionMap.put("/sys/oss/file/queryById","anon");//通过id查询文件
|
||||||
|
filterChainDefinitionMap.put("/meeting/internalMeetingSituation/checkMember","anon");//校验是否为会员单位
|
||||||
|
|
||||||
filterChainDefinitionMap.put("/", "anon");
|
filterChainDefinitionMap.put("/", "anon");
|
||||||
filterChainDefinitionMap.put("/doc.html", "anon");
|
filterChainDefinitionMap.put("/doc.html", "anon");
|
||||||
|
|||||||
+5
-1
@@ -315,5 +315,9 @@ public class InternalMeetingSituationController extends JeroController<PayMeetin
|
|||||||
return Result.OK("合并开票成功!");
|
return Result.OK("合并开票成功!");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ApiOperation(value = "校验是否为会员单位")
|
||||||
|
@GetMapping(value = "/checkMember")
|
||||||
|
public Result<Boolean> checkMember(String companyName) {
|
||||||
|
return Result.OK(payMeetingSituationService.checkMember(companyName));
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
+3
-1
@@ -28,7 +28,9 @@ public interface IPayMeetingSituationService extends IService<PayMeetingSituatio
|
|||||||
*/
|
*/
|
||||||
void editById(PayMeetingSituationVO payMeetingSituationVO);
|
void editById(PayMeetingSituationVO payMeetingSituationVO);
|
||||||
|
|
||||||
/**
|
Boolean checkMember(String companyName);
|
||||||
|
|
||||||
|
/**
|
||||||
* 通过id删除
|
* 通过id删除
|
||||||
*/
|
*/
|
||||||
void deleteById(String id);
|
void deleteById(String id);
|
||||||
|
|||||||
+11
-2
@@ -922,9 +922,8 @@ public class PayMeetingSituationServiceImpl extends ServiceImpl<PayMeetingSituat
|
|||||||
//如果是标协会议判断会员类型
|
//如果是标协会议判断会员类型
|
||||||
if (meetingType.equals(Integer.parseInt(MeetingCommon.STANDARD_MEETING))) {
|
if (meetingType.equals(Integer.parseInt(MeetingCommon.STANDARD_MEETING))) {
|
||||||
//根据企业名称和会员类型不为null判断是否为标协会员
|
//根据企业名称和会员类型不为null判断是否为标协会员
|
||||||
int count = memberInfoService.check(payMeetingSituation1.getCompanyName());
|
|
||||||
//如果是标协会员就存入会议费用(标协会员)
|
//如果是标协会员就存入会议费用(标协会员)
|
||||||
if (count > 0) {
|
if (checkMember(payMeetingSituation1.getCompanyName())) {
|
||||||
payMeetingSituation1.setAmountReceivable(payMeeting.getMeetingCostsVip());
|
payMeetingSituation1.setAmountReceivable(payMeeting.getMeetingCostsVip());
|
||||||
} else {
|
} else {
|
||||||
payMeetingSituation1.setAmountReceivable(payMeeting.getMeetingCosts());
|
payMeetingSituation1.setAmountReceivable(payMeeting.getMeetingCosts());
|
||||||
@@ -989,6 +988,16 @@ public class PayMeetingSituationServiceImpl extends ServiceImpl<PayMeetingSituat
|
|||||||
return payMeetingSituation1;
|
return payMeetingSituation1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 判断是否是会员单位
|
||||||
|
* @param companyName 公司名称
|
||||||
|
* @return boolean
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public Boolean checkMember(String companyName){
|
||||||
|
return memberInfoService.check(companyName) > 0;
|
||||||
|
}
|
||||||
|
|
||||||
private void canHuiContact(PayMeetingSituation payMeetingSituation, String companyId, PayContactsManagement contactsManagement) {
|
private void canHuiContact(PayMeetingSituation payMeetingSituation, String companyId, PayContactsManagement contactsManagement) {
|
||||||
if (contactsManagement == null) {
|
if (contactsManagement == null) {
|
||||||
throw new JeroBootException("联系人不存在");
|
throw new JeroBootException("联系人不存在");
|
||||||
|
|||||||
@@ -270,7 +270,7 @@
|
|||||||
</dependencyManagement>
|
</dependencyManagement>
|
||||||
|
|
||||||
<build>
|
<build>
|
||||||
<finalName>jero-boot</finalName>
|
<finalName>income_payments</finalName>
|
||||||
<plugins>
|
<plugins>
|
||||||
<!--<plugin>
|
<!--<plugin>
|
||||||
<groupId>org.springframework.boot</groupId>
|
<groupId>org.springframework.boot</groupId>
|
||||||
|
|||||||
Reference in New Issue
Block a user