| | |
| | | * @param callback
|
| | | * @param out
|
| | | */
|
| | | @RequestMapping(value = "getRadioList")
|
| | | // @RequestMapping(value = "getRadioList")
|
| | | public void getRadioList(String callback, PrintWriter out) {
|
| | |
|
| | | try {
|
| | |
| | | * @param callback
|
| | | * @param out
|
| | | */
|
| | | @RequestMapping(value = "getDailyRadioList")
|
| | | // @RequestMapping(value = "getDailyRadioList")
|
| | | public void getDailyRadioList(String callback, PrintWriter out) {
|
| | |
|
| | | try {
|
| | |
| | | import com.yeshi.fanli.util.RedisManager;
|
| | | import com.yeshi.fanli.util.StringUtil;
|
| | | import com.yeshi.fanli.util.account.UserUtil;
|
| | | import com.yeshi.fanli.util.annotation.integral.IntegralGetFrequencyLimit;
|
| | |
|
| | | import net.sf.json.JSONArray;
|
| | | import net.sf.json.JSONObject;
|
| | |
| | | * 邀请嘛
|
| | | * @param out
|
| | | */
|
| | | @IntegralGetFrequencyLimit(key = "'activationInvite-'+#uid+'-'+#inviteCode", time = 30)
|
| | | @RequestMapping(value = "activationInvite")
|
| | | public void activationInvite(AcceptData acceptData, String callback, Long uid, String inviteCode, PrintWriter out) {
|
| | | try {
|
| | |
| | | * @param out
|
| | | */
|
| | | @RequestMapping(value = "activationInviteWX")
|
| | | @IntegralGetFrequencyLimit(key = "'activationInviteWX-'+#uid+'-'+#code", time = 30)
|
| | | public void activationInviteWX(AcceptData acceptData, Long uid, String code, PrintWriter out) {
|
| | | try {
|
| | | userInfoExtraService.activationInviteWX(uid, code);
|
| | |
| | | * @param uid
|
| | | * @param out
|
| | | */
|
| | | @RequestMapping(value = "getLotteryCount")
|
| | | // @RequestMapping(value = "getLotteryCount")
|
| | | public void getLotteryCount(String callback, AcceptData acceptData, Long uid, PrintWriter out) {
|
| | | try {
|
| | | // 1、已登录系统
|
| | |
| | | * @param uid
|
| | | * @param out
|
| | | */
|
| | | @RequestMapping(value = "getLotteryResult")
|
| | | // @RequestMapping(value = "getLotteryResult")
|
| | | public void getLotteryResult(String callback, AcceptData acceptData, Long uid, PrintWriter out) {
|
| | |
|
| | | try {
|
| | |
| | | * @param uid
|
| | | * @param out
|
| | | */
|
| | | @RequestMapping(value = "getDailyCount")
|
| | | // @RequestMapping(value = "getDailyCount")
|
| | | public void getDailyCount(String callback, AcceptData acceptData, Long uid, PrintWriter out) {
|
| | | try {
|
| | | JsonUtil.printMode(out, callback, JsonUtil.loadTrueResult(userLotteryRecordService.getLotteryCountDaily(uid)));
|
| | |
| | | * @param uid
|
| | | * @param out
|
| | | */
|
| | | @RequestMapping(value = "getDailyResult")
|
| | | // @RequestMapping(value = "getDailyResult")
|
| | | public void getDailyResult(String callback, AcceptData acceptData, Long uid, PrintWriter out) {
|
| | | try {
|
| | | JsonUtil.printMode(out, callback, JsonUtil.loadTrueResult(userLotteryRecordService.executeLotteryDaily(uid)));
|
| | |
| | | package com.yeshi.fanli.exception.banner; |
| | | |
| | | public class SwiperBannerException extends Exception { |
| | | /** |
| | | * |
| | | */ |
| | | private static final long serialVersionUID = 1L; |
| | | private int code; |
| | | private String msg; |
| | | |
| | | public int getCode() { |
| | | return code; |
| | | } |
| | | |
| | | public String getMsg() { |
| | | return msg; |
| | | } |
| | | |
| | | public SwiperBannerException(int code, String msg) { |
| | | this.code = code; |
| | | this.msg = msg; |
| | | } |
| | | |
| | | public SwiperBannerException() { |
| | | } |
| | | |
| | | @Override |
| | | public String getMessage() { |
| | | return this.msg; |
| | | } |
| | | |
| | | } |
| | | package com.yeshi.fanli.exception.banner;
|
| | |
|
| | | import com.yeshi.fanli.exception.BaseException;
|
| | |
|
| | | public class SwiperBannerException extends BaseException {
|
| | |
|
| | | private static final long serialVersionUID = 1L;
|
| | | |
| | | public SwiperBannerException(int code, String msg) {
|
| | | super(code, msg);
|
| | | }
|
| | |
|
| | | public SwiperBannerException() {
|
| | | super();
|
| | | }
|
| | | }
|
| | |
| | | package com.yeshi.fanli.exception.banner; |
| | | |
| | | public class SwiperPictureException extends Exception { |
| | | /** |
| | | * |
| | | */ |
| | | private static final long serialVersionUID = 1L; |
| | | private int code; |
| | | private String msg; |
| | | |
| | | public int getCode() { |
| | | return code; |
| | | } |
| | | |
| | | public String getMsg() { |
| | | return msg; |
| | | } |
| | | |
| | | public SwiperPictureException(int code, String msg) { |
| | | this.code = code; |
| | | this.msg = msg; |
| | | } |
| | | |
| | | public SwiperPictureException() { |
| | | } |
| | | |
| | | @Override |
| | | public String getMessage() { |
| | | return this.msg; |
| | | } |
| | | |
| | | } |
| | | package com.yeshi.fanli.exception.banner;
|
| | |
|
| | | import com.yeshi.fanli.exception.BaseException;
|
| | |
|
| | | public class SwiperPictureException extends BaseException {
|
| | | |
| | | private static final long serialVersionUID = 1L;
|
| | | |
| | | |
| | | public SwiperPictureException() {
|
| | | super();
|
| | | }
|
| | | |
| | | public SwiperPictureException(int code, String msg) {
|
| | | super(code, msg);
|
| | | }
|
| | | }
|
| | |
| | | package com.yeshi.fanli.exception.brand; |
| | | |
| | | public class BrandClassException extends Exception { |
| | | /** |
| | | * |
| | | */ |
| | | private static final long serialVersionUID = 1L; |
| | | private int code; |
| | | private String msg; |
| | | |
| | | public int getCode() { |
| | | return code; |
| | | } |
| | | |
| | | public String getMsg() { |
| | | return msg; |
| | | } |
| | | |
| | | public BrandClassException(int code, String msg) { |
| | | this.code = code; |
| | | this.msg = msg; |
| | | } |
| | | |
| | | public BrandClassException() { |
| | | } |
| | | |
| | | @Override |
| | | public String getMessage() { |
| | | return this.msg; |
| | | } |
| | | |
| | | } |
| | | package com.yeshi.fanli.exception.brand;
|
| | |
|
| | | import com.yeshi.fanli.exception.BaseException;
|
| | |
|
| | | public class BrandClassException extends BaseException {
|
| | |
|
| | | private static final long serialVersionUID = 1L;
|
| | | |
| | | public BrandClassException(int code, String msg) {
|
| | | super(code, msg);
|
| | | }
|
| | |
|
| | | public BrandClassException() {
|
| | | super();
|
| | | }
|
| | | }
|
| | |
| | | package com.yeshi.fanli.exception.brand; |
| | | |
| | | public class BrandClassShopException extends Exception { |
| | | /** |
| | | * |
| | | */ |
| | | private static final long serialVersionUID = 1L; |
| | | private int code; |
| | | private String msg; |
| | | |
| | | public int getCode() { |
| | | return code; |
| | | } |
| | | |
| | | public String getMsg() { |
| | | return msg; |
| | | } |
| | | |
| | | public BrandClassShopException(int code, String msg) { |
| | | this.code = code; |
| | | this.msg = msg; |
| | | } |
| | | |
| | | public BrandClassShopException() { |
| | | } |
| | | |
| | | @Override |
| | | public String getMessage() { |
| | | return this.msg; |
| | | } |
| | | |
| | | } |
| | | package com.yeshi.fanli.exception.brand;
|
| | |
|
| | | import com.yeshi.fanli.exception.BaseException;
|
| | |
|
| | | public class BrandClassShopException extends BaseException {
|
| | | |
| | | private static final long serialVersionUID = 1L;
|
| | | |
| | | public BrandClassShopException(int code, String msg) {
|
| | | super(code, msg);
|
| | | }
|
| | |
|
| | | public BrandClassShopException() {
|
| | | super();
|
| | | }
|
| | | }
|
| | |
| | | package com.yeshi.fanli.exception.goods; |
| | | |
| | | public class CollectionGoodsException extends Exception { |
| | | /** |
| | | * |
| | | */ |
| | | private static final long serialVersionUID = 1L; |
| | | private int code; |
| | | private String msg; |
| | | |
| | | public int getCode() { |
| | | return code; |
| | | } |
| | | |
| | | public String getMsg() { |
| | | return msg; |
| | | } |
| | | |
| | | public CollectionGoodsException(int code, String msg) { |
| | | this.code = code; |
| | | this.msg = msg; |
| | | } |
| | | |
| | | public CollectionGoodsException() { |
| | | } |
| | | |
| | | @Override |
| | | public String getMessage() { |
| | | return this.msg; |
| | | } |
| | | |
| | | } |
| | | package com.yeshi.fanli.exception.goods;
|
| | |
|
| | | import com.yeshi.fanli.exception.BaseException;
|
| | |
|
| | | public class CollectionGoodsException extends BaseException {
|
| | | |
| | | private static final long serialVersionUID = 1L;
|
| | | |
| | | public CollectionGoodsException(int code, String msg) {
|
| | | super(code, msg);
|
| | | }
|
| | |
|
| | | public CollectionGoodsException() {
|
| | | super();
|
| | | }
|
| | | }
|
| | |
| | | package com.yeshi.fanli.exception.goods; |
| | | |
| | | public class CommonGoodsException extends Exception { |
| | | /** |
| | | * |
| | | */ |
| | | private static final long serialVersionUID = 1L; |
| | | private int code; |
| | | private String msg; |
| | | |
| | | public int getCode() { |
| | | return code; |
| | | } |
| | | |
| | | public String getMsg() { |
| | | return msg; |
| | | } |
| | | |
| | | public CommonGoodsException(int code, String msg) { |
| | | this.code = code; |
| | | this.msg = msg; |
| | | } |
| | | |
| | | public CommonGoodsException() { |
| | | } |
| | | |
| | | @Override |
| | | public String getMessage() { |
| | | return this.msg; |
| | | } |
| | | |
| | | } |
| | | package com.yeshi.fanli.exception.goods;
|
| | |
|
| | | import com.yeshi.fanli.exception.BaseException;
|
| | |
|
| | | public class CommonGoodsException extends BaseException {
|
| | | |
| | | private static final long serialVersionUID = 1L;
|
| | | |
| | | public CommonGoodsException(int code, String msg) {
|
| | | super(code, msg);
|
| | | }
|
| | |
|
| | | public CommonGoodsException() {
|
| | | super();
|
| | | }
|
| | | }
|
| | |
| | | package com.yeshi.fanli.exception.goods; |
| | | |
| | | public class RecommendUserGoodsException extends Exception { |
| | | /** |
| | | * |
| | | */ |
| | | private static final long serialVersionUID = 1L; |
| | | private int code; |
| | | private String msg; |
| | | |
| | | public int getCode() { |
| | | return code; |
| | | } |
| | | |
| | | public String getMsg() { |
| | | return msg; |
| | | } |
| | | |
| | | public RecommendUserGoodsException(int code, String msg) { |
| | | this.code = code; |
| | | this.msg = msg; |
| | | } |
| | | |
| | | public RecommendUserGoodsException() { |
| | | } |
| | | |
| | | @Override |
| | | public String getMessage() { |
| | | return this.msg; |
| | | } |
| | | |
| | | } |
| | | package com.yeshi.fanli.exception.goods;
|
| | |
|
| | | import com.yeshi.fanli.exception.BaseException;
|
| | |
|
| | | public class RecommendUserGoodsException extends BaseException {
|
| | | |
| | | private static final long serialVersionUID = 1L;
|
| | | |
| | | public RecommendUserGoodsException(int code, String msg) {
|
| | | super(code, msg);
|
| | | }
|
| | |
|
| | | public RecommendUserGoodsException() {
|
| | | super();
|
| | | }
|
| | | }
|
| | |
| | | package com.yeshi.fanli.exception.goods; |
| | | |
| | | public class ScanHistoryException extends Exception { |
| | | /** |
| | | * |
| | | */ |
| | | private static final long serialVersionUID = 1L; |
| | | private int code; |
| | | private String msg; |
| | | |
| | | public int getCode() { |
| | | return code; |
| | | } |
| | | |
| | | public String getMsg() { |
| | | return msg; |
| | | } |
| | | |
| | | public ScanHistoryException(int code, String msg) { |
| | | this.code = code; |
| | | this.msg = msg; |
| | | } |
| | | |
| | | public ScanHistoryException() { |
| | | } |
| | | |
| | | @Override |
| | | public String getMessage() { |
| | | return this.msg; |
| | | } |
| | | |
| | | } |
| | | package com.yeshi.fanli.exception.goods;
|
| | |
|
| | | import com.yeshi.fanli.exception.BaseException;
|
| | |
|
| | | public class ScanHistoryException extends BaseException {
|
| | | |
| | | private static final long serialVersionUID = 1L;
|
| | | |
| | | public ScanHistoryException(int code, String msg) {
|
| | | super(code, msg);
|
| | | }
|
| | |
|
| | | public ScanHistoryException() {
|
| | | super();
|
| | | }
|
| | | }
|
| | |
| | | package com.yeshi.fanli.exception.goods; |
| | | |
| | | public class ShareGoodsTextTemplateException extends Exception { |
| | | /** |
| | | * |
| | | */ |
| | | private static final long serialVersionUID = 1L; |
| | | private int code; |
| | | private String msg; |
| | | |
| | | public int getCode() { |
| | | return code; |
| | | } |
| | | |
| | | public String getMsg() { |
| | | return msg; |
| | | } |
| | | |
| | | public ShareGoodsTextTemplateException(int code, String msg) { |
| | | this.code = code; |
| | | this.msg = msg; |
| | | } |
| | | |
| | | public ShareGoodsTextTemplateException() { |
| | | } |
| | | |
| | | @Override |
| | | public String getMessage() { |
| | | return this.msg; |
| | | } |
| | | |
| | | } |
| | | package com.yeshi.fanli.exception.goods;
|
| | |
|
| | | import com.yeshi.fanli.exception.BaseException;
|
| | |
|
| | | public class ShareGoodsTextTemplateException extends BaseException {
|
| | | |
| | | private static final long serialVersionUID = 1L;
|
| | | |
| | | public ShareGoodsTextTemplateException(int code, String msg) {
|
| | | super(code, msg);
|
| | | }
|
| | |
|
| | | public ShareGoodsTextTemplateException() {
|
| | | super();
|
| | | }
|
| | | }
|
| | |
| | | package com.yeshi.fanli.exception.homemodule; |
| | | |
| | | public class HomeNavbarException extends Exception { |
| | | /** |
| | | * |
| | | */ |
| | | private static final long serialVersionUID = 1L; |
| | | private int code; |
| | | private String msg; |
| | | |
| | | public int getCode() { |
| | | return code; |
| | | } |
| | | |
| | | public String getMsg() { |
| | | return msg; |
| | | } |
| | | |
| | | public HomeNavbarException(int code, String msg) { |
| | | this.code = code; |
| | | this.msg = msg; |
| | | } |
| | | |
| | | public HomeNavbarException() { |
| | | } |
| | | |
| | | @Override |
| | | public String getMessage() { |
| | | return this.msg; |
| | | } |
| | | |
| | | } |
| | | package com.yeshi.fanli.exception.homemodule;
|
| | |
|
| | | import com.yeshi.fanli.exception.BaseException;
|
| | |
|
| | | public class HomeNavbarException extends BaseException {
|
| | | |
| | | private static final long serialVersionUID = 1L;
|
| | | |
| | | public HomeNavbarException(int code, String msg) {
|
| | | super(code, msg);
|
| | | }
|
| | |
|
| | | public HomeNavbarException() {
|
| | | super();
|
| | | }
|
| | | }
|
| | |
| | | package com.yeshi.fanli.exception.homemodule; |
| | | |
| | | public class HomeNavbarUserException extends Exception { |
| | | /** |
| | | * |
| | | */ |
| | | private static final long serialVersionUID = 1L; |
| | | private int code; |
| | | private String msg; |
| | | |
| | | public int getCode() { |
| | | return code; |
| | | } |
| | | |
| | | public String getMsg() { |
| | | return msg; |
| | | } |
| | | |
| | | public HomeNavbarUserException(int code, String msg) { |
| | | this.code = code; |
| | | this.msg = msg; |
| | | } |
| | | |
| | | public HomeNavbarUserException() { |
| | | } |
| | | |
| | | @Override |
| | | public String getMessage() { |
| | | return this.msg; |
| | | } |
| | | |
| | | } |
| | | package com.yeshi.fanli.exception.homemodule;
|
| | |
|
| | | import com.yeshi.fanli.exception.BaseException;
|
| | |
|
| | | public class HomeNavbarUserException extends BaseException {
|
| | | |
| | | private static final long serialVersionUID = 1L;
|
| | | |
| | | public HomeNavbarUserException(int code, String msg) {
|
| | | super(code, msg);
|
| | | }
|
| | |
|
| | | public HomeNavbarUserException() {
|
| | | super();
|
| | | }
|
| | | }
|
| | |
| | | package com.yeshi.fanli.exception.homemodule; |
| | | |
| | | public class SpecialCardException extends Exception { |
| | | /** |
| | | * |
| | | */ |
| | | private static final long serialVersionUID = 1L; |
| | | private int code; |
| | | private String msg; |
| | | |
| | | public int getCode() { |
| | | return code; |
| | | } |
| | | |
| | | public String getMsg() { |
| | | return msg; |
| | | } |
| | | |
| | | public SpecialCardException(int code, String msg) { |
| | | this.code = code; |
| | | this.msg = msg; |
| | | } |
| | | |
| | | public SpecialCardException() { |
| | | } |
| | | |
| | | @Override |
| | | public String getMessage() { |
| | | return this.msg; |
| | | } |
| | | |
| | | } |
| | | package com.yeshi.fanli.exception.homemodule;
|
| | |
|
| | | import com.yeshi.fanli.exception.BaseException;
|
| | |
|
| | | public class SpecialCardException extends BaseException {
|
| | | |
| | | private static final long serialVersionUID = 1L;
|
| | | |
| | | public SpecialCardException(int code, String msg) {
|
| | | super(code, msg);
|
| | | }
|
| | |
|
| | | public SpecialCardException() {
|
| | | super();
|
| | | }
|
| | | }
|
| | |
| | | package com.yeshi.fanli.exception.homemodule; |
| | | |
| | | public class SpecialException extends Exception { |
| | | /** |
| | | * |
| | | */ |
| | | private static final long serialVersionUID = 1L; |
| | | private int code; |
| | | private String msg; |
| | | |
| | | public int getCode() { |
| | | return code; |
| | | } |
| | | |
| | | public String getMsg() { |
| | | return msg; |
| | | } |
| | | |
| | | public SpecialException(int code, String msg) { |
| | | this.code = code; |
| | | this.msg = msg; |
| | | } |
| | | |
| | | public SpecialException() { |
| | | } |
| | | |
| | | @Override |
| | | public String getMessage() { |
| | | return this.msg; |
| | | } |
| | | |
| | | } |
| | | package com.yeshi.fanli.exception.homemodule;
|
| | |
|
| | | import com.yeshi.fanli.exception.BaseException;
|
| | |
|
| | | public class SpecialException extends BaseException {
|
| | | |
| | | private static final long serialVersionUID = 1L;
|
| | | |
| | | public SpecialException(int code, String msg) {
|
| | | super(code, msg);
|
| | | }
|
| | |
|
| | | public SpecialException() {
|
| | | super();
|
| | | }
|
| | | }
|
| | |
| | | package com.yeshi.fanli.exception.integral;
|
| | |
|
| | | public class IntegralExchangeException extends Exception {
|
| | | /**
|
| | | * |
| | | */
|
| | | import com.yeshi.fanli.exception.BaseException;
|
| | |
|
| | | public class IntegralExchangeException extends BaseException {
|
| | | |
| | | private static final long serialVersionUID = 1L;
|
| | | private int code;
|
| | | private String msg;
|
| | |
|
| | | public int getCode() {
|
| | | return code;
|
| | | }
|
| | |
|
| | | public String getMsg() {
|
| | | return msg;
|
| | | }
|
| | |
|
| | | |
| | | public IntegralExchangeException(int code, String msg) {
|
| | | this.code = code;
|
| | | this.msg = msg;
|
| | | super(code, msg);
|
| | | }
|
| | |
|
| | | public IntegralExchangeException() {
|
| | | super();
|
| | | }
|
| | |
|
| | | @Override
|
| | | public String getMessage() {
|
| | | return this.msg;
|
| | | }
|
| | |
|
| | | }
|
| | |
| | | package com.yeshi.fanli.exception.integral;
|
| | |
|
| | | public class IntegralGetException extends Exception {
|
| | | /**
|
| | | * |
| | | */
|
| | | import com.yeshi.fanli.exception.BaseException;
|
| | |
|
| | | public class IntegralGetException extends BaseException {
|
| | | |
| | | private static final long serialVersionUID = 1L;
|
| | | private int code;
|
| | | private String msg;
|
| | |
|
| | | public int getCode() {
|
| | | return code;
|
| | | }
|
| | |
|
| | | public String getMsg() {
|
| | | return msg;
|
| | | }
|
| | |
|
| | | |
| | | public IntegralGetException(int code, String msg) {
|
| | | this.code = code;
|
| | | this.msg = msg;
|
| | | super(code, msg);
|
| | | }
|
| | |
|
| | | public IntegralGetException() {
|
| | | super();
|
| | | }
|
| | |
|
| | | @Override
|
| | | public String getMessage() {
|
| | | return this.msg;
|
| | | }
|
| | |
|
| | | }
|
| | |
| | | package com.yeshi.fanli.exception.integral;
|
| | |
|
| | | public class IntegralTaskRecordException extends Exception {
|
| | | /**
|
| | | * |
| | | */
|
| | | import com.yeshi.fanli.exception.BaseException;
|
| | |
|
| | | public class IntegralTaskRecordException extends BaseException {
|
| | | |
| | | private static final long serialVersionUID = 1L;
|
| | | private int code;
|
| | | private String msg;
|
| | |
|
| | | public int getCode() {
|
| | | return code;
|
| | | }
|
| | |
|
| | | public String getMsg() {
|
| | | return msg;
|
| | | }
|
| | |
|
| | | |
| | | public IntegralTaskRecordException(int code, String msg) {
|
| | | this.code = code;
|
| | | this.msg = msg;
|
| | | super(code, msg);
|
| | | }
|
| | |
|
| | | public IntegralTaskRecordException() {
|
| | | super();
|
| | | }
|
| | |
|
| | | @Override
|
| | | public String getMessage() {
|
| | | return this.msg;
|
| | | }
|
| | |
|
| | | }
|
| | |
| | | package com.yeshi.fanli.exception.jd;
|
| | |
|
| | | public class JDGoodsException extends Exception {
|
| | | /**
|
| | | * |
| | | */
|
| | | import com.yeshi.fanli.exception.BaseException;
|
| | |
|
| | | public class JDGoodsException extends BaseException {
|
| | | |
| | | private static final long serialVersionUID = 1L;
|
| | | private int code;
|
| | | private String msg;
|
| | |
|
| | | public int getCode() {
|
| | | return code;
|
| | | }
|
| | |
|
| | | public String getMsg() {
|
| | | return msg;
|
| | | }
|
| | |
|
| | | |
| | | public JDGoodsException(int code, String msg) {
|
| | | this.code = code;
|
| | | this.msg = msg;
|
| | | super(code, msg);
|
| | | }
|
| | |
|
| | | public JDGoodsException() {
|
| | | super();
|
| | | }
|
| | |
|
| | | @Override
|
| | | public String getMessage() {
|
| | | return this.msg;
|
| | | }
|
| | |
|
| | | }
|
| | |
| | | package com.yeshi.fanli.exception.jd; |
| | | |
| | | public class JDOrderException extends Exception { |
| | | /** |
| | | * |
| | | */ |
| | | private static final long serialVersionUID = 1L; |
| | | private int code; |
| | | private String msg; |
| | | |
| | | public int getCode() { |
| | | return code; |
| | | } |
| | | |
| | | public String getMsg() { |
| | | return msg; |
| | | } |
| | | |
| | | public JDOrderException(int code, String msg) { |
| | | this.code = code; |
| | | this.msg = msg; |
| | | } |
| | | |
| | | public JDOrderException() { |
| | | } |
| | | |
| | | @Override |
| | | public String getMessage() { |
| | | return this.msg; |
| | | } |
| | | |
| | | } |
| | | package com.yeshi.fanli.exception.jd;
|
| | |
|
| | | import com.yeshi.fanli.exception.BaseException;
|
| | |
|
| | | public class JDOrderException extends BaseException {
|
| | | |
| | | private static final long serialVersionUID = 1L;
|
| | | |
| | | public JDOrderException(int code, String msg) {
|
| | | super(code, msg);
|
| | | }
|
| | |
|
| | | public JDOrderException() {
|
| | | super();
|
| | | }
|
| | | }
|
| | |
| | | package com.yeshi.fanli.exception.money;
|
| | |
|
| | | public class UserMoneyDebtException extends Exception {
|
| | | import com.yeshi.fanli.exception.BaseException;
|
| | |
|
| | | public class UserMoneyDebtException extends BaseException {
|
| | |
|
| | | private static final long serialVersionUID = 572112205824229000L;
|
| | |
|
| | | private int code;
|
| | | private String msg;
|
| | | public UserMoneyDebtException(int code, String msg) {
|
| | | super(code, msg);
|
| | | }
|
| | |
|
| | | public UserMoneyDebtException() {
|
| | | }
|
| | |
|
| | | public UserMoneyDebtException(int code, String msg) {
|
| | | this.code = code;
|
| | | this.msg = msg;
|
| | | }
|
| | |
|
| | | public int getCode() {
|
| | | return code;
|
| | | }
|
| | |
|
| | | public String getMsg() {
|
| | | return msg;
|
| | | }
|
| | |
|
| | | @Override
|
| | | public String getMessage() {
|
| | | return this.msg;
|
| | | super();
|
| | | }
|
| | | }
|
| | |
| | | package com.yeshi.fanli.exception.money;
|
| | |
|
| | | public class UserMoneyDetailException extends Exception {
|
| | | import com.yeshi.fanli.exception.BaseException;
|
| | |
|
| | | public class UserMoneyDetailException extends BaseException {
|
| | |
|
| | | private static final long serialVersionUID = 572112205824229000L;
|
| | |
|
| | | private int code;
|
| | | private String msg;
|
| | | public UserMoneyDetailException(int code, String msg) {
|
| | | super(code, msg);
|
| | | }
|
| | |
|
| | | public UserMoneyDetailException() {
|
| | | }
|
| | |
|
| | | public UserMoneyDetailException(int code, String msg) {
|
| | | this.code = code;
|
| | | this.msg = msg;
|
| | | }
|
| | |
|
| | | public int getCode() {
|
| | | return code;
|
| | | }
|
| | |
|
| | | public String getMsg() {
|
| | | return msg;
|
| | | }
|
| | |
|
| | | @Override
|
| | | public String getMessage() {
|
| | | return this.msg;
|
| | | super();
|
| | | }
|
| | | }
|
| | |
| | | package com.yeshi.fanli.exception.msg; |
| | | |
| | | public class MsgAccountDetailException extends Exception { |
| | | /** |
| | | * |
| | | */ |
| | | private static final long serialVersionUID = 1L; |
| | | private int code; |
| | | private String msg; |
| | | |
| | | public int getCode() { |
| | | return code; |
| | | } |
| | | |
| | | public String getMsg() { |
| | | return msg; |
| | | } |
| | | |
| | | public MsgAccountDetailException(int code, String msg) { |
| | | this.code = code; |
| | | this.msg = msg; |
| | | } |
| | | |
| | | public MsgAccountDetailException() { |
| | | } |
| | | |
| | | @Override |
| | | public String getMessage() { |
| | | return this.msg; |
| | | } |
| | | |
| | | } |
| | | package com.yeshi.fanli.exception.msg;
|
| | |
|
| | | import com.yeshi.fanli.exception.BaseException;
|
| | |
|
| | | public class MsgAccountDetailException extends BaseException {
|
| | | |
| | | private static final long serialVersionUID = 1L;
|
| | | |
| | | public MsgAccountDetailException(int code, String msg) {
|
| | | super(code, msg);
|
| | | }
|
| | |
|
| | | public MsgAccountDetailException() {
|
| | | super();
|
| | | }
|
| | |
|
| | | }
|
| | |
| | | package com.yeshi.fanli.exception.msg; |
| | | |
| | | public class MsgInviteDetailException extends Exception { |
| | | /** |
| | | * |
| | | */ |
| | | private static final long serialVersionUID = 1L; |
| | | private int code; |
| | | private String msg; |
| | | |
| | | public int getCode() { |
| | | return code; |
| | | } |
| | | |
| | | public String getMsg() { |
| | | return msg; |
| | | } |
| | | |
| | | public MsgInviteDetailException(int code, String msg) { |
| | | this.code = code; |
| | | this.msg = msg; |
| | | } |
| | | |
| | | public MsgInviteDetailException() { |
| | | } |
| | | |
| | | @Override |
| | | public String getMessage() { |
| | | return this.msg; |
| | | } |
| | | |
| | | } |
| | | package com.yeshi.fanli.exception.msg;
|
| | |
|
| | | import com.yeshi.fanli.exception.BaseException;
|
| | |
|
| | | public class MsgInviteDetailException extends BaseException {
|
| | | |
| | | private static final long serialVersionUID = 1L;
|
| | | |
| | | public MsgInviteDetailException(int code, String msg) {
|
| | | super(code, msg);
|
| | | }
|
| | |
|
| | | public MsgInviteDetailException() {
|
| | | super();
|
| | | }
|
| | | }
|
| | |
| | | package com.yeshi.fanli.exception.msg; |
| | | |
| | | public class MsgMoneyDetailException extends Exception { |
| | | /** |
| | | * |
| | | */ |
| | | private static final long serialVersionUID = 1L; |
| | | private int code; |
| | | private String msg; |
| | | |
| | | public int getCode() { |
| | | return code; |
| | | } |
| | | |
| | | public String getMsg() { |
| | | return msg; |
| | | } |
| | | |
| | | public MsgMoneyDetailException(int code, String msg) { |
| | | this.code = code; |
| | | this.msg = msg; |
| | | } |
| | | |
| | | public MsgMoneyDetailException() { |
| | | } |
| | | |
| | | @Override |
| | | public String getMessage() { |
| | | return this.msg; |
| | | } |
| | | |
| | | } |
| | | package com.yeshi.fanli.exception.msg;
|
| | |
|
| | | import com.yeshi.fanli.exception.BaseException;
|
| | |
|
| | | public class MsgMoneyDetailException extends BaseException {
|
| | | |
| | | private static final long serialVersionUID = 1L;
|
| | | |
| | | public MsgMoneyDetailException(int code, String msg) {
|
| | | super(code, msg);
|
| | | }
|
| | |
|
| | | public MsgMoneyDetailException() {
|
| | | super();
|
| | | }
|
| | | }
|
| | |
| | | package com.yeshi.fanli.exception.msg; |
| | | |
| | | public class MsgOrderDetailException extends Exception { |
| | | /** |
| | | * |
| | | */ |
| | | private static final long serialVersionUID = 1L; |
| | | private int code; |
| | | private String msg; |
| | | |
| | | public int getCode() { |
| | | return code; |
| | | } |
| | | |
| | | public String getMsg() { |
| | | return msg; |
| | | } |
| | | |
| | | public MsgOrderDetailException(int code, String msg) { |
| | | this.code = code; |
| | | this.msg = msg; |
| | | } |
| | | |
| | | public MsgOrderDetailException() { |
| | | } |
| | | |
| | | @Override |
| | | public String getMessage() { |
| | | return this.msg; |
| | | } |
| | | |
| | | } |
| | | package com.yeshi.fanli.exception.msg;
|
| | |
|
| | | import com.yeshi.fanli.exception.BaseException;
|
| | |
|
| | | public class MsgOrderDetailException extends BaseException {
|
| | | |
| | | private static final long serialVersionUID = 1L;
|
| | | |
| | | public MsgOrderDetailException(int code, String msg) {
|
| | | super(code, msg);
|
| | | }
|
| | |
|
| | | public MsgOrderDetailException() {
|
| | | super();
|
| | | }
|
| | | }
|
| | |
| | | package com.yeshi.fanli.exception.msg; |
| | | |
| | | public class MsgOtherDetailException extends Exception { |
| | | /** |
| | | * |
| | | */ |
| | | private static final long serialVersionUID = 1L; |
| | | private int code; |
| | | private String msg; |
| | | |
| | | public int getCode() { |
| | | return code; |
| | | } |
| | | |
| | | public String getMsg() { |
| | | return msg; |
| | | } |
| | | |
| | | public MsgOtherDetailException(int code, String msg) { |
| | | this.code = code; |
| | | this.msg = msg; |
| | | } |
| | | |
| | | public MsgOtherDetailException() { |
| | | } |
| | | |
| | | @Override |
| | | public String getMessage() { |
| | | return this.msg; |
| | | } |
| | | |
| | | } |
| | | package com.yeshi.fanli.exception.msg;
|
| | |
|
| | | import com.yeshi.fanli.exception.BaseException;
|
| | |
|
| | | public class MsgOtherDetailException extends BaseException {
|
| | | |
| | | private static final long serialVersionUID = 1L;
|
| | | |
| | | public MsgOtherDetailException(int code, String msg) {
|
| | | super(code, msg);
|
| | | }
|
| | |
|
| | | public MsgOtherDetailException() {
|
| | | super();
|
| | | }
|
| | | }
|
| | |
| | | package com.yeshi.fanli.exception.msg; |
| | | |
| | | public class UserSystemMsgException extends Exception { |
| | | /** |
| | | * |
| | | */ |
| | | private static final long serialVersionUID = 1L; |
| | | private int code; |
| | | private String msg; |
| | | |
| | | public int getCode() { |
| | | return code; |
| | | } |
| | | |
| | | public String getMsg() { |
| | | return msg; |
| | | } |
| | | |
| | | public UserSystemMsgException(int code, String msg) { |
| | | this.code = code; |
| | | this.msg = msg; |
| | | } |
| | | |
| | | public UserSystemMsgException() { |
| | | } |
| | | |
| | | @Override |
| | | public String getMessage() { |
| | | return this.msg; |
| | | } |
| | | |
| | | } |
| | | package com.yeshi.fanli.exception.msg;
|
| | |
|
| | | import com.yeshi.fanli.exception.BaseException;
|
| | |
|
| | | public class UserSystemMsgException extends BaseException {
|
| | | |
| | | private static final long serialVersionUID = 1L;
|
| | | |
| | | public UserSystemMsgException(int code, String msg) {
|
| | | super(code, msg);
|
| | | }
|
| | |
|
| | | public UserSystemMsgException() {
|
| | | super();
|
| | | }
|
| | | }
|
| | |
| | | package com.yeshi.fanli.exception.order; |
| | | |
| | | public class CommonOrderException extends Exception { |
| | | /** |
| | | * |
| | | */ |
| | | private static final long serialVersionUID = 1L; |
| | | private int code; |
| | | private String msg; |
| | | |
| | | public int getCode() { |
| | | return code; |
| | | } |
| | | |
| | | public String getMsg() { |
| | | return msg; |
| | | } |
| | | |
| | | public CommonOrderException(int code, String msg) { |
| | | this.code = code; |
| | | this.msg = msg; |
| | | } |
| | | |
| | | public CommonOrderException() { |
| | | } |
| | | |
| | | @Override |
| | | public String getMessage() { |
| | | return this.msg; |
| | | } |
| | | |
| | | } |
| | | package com.yeshi.fanli.exception.order;
|
| | |
|
| | | import com.yeshi.fanli.exception.BaseException;
|
| | |
|
| | | public class CommonOrderException extends BaseException {
|
| | | |
| | | private static final long serialVersionUID = 1L;
|
| | | |
| | | public CommonOrderException(int code, String msg) {
|
| | | super(code, msg);
|
| | | }
|
| | |
|
| | | public CommonOrderException() {
|
| | | super();
|
| | | }
|
| | | }
|
| | |
| | | package com.yeshi.fanli.exception.order; |
| | | |
| | | public class CommonOrderGoodsException extends Exception { |
| | | /** |
| | | * |
| | | */ |
| | | private static final long serialVersionUID = 1L; |
| | | private int code; |
| | | private String msg; |
| | | |
| | | public int getCode() { |
| | | return code; |
| | | } |
| | | |
| | | public String getMsg() { |
| | | return msg; |
| | | } |
| | | |
| | | public CommonOrderGoodsException(int code, String msg) { |
| | | this.code = code; |
| | | this.msg = msg; |
| | | } |
| | | |
| | | public CommonOrderGoodsException() { |
| | | } |
| | | |
| | | @Override |
| | | public String getMessage() { |
| | | return this.msg; |
| | | } |
| | | |
| | | } |
| | | package com.yeshi.fanli.exception.order;
|
| | |
|
| | | import com.yeshi.fanli.exception.BaseException;
|
| | |
|
| | | public class CommonOrderGoodsException extends BaseException {
|
| | | |
| | | private static final long serialVersionUID = 1L;
|
| | | |
| | | public CommonOrderGoodsException(int code, String msg) {
|
| | | super(code, msg);
|
| | | }
|
| | |
|
| | | public CommonOrderGoodsException() {
|
| | | super();
|
| | | }
|
| | | }
|
| | |
| | | package com.yeshi.fanli.exception.order; |
| | | |
| | | public class HongBaoOrderException extends Exception { |
| | | /** |
| | | * |
| | | */ |
| | | private static final long serialVersionUID = 1L; |
| | | private int code; |
| | | private String msg; |
| | | |
| | | public int getCode() { |
| | | return code; |
| | | } |
| | | |
| | | public String getMsg() { |
| | | return msg; |
| | | } |
| | | |
| | | public HongBaoOrderException(int code, String msg) { |
| | | this.code = code; |
| | | this.msg = msg; |
| | | } |
| | | |
| | | public HongBaoOrderException() { |
| | | } |
| | | |
| | | @Override |
| | | public String getMessage() { |
| | | return this.msg; |
| | | } |
| | | |
| | | } |
| | | package com.yeshi.fanli.exception.order;
|
| | |
|
| | | import com.yeshi.fanli.exception.BaseException;
|
| | |
|
| | | public class HongBaoOrderException extends BaseException {
|
| | | |
| | | private static final long serialVersionUID = 1L;
|
| | | |
| | | public HongBaoOrderException(int code, String msg) {
|
| | | super(code, msg);
|
| | | }
|
| | |
|
| | | public HongBaoOrderException() {
|
| | | super();
|
| | | }
|
| | | }
|
| | |
| | | package com.yeshi.fanli.exception.order; |
| | | |
| | | public class ShareGoodsActivityOrderException extends Exception { |
| | | /** |
| | | * |
| | | */ |
| | | private static final long serialVersionUID = 1L; |
| | | private int code; |
| | | private String msg; |
| | | |
| | | public int getCode() { |
| | | return code; |
| | | } |
| | | |
| | | public String getMsg() { |
| | | return msg; |
| | | } |
| | | |
| | | public ShareGoodsActivityOrderException(int code, String msg) { |
| | | this.code = code; |
| | | this.msg = msg; |
| | | } |
| | | |
| | | public ShareGoodsActivityOrderException() { |
| | | } |
| | | |
| | | @Override |
| | | public String getMessage() { |
| | | return this.msg; |
| | | } |
| | | |
| | | } |
| | | package com.yeshi.fanli.exception.order;
|
| | |
|
| | | import com.yeshi.fanli.exception.BaseException;
|
| | |
|
| | | public class ShareGoodsActivityOrderException extends BaseException {
|
| | | |
| | | private static final long serialVersionUID = 1L;
|
| | | |
| | | public ShareGoodsActivityOrderException(int code, String msg) {
|
| | | super(code, msg);
|
| | | }
|
| | |
|
| | | public ShareGoodsActivityOrderException() {
|
| | | super();
|
| | | }
|
| | | }
|
| | |
| | | package com.yeshi.fanli.exception.pdd;
|
| | |
|
| | | public class PDDGoodsException extends Exception {
|
| | | /**
|
| | | * |
| | | */
|
| | | import com.yeshi.fanli.exception.BaseException;
|
| | |
|
| | | public class PDDGoodsException extends BaseException {
|
| | | |
| | | private static final long serialVersionUID = 1L;
|
| | | private int code;
|
| | | private String msg;
|
| | |
|
| | | public int getCode() {
|
| | | return code;
|
| | | }
|
| | |
|
| | | public String getMsg() {
|
| | | return msg;
|
| | | }
|
| | |
|
| | | |
| | | public PDDGoodsException(int code, String msg) {
|
| | | this.code = code;
|
| | | this.msg = msg;
|
| | | super(code, msg);
|
| | | }
|
| | |
|
| | | public PDDGoodsException() {
|
| | | super();
|
| | | }
|
| | |
|
| | | @Override
|
| | | public String getMessage() {
|
| | | return this.msg;
|
| | | }
|
| | |
|
| | | }
|
| | |
| | | package com.yeshi.fanli.exception.pdd; |
| | | |
| | | public class PDDOrderException extends Exception { |
| | | /** |
| | | * |
| | | */ |
| | | private static final long serialVersionUID = 1L; |
| | | private int code; |
| | | private String msg; |
| | | |
| | | public int getCode() { |
| | | return code; |
| | | } |
| | | |
| | | public String getMsg() { |
| | | return msg; |
| | | } |
| | | |
| | | public PDDOrderException(int code, String msg) { |
| | | this.code = code; |
| | | this.msg = msg; |
| | | } |
| | | |
| | | public PDDOrderException() { |
| | | } |
| | | |
| | | @Override |
| | | public String getMessage() { |
| | | return this.msg; |
| | | } |
| | | |
| | | } |
| | | package com.yeshi.fanli.exception.pdd;
|
| | |
|
| | | import com.yeshi.fanli.exception.BaseException;
|
| | |
|
| | | public class PDDOrderException extends BaseException {
|
| | | |
| | | private static final long serialVersionUID = 1L;
|
| | | |
| | | public PDDOrderException(int code, String msg) {
|
| | | super(code, msg);
|
| | | }
|
| | |
|
| | | public PDDOrderException() {
|
| | | super();
|
| | | }
|
| | | }
|
| | |
| | | package com.yeshi.fanli.exception.push;
|
| | |
|
| | | public class PushCouponException extends Exception {
|
| | | import com.yeshi.fanli.exception.BaseException;
|
| | |
|
| | | public class PushCouponException extends BaseException {
|
| | |
|
| | | private static final long serialVersionUID = 1L;
|
| | |
|
| | | private int code;
|
| | | private String msg;
|
| | |
|
| | | public PushCouponException() {}
|
| | | |
| | | public PushCouponException(int code, String msg) {
|
| | | this.code = code;
|
| | | this.msg = msg;
|
| | | super(code, msg);
|
| | | }
|
| | |
|
| | | public int getCode() {
|
| | | return code;
|
| | | public PushCouponException() {
|
| | | super();
|
| | | }
|
| | |
|
| | | public String getMsg() {
|
| | | return msg;
|
| | | }
|
| | |
|
| | | @Override
|
| | | public String getMessage() {
|
| | | return this.msg;
|
| | | }
|
| | |
|
| | | }
|
| | |
| | | package com.yeshi.fanli.exception.push;
|
| | |
|
| | | public class PushGoodsException extends Exception {
|
| | | import com.yeshi.fanli.exception.BaseException;
|
| | |
|
| | | public class PushGoodsException extends BaseException {
|
| | |
|
| | | private static final long serialVersionUID = 1L;
|
| | |
|
| | | private int code;
|
| | | private String msg;
|
| | |
|
| | | public PushGoodsException() {}
|
| | | |
| | | public PushGoodsException(int code, String msg) {
|
| | | this.code = code;
|
| | | this.msg = msg;
|
| | | super(code, msg);
|
| | | }
|
| | |
|
| | | public int getCode() {
|
| | | return code;
|
| | | public PushGoodsException() {
|
| | | super();
|
| | | }
|
| | |
|
| | | public String getMsg() {
|
| | | return msg;
|
| | | }
|
| | |
|
| | | @Override
|
| | | public String getMessage() {
|
| | | return this.msg;
|
| | | }
|
| | |
|
| | | }
|
| | |
| | | package com.yeshi.fanli.exception.push;
|
| | |
|
| | | public class PushGoodsGroupException extends Exception {
|
| | | import com.yeshi.fanli.exception.BaseException;
|
| | |
|
| | | public class PushGoodsGroupException extends BaseException {
|
| | |
|
| | | private static final long serialVersionUID = 1L;
|
| | |
|
| | | private int code;
|
| | | private String msg;
|
| | |
|
| | | public PushGoodsGroupException() {}
|
| | | |
| | | public PushGoodsGroupException(int code, String msg) {
|
| | | this.code = code;
|
| | | this.msg = msg;
|
| | | super(code, msg);
|
| | | }
|
| | |
|
| | | public int getCode() {
|
| | | return code;
|
| | | public PushGoodsGroupException() {
|
| | | super();
|
| | | }
|
| | |
|
| | | public String getMsg() {
|
| | | return msg;
|
| | | }
|
| | |
|
| | | @Override
|
| | | public String getMessage() {
|
| | | return this.msg;
|
| | | }
|
| | |
|
| | | }
|
| | |
| | | package com.yeshi.fanli.exception.push;
|
| | |
|
| | | public class PushGoodsRecordException extends Exception {
|
| | | import com.yeshi.fanli.exception.BaseException;
|
| | |
|
| | | public class PushGoodsRecordException extends BaseException {
|
| | |
|
| | | private static final long serialVersionUID = 1L;
|
| | |
|
| | | private int code;
|
| | | private String msg;
|
| | |
|
| | | public PushGoodsRecordException() {}
|
| | | |
| | | public PushGoodsRecordException(int code, String msg) {
|
| | | this.code = code;
|
| | | this.msg = msg;
|
| | | super(code, msg);
|
| | | }
|
| | |
|
| | | public int getCode() {
|
| | | return code;
|
| | | public PushGoodsRecordException() {
|
| | | super();
|
| | | }
|
| | |
|
| | | public String getMsg() {
|
| | | return msg;
|
| | | }
|
| | |
|
| | | @Override
|
| | | public String getMessage() {
|
| | | return this.msg;
|
| | | }
|
| | |
|
| | | }
|
| | |
| | | package com.yeshi.fanli.exception.push;
|
| | |
|
| | | public class PushInfoException extends Exception {
|
| | | import com.yeshi.fanli.exception.BaseException;
|
| | |
|
| | | public class PushInfoException extends BaseException {
|
| | |
|
| | | private static final long serialVersionUID = 1L;
|
| | |
|
| | | private int code;
|
| | | private String msg;
|
| | |
|
| | | public PushInfoException() {}
|
| | | |
| | | public PushInfoException(int code, String msg) {
|
| | | this.code = code;
|
| | | this.msg = msg;
|
| | | super(code, msg);
|
| | | }
|
| | |
|
| | | public int getCode() {
|
| | | return code;
|
| | | } |
| | |
|
| | | public String getMsg() {
|
| | | return msg;
|
| | | public PushInfoException() {
|
| | | super();
|
| | | }
|
| | |
|
| | | @Override
|
| | | public String getMessage() {
|
| | | return this.msg;
|
| | | }
|
| | |
|
| | | }
|
| | |
| | | package com.yeshi.fanli.exception.push;
|
| | |
|
| | | public class VIVOPushException extends Exception {
|
| | | import com.yeshi.fanli.exception.BaseException;
|
| | |
|
| | | public class VIVOPushException extends BaseException {
|
| | |
|
| | | private static final long serialVersionUID = 1L;
|
| | |
|
| | | private int code;
|
| | | private String msg;
|
| | |
|
| | | public VIVOPushException() {}
|
| | | |
| | | public VIVOPushException(int code, String msg) {
|
| | | this.code = code;
|
| | | this.msg = msg;
|
| | | super(code, msg);
|
| | | }
|
| | |
|
| | | public int getCode() {
|
| | | return code;
|
| | | public VIVOPushException() {
|
| | | super();
|
| | | }
|
| | |
|
| | | public String getMsg() {
|
| | | return msg;
|
| | | }
|
| | |
|
| | | @Override
|
| | | public String getMessage() {
|
| | | return this.msg;
|
| | | }
|
| | |
|
| | | }
|
| | |
| | | package com.yeshi.fanli.exception.share; |
| | | |
| | | public class UserShareGoodsGroupException extends Exception { |
| | | /** |
| | | * |
| | | */ |
| | | private static final long serialVersionUID = 1L; |
| | | private int code; |
| | | private String msg; |
| | | |
| | | public int getCode() { |
| | | return code; |
| | | } |
| | | |
| | | public String getMsg() { |
| | | return msg; |
| | | } |
| | | |
| | | public UserShareGoodsGroupException(int code, String msg) { |
| | | this.code = code; |
| | | this.msg = msg; |
| | | } |
| | | |
| | | public UserShareGoodsGroupException() { |
| | | } |
| | | |
| | | @Override |
| | | public String getMessage() { |
| | | return this.msg; |
| | | } |
| | | |
| | | } |
| | | package com.yeshi.fanli.exception.share;
|
| | |
|
| | | import com.yeshi.fanli.exception.BaseException;
|
| | |
|
| | | public class UserShareGoodsGroupException extends BaseException {
|
| | | |
| | | private static final long serialVersionUID = 1L;
|
| | | |
| | | public UserShareGoodsGroupException(int code, String msg) {
|
| | | super(code, msg);
|
| | | }
|
| | |
|
| | | public UserShareGoodsGroupException() {
|
| | | super();
|
| | | }
|
| | | }
|
| | |
| | | package com.yeshi.fanli.exception.share; |
| | | |
| | | public class UserShareGoodsRecordException extends Exception { |
| | | /** |
| | | * |
| | | */ |
| | | private static final long serialVersionUID = 1L; |
| | | private int code; |
| | | private String msg; |
| | | |
| | | public int getCode() { |
| | | return code; |
| | | } |
| | | |
| | | public String getMsg() { |
| | | return msg; |
| | | } |
| | | |
| | | public UserShareGoodsRecordException(int code, String msg) { |
| | | this.code = code; |
| | | this.msg = msg; |
| | | } |
| | | |
| | | public UserShareGoodsRecordException() { |
| | | } |
| | | |
| | | @Override |
| | | public String getMessage() { |
| | | return this.msg; |
| | | } |
| | | |
| | | } |
| | | package com.yeshi.fanli.exception.share;
|
| | |
|
| | | import com.yeshi.fanli.exception.BaseException;
|
| | |
|
| | | public class UserShareGoodsRecordException extends BaseException {
|
| | | |
| | | private static final long serialVersionUID = 1L;
|
| | | |
| | | public UserShareGoodsRecordException(int code, String msg) {
|
| | | super(code, msg);
|
| | | }
|
| | |
|
| | | public UserShareGoodsRecordException() {
|
| | | super();
|
| | | }
|
| | | }
|
| | |
| | | package com.yeshi.fanli.exception.taobao; |
| | | |
| | | //淘宝商品下架 |
| | | public class TaoBaoAuthException extends Exception { |
| | | public static int CODE_NOT_REAL_NAME = 1;// 未实名 |
| | | public static int CODE_OUT_OF_RULE = 2;// 违规 |
| | | public static int CODE_OTHER = 3;// 其他错误 |
| | | |
| | | /** |
| | | * |
| | | */ |
| | | private static final long serialVersionUID = 1L; |
| | | private int code; |
| | | private String msg; |
| | | |
| | | public int getCode() { |
| | | return code; |
| | | } |
| | | |
| | | public String getMsg() { |
| | | return msg; |
| | | } |
| | | |
| | | public TaoBaoAuthException(int code, String msg) { |
| | | this.code = code; |
| | | this.msg = msg; |
| | | } |
| | | |
| | | public TaoBaoAuthException() { |
| | | } |
| | | |
| | | @Override |
| | | public String getMessage() { |
| | | return this.msg; |
| | | } |
| | | |
| | | } |
| | | package com.yeshi.fanli.exception.taobao;
|
| | |
|
| | | import com.yeshi.fanli.exception.BaseException;
|
| | |
|
| | | //淘宝商品下架
|
| | | public class TaoBaoAuthException extends BaseException {
|
| | | public static int CODE_NOT_REAL_NAME = 1;// 未实名
|
| | | public static int CODE_OUT_OF_RULE = 2;// 违规
|
| | | public static int CODE_OTHER = 3;// 其他错误
|
| | |
|
| | | |
| | | private static final long serialVersionUID = 1L;
|
| | | |
| | | public TaoBaoAuthException(int code, String msg) {
|
| | | super(code, msg);
|
| | | }
|
| | |
|
| | | public TaoBaoAuthException() {
|
| | | super();
|
| | | }
|
| | | }
|
| | |
| | | package com.yeshi.fanli.exception.taobao; |
| | | |
| | | //淘宝商品下架 |
| | | public class TaoBaoBuyRelationMapException extends Exception { |
| | | /** |
| | | * |
| | | */ |
| | | private static final long serialVersionUID = 1L; |
| | | private int code; |
| | | private String msg; |
| | | |
| | | public int getCode() { |
| | | return code; |
| | | } |
| | | |
| | | public String getMsg() { |
| | | return msg; |
| | | } |
| | | |
| | | public TaoBaoBuyRelationMapException(int code, String msg) { |
| | | this.code = code; |
| | | this.msg = msg; |
| | | } |
| | | |
| | | public TaoBaoBuyRelationMapException() { |
| | | } |
| | | |
| | | @Override |
| | | public String getMessage() { |
| | | return this.msg; |
| | | } |
| | | |
| | | } |
| | | package com.yeshi.fanli.exception.taobao;
|
| | |
|
| | | import com.yeshi.fanli.exception.BaseException;
|
| | |
|
| | | //淘宝商品下架
|
| | | public class TaoBaoBuyRelationMapException extends BaseException {
|
| | | |
| | | private static final long serialVersionUID = 1L;
|
| | | |
| | | public TaoBaoBuyRelationMapException(int code, String msg) {
|
| | | super(code, msg);
|
| | | }
|
| | |
|
| | | public TaoBaoBuyRelationMapException() {
|
| | | super();
|
| | | }
|
| | | }
|
| | |
| | | package com.yeshi.fanli.exception.taobao; |
| | | |
| | | //淘宝商品下架 |
| | | public class TaobaoGoodsDownException extends Exception { |
| | | /** |
| | | * |
| | | */ |
| | | private static final long serialVersionUID = 1L; |
| | | private int code; |
| | | private String msg; |
| | | |
| | | public int getCode() { |
| | | return code; |
| | | } |
| | | |
| | | public String getMsg() { |
| | | return msg; |
| | | } |
| | | |
| | | public TaobaoGoodsDownException(int code, String msg) { |
| | | this.code = code; |
| | | this.msg = msg; |
| | | } |
| | | |
| | | public TaobaoGoodsDownException() { |
| | | } |
| | | |
| | | @Override |
| | | public String getMessage() { |
| | | return this.msg; |
| | | } |
| | | |
| | | } |
| | | package com.yeshi.fanli.exception.taobao;
|
| | |
|
| | | import com.yeshi.fanli.exception.BaseException;
|
| | |
|
| | | //淘宝商品下架
|
| | | public class TaobaoGoodsDownException extends BaseException {
|
| | | |
| | | private static final long serialVersionUID = 1L;
|
| | | |
| | | public TaobaoGoodsDownException(int code, String msg) {
|
| | | super(code, msg);
|
| | | }
|
| | |
|
| | | public TaobaoGoodsDownException() {
|
| | | super();
|
| | | }
|
| | | }
|
| | |
| | | package com.yeshi.fanli.exception.taobao; |
| | | |
| | | //淘宝商品更新异常 |
| | | public class TaobaoGoodsUpdateException extends Exception { |
| | | /** |
| | | * |
| | | */ |
| | | private static final long serialVersionUID = 1L; |
| | | private int code; |
| | | private String msg; |
| | | |
| | | public int getCode() { |
| | | return code; |
| | | } |
| | | |
| | | public String getMsg() { |
| | | return msg; |
| | | } |
| | | |
| | | public TaobaoGoodsUpdateException(int code, String msg) { |
| | | this.code = code; |
| | | this.msg = msg; |
| | | } |
| | | |
| | | public TaobaoGoodsUpdateException() { |
| | | } |
| | | |
| | | @Override |
| | | public String getMessage() { |
| | | return this.msg; |
| | | } |
| | | |
| | | } |
| | | package com.yeshi.fanli.exception.taobao;
|
| | |
|
| | | import com.yeshi.fanli.exception.BaseException;
|
| | |
|
| | | //淘宝商品更新异常
|
| | | public class TaobaoGoodsUpdateException extends BaseException {
|
| | | |
| | | private static final long serialVersionUID = 1L;
|
| | | |
| | | public TaobaoGoodsUpdateException(int code, String msg) {
|
| | | super(code, msg);
|
| | | }
|
| | |
|
| | | public TaobaoGoodsUpdateException() {
|
| | | super();
|
| | | }
|
| | | }
|
| | |
| | | import com.yeshi.fanli.dto.msg.MsgOtherCouponActivateDTO;
|
| | | import com.yeshi.fanli.dto.msg.MsgOtherGiveContentDTO;
|
| | | import com.yeshi.fanli.entity.bus.msg.MsgOtherDetail.MsgTypeOtherTypeEnum;
|
| | | import com.yeshi.fanli.entity.bus.user.DeviceLotteryRecord;
|
| | | import com.yeshi.fanli.entity.bus.user.HongBaoV2;
|
| | | import com.yeshi.fanli.entity.bus.user.Order;
|
| | | import com.yeshi.fanli.entity.bus.user.TokenRecord;
|
| | |
| | | import com.yeshi.fanli.service.inter.order.OrderService;
|
| | | import com.yeshi.fanli.service.inter.push.PushCouponRecordService;
|
| | | import com.yeshi.fanli.service.inter.push.PushCouponService;
|
| | | import com.yeshi.fanli.service.inter.user.DeviceLotteryRecordService;
|
| | | import com.yeshi.fanli.service.inter.user.TokenRecordService;
|
| | | import com.yeshi.fanli.service.inter.user.UserInfoExtraService;
|
| | | import com.yeshi.fanli.service.inter.user.UserInfoService;
|
| | |
| | |
|
| | | @Resource
|
| | | private UserOtherMsgNotificationService userOtherMsgNotificationService;
|
| | |
|
| | | @Resource
|
| | | private DeviceLotteryRecordService deviceLotteryRecordService;
|
| | |
|
| | | @Resource
|
| | | private CommonOrderCountService commonOrderCountService;
|
| | |
| | | @Transactional
|
| | | public void copyLotteryPrize(Long uid, int platform, String device) throws Exception {
|
| | |
|
| | | if (uid == null || device == null) {
|
| | | return;
|
| | | }
|
| | |
|
| | | // 未登陆之前抽奖记录
|
| | | List<DeviceLotteryRecord> list = deviceLotteryRecordService.listByPlatformAndDevice(platform, device);
|
| | | if (list == null || list.size() == 0) {
|
| | | return;
|
| | | }
|
| | |
|
| | | // 获取额外信息
|
| | | UserInfoExtra userInfoExtra = userInfoExtraService.getUserInfoExtra(uid);
|
| | |
|
| | | // 已经抽过奖的或者已经进入过抽奖页面的
|
| | | if (userInfoExtra != null && userInfoExtra.getLotteryNewbies() != null) {
|
| | | return;
|
| | | }
|
| | |
|
| | | // 是否是新用户
|
| | | boolean isNewUser = userInfoExtraService.isNewUser(uid);
|
| | | if (!isNewUser) {
|
| | | return;
|
| | | }
|
| | |
|
| | | int coupon = 0;
|
| | |
|
| | | for (DeviceLotteryRecord reviceLotteryRecord : list) {
|
| | |
|
| | | // 删除记录
|
| | | deviceLotteryRecordService.deleteByPrimaryKey(reviceLotteryRecord.getId());
|
| | |
|
| | | Long systemCouponId = reviceLotteryRecord.getSystemCouponId();
|
| | | if (systemCouponId == null) {
|
| | | continue;
|
| | | }
|
| | | SystemCoupon systemCoupon = systemCouponService.selectByPrimaryKey(systemCouponId);
|
| | | if (systemCoupon == null) {
|
| | | continue;
|
| | | }
|
| | |
|
| | | int stateActivated = 1;
|
| | | if (systemCoupon.getType() == CouponTypeEnum.welfareFreeCoupon) {
|
| | | // 福利券状态
|
| | | long countSuccess = threeSaleSerivce.countSuccessFirstTeam(uid);
|
| | | // 没有下级队员 --待激活
|
| | | if (countSuccess == 0) {
|
| | | stateActivated = 0;
|
| | | }
|
| | | }
|
| | | |
| | | // 结束日期
|
| | | // 今天在内 减去一天
|
| | | String endDay = DateUtil.plusDay(systemCoupon.getExpiryDay() - 1, new Date());
|
| | | SimpleDateFormat format = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
|
| | | if (endDay != null && endDay.trim().length() > 0) {
|
| | | endDay += " 23:59:59";
|
| | | }
|
| | | Date endTime = format.parse(endDay);
|
| | |
|
| | | UserSystemCoupon userCoupon = new UserSystemCoupon();
|
| | | userCoupon.setUid(uid);
|
| | | userCoupon.setSource(UserSystemCoupon.SOURCE_NEWBIES);
|
| | | userCoupon.setSystemCoupon(systemCoupon);
|
| | | userCoupon.setState(UserSystemCoupon.STATE_CAN_USE);
|
| | | userCoupon.setStateActivated(stateActivated);
|
| | | userCoupon.setStartTime(new Date());
|
| | | userCoupon.setEndTime(endTime);
|
| | | userCoupon.setCreateTime(new Date());
|
| | | userCoupon.setUpdateTime(new Date());
|
| | | // 插入数据库
|
| | | insertSelective(userCoupon);
|
| | |
|
| | | // 券数量
|
| | | coupon++;
|
| | |
|
| | | // 消息推送
|
| | | try {
|
| | | if (systemCoupon.getType() == CouponTypeEnum.welfareFreeCoupon) {
|
| | | userOtherMsgNotificationService.welfareCouponGet(userCoupon);
|
| | | } else if (systemCoupon.getType() == CouponTypeEnum.freeCoupon) {
|
| | | userOtherMsgNotificationService.freeSheetCouponGet(userCoupon);
|
| | | } else if (systemCoupon.getType() == CouponTypeEnum.rebatePercentCoupon) {
|
| | | userOtherMsgNotificationService.rewardCouponGet(userCoupon, systemCoupon.getPercent().intValue());
|
| | | }
|
| | |
|
| | | } catch (Exception e) {
|
| | | try {
|
| | | LogHelper.errorDetailInfo(e);
|
| | | } catch (Exception e1) {
|
| | | e1.printStackTrace();
|
| | | }
|
| | | }
|
| | | }
|
| | |
|
| | | if (userInfoExtra == null) {
|
| | | userInfoExtra = new UserInfoExtra();
|
| | | userInfoExtra.setUserInfo(new UserInfo(uid));
|
| | | }
|
| | |
|
| | | userInfoExtra.setLotteryNewbies(Constant.MAX_COUNT_LOTTERY_NEWBIES - list.size());
|
| | | Integer couponNews = userInfoExtra.getCouponNews();
|
| | | if (couponNews == null) {
|
| | | userInfoExtra.setCouponNews(coupon);
|
| | | } else {
|
| | | userInfoExtra.setCouponNews(couponNews + coupon);
|
| | | }
|
| | | userInfoExtraService.saveUserInfoExtra(userInfoExtra);
|
| | | return;
|
| | | |
| | | /*
|
| | | * if (uid == null || device == null) { return; }
|
| | | * |
| | | * // 未登陆之前抽奖记录 List<DeviceLotteryRecord> list =
|
| | | * deviceLotteryRecordService.listByPlatformAndDevice(platform, device); if
|
| | | * (list == null || list.size() == 0) { return; }
|
| | | * |
| | | * // 获取额外信息 UserInfoExtra userInfoExtra =
|
| | | * userInfoExtraService.getUserInfoExtra(uid);
|
| | | * |
| | | * // 已经抽过奖的或者已经进入过抽奖页面的 if (userInfoExtra != null &&
|
| | | * userInfoExtra.getLotteryNewbies() != null) { return; }
|
| | | * |
| | | * // 是否是新用户 boolean isNewUser = userInfoExtraService.isNewUser(uid); if
|
| | | * (!isNewUser) { return; }
|
| | | * |
| | | * int coupon = 0;
|
| | | * |
| | | * for (DeviceLotteryRecord reviceLotteryRecord : list) {
|
| | | * |
| | | * // 删除记录
|
| | | * deviceLotteryRecordService.deleteByPrimaryKey(reviceLotteryRecord.getId());
|
| | | * |
| | | * Long systemCouponId = reviceLotteryRecord.getSystemCouponId(); if
|
| | | * (systemCouponId == null) { continue; } SystemCoupon systemCoupon =
|
| | | * systemCouponService.selectByPrimaryKey(systemCouponId); if (systemCoupon ==
|
| | | * null) { continue; }
|
| | | * |
| | | * int stateActivated = 1; if (systemCoupon.getType() ==
|
| | | * CouponTypeEnum.welfareFreeCoupon) { // 福利券状态 long countSuccess =
|
| | | * threeSaleSerivce.countSuccessFirstTeam(uid); // 没有下级队员 --待激活 if (countSuccess
|
| | | * == 0) { stateActivated = 0; } }
|
| | | * |
| | | * // 结束日期 // 今天在内 减去一天 String endDay =
|
| | | * DateUtil.plusDay(systemCoupon.getExpiryDay() - 1, new Date());
|
| | | * SimpleDateFormat format = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss"); if
|
| | | * (endDay != null && endDay.trim().length() > 0) { endDay += " 23:59:59"; }
|
| | | * Date endTime = format.parse(endDay);
|
| | | * |
| | | * UserSystemCoupon userCoupon = new UserSystemCoupon(); userCoupon.setUid(uid);
|
| | | * userCoupon.setSource(UserSystemCoupon.SOURCE_NEWBIES);
|
| | | * userCoupon.setSystemCoupon(systemCoupon);
|
| | | * userCoupon.setState(UserSystemCoupon.STATE_CAN_USE);
|
| | | * userCoupon.setStateActivated(stateActivated); userCoupon.setStartTime(new
|
| | | * Date()); userCoupon.setEndTime(endTime); userCoupon.setCreateTime(new
|
| | | * Date()); userCoupon.setUpdateTime(new Date()); // 插入数据库
|
| | | * insertSelective(userCoupon);
|
| | | * |
| | | * // 券数量 coupon++;
|
| | | * |
| | | * // 消息推送 try { if (systemCoupon.getType() == CouponTypeEnum.welfareFreeCoupon)
|
| | | * { userOtherMsgNotificationService.welfareCouponGet(userCoupon); } else if
|
| | | * (systemCoupon.getType() == CouponTypeEnum.freeCoupon) {
|
| | | * userOtherMsgNotificationService.freeSheetCouponGet(userCoupon); } else if
|
| | | * (systemCoupon.getType() == CouponTypeEnum.rebatePercentCoupon) {
|
| | | * userOtherMsgNotificationService.rewardCouponGet(userCoupon,
|
| | | * systemCoupon.getPercent().intValue()); }
|
| | | * |
| | | * } catch (Exception e) { try { LogHelper.errorDetailInfo(e); } catch
|
| | | * (Exception e1) { e1.printStackTrace(); } } }
|
| | | * |
| | | * if (userInfoExtra == null) { userInfoExtra = new UserInfoExtra();
|
| | | * userInfoExtra.setUserInfo(new UserInfo(uid)); }
|
| | | * |
| | | * userInfoExtra.setLotteryNewbies(Constant.MAX_COUNT_LOTTERY_NEWBIES -
|
| | | * list.size()); Integer couponNews = userInfoExtra.getCouponNews(); if
|
| | | * (couponNews == null) { userInfoExtra.setCouponNews(coupon); } else {
|
| | | * userInfoExtra.setCouponNews(couponNews + coupon); }
|
| | | * userInfoExtraService.saveUserInfoExtra(userInfoExtra);
|
| | | */
|
| | |
|
| | | }
|
| | |
|