增加文字长度自动设置/栏目增加校验

This commit is contained in:
cuibaocheng 2021-09-06 11:13:10 +08:00
parent 2a0245eb86
commit d9d51bcc6a
3 changed files with 18 additions and 7 deletions

View File

@ -39,7 +39,7 @@ public class AccountWithdrawAppController extends DefaultBaseController {
@ApiResponses({@ApiResponse(code = 400, message = "请求失败", response = ErrorResult.class)})
@PostMapping("save")
@CheckRequestBodyAnnotation
public SuccessResult save(@RequestHeader("token") String token, @RequestBody AccountWithdrawVO accountWithdrawVO) {
public synchronized SuccessResult save(@RequestHeader("token") String token, @RequestBody AccountWithdrawVO accountWithdrawVO) {
accountWithdrawService.save(token, accountWithdrawVO);
return new SuccessResult();
}

View File

@ -115,6 +115,19 @@ public class CardChargeServiceImpl extends DefaultBaseService implements ICardCh
* @param cardChargeDTO
*/
private void accountItemAdd(CardChargeDTO cardChargeDTO) {
/**
* 查询我的缴费记录列表 , 判断是否存在缴费 , 存在则为续费 , 不存在则为缴费
*/
Map<String, Object> query = getHashMap(2);
query.put("cardChargeUserId" , cardChargeDTO.getCardChargeUserId());
List<CardChargeDTO> list = list(query);
for(CardChargeDTO dTO : list) {
// 说明在本次缴费之前 , 已经有过缴费记录 , 本次属于续费 , 没有提成
if ("2".equals(dTO.getCardChargeOrderStatus()) && !cardChargeDTO.getCardChargeId().equals(dTO.getCardChargeId())) {
return;
}
}
/**
* 缴费成功到账到公司账户后 , 给予邀请人账户提成
*/
@ -133,13 +146,13 @@ public class CardChargeServiceImpl extends DefaultBaseService implements ICardCh
MiniappUserPO miniappUserPO = iMiniappUserService.getPOByUserCode(userIdOrUserCode);
if(miniappUserPO != null) {
invitationUserId = miniappUserPO.getUserId();
invitationType = "邀请码.邀请" + userPO.getNickName() + "创建名片";
invitationType = "邀请码.邀请" + userPO.getNickName() + "使用名片服务";
invitationProp = roleDTO.getCardChargeRoleInvitationProp().intValue();// 邀请码邀请的提成比例
// 判断是否为userId
}else {
MiniappUserPO miniappUser = iMiniappUserService.getPO(userIdOrUserCode);
invitationUserId = miniappUser.getUserId();
invitationType = "转发.邀请" + userPO.getNickName() + "创建名片";
invitationType = "转发.邀请" + userPO.getNickName() + "使用名片服务";
invitationProp = roleDTO.getCardChargeRoleDispatchProp().intValue(); // 转发邀请的提成比例
}
}
@ -249,6 +262,7 @@ public class CardChargeServiceImpl extends DefaultBaseService implements ICardCh
if(StringUtils.isEmpty(prepayId)) {
throw new SaveException("创建付款订单失败");
}
LOG.info("新的缴费预支付订单创建:" + payPlaceOrder);
return payDTO;
}

View File

@ -19,9 +19,6 @@ public class PayUtil {
}
public static void main(String[] args) {
for(long i = 1 ; i < 13 ; i++) {
System.out.println( ShareCodeUtil.gen(i));
}
System.out.println("");
}
}