| | |
| | | Long memberId = LoginUserUtils.getAppLoginUser().getId();
|
| | | // 需要实名
|
| | | MemberEntity memberEntity = memberDao.selectById(memberId);
|
| | | if (!MemberEntity.CERTIFY_STATUS_Y.equals(memberEntity.getCertifyStatus())) {
|
| | | return Result.fail(MessageSourceUtils.getString("member_controller_0001"));
|
| | | }
|
| | | // if (!MemberEntity.CERTIFY_STATUS_Y.equals(memberEntity.getCertifyStatus())) {
|
| | | // return Result.fail(MessageSourceUtils.getString("member_controller_0001"));
|
| | | // }
|
| | | // 需要先
|
| | | String phone = memberEntity.getPhone();
|
| | | if (!"13632989240".equals(phone) && !"15158130575".equals(phone)) {
|
| | |
| | | // 限价买不能高于当前10%
|
| | | BigDecimal multiply = nowPrice.multiply(new BigDecimal("1.2"));
|
| | | if (price.compareTo(multiply) > 0) {
|
| | | return Result.fail("不能高于当前价的120%");
|
| | | return Result.fail("请输入合适的价格");
|
| | | }
|
| | | multiply= nowPrice.multiply(new BigDecimal("0.8"));
|
| | | if (price.compareTo(multiply) < 0) {
|
| | | return Result.fail("不能低于当前价的80%");
|
| | | return Result.fail("请输入合适的价格");
|
| | | }
|
| | |
|
| | | } else {
|