增加文字长度自动设置/栏目增加校验
This commit is contained in:
parent
2a0245eb86
commit
d9d51bcc6a
@ -39,7 +39,7 @@ public class AccountWithdrawAppController extends DefaultBaseController {
|
|||||||
@ApiResponses({@ApiResponse(code = 400, message = "请求失败", response = ErrorResult.class)})
|
@ApiResponses({@ApiResponse(code = 400, message = "请求失败", response = ErrorResult.class)})
|
||||||
@PostMapping("save")
|
@PostMapping("save")
|
||||||
@CheckRequestBodyAnnotation
|
@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);
|
accountWithdrawService.save(token, accountWithdrawVO);
|
||||||
return new SuccessResult();
|
return new SuccessResult();
|
||||||
}
|
}
|
||||||
|
@ -115,6 +115,19 @@ public class CardChargeServiceImpl extends DefaultBaseService implements ICardCh
|
|||||||
* @param cardChargeDTO
|
* @param cardChargeDTO
|
||||||
*/
|
*/
|
||||||
private void accountItemAdd(CardChargeDTO 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);
|
MiniappUserPO miniappUserPO = iMiniappUserService.getPOByUserCode(userIdOrUserCode);
|
||||||
if(miniappUserPO != null) {
|
if(miniappUserPO != null) {
|
||||||
invitationUserId = miniappUserPO.getUserId();
|
invitationUserId = miniappUserPO.getUserId();
|
||||||
invitationType = "邀请码.邀请" + userPO.getNickName() + "创建名片";
|
invitationType = "邀请码.邀请" + userPO.getNickName() + "使用名片服务";
|
||||||
invitationProp = roleDTO.getCardChargeRoleInvitationProp().intValue();// 邀请码邀请的提成比例
|
invitationProp = roleDTO.getCardChargeRoleInvitationProp().intValue();// 邀请码邀请的提成比例
|
||||||
// 判断是否为userId
|
// 判断是否为userId
|
||||||
}else {
|
}else {
|
||||||
MiniappUserPO miniappUser = iMiniappUserService.getPO(userIdOrUserCode);
|
MiniappUserPO miniappUser = iMiniappUserService.getPO(userIdOrUserCode);
|
||||||
invitationUserId = miniappUser.getUserId();
|
invitationUserId = miniappUser.getUserId();
|
||||||
invitationType = "转发.邀请" + userPO.getNickName() + "创建名片";
|
invitationType = "转发.邀请" + userPO.getNickName() + "使用名片服务";
|
||||||
invitationProp = roleDTO.getCardChargeRoleDispatchProp().intValue(); // 转发邀请的提成比例
|
invitationProp = roleDTO.getCardChargeRoleDispatchProp().intValue(); // 转发邀请的提成比例
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -249,6 +262,7 @@ public class CardChargeServiceImpl extends DefaultBaseService implements ICardCh
|
|||||||
if(StringUtils.isEmpty(prepayId)) {
|
if(StringUtils.isEmpty(prepayId)) {
|
||||||
throw new SaveException("创建付款订单失败");
|
throw new SaveException("创建付款订单失败");
|
||||||
}
|
}
|
||||||
|
LOG.info("新的缴费预支付订单创建:" + payPlaceOrder);
|
||||||
return payDTO;
|
return payDTO;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -19,9 +19,6 @@ public class PayUtil {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public static void main(String[] args) {
|
public static void main(String[] args) {
|
||||||
|
System.out.println("逯");
|
||||||
for(long i = 1 ; i < 13 ; i++) {
|
|
||||||
System.out.println( ShareCodeUtil.gen(i));
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user