|
|
@ -9,6 +9,7 @@ import com.hai.common.exception.SysCode; |
|
|
|
import com.hai.common.security.AESEncodeUtil; |
|
|
|
import com.hai.common.security.AESEncodeUtil; |
|
|
|
import com.hai.common.security.SessionObject; |
|
|
|
import com.hai.common.security.SessionObject; |
|
|
|
import com.hai.common.security.UserCenter; |
|
|
|
import com.hai.common.security.UserCenter; |
|
|
|
|
|
|
|
import com.hai.common.utils.DateUtil; |
|
|
|
import com.hai.common.utils.MD5Util; |
|
|
|
import com.hai.common.utils.MD5Util; |
|
|
|
import com.hai.common.utils.MemberValidateUtil; |
|
|
|
import com.hai.common.utils.MemberValidateUtil; |
|
|
|
import com.hai.common.utils.ResponseMsgUtil; |
|
|
|
import com.hai.common.utils.ResponseMsgUtil; |
|
|
@ -69,8 +70,7 @@ public class HighMerchantController { |
|
|
|
throw ErrorHelp.genException(SysCode.System, ErrorCode.MENU_TREE_HAS_NOT_ERROR, ""); |
|
|
|
throw ErrorHelp.genException(SysCode.System, ErrorCode.MENU_TREE_HAS_NOT_ERROR, ""); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
if (StringUtils.isBlank(highMerchant.getMerchantKey()) |
|
|
|
if (StringUtils.isBlank(highMerchant.getMerchantName()) |
|
|
|
|| StringUtils.isBlank(highMerchant.getMerchantName()) |
|
|
|
|
|
|
|
|| StringUtils.isBlank(highMerchant.getTelephone()) |
|
|
|
|| StringUtils.isBlank(highMerchant.getTelephone()) |
|
|
|
|| StringUtils.isBlank(highMerchant.getAddress()) |
|
|
|
|| StringUtils.isBlank(highMerchant.getAddress()) |
|
|
|
|| StringUtils.isBlank(highMerchant.getSecUser().getPassword()) |
|
|
|
|| StringUtils.isBlank(highMerchant.getSecUser().getPassword()) |
|
|
@ -92,6 +92,7 @@ public class HighMerchantController { |
|
|
|
throw ErrorHelp.genException(SysCode.System, ErrorCode.PHONE_NUM_EXISTED, ""); |
|
|
|
throw ErrorHelp.genException(SysCode.System, ErrorCode.PHONE_NUM_EXISTED, ""); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
highMerchant.setMerchantKey("HF" + DateUtil.date2String(new Date(), "MMddHHmmss")); |
|
|
|
highMerchant.setStatus(1); // 状态:0:不可用,1:可用
|
|
|
|
highMerchant.setStatus(1); // 状态:0:不可用,1:可用
|
|
|
|
highMerchant.setCreateTime(new Date()); |
|
|
|
highMerchant.setCreateTime(new Date()); |
|
|
|
highMerchant.setUpdateTime(new Date()); |
|
|
|
highMerchant.setUpdateTime(new Date()); |
|
|
|