Commit 139331d4 by XiaHou

first

parents
HELP.md
target/
!.mvn/wrapper/maven-wrapper.jar
!**/src/main/**
!**/src/test/**
### STS ###
.apt_generated
.classpath
.factorypath
.project
.settings
.springBeans
.sts4-cache
### IntelliJ IDEA ###
.idea
*.iws
*.iml
*.ipr
### NetBeans ###
/nbproject/private/
/nbbuild/
/dist/
/nbdist/
/.nb-gradle/
build/
### VS Code ###
.vscode/
This diff is collapsed. Click to expand it.
@REM ----------------------------------------------------------------------------
@REM Licensed to the Apache Software Foundation (ASF) under one
@REM or more contributor license agreements. See the NOTICE file
@REM distributed with this work for additional information
@REM regarding copyright ownership. The ASF licenses this file
@REM to you under the Apache License, Version 2.0 (the
@REM "License"); you may not use this file except in compliance
@REM with the License. You may obtain a copy of the License at
@REM
@REM https://www.apache.org/licenses/LICENSE-2.0
@REM
@REM Unless required by applicable law or agreed to in writing,
@REM software distributed under the License is distributed on an
@REM "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
@REM KIND, either express or implied. See the License for the
@REM specific language governing permissions and limitations
@REM under the License.
@REM ----------------------------------------------------------------------------
@REM ----------------------------------------------------------------------------
@REM Maven Start Up Batch script
@REM
@REM Required ENV vars:
@REM JAVA_HOME - location of a JDK home dir
@REM
@REM Optional ENV vars
@REM M2_HOME - location of maven2's installed home dir
@REM MAVEN_BATCH_ECHO - set to 'on' to enable the echoing of the batch commands
@REM MAVEN_BATCH_PAUSE - set to 'on' to wait for a keystroke before ending
@REM MAVEN_OPTS - parameters passed to the Java VM when running Maven
@REM e.g. to debug Maven itself, use
@REM set MAVEN_OPTS=-Xdebug -Xrunjdwp:transport=dt_socket,server=y,suspend=y,address=8000
@REM MAVEN_SKIP_RC - flag to disable loading of mavenrc files
@REM ----------------------------------------------------------------------------
@REM Begin all REM lines with '@' in case MAVEN_BATCH_ECHO is 'on'
@echo off
@REM set title of command window
title %0
@REM enable echoing by setting MAVEN_BATCH_ECHO to 'on'
@if "%MAVEN_BATCH_ECHO%" == "on" echo %MAVEN_BATCH_ECHO%
@REM set %HOME% to equivalent of $HOME
if "%HOME%" == "" (set "HOME=%HOMEDRIVE%%HOMEPATH%")
@REM Execute a user defined script before this one
if not "%MAVEN_SKIP_RC%" == "" goto skipRcPre
@REM check for pre script, once with legacy .bat ending and once with .cmd ending
if exist "%HOME%\mavenrc_pre.bat" call "%HOME%\mavenrc_pre.bat"
if exist "%HOME%\mavenrc_pre.cmd" call "%HOME%\mavenrc_pre.cmd"
:skipRcPre
@setlocal
set ERROR_CODE=0
@REM To isolate internal variables from possible post scripts, we use another setlocal
@setlocal
@REM ==== START VALIDATION ====
if not "%JAVA_HOME%" == "" goto OkJHome
echo.
echo Error: JAVA_HOME not found in your environment. >&2
echo Please set the JAVA_HOME variable in your environment to match the >&2
echo location of your Java installation. >&2
echo.
goto error
:OkJHome
if exist "%JAVA_HOME%\bin\java.exe" goto init
echo.
echo Error: JAVA_HOME is set to an invalid directory. >&2
echo JAVA_HOME = "%JAVA_HOME%" >&2
echo Please set the JAVA_HOME variable in your environment to match the >&2
echo location of your Java installation. >&2
echo.
goto error
@REM ==== END VALIDATION ====
:init
@REM Find the project base dir, i.e. the directory that contains the folder ".mvn".
@REM Fallback to current working directory if not found.
set MAVEN_PROJECTBASEDIR=%MAVEN_BASEDIR%
IF NOT "%MAVEN_PROJECTBASEDIR%"=="" goto endDetectBaseDir
set EXEC_DIR=%CD%
set WDIR=%EXEC_DIR%
:findBaseDir
IF EXIST "%WDIR%"\.mvn goto baseDirFound
cd ..
IF "%WDIR%"=="%CD%" goto baseDirNotFound
set WDIR=%CD%
goto findBaseDir
:baseDirFound
set MAVEN_PROJECTBASEDIR=%WDIR%
cd "%EXEC_DIR%"
goto endDetectBaseDir
:baseDirNotFound
set MAVEN_PROJECTBASEDIR=%EXEC_DIR%
cd "%EXEC_DIR%"
:endDetectBaseDir
IF NOT EXIST "%MAVEN_PROJECTBASEDIR%\.mvn\jvm.config" goto endReadAdditionalConfig
@setlocal EnableExtensions EnableDelayedExpansion
for /F "usebackq delims=" %%a in ("%MAVEN_PROJECTBASEDIR%\.mvn\jvm.config") do set JVM_CONFIG_MAVEN_PROPS=!JVM_CONFIG_MAVEN_PROPS! %%a
@endlocal & set JVM_CONFIG_MAVEN_PROPS=%JVM_CONFIG_MAVEN_PROPS%
:endReadAdditionalConfig
SET MAVEN_JAVA_EXE="%JAVA_HOME%\bin\java.exe"
set WRAPPER_JAR="%MAVEN_PROJECTBASEDIR%\.mvn\wrapper\maven-wrapper.jar"
set WRAPPER_LAUNCHER=org.apache.maven.wrapper.MavenWrapperMain
set DOWNLOAD_URL="https://repo.maven.apache.org/maven2/io/takari/maven-wrapper/0.5.6/maven-wrapper-0.5.6.jar"
FOR /F "tokens=1,2 delims==" %%A IN ("%MAVEN_PROJECTBASEDIR%\.mvn\wrapper\maven-wrapper.properties") DO (
IF "%%A"=="wrapperUrl" SET DOWNLOAD_URL=%%B
)
@REM Extension to allow automatically downloading the maven-wrapper.jar from Maven-central
@REM This allows using the maven wrapper in projects that prohibit checking in binary data.
if exist %WRAPPER_JAR% (
if "%MVNW_VERBOSE%" == "true" (
echo Found %WRAPPER_JAR%
)
) else (
if not "%MVNW_REPOURL%" == "" (
SET DOWNLOAD_URL="%MVNW_REPOURL%/io/takari/maven-wrapper/0.5.6/maven-wrapper-0.5.6.jar"
)
if "%MVNW_VERBOSE%" == "true" (
echo Couldn't find %WRAPPER_JAR%, downloading it ...
echo Downloading from: %DOWNLOAD_URL%
)
powershell -Command "&{"^
"$webclient = new-object System.Net.WebClient;"^
"if (-not ([string]::IsNullOrEmpty('%MVNW_USERNAME%') -and [string]::IsNullOrEmpty('%MVNW_PASSWORD%'))) {"^
"$webclient.Credentials = new-object System.Net.NetworkCredential('%MVNW_USERNAME%', '%MVNW_PASSWORD%');"^
"}"^
"[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12; $webclient.DownloadFile('%DOWNLOAD_URL%', '%WRAPPER_JAR%')"^
"}"
if "%MVNW_VERBOSE%" == "true" (
echo Finished downloading %WRAPPER_JAR%
)
)
@REM End of extension
@REM Provide a "standardized" way to retrieve the CLI args that will
@REM work with both Windows and non-Windows executions.
set MAVEN_CMD_LINE_ARGS=%*
%MAVEN_JAVA_EXE% %JVM_CONFIG_MAVEN_PROPS% %MAVEN_OPTS% %MAVEN_DEBUG_OPTS% -classpath %WRAPPER_JAR% "-Dmaven.multiModuleProjectDirectory=%MAVEN_PROJECTBASEDIR%" %WRAPPER_LAUNCHER% %MAVEN_CONFIG% %*
if ERRORLEVEL 1 goto error
goto end
:error
set ERROR_CODE=1
:end
@endlocal & set ERROR_CODE=%ERROR_CODE%
if not "%MAVEN_SKIP_RC%" == "" goto skipRcPost
@REM check for post script, once with legacy .bat ending and once with .cmd ending
if exist "%HOME%\mavenrc_post.bat" call "%HOME%\mavenrc_post.bat"
if exist "%HOME%\mavenrc_post.cmd" call "%HOME%\mavenrc_post.cmd"
:skipRcPost
@REM pause the script if MAVEN_BATCH_PAUSE is set to 'on'
if "%MAVEN_BATCH_PAUSE%" == "on" pause
if "%MAVEN_TERMINATE_CMD%" == "on" exit %ERROR_CODE%
exit /B %ERROR_CODE%
This diff is collapsed. Click to expand it.
package com;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cache.annotation.EnableCaching;
import org.springframework.context.annotation.ComponentScan;
import springfox.documentation.swagger2.annotations.EnableSwagger2;
@SpringBootApplication
@EnableSwagger2
@EnableCaching
@MapperScan(value = "com.atlgroupasia.servicecenter.mapper")
@ComponentScan(basePackages = {"com.atlgroupasia.servicecenter.*"})
public class ServicecenterApplication {
public static void main(String[] args) {
SpringApplication.run(ServicecenterApplication.class, args);
}
}
package com.atlgroupasia.servicecenter.common;
/**
* Constants
*
* @author whj
* @date 2018/7/29 21:26
*/
public class Constants {
/**
* 成功
*/
public static final String RESPONSE_STATUS_200 = "200";
/**
* 登录过期
*/
public static final String RESPONSE_STATUS_401 = "401";
/**
* 失败
*/
public static final String RESPONSE_STATUS_500 = "500";
/**
* excel 文件后缀
*/
public static final String XLS = "xls";
/**
* excel 文件后缀
*/
public static final String XLSX = "xlsx";
/**
* Token
*/
public static final String TOKEN_NAME = "549CCDD8711E0D5DF61169B1CA001E9D";
/**
* Session验证码
*/
public static final String SESSION_VALID_CODE = "SESSION_VALID_CODE";
/**
* 全局 true 和 false 公共变量
*/
public static final Byte GLOBAL_TRUE_BYTE = 1;
public static final Byte GLOBAL_FALSE_BYTE = 0;
public static final Short GLOBAL_TRUE_SHORT = 1;
public static final Short GLOBAL_FALSE_SHORT = 0;
public static final Integer GLOBAL_TRUE_INT = 1;
public static final Integer GLOBAL_FALSE_INT = 0;
public static final String GLOBAL_TRUE_STR = "1";
public static final String GLOBAL_FALSE_STR = "0";
public static final Boolean GLOBAL_TRUE_BOOLEAN = true;
public static final Boolean GLOBAL_FALSE_BOOLEAN = false;
/**
* 是
*/
public static final Integer YES = 1;
/**
* 否
*/
public static final Integer NO = 0;
/**
* 流水类型1:收入
*/
public static final Integer FLOW_TYPE_INCOME = 1;
/**
* 流水类型:支出
*/
public static final Integer FLOW_TYPE_OUTCOME = 2;
/**
* 变动类型1、预约单补贴
*/
public static final Integer CHANGE_TYPE_SUBSIDY = 1;
/**
* 变动类型2:提现
*/
public static final Integer CHANGE_TYPE_WITHDRAW = 2;
/**
* 变动类型4:积分活动
*/
public static final Integer CHANGE_TYPE_ACTIVITY = 4;
/**
* 收藏类型1、项目
*/
public static final Integer FAV_TYPE_PLASTIC = 1;
/**
* 收藏类型2:商品
*/
public static final Integer FAV_TYPE_GOODS = 2;
/**
* 评价类型1、项目
*/
public static final Integer COMMENT_TYPE_PLASTIC = 1;
/**
* 评价类型2:商品
*/
public static final Integer COMMENT_TYPE_GOODS = 2;
/**
* 短信类型:1:注册
*/
public static final int SMS_TYPE_REGISTER = 1;
public static final String SMS_TYPE_REGISTER_VALUE="SMS_153815089";
public static final String SMS_TYPE_REGISTER_VALUE_INTERNATIONAL = "SMS_173406364";
/**
* 短信类型:3:修改登录密码
*/
public static final int SMS_TYPE_UPDATEPASSWORD = 3;
public static final String SMS_TYPE_UPDATEPASSWORD_VALUE="SMS_153815090";
public static final String SMS_TYPE_UPDATEPASSWORD_VALUE_INTERNATIONAL="SMS_173406384";
/**
* 短信类型:4:绑定手机号
*/
public static final int SMS_TYPE_BINDINGMOBILE = 4;
public static final String SMS_TYPE_BINDINGMOBILE_VALUE="SMS_153815091";
public static final String SMS_TYPE_BINDINGMOBILE_VALUE_INTERNATIONAL="SMS_173406381";
/**
* 提现类型 1:咖啡豆
*/
public static final Integer WITHDRAW_TYPE_BEANS = 1;
/**
* 提现类型 2:奖励
*/
public static final Integer WITHDRAW_TYPE_REWARDS = 2;
/**
* 发放状态 0:待发放
*/
public static final Integer SEND_STATE_INIT = 1;
/**
* 发放状态 1:暂停发放
*/
public static final Integer SEND_STATE_PAUSE = 2;
/**
* 发放状态 2:已发放
*/
public static final Integer SEND_STATE_SENT = 2;
/**
* 服务商等级0:普通用户
*/
public static final Integer AGENT_LEVEL_NOT_AGENT = 0;
/**
* 服务商等级1:高级服务商
*/
public static final Integer AGENT_LEVEL_10 = 10;
/**
* 服务商等级2:特级服务商
*/
public static final Integer AGENT_LEVEL_20 = 20;
/**
* 服务商等级3:钻石服务商
*/
public static final Integer AGENT_LEVEL_30 = 30;
/**
* 服务商99:99服务商
*/
public static final Integer AGENT_LEVEL_99 = 5;
/**
* 订单类型 1:预约
*/
public static final Integer ORDER_TYPE_RESERVE = 1;
/**
* 订单类型 2:购买商品
*/
public static final Integer ORDER_TYPE_SHOPPING = 2;
/**
* 订单类型 3:尊享会员
*/
public static final Integer ORDER_TYPE_ENJOY = 3;
/**
* 支付方式 1:支付宝
*/
public static final Integer PAY_TYPE_ALI = 1;
/**
* 支付方式 2:微信
*/
public static final Integer PAY_TYPE_WEIXIN = 2;
/**
* 类型(1:项目;2:积分商品;3:活动页;4:敬请期待)
*/
public static final Integer BANNER_TYPE_PLASTIC = 1;
public static final Integer BANNER_TYPE_GOODS = 2;
public static final Integer BANNER_TYPE_ACTIVITY = 3;
public static final Integer BANNER_TYPE_TOAST = 4;
/**
* 触发条件1:成为服务商;2:本月推荐服务商;3:本月推荐顾客
*/
public static final int TRIGGER_TYPE_BECOME_SERVICE_PROVIDER = 1;
public static final int TRIGGER_TYPE_RECOMMEND_SERVICE_PROVIDER = 2;
public static final int TRIGGER_TYPE_RECOMMEND_CUSTOMER = 3;
/**
* 领取状态1:已领取
*/
public static final int POINT_ACTIVITY_RECEIVE_STATE_DONE = 1;
/**
* 领取状态0:未领取
*/
public static final int POINT_ACTIVITY_RECEIVE_STATE_UNCLAIMED = 0;
/**
* 领取状态2:未满足
*/
public static final int POINT_ACTIVITY_RECEIVE_STATE_FAIL = 2;
/**
* 奖励类型1:积分
*/
public static final int SENDTYPE_POINT = 1;
/**
* 奖励类型2:商品
*/
public static final int SENDTYPE_GOODS = 2;
/**
* 商品类型 1:普通商品
*/
public static final Integer GOODS_TYPE_1 = 1;
/**
* 商品类型 2:签到商品
*/
public static final Integer GOODS_TYPE_2 = 2;
/**
* 商品类型 3:99尊享会员
*/
public static final Integer GOODS_TYPE_3 = 3;
/**
* 商品类型 4:高级服务商
*/
public static final Integer GOODS_TYPE_4 = 4;
}
package com.atlgroupasia.servicecenter.config;
import com.fasterxml.jackson.annotation.JsonAutoDetect;
import com.fasterxml.jackson.annotation.PropertyAccessor;
import com.fasterxml.jackson.databind.ObjectMapper;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.cache.CacheManager;
import org.springframework.cache.annotation.CachingConfigurerSupport;
import org.springframework.cache.annotation.EnableCaching;
import org.springframework.cache.interceptor.KeyGenerator;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.data.redis.cache.RedisCacheManager;
import org.springframework.data.redis.connection.RedisConnectionFactory;
import org.springframework.data.redis.core.RedisTemplate;
import org.springframework.data.redis.serializer.Jackson2JsonRedisSerializer;
import org.springframework.data.redis.serializer.StringRedisSerializer;
import java.lang.reflect.Method;
/**
* @Name: Redis缓存配置类
* @Author: Lijc
* @Date: 2019/4/8 15:29
* @Version 1.0
*/
@Configuration
@EnableCaching
public class RedisConfig extends CachingConfigurerSupport {
@Value("${spring.redis.host}")
private String host;
@Value("${spring.redis.port}")
private int port;
@Value("${spring.redis.timeout}")
private int timeout;
/**
* 生成key的策略
* @return
*/
public KeyGenerator keyGenerator(){
return new KeyGenerator() {
@Override
public Object generate(Object target, Method method, Object... params){
StringBuilder sb = new StringBuilder();
sb.append(target.getClass().getName());
sb.append(method.getName());
for (Object obj : params){
sb.append(obj.toString());
}
return sb.toString();
}
};
}
/**
* 缓存管理器
* @param connectionFactory
* @return
*/
@Bean
public CacheManager cacheManager(RedisConnectionFactory connectionFactory){
RedisCacheManager cacheManager = RedisCacheManager.create(connectionFactory);
return cacheManager;
}
/**
* RedisTemplate配置
* @param factory
* @return
*/
public RedisTemplate<String,Object> redisTemplate(RedisConnectionFactory factory){
RedisTemplate<String, Object> template = new RedisTemplate<>();
// 配置连接工厂
template.setConnectionFactory(factory);
//使用Jackson2JsonRedisSerializer来序列化和反序列化redis的value值(默认使用JDK的序列化方式)
Jackson2JsonRedisSerializer jacksonSeial = new Jackson2JsonRedisSerializer(Object.class);
ObjectMapper om = new ObjectMapper();
// 指定要序列化的域,field,get和set,以及修饰符范围,ANY是都有包括private和public
om.setVisibility(PropertyAccessor.ALL, JsonAutoDetect.Visibility.ANY);
// 指定序列化输入的类型,类必须是非final修饰的,final修饰的类,比如String,Integer等会跑出异常
om.enableDefaultTyping(ObjectMapper.DefaultTyping.NON_FINAL);
jacksonSeial.setObjectMapper(om);
// 值采用json序列化
template.setValueSerializer(jacksonSeial);
//使用StringRedisSerializer来序列化和反序列化redis的key值
template.setKeySerializer(new StringRedisSerializer());
// 设置hash key 和value序列化模式
template.setHashKeySerializer(new StringRedisSerializer());
template.setHashValueSerializer(jacksonSeial);
template.afterPropertiesSet();
return template;
}
}
package com.atlgroupasia.servicecenter.config;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import springfox.documentation.builders.ApiInfoBuilder;
import springfox.documentation.builders.ParameterBuilder;
import springfox.documentation.builders.PathSelectors;
import springfox.documentation.builders.RequestHandlerSelectors;
import springfox.documentation.schema.ModelRef;
import springfox.documentation.service.ApiInfo;
import springfox.documentation.service.Parameter;
import springfox.documentation.spi.DocumentationType;
import springfox.documentation.spring.web.plugins.Docket;
import springfox.documentation.swagger2.annotations.EnableSwagger2;
import java.util.ArrayList;
import java.util.List;
/**
* @Name: swaggerui配置类
* @Author: Lijc
* @Date: 2019/4/10 10:19
* @Version 1.0
*/
@Configuration
@EnableSwagger2
public class SwaggerConfig {
// public Docket createRestApi() {
// return new Docket(DocumentationType.SWAGGER_2).apiInfo(apiInfo())
// .select()
// .apis(RequestHandlerSelectors.basePackage("com.jains.controller"))
// .paths(PathSelectors.any()).build();
// }
//
// private ApiInfo apiInfo() {
// return new ApiInfoBuilder().title("janis Manger Swagger RSETful APIs")
// .description("综合管理 Swagger API 服务")
// .termsOfServiceUrl("http://swagger.io/")
// .contact(new Contact("janis", "127.0.0.1", "jains@163.com.cn"))
// .version("1.0")
// .build();
// }
@Bean
public Docket buildDocket() {
ParameterBuilder tokenPar = new ParameterBuilder();
List<Parameter> pars = new ArrayList<Parameter>();
tokenPar.name("token").description("令牌").modelRef(new ModelRef("string")).parameterType("header").required(false).build();
pars.add(tokenPar.build());
//添加head参数end
return new Docket(DocumentationType.SWAGGER_2)
.apiInfo(buildApiInf())
.select()
.apis(RequestHandlerSelectors.basePackage("com.atlgroupasia.servicecenter.controller"))
.paths(PathSelectors.any())
.build()
.globalOperationParameters(pars);
}
private ApiInfo buildApiInf() {
return new ApiInfoBuilder().title("服务中心接口").termsOfServiceUrl("#").description("").version("0.1").build();
}
}
package com.atlgroupasia.servicecenter.controller;
import com.atlgroupasia.servicecenter.service.GiveRecordService;
import io.swagger.annotations.Api;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
@RestController
@RequestMapping("/api/user")
@Api(tags = "福位转增表接口")
public class ApiGiveRecordController {
@Autowired
private GiveRecordService giveRecordService;
}
package com.atlgroupasia.servicecenter.controller;
import com.atlgroupasia.servicecenter.dto.ActivityDto;
import com.atlgroupasia.servicecenter.dto.DonorDto;
import com.atlgroupasia.servicecenter.entity.DonateOrder;
import com.atlgroupasia.servicecenter.entity.User;
import com.atlgroupasia.servicecenter.service.ActivitySerice;
import com.atlgroupasia.servicecenter.service.BlessService;
import com.atlgroupasia.servicecenter.service.DonorService;
import com.atlgroupasia.servicecenter.service.UserService;
import com.atlgroupasia.servicecenter.utils.JsonResult;
import com.atlgroupasia.servicecenter.vo.AtlUserVo;
import com.atlgroupasia.servicecenter.vo.DonorVo;
import com.google.common.collect.Lists;
import io.swagger.annotations.*;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.bind.annotation.RestController;
import javax.servlet.http.HttpServletRequest;
import java.text.SimpleDateFormat;
import java.util.Date;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
@RestController
@RequestMapping("/api")
@Api(tags = "登录接口")
public class ApiLoginController extends BaseController {
@Autowired
private UserService userService;
// @Autowired
// private AdvertisementService advertisementService;
@Autowired
private ActivitySerice activityService;
@Autowired
private BlessService blessService;
@Autowired
private DonorService donorService;
// @RequestMapping(value = "/check-user", method = RequestMethod.POST)
// public User checkUser(String name, String password) {
// User user = userService.checkUser(name, password);
// return user;
// }
/**
* @param name
* @param password
* @return
* @author chesong
*/
// @SystemControllerLog(description = "登录验证")
// @RequestMapping(value = "/login", method = RequestMethod.POST, produces = {"application/json;charset=UTF-8"})
// @ResponseBody
// public String login(String name, String password) {
// Map map = userService.verificationLogin(name, password);
// Object data = map.get("data");
//
// System.out.println(data);
//
// return JSON.toJSONString(map);
//
// }
/**
* 查询广告图片
*
*
* @author chesong
*/
// @RequestMapping(value = "/ad/index", method = RequestMethod.POST, produces = {"application/json;charset=UTF-8"})
// @ResponseBody
// public String topAds() {
// List<Advertisement> list = advertisementService.findAllNoDel();
//
// Map<String, Object> map = Maps.newHashMap();
// if (list != null) {
// map.put("topAds", list);
// map.put("success", true);
// } else {
// map.put("success", false);
// }
//
// return JSON.toJSONString(map);
//
// }
@RequestMapping(value = "/findPhone")
@ApiOperation(value = "登录服务中心", httpMethod = "POST", notes = "登录服务中心", response = JsonResult.class)
@ApiResponses(@ApiResponse(code = 200, message = "请求成功", response = JsonResult.class))
@ApiImplicitParams({
@ApiImplicitParam(name = "mobilePhone", value = "手机号码", required = true, dataType = "String", paramType = "query"),
@ApiImplicitParam(name = "payPassword", value = "支付驸马", required = false, dataType = "String", paramType = "query"),
@ApiImplicitParam(name = "loginPassword", value = "登录密码", required = false, dataType = "String", paramType = "query"),
@ApiImplicitParam(name = "nickName", value = "昵称", required = false, dataType = "String", paramType = "query"),
@ApiImplicitParam(name = "avaterImageUrl", value = "头像", required = false, dataType = "String", paramType = "query"),
@ApiImplicitParam(name = "realName", value = "真实姓名", required = false, dataType = "String", paramType = "query"),
@ApiImplicitParam(name = "openId", value = "微信id", required = false, dataType = "String", paramType = "query")
})
@ResponseBody
public JsonResult findPhoneBySysToken(AtlUserVo atlUserVo, HttpServletRequest request) {
DonorVo donorVo = new DonorVo();
donorVo.setPhone(atlUserVo.getMobilePhone());
HashMap<String, Object> resultMap = new HashMap<>();
try {
String sysToken = request.getHeader("token");
if (sysToken == null) {
return JsonResult.failed("您尚未登录,重新登录");
}
List<ActivityDto> activityList1 = activityService.findAllNoDel();
SimpleDateFormat dateFormat = new SimpleDateFormat("YYYY-MM-dd HH:mm:ss");
Date date = new Date();
System.out.println(date);
List<ActivityDto> activityList = Lists.newArrayList();
for (int i = 0; i < activityList1.size(); i++) {
Date endTime = activityList1.get(i).getEndTime();
if (endTime.getTime() > date.getTime()) {
activityList.add(activityList1.get(i));
}
}
SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd HH:mm");
SimpleDateFormat sdf1 = new SimpleDateFormat("yyyy-MM-dd");
SimpleDateFormat sdf2 = new SimpleDateFormat("HH:mm");
List<Map> activityMapList = Lists.newArrayList();
for (int i = 0; i < activityList.size(); i++) {
HashMap<String, Object> map = new HashMap<>();
map.put("title", activityList.get(i).getTitle());
map.put("coverPicStr", activityList.get(i).getCoverPicStr());
map.put("address", activityList.get(i).getAddress());
Date beginTime = activityList.get(i).getBeginTime();
Date endTime = activityList.get(i).getEndTime();
String beginTimeStr = sdf.format(beginTime);
String endTimeStr = sdf.format(endTime);
String beginTimeStr1 = sdf1.format(beginTime);
String endTimeStr1 = sdf1.format(endTime);
String endTimeStr2 = sdf2.format(endTime);
if (beginTimeStr1.equals(endTimeStr1)) {
activityList.get(i).setActivityTime(beginTimeStr + "-" + endTimeStr2);
} else {
activityList.get(i).setActivityTime(beginTimeStr + "-" + endTimeStr);
}
map.put("activityTime", activityList.get(i).getActivityTime());
activityMapList.add(map);
}
resultMap.put("activityMapList", activityMapList);
List<DonorDto> donorDtos = donorService.findNoDel(donorVo);
List<DonateOrder> donateOrderList = null;
String donorIds = "";
if (donorDtos.size() > 0) {
for (int i = 0; i < donorDtos.size(); i++) {
if (i == donorDtos.size() - 1) {
donorIds += donorDtos.get(i).getId().toString();
} else {
donorIds += donorDtos.get(i).getId().toString() + ",";
}
}
donateOrderList = blessService.findMyBless1(donorIds);
if (donateOrderList.size() > 0) {
userService.updateByPhone(atlUserVo);
}
}
if (donorDtos.size() == 0 && donateOrderList.size() == 0) {
resultMap.put("blessSize", 0);
User user = new User();
user.setPhone(atlUserVo.getMobilePhone());
userService.batchNewEntity(user);
} else {
User user = userService.findNoDel(donorVo.getPhone());
Integer userId = user.getId();
List<Integer> blessIdList = blessService.findMyBless(donorIds);
int blessSize = blessIdList.size();
resultMap.put("userId", userId);
resultMap.put("phone", donorVo.getPhone());
resultMap.put("blessSize", blessSize);
}
return JsonResult.success("请求成功", resultMap);
} catch (Exception e) {
e.printStackTrace();
return JsonResult.failed("请求失败,请稍候重试");
}
}
}
package com.atlgroupasia.servicecenter.controller;
import com.atlgroupasia.servicecenter.service.OshServicesAdSerice;
import com.atlgroupasia.servicecenter.service.OshServicesOrderSerice;
import com.atlgroupasia.servicecenter.service.OshServicesSerice;
import com.atlgroupasia.servicecenter.service.OshServicesTypeSerice;
import com.atlgroupasia.servicecenter.utils.JsonResult;
import com.atlgroupasia.servicecenter.vo.OshServicesAdVo;
import com.atlgroupasia.servicecenter.vo.OshServicesOrderVo;
import com.atlgroupasia.servicecenter.vo.OshServicesTypeVo;
import com.atlgroupasia.servicecenter.vo.OshServicesVo;
import com.google.common.collect.Lists;
import com.google.common.collect.Maps;
import io.swagger.annotations.*;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.io.IOException;
import java.util.List;
import java.util.Map;
@RestController
@RequestMapping("/api/services/home")
@Api(tags = "首页接口")
@CrossOrigin
public class ApiOshHomePageController {
@Autowired
private OshServicesAdSerice oshServicesAdSerice;
@Autowired
private OshServicesSerice oshServicesSerice;
@Autowired
private OshServicesTypeSerice oshServicesTypeSerice;
@Autowired
private OshServicesOrderSerice oshServicesOrderSerice;
/**
* 广告列表
*
* @author heshenmi
* <p>
* 2017年9月26日 下午6:26:53
*/
@RequestMapping(value = "/ad/list", method = RequestMethod.POST)
@ApiOperation(value = "广告列表", httpMethod = "POST", notes = "广告列表", response = JsonResult.class)
@ApiResponses(@ApiResponse(code = 200, message = "请求成功", response = JsonResult.class))
@ApiImplicitParams({
})
@ResponseBody
public JsonResult list(OshServicesAdVo vo, HttpServletRequest request, HttpServletResponse response) {
return JsonResult.success("列表请求成功", oshServicesAdSerice.findList(vo));
}
/**
* 广告详情
*
* @author heshenmi
* <p>
* 2017年9月26日 下午6:26:53
*/
@RequestMapping(value = "/ad/view", method = RequestMethod.POST)
@ApiOperation(value = "广告详情", httpMethod = "POST", notes = "广告详情", response = JsonResult.class)
@ApiResponses(@ApiResponse(code = 200, message = "请求成功", response = JsonResult.class))
@ApiImplicitParams({
@ApiImplicitParam(name = "id", value = "广告编号", required = true, dataType = "Long", paramType = "query")
})
@ResponseBody
public JsonResult view(OshServicesAdVo vo, HttpServletRequest request, HttpServletResponse response) {
return JsonResult.success("详情请求成功", oshServicesAdSerice.view(vo));
}
/**
* 商品列表
*
* @throws IOException
* @author heshenmi
* 2017年9月26日 下午6:26:53
*/
@RequestMapping(value = "/service/list", method = RequestMethod.POST)
@ApiOperation(value = "商品列表", httpMethod = "POST", notes = "商品列表", response = JsonResult.class)
@ApiResponses(@ApiResponse(code = 200, message = "请求成功", response = JsonResult.class))
@ApiImplicitParams({
})
@ResponseBody
public JsonResult serviceList(OshServicesVo vo, HttpServletRequest request, HttpServletResponse response) {
Map<String, Object> result = Maps.newHashMap();
vo.setStatus("1");
List<Map<String, Object>> list = oshServicesSerice.findList(vo);
List<Map<String, Object>> comboList = Lists.newArrayList();
List<Map<String, Object>> itemList = Lists.newArrayList();
for (Map<String, Object> map : list) {
Long id = (Long) map.get("id");
OshServicesVo servicesVo = new OshServicesVo();
servicesVo.setId(id);
List<Map<String, Object>> priceList = oshServicesSerice.getLowPrice(servicesVo);
String priceA = priceList.get(0).get("price").toString();
double priceADouble = Double.parseDouble(priceA);
map.put("price",new Double(priceADouble).intValue());
if(priceList.size()>1){
String priceB = priceList.get(priceList.size()-1).get("price").toString();
double priceBDouble = Double.parseDouble(priceB);
map.put("priceB",new Double(priceBDouble).intValue());
}else {
map.put("priceB","");
}
String isCombo = map.get("isCombo").toString();
if ("0".equals(isCombo)) {
itemList.add(map);
} else {
comboList.add(map);
}
}
result.put("comboList", comboList);
result.put("itemList", itemList);
OshServicesTypeVo typeVo = new OshServicesTypeVo();
typeVo.setIsCombo("0");
List<Map<String, Object>> typeList = oshServicesTypeSerice.findList(typeVo);
result.put("typeList", typeList);
return JsonResult.success("列表请求成功", result);
}
/**
* 商品详情
*
* @throws IOException
* @author heshenmi
* 2017年9月26日 下午6:26:53
*/
@RequestMapping(value = "/service/view", method = RequestMethod.POST)
@ApiOperation(value = "商品详情", httpMethod = "POST", notes = "商品详情", response = JsonResult.class)
@ApiResponses(@ApiResponse(code = 200, message = "请求成功", response = JsonResult.class))
@ApiImplicitParams({
@ApiImplicitParam(name = "id", value = "商品编号", required = true, dataType = "Long", paramType = "query")
})
@ResponseBody
public JsonResult view(OshServicesVo vo, HttpServletRequest request, HttpServletResponse response) {
return JsonResult.success("列表请求成功", oshServicesSerice.view(vo));
}
/**
* 评价列表
*
* @throws IOException
* @author heshenmi
* 2017年9月26日 下午6:26:53
*/
@RequestMapping(value = "/evaluate/list", method = RequestMethod.POST)
@ApiOperation(value = "评价列表", httpMethod = "POST", notes = "评价列表", response = JsonResult.class)
@ApiResponses(@ApiResponse(code = 200, message = "请求成功", response = JsonResult.class))
@ApiImplicitParams({
@ApiImplicitParam(name = "productId", value = "商品编号", required = true, dataType = "Long", paramType = "query")
})
@ResponseBody
public JsonResult evaluateList(OshServicesOrderVo vo, HttpServletRequest request, HttpServletResponse response) {
return JsonResult.success("列表请求成功", oshServicesOrderSerice.findEvaluateList(vo));
}
/**
* 规格列表
*
* @throws IOException
* @author heshenmi
* 2017年9月26日 下午6:26:53
*/
@RequestMapping(value = "/specification/list", method = RequestMethod.POST)
@ApiOperation(value = "规格列表", httpMethod = "POST", notes = "规格列表", response = JsonResult.class)
@ApiResponses(@ApiResponse(code = 200, message = "请求成功", response = JsonResult.class))
@ApiImplicitParams({
@ApiImplicitParam(name = "id", value = "商品编号", required = true, dataType = "Long", paramType = "query")
})
@ResponseBody
public JsonResult specificationList(OshServicesVo vo, HttpServletRequest request, HttpServletResponse response) {
return JsonResult.success("列表请求成功", oshServicesSerice.findSpecificationByServiceId(vo));
}
/**
* 查询商品
*
* @throws IOException
* @author heshenmi
* 2017年9月26日 下午6:26:53
*/
@RequestMapping(value = "/select", method = RequestMethod.POST)
@ApiOperation(value = "查询商品", httpMethod = "POST", notes = "查询商品", response = JsonResult.class)
@ApiResponses(@ApiResponse(code = 200, message = "请求成功", response = JsonResult.class))
@ApiImplicitParams({
})
@ResponseBody
public JsonResult list(OshServicesVo vo, HttpServletRequest request, HttpServletResponse response) {
vo.setStatus("1");
List<Map<String, Object>> list = oshServicesSerice.findList(vo);
for (Map<String, Object> map : list) {
Long id = (Long) map.get("id");
OshServicesVo servicesVo = new OshServicesVo();
servicesVo.setId(id);
List<Map<String, Object>> priceList = oshServicesSerice.getLowPrice(servicesVo);
String priceA = priceList.get(0).get("price").toString();
double priceADouble = Double.parseDouble(priceA);
map.put("price",new Double(priceADouble).intValue());
if(priceList.size()>1){
String priceB = priceList.get(priceList.size()-1).get("price").toString();
double priceBDouble = Double.parseDouble(priceB);
map.put("priceB",new Double(priceBDouble).intValue());
}else {
map.put("priceB","");
}
}
return JsonResult.success("列表请求成功", list);
}
}
package com.atlgroupasia.servicecenter.controller;
import com.atlgroupasia.servicecenter.service.OshServicesAdSerice;
import com.atlgroupasia.servicecenter.utils.JsonResult;
import com.atlgroupasia.servicecenter.vo.OshServicesAdVo;
import com.atlgroupasia.servicecenter.vo.OshServicesOrderItemVo;
import com.atlgroupasia.servicecenter.vo.OshServicesVo;
import io.swagger.annotations.*;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.bind.annotation.RestController;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.io.IOException;
@RestController
@RequestMapping("/api/services/ad")
@Api(tags = "商品广告接口")
public class ApiOshServicesAdController {
@Autowired
private OshServicesAdSerice oshServicesAdSerice;
/**
* 广告列表
*
* @author heshenmi
*
* 2017年9月26日 下午6:26:53
*/
@RequestMapping(value = "/list", method = RequestMethod.POST)
@ApiOperation(value = "广告列表", httpMethod = "POST", notes = "广告列表", response = JsonResult.class)
@ApiResponses(@ApiResponse(code = 200, message = "请求成功", response = JsonResult.class))
@ApiImplicitParams({
})
@ResponseBody
public JsonResult list(OshServicesAdVo vo, HttpServletRequest request, HttpServletResponse response) {
return JsonResult.success("列表请求成功", oshServicesAdSerice.findList(vo));
}
/**
* 广告详情
*
* @author heshenmi
*
* 2017年9月26日 下午6:26:53
*/
@RequestMapping(value = "/view", method = RequestMethod.POST)
@ApiOperation(value = "广告详情", httpMethod = "POST", notes = "广告详情", response = JsonResult.class)
@ApiResponses(@ApiResponse(code = 200, message = "请求成功", response = JsonResult.class))
@ApiImplicitParams({
})
@ResponseBody
public JsonResult view(OshServicesAdVo vo, HttpServletRequest request, HttpServletResponse response) {
return JsonResult.success("详情请求成功", oshServicesAdSerice.view(vo));
}
}
package com.atlgroupasia.servicecenter.controller;
import com.atlgroupasia.servicecenter.dto.DonorDto;
import com.atlgroupasia.servicecenter.entity.User;
import com.atlgroupasia.servicecenter.service.OshServicesSerice;
import com.atlgroupasia.servicecenter.service.OshServicesSpecificationSerice;
import com.atlgroupasia.servicecenter.utils.JsonResult;
import com.atlgroupasia.servicecenter.vo.DonorVo;
import com.atlgroupasia.servicecenter.vo.OshServicesSpecificationVo;
import com.atlgroupasia.servicecenter.vo.OshServicesVo;
import io.swagger.annotations.*;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.bind.annotation.RestController;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.io.IOException;
import java.util.HashMap;
import java.util.List;
@RestController
@RequestMapping("/api/services")
@Api(tags = "商品接口")
public class ApiOshServicesController {
@Autowired
private OshServicesSerice oshServicesSerice;
@Autowired
private OshServicesSpecificationSerice oshServicesSpecificationSerice;
/**
* 商品列表
*
* @throws IOException
* @author heshenmi
* 2017年9月26日 下午6:26:53
*/
@RequestMapping(value = "/list", method = RequestMethod.POST)
@ApiOperation(value = "商品列表", httpMethod = "POST", notes = "商品列表", response = JsonResult.class)
@ApiResponses(@ApiResponse(code = 200, message = "请求成功", response = JsonResult.class))
@ApiImplicitParams({
@ApiImplicitParam(name = "templeId", value = "纪念馆编号", required = true, dataType = "Long", paramType = "query")
})
@ResponseBody
public JsonResult list(OshServicesVo vo, HttpServletRequest request, HttpServletResponse response) {
vo.setStatus("1");
return JsonResult.success("列表请求成功", oshServicesSerice.findList(vo));
}
/**
* 商品详情
*
* @throws IOException
* @author heshenmi
* 2017年9月26日 下午6:26:53
*/
@RequestMapping(value = "/view", method = RequestMethod.POST)
@ApiOperation(value = "商品详情", httpMethod = "POST", notes = "商品详情", response = JsonResult.class)
@ApiResponses(@ApiResponse(code = 200, message = "请求成功", response = JsonResult.class))
@ApiImplicitParams({
@ApiImplicitParam(name = "id", value = "商品编号", required = true, dataType = "Long", paramType = "query")
})
@ResponseBody
public JsonResult view(OshServicesVo vo, HttpServletRequest request, HttpServletResponse response) {
return JsonResult.success("列表请求成功", oshServicesSerice.view(vo));
}
/**
* 规格列表
*
* @throws IOException
* @author heshenmi
* 2017年9月26日 下午6:26:53
*/
@RequestMapping(value = "/specification/list", method = RequestMethod.POST)
@ApiOperation(value = "规格列表", httpMethod = "POST", notes = "规格列表", response = JsonResult.class)
@ApiResponses(@ApiResponse(code = 200, message = "请求成功", response = JsonResult.class))
@ApiImplicitParams({
@ApiImplicitParam(name = "id", value = "商品编号", required = true, dataType = "Long", paramType = "query")
})
@ResponseBody
public JsonResult specificationList(OshServicesVo vo, HttpServletRequest request, HttpServletResponse response) {
return JsonResult.success("列表请求成功", oshServicesSerice.findSpecificationByServiceId(vo));
}
}
package com.atlgroupasia.servicecenter.controller;
import io.swagger.annotations.Api;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
@RestController
@RequestMapping("/api/services/specification")
@Api(tags = "商品规格型接口")
public class ApiOshServicesSpecificationController {
}
package com.atlgroupasia.servicecenter.controller;
import com.atlgroupasia.servicecenter.service.OshServicesSerice;
import com.atlgroupasia.servicecenter.service.OshServicesTypeSerice;
import com.atlgroupasia.servicecenter.utils.JsonResult;
import com.atlgroupasia.servicecenter.vo.OshServicesTypeVo;
import com.atlgroupasia.servicecenter.vo.OshServicesVo;
import io.swagger.annotations.*;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.bind.annotation.RestController;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.io.IOException;
@RestController
@RequestMapping("/api/services/type")
@Api(tags = "商品类型接口")
public class ApiOshServicesTypeController {
@Autowired
private OshServicesTypeSerice oshServicesTypeSerice;
/**
* 商品列表
*
* @throws IOException
* @author heshenmi
* 2017年9月26日 下午6:26:53
*/
@RequestMapping(value = "/list", method = RequestMethod.POST)
@ApiOperation(value = "商品列表", httpMethod = "POST", notes = "商品列表", response = JsonResult.class)
@ApiResponses(@ApiResponse(code = 200, message = "请求成功", response = JsonResult.class))
@ApiImplicitParams({
})
@ResponseBody
public JsonResult list(OshServicesTypeVo vo, HttpServletRequest request, HttpServletResponse response) {
return JsonResult.success("列表请求成功", oshServicesTypeSerice.findList(vo));
}
}
package com.atlgroupasia.servicecenter.controller;
import com.atlgroupasia.servicecenter.dto.OshParamsDto;
import com.atlgroupasia.servicecenter.service.ParamsService;
import com.atlgroupasia.servicecenter.utils.JsonResult;
import io.swagger.annotations.*;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.bind.annotation.RestController;
import javax.annotation.Resource;
@RestController
@RequestMapping("/api/params")
@Api(tags = "参数接口")
public class ApiParamsController {
@Resource
private ParamsService paramsService;
@RequestMapping(value = "/go/find-no-del", method = RequestMethod.POST)
@ApiOperation(value = "福位启用详情", httpMethod = "POST", notes = "福位启用详情接口", response = JsonResult.class)
@ApiResponses(@ApiResponse(code = 200, message = "请求成功", response = JsonResult.class))
@ApiImplicitParams({
@ApiImplicitParam(name = "paramsId", value = "查询参数id", required = true, dataType = "Integer", paramType = "query")
})
@ResponseBody
public JsonResult findNoDel(Integer paramsId) {
try {
OshParamsDto oshParams= paramsService.findNoDel(paramsId);
return JsonResult.success("查询成功",oshParams);
} catch (Exception e) {
e.printStackTrace();
return JsonResult.failed("查询失败,请稍候再试!");
}
}
}
package com.atlgroupasia.servicecenter.controller;
import com.atlgroupasia.servicecenter.dto.OshParamsDto;
import com.atlgroupasia.servicecenter.entity.Sms;
import com.atlgroupasia.servicecenter.entity.User;
import com.atlgroupasia.servicecenter.exception.BusinessException;
import com.atlgroupasia.servicecenter.service.ParamsService;
import com.atlgroupasia.servicecenter.service.SmsService;
import com.atlgroupasia.servicecenter.service.UserService;
import com.atlgroupasia.servicecenter.utils.JsonResult;
import com.atlgroupasia.servicecenter.utils.Md5Utils;
import io.swagger.annotations.*;
import org.apache.commons.codec.digest.DigestUtils;
import org.apache.commons.lang.StringUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;
import javax.annotation.Resource;
import java.util.Date;
@RestController
@RequestMapping("/api/user")
@Api(tags = "用户接口")
@CrossOrigin(origins = "*",maxAge = 3600)
public class ApiUserController {
@Resource
private ParamsService paramsService;
@Autowired
private SmsService smsService;
@Autowired
private UserService userService;
@RequestMapping(value = "/login", method = RequestMethod.POST)
@ApiOperation(value = "登录", httpMethod = "POST", notes = "登录", response = JsonResult.class)
@ApiResponses(@ApiResponse(code = 200, message = "请求成功", response = JsonResult.class))
@ApiImplicitParams({
@ApiImplicitParam(name = "loginName", value = "登录名", required = true, dataType = "String", paramType = "query"),
@ApiImplicitParam(name = "password", value = "密码", required = false, dataType = "String", paramType = "query"),
@ApiImplicitParam(name = "code", value = "验证码", required = false, dataType = "Integer", paramType = "query"),
})
@ResponseBody
public JsonResult login(String loginName, String password, String code) {
if(StringUtils.isNotBlank(code)){
return smsService.getUserCode(loginName,code,0);
}else {
if(StringUtils.isBlank(loginName)|| StringUtils.isBlank(password)){
return JsonResult.failed("账号或密码不能为空");
}else{
User user = userService.getUserByMobile(loginName);
if(null == user){
return JsonResult.failed("账号不存在");
}else{
String dbPassword = user.getPassword();
String pwd = DigestUtils.md5Hex(password);
if (!StringUtils.equals(pwd, dbPassword)) {
return JsonResult.failed("密码错误");
}else {
if(user.getState().compareTo(1) == 0){
return JsonResult.failed("该账号被禁用");
}else {
String token = Md5Utils.parseMD5("" + user.getId()+new Date());
user.setSysToken(token);
userService.updateToken(user);
return JsonResult.success("登录成功", token);
}
}
}
}
}
}
@RequestMapping(value = "/sendCode", method = RequestMethod.POST)
@ApiOperation(value = "发送短信", httpMethod = "POST", notes = "发送短信", response = JsonResult.class)
@ApiResponses(@ApiResponse(code = 200, message = "请求成功", response = JsonResult.class))
@ApiImplicitParams({
@ApiImplicitParam(name = "mobile", value = "手机号", required = true, dataType = "String", paramType = "query"),
})
@ResponseBody
public JsonResult sendCode(String mobile) {
return smsService.sendVerifyCode(mobile,0,"1");
}
}
package com.atlgroupasia.servicecenter.controller;
import com.atlgroupasia.servicecenter.service.UserService;
import io.swagger.annotations.Api;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import javax.annotation.Resource;
@RestController
@RequestMapping("/api/userPost")
@Api(tags = "邮寄消费接口")
@CrossOrigin(origins = "*",maxAge = 3600)
public class ApiUserPostController {
@Resource
private UserService userService;
// @RequestMapping(value="/mod-user-state",method= RequestMethod.POST)
// public void disableUser(Integer id, String postCompany, String postNumber, HttpServletResponse response, HttpServletRequest request) throws IOException {
// try {
//
// UserPost userPost = userPostService.find(id);
// JSONObject result = new JSONObject();
// User user = userService.find(userPost.getUserId());
// /*******************判断用户余额*****************/
// if(user.getMoney().compareTo(userPost.getPrice())==-1){
// ControllerHelper.sendErrorJson(response, "该用户金额不足,请先充值");
// return ;
// }
// /***************扣除用户余额*******/
// user.setMoney(user.getMoney().subtract(userPost.getPrice()));
// userService.update(user);
//
// /**************************钱包消息**************/
// WalletRecord walletRecord = new WalletRecord();
// walletRecord.setPayState(0);
// walletRecord.setUserId(user.getId());
// walletRecord.setOperateId(admin.getId());
// walletRecord.setType(3);
// walletRecord.setCreateTime(new Date());
// walletRecord.setRemark("邮寄消费");
// walletRecord.setAmount(userPost.getPrice());
// walletRecordService.newEntity(walletRecord);
// /**************************更新邮寄消息************/
// String[] columns = {"post_company","post_number","post_time","state"};
// Object[] params = {postCompany,postNumber,new Date(),2};
// userPostService.update(id, columns, params);
// result.put("info", "邮寄成功");
// ControllerHelper.sendSuccessJson(response,result);
// } catch (Exception e) {
// e.printStackTrace();
// ControllerHelper.sendErrorJson(response,"账号失败,请刷新后重试");
// }
// }
}
package com.atlgroupasia.servicecenter.controller;
import org.apache.commons.lang3.StringUtils;
import org.springframework.beans.factory.annotation.Autowired;
import javax.servlet.http.HttpServletRequest;
import java.util.Objects;
/**
* 功能描述: <br>统一控制器
* 〈〉
* @since: 1.0.0
* @Author:Momo
* @Date: 2019/5/26 17:01
*/
public class BaseController {
@Autowired
private HttpServletRequest request;
/**
* 获取userId
* @return
*/
protected Long getUserId() {
Object userId = request.getAttribute("userId");
if (Objects.isNull(userId)) {
return null;
}
if (StringUtils.isBlank(userId.toString())) {
return null;
}
return Long.parseLong(userId.toString());
}
}
package com.atlgroupasia.servicecenter.dto;
import com.alibaba.fastjson.annotation.JSONField;
import com.atlgroupasia.servicecenter.utils.DateUtils;
import com.atlgroupasia.servicecenter.utils.OssUtil;
import lombok.Data;
import java.util.Date;
import java.util.List;
@Data
public class ActivityDto {
private Integer id;
private String pic;//图片
private String coverPic;//封面
private String title;//标题
private String province;//省份
private String city;//城市
private String area;//区域
private String provinceCode;//省份代码
private String cityCode;//城市代码
private String areaCode;//区域代码
private String address;//地址
@JSONField(format = "yyyy-MM-dd HH:mm:ss")
private Date beginTime;//开始时间
@JSONField(format = "yyyy-MM-dd HH:mm:ss")
private Date endTime;
@JSONField(format = "yyyy-MM-dd HH:mm:ss")
private Date applyStartTime;//报名开始时间
@JSONField(format = "yyyy-MM-dd HH:mm:ss")
private Date applyEndTime;//报名结束时间
private Integer templeId;//寺庙id
private String master;//主办方
private String phone;//电话
private Integer totalNumber;//总人数
private Integer applyNumber;//已报名人数
private String content;//活动详情
private List<ShuttleDto> shuttles;
private String activityTime;
private String templeName;
private String templeContactPhone;
private Integer state;
private String stateStr;//活动状态
private String beginStr;
private String endStr;
private Integer isApply;
private Integer appointmentId;
private String beginTimeStr;
private String endTimeStr;
private String applyStartTimeStr;
private String applyEndTimeStr;
private String templeProvince;
private String templeCity;
private String templeArea;
private String coverPicStr;
public Date getApplyStartTime() {
return applyStartTime;
}
public void setApplyStartTime(Date applyStartTime) {
this.applyStartTime = applyStartTime;
this.applyStartTimeStr = DateUtils.DateToString(applyStartTime, DateUtils.formatStr_yyyyMMddHHmm);
}
public Date getApplyEndTime() {
return applyEndTime;
}
public void setApplyEndTime(Date applyEndTime) {
this.applyEndTime = applyEndTime;
this.applyEndTimeStr = DateUtils.DateToString(applyEndTime, DateUtils.formatStr_yyyyMMddHHmm);
}
public Integer getAppointmentId() {
return appointmentId;
}
public void setAppointmentId(Integer appointmentId) {
this.appointmentId = appointmentId;
}
public Integer getIsApply() {
return isApply;
}
public void setIsApply(Integer isApply) {
this.isApply = isApply;
}
public String getBeginStr() {
return beginStr;
}
public void setBeginStr(String beginStr) {
this.beginStr = beginStr;
}
public String getEndStr() {
return endStr;
}
public void setEndStr(String endStr) {
this.endStr = endStr;
}
public Integer getId() {
return id;
}
public void setId(Integer id) {
this.id = id;
}
public String getPic() {
return pic;
}
public void setPic(String pic) {
this.pic = pic;
}
public String getCoverPic() {
return coverPic;
}
public void setCoverPic(String coverPic) {
this.coverPic = coverPic;
coverPicStr= OssUtil.IMG_ACCESS_URL +"/"+coverPic;
}
public String getTitle() {
return title;
}
public void setTitle(String title) {
this.title = title;
}
public Date getBeginTime() {
return beginTime;
}
public void setBeginTime(Date beginTime) {
this.beginTime = beginTime;
this.beginTimeStr = DateUtils.DateToString(beginTime, DateUtils.formatStr_yyyyMMddHHmm);
}
public Date getEndTime() {
return endTime;
}
public void setEndTime(Date endTime) {
this.endTime = endTime;
this.endTimeStr = DateUtils.DateToString(endTime, DateUtils.formatStr_yyyyMMddHHmm);
}
public Integer getTempleId() {
return templeId;
}
public void setTempleId(Integer templeId) {
this.templeId = templeId;
}
public String getMaster() {
return master;
}
public void setMaster(String master) {
this.master = master;
}
public String getPhone() {
return phone;
}
public void setPhone(String phone) {
this.phone = phone;
}
public Integer getTotalNumber() {
return totalNumber;
}
public void setTotalNumber(Integer totalNumber) {
this.totalNumber = totalNumber;
}
public Integer getApplyNumber() {
return applyNumber;
}
public void setApplyNumber(Integer applyNumber) {
this.applyNumber = applyNumber;
}
public String getContent() {
return content;
}
public void setContent(String content) {
this.content = content;
}
public String getActivityTime() {
return activityTime;
}
public void setActivityTime(String activityTime) {
this.activityTime = activityTime;
}
public Integer getState() {
return state;
}
public void setState(Integer state) {
if(state == 0){
this.stateStr = "未开始";
}else if(state == 1){
this.stateStr = "已开始";
}else{
this.stateStr = "已结束";
}
this.state = state;
}
public String getStateStr() {
return stateStr;
}
public void setStateStr(String stateStr) {
this.stateStr = stateStr;
}
public String getBeginTimeStr() {
return beginTimeStr;
}
public void setBeginTimeStr(String beginTimeStr) {
this.beginTimeStr = beginTimeStr;
}
public String getEndTimeStr() {
return endTimeStr;
}
public void setEndTimeStr(String endTimeStr) {
this.endTimeStr = endTimeStr;
}
public String getTempleName() {
return templeName;
}
public void setTempleName(String templeName) {
this.templeName = templeName;
}
public String getTempleContactPhone() {
return templeContactPhone;
}
public void setTempleContactPhone(String templeContactPhone) {
this.templeContactPhone = templeContactPhone;
}
public String getApplyStartTimeStr() {
return applyStartTimeStr;
}
public void setApplyStartTimeStr(String applyStartTimeStr) {
this.applyStartTimeStr = applyStartTimeStr;
}
public String getApplyEndTimeStr() {
return applyEndTimeStr;
}
public void setApplyEndTimeStr(String applyEndTimeStr) {
this.applyEndTimeStr = applyEndTimeStr;
}
public List<ShuttleDto> getShuttles() {
return shuttles;
}
public void setShuttles(List<ShuttleDto> shuttles) {
this.shuttles = shuttles;
}
public String getProvince() {
return province;
}
public void setProvince(String province) {
this.province = province;
}
public String getCity() {
return city;
}
public void setCity(String city) {
this.city = city;
}
public String getArea() {
return area;
}
public void setArea(String area) {
this.area = area;
}
public String getProvinceCode() {
return provinceCode;
}
public void setProvinceCode(String provinceCode) {
this.provinceCode = provinceCode;
}
public String getCityCode() {
return cityCode;
}
public void setCityCode(String cityCode) {
this.cityCode = cityCode;
}
public String getAreaCode() {
return areaCode;
}
public void setAreaCode(String areaCode) {
this.areaCode = areaCode;
}
public String getAddress() {
return address;
}
public void setAddress(String address) {
this.address = address;
}
public String getTempleProvince() {
return templeProvince;
}
public void setTempleProvince(String templeProvince) {
this.templeProvince = templeProvince;
}
public String getTempleCity() {
return templeCity;
}
public void setTempleCity(String templeCity) {
this.templeCity = templeCity;
}
public String getTempleArea() {
return templeArea;
}
public void setTempleArea(String templeArea) {
this.templeArea = templeArea;
}
public String getCoverPicStr() {
return coverPicStr;
}
public void setCoverPicStr(String coverPicStr) {
this.coverPicStr = coverPicStr;
}
}
\ No newline at end of file
package com.atlgroupasia.servicecenter.dto;
import lombok.Data;
/**
* @Description:地區
*
* @author ZYP 2017-3-19
*
*/
@Data
public class AreaDto {
private Integer id;
private String areaCode;
private String name;
private String cityCode;
}
package com.atlgroupasia.servicecenter.dto;
import com.alibaba.fastjson.annotation.JSONField;
import com.atlgroupasia.servicecenter.entity.UserBlessUsing;
import com.atlgroupasia.servicecenter.utils.DateUtils;
import com.atlgroupasia.servicecenter.utils.OssUtil;
import lombok.Data;
import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;
import java.util.List;
@Data
public class BlessDto implements Serializable {
private Integer id;//福位id
private Integer columnId;//柱id
private Integer memorialHallId;//纪念馆id
private String layer;//在第几层
private Integer recordId;//记录id
private BigDecimal priceRate;//价格比例
private BigDecimal basePrice;//基价格
private BigDecimal price;//总价格
private Integer rankId;//等级id
private Integer positionId;//方位id
private Integer fashionId;//款式id
private Integer specificationsId;//规格id
private String singlePic;//单层图片
private Integer lockSingle;//锁单
private String allPic;//全景图片
private String codeNumber;//编号
private String serialNumber;//序号
private Integer enable;//序号
private Integer saleTag;//0未卖出 1交易中 2已完成
private BigDecimal percent;//折扣
private Integer isShelves;//上下架
private String fashionSinglePic;//款式图片
private String ddNumber;
private String columnName;
private String columnLayer;
private Integer templeId;
private String templeName;//寺庙名称
private String templeProvince;//寺庙省份
private String memorialName;//纪念馆名称
private String institutionName;
private String memorialFloor;
private String fashionName;
private String rankName;
private String positionName;
private String specificationsName;
private String specificationsNumber;
private String donateName;
private String donatePhone;
private String donateTime;
private Integer companyId;
private BigDecimal columnPercent;
private String priceSumStr;
private BigDecimal blessPercentPrice;//折扣后价格
private String saleTagStr;
@JSONField(format = "yyyy-MM-dd HH:mm:ss")
private Date createTime;//创建时间
private String donateImg;
private String blessVoucherPic;
private String blessVoucherPicStr;
private String createTimeStr;//创建时间字符串
private BigDecimal priceSum;//该柱总价格
private Integer sum;//福位总数
private Integer isCart;
private Integer personNumber;
private Integer bindNumber;
private Integer blessSaleSum;
private Integer partitionId;
private String partitionName;
private String coverPicStr;
private String saleStateName;
private String startStr;
/***********************OSH*********************/
private String fashionPic;//款式图片
private String coverPic;
private String floors;
private Integer ddoId;
private String ddName;
private String ddPhone;
private String ddIdentify;
private String hallName;
private String ddoNumbers;
private List<UserBlessUsing> usings;
private Integer idx;
private Integer state;
private Integer donorId;
private String donateAddress;
private String stateStr;
private String ddAddress;
private String address;
private String province;
private String city;
private String area;
private String enableStateName;
private String blessInformation;
private Integer enableSuccessStateNumber;
private Integer itemStatus;
private Integer blessVoucher;
private String blessVoucherStr;
public String getSaleTagStr() {
if(null != saleTag){
if(saleTag.compareTo(0) == 0){
return "未售";
}else if(saleTag.compareTo(1) == 0){
return "售中";
}else if(saleTag.compareTo(2) == 0){
return "售出";
}
}
return "";
}
public void setSaleTagStr(String saleTagStr) {
this.saleTagStr = saleTagStr;
}
public String getCreateTimeStr() {
if(null == createTime){
return createTimeStr ="";
}
this.createTimeStr = DateUtils.DateToString(createTime, DateUtils.formatStr_yyyyMMddHHmmss);
if(createTimeStr == null){
return "";
}
return createTimeStr;
}
public void setCreateTimeStr(String createTimeStr) {
this.createTimeStr = createTimeStr;
}
public String getCoverPic() {
return coverPic;
}
public void setCoverPic(String coverPic) {
this.coverPic = coverPic;
coverPicStr= OssUtil.IMG_ACCESS_URL +"/"+coverPic;
}
public String getFloors() {
return floors;
}
public void setFloors(String floors) {
this.floors = floors;
}
public String getDdName() {
return ddName;
}
public void setDdName(String ddName) {
this.ddName = ddName;
}
public String getDdPhone() {
return ddPhone;
}
public void setDdPhone(String ddPhone) {
this.ddPhone = ddPhone;
}
public String getDdIdentify() {
return ddIdentify;
}
public void setDdIdentify(String ddIdentify) {
this.ddIdentify = ddIdentify;
}
public String getHallName() {
return hallName;
}
public void setHallName(String hallName) {
this.hallName = hallName;
}
public List<UserBlessUsing> getUsings() {
return usings;
}
public void setUsings(List<UserBlessUsing> usings) {
this.usings = usings;
}
public Integer getIdx() {
return idx;
}
public void setIdx(Integer idx) {
this.idx = idx;
}
public Integer getState() {
return state;
}
public void setState(Integer state) {
this.state = state;
}
public String getStateStr() {
return stateStr;
}
public void setStateStr(String stateStr) {
this.stateStr = stateStr;
}
public String getDdAddress() {
return ddAddress;
}
public void setDdAddress(String ddAddress) {
this.ddAddress = ddAddress;
}
public String getAddress() {
return address;
}
public void setAddress(String address) {
this.address = address;
}
public String getProvince() {
return province;
}
public void setProvince(String province) {
this.province = province;
}
public String getCity() {
return city;
}
public void setCity(String city) {
this.city = city;
}
public String getArea() {
return area;
}
public void setArea(String area) {
this.area = area;
}
public String getEnableStateName() {
return enableStateName;
}
public void setEnableStateName(String enableStateName) {
this.enableStateName = enableStateName;
}
public Integer getEnableSuccessStateNumber() {
return enableSuccessStateNumber;
}
public void setEnableSuccessStateNumber(Integer enableSuccessStateNumber) {
this.enableSuccessStateNumber = enableSuccessStateNumber;
}
public String getDonateImg() {
return donateImg;
}
public void setDonateImg(String donateImg) {
this.donateImg = donateImg;
}
public String getCoverPicStr() {
return coverPicStr;
}
public void setCoverPicStr(String coverPicStr) {
this.coverPicStr = coverPicStr;
}
public Integer getBlessVoucher() {
return blessVoucher;
}
public void setBlessVoucher(Integer blessVoucher) {
this.blessVoucher = blessVoucher;
if (blessVoucher==0){
blessVoucherStr="服务商代保管";
}else if (blessVoucher==1){
blessVoucherStr="已申领纸质转为自保管";
}else {
blessVoucherStr="现场领取";
}
}
public String getBlessVoucherStr() {
return blessVoucherStr;
}
public void setBlessVoucherStr(String blessVoucherStr) {
this.blessVoucherStr = blessVoucherStr;
}
public String getBlessVoucherPic() {
return blessVoucherPic;
}
public void setBlessVoucherPic(String blessVoucherPic) {
this.blessVoucherPic = blessVoucherPic;
blessVoucherPicStr=OssUtil.IMG_ACCESS_URL+"/"+blessVoucherPic;
}
public String getBlessVoucherPicStr() {
return blessVoucherPicStr;
}
public void setBlessVoucherPicStr(String blessVoucherPicStr) {
this.blessVoucherPicStr = blessVoucherPicStr;
}
}
package com.atlgroupasia.servicecenter.dto;
import com.alibaba.fastjson.annotation.JSONField;
import lombok.Data;
import java.io.Serializable;
import java.util.Date;
@Data
public class BlessEnableDto implements Serializable {
private Integer id;//福位启用id
private Integer userId;//用户id
private Integer blessId;//福位id
private Integer blessIndex;//福位位数
private Integer enableState;//启用状态
@JSONField(format = "yyyy-MM-dd HH:mm:ss")
private Date createTime;
private String stateStr;
private String singlePic;//款式图
private Integer number;//数量
private String blessUsingName;//数量
private Integer userBlessUsingId;
public String getStateStr() {
if(this.enableState==0){
return "未启用";
}else if(this.enableState==1){
return "待审核";
}else if(this.enableState==2){
return "未通过";
}else{
return "已启用";
}
}
public void setStateStr(String stateStr) {
this.stateStr = stateStr;
}
}
package com.atlgroupasia.servicecenter.dto;
import lombok.Data;
import java.util.LinkedList;
/**
* @Description:城市
*
* @author ZYP 2017-3-19
*
*/
@Data
public class CityDto {
private Integer id;
private String name;//名稱
private String cityCode;//城市ID
private String provinceCode;//省份id
private String provinceName;
}
package com.atlgroupasia.servicecenter.dto;
import com.alibaba.fastjson.annotation.JSONField;
import com.atlgroupasia.servicecenter.entity.Bless;
import com.atlgroupasia.servicecenter.utils.DateUtils;
import lombok.Data;
import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;
import java.util.List;
@Data
public class ColumnDto implements Serializable {
private Integer id;//列id
private Integer recordId;//记录id
private String name;//列名称
private BigDecimal basePrice;//基价格
private Integer positionId;//方位id
private Integer rankId;//等级id
private Integer fashionId;//款式id
private Integer specificationsId;//规格id
private Integer templeId;//寺庙id
private Integer memorialHallId;//纪念馆id
private Integer institutionId;//机构id//楼阁
private Integer layerSum;//层的数量
private String singlePic;//单层图
private String allPic;//全景图
private Integer isSel;//是否被卖出 0为未卖出 1为已卖出 2为部分售出
private Integer lockSingle;//是否认捐单中 0为否 1为是
private BigDecimal percent;//折扣
private Integer isShelves;//是否上架 0上架 1下架
@JSONField(format = "yyyy-MM-dd HH:mm:ss")
private Date createTime;
private String createTimeStr;
private BigDecimal price;
private String fashionName;//款式名称
private String fashionUrl;//款式URL地址
private String memorialHallName;//纪念馆名称
private BigDecimal blessSumPrice;//柱的总价
private String templeProvince;//寺庙省份
private String templeName;//寺庙名称
private String institutionName;//楼阁名称
private String memorialHallFloor;//纪念馆所在层数
private String partitionName;//分区名称
private String positionName;//方位名称
private String specificationsName;//规格名称
private Integer isCart;//是否在购物车中
private String fashionSinglePic;//款式单层图
private String planPic;//款式平面图
private Integer sum;//数量
private BigDecimal priceSum;//价钱总数
private String rankName;//等级名称
private String subscriptionOrdernumber;//认捐单号
private Integer blessSum;
private String isSelName;//卖出状态
private Integer companyId;//主公司id
private Integer manageId;//管理机构id
private List<Bless> blesseList;//福位集合
private BigDecimal columnPercentPrice;//折扣后价格
private Integer cartId;//购物车id
private Integer columnNum;
private Integer blessSaleSum;//福位售出总数
private Integer blessLockSum;//福位锁定总数
private String ColumnIds;
public String getCreateTimeStr() {
if(createTime == null){
return "";
}
this.createTimeStr = DateUtils.DateToString(createTime, DateUtils.formatStr_yyyyMMddHHmmss);
if(createTimeStr == null){
return "";
}
return createTimeStr;
}
public void setCreateTimeStr(String createTimeStr) {
this.createTimeStr = createTimeStr;
}
public void setBlessSumPrice(BigDecimal blessSumPrice) {
if(blessSumPrice == null){
this.blessSumPrice = new BigDecimal(0);
}else{
this.blessSumPrice = blessSumPrice;
}
}
}
package com.atlgroupasia.servicecenter.dto;
import com.alibaba.fastjson.annotation.JSONField;
import com.atlgroupasia.servicecenter.entity.Bless;
import com.atlgroupasia.servicecenter.entity.OrderMessage;
import com.atlgroupasia.servicecenter.utils.DateUtils;
import lombok.Data;
import java.math.BigDecimal;
import java.util.Date;
import java.util.List;
@Data
public class DonateOrderDto {
private Integer id;//助捐单id
private Integer donorId;//助捐人id
private String donorName;//捐建人姓名
private String linkedName;//联系人
private String linkedPhone;//联系人电话
private String identity;//捐建人身份证
private String address;//通讯地址
private String numbers;//助捐单号
private Integer agencyId;//推广商id
private Integer merits;//功德证 0为免费代管 1为寄送并自己保管
private Integer voucher;//使用凭证 0为免费代管 1为寄送并自己保管
private Integer state;//支付状态 0为等待支付 1为已支付 2取消订单
private Integer determineState;//确定交易状态 1为自确定 2为平台确定
private Integer source;//来源 0为自建 1为平台创建
private Integer send;//捐建书
private String reason;//审核失败理由
private Integer pressConfirm;//0为未催促 1为促催确认
private BigDecimal price;//价格
@JSONField(format = "yyyy-MM-dd HH:mm:ss")
private Date outTime;//过期时间
@JSONField(format = "yyyy-MM-dd HH:mm:ss")
private Date confirmTime;//确认时间
private String blessIds;//福位id
private Integer blessNum;//福位数量
private Integer companyId;//公司id
private Integer isDonate;//是否 捐建发起的订单 0为助捐区 1为捐建区
private Integer realPayment;//实际付款方式
private String img;//图片
private String instruction;//说明
private BigDecimal discountPrice;//折扣后金额
private Integer belongSubscriptionOrderId;//属于哪个认捐单
private String changePriceRemark;
private String donateImg;
private String sqImg;
private String qtImg;
private Integer advanceState;
@JSONField(format = "yyyy-MM-dd HH:mm:ss")
private Date createTime;//创建时间
private Integer isView;
private String serialNumber;
private String welcomeName;
/***********************OSH*****************/
private Integer welcomeType;
private String phone;
private String specificationsName;//规格名称
private String fashionName;//款式名称
private String fashionPic;//款式图
private Integer specificationsNumber;//款式位数
private String memorialHallName;//纪念馆名称
private String templeName;//寺庙名称
private String templeAddress;//寺庙地址
private String year;//年份
private String month;//月份
private String day;//日期
private BigDecimal BlessPrice;//福位价格
private String capitalBlessPrice;//大写价格
private String blessCodeNumber;//福位编号
private String blessSerialNumber;
private String donorPic;//捐建人头像
public Integer getBelongSubscriptionOrderId() {
return belongSubscriptionOrderId;
}
public void setBelongSubscriptionOrderId(Integer belongSubscriptionOrderId) {
this.belongSubscriptionOrderId = belongSubscriptionOrderId;
}
private String differTime;
private Integer sideType;//内部或外部
private String donatePersonName;//新捐建人
private String orderPerson;//下单人
private String originalDonate;//原捐建人
private String agencyIdentify;//认捐人身份证
private String createTimeStr;
private List<Bless> blessList;
private String subscriptionOrderNumber;//认捐单号
private List<OrderMessage> orderMessageList;
private Integer donateOrderSum;//助捐单数量
private String blessLayer;//福位所在层
private String stateStr;
private String sourceStr;
private String agencyName;
public String getCreateTimeStr() {
if(createTime == null){
return createTimeStr ="";
}
this.createTimeStr = DateUtils.DateToString(createTime, DateUtils.formatStr_yyyyMMddHHmmss);
if(createTimeStr == null){
return "";
}
return createTimeStr;
}
public void setCreateTimeStr(String createTimeStr) {
this.createTimeStr = createTimeStr;
}
public Integer getState() {
return state;
}
public void setState(Integer state) {
this.state = state;
switch (state){
case 0:
stateStr="等待支付";
break;
case 1:
stateStr="支付超时";
break;
case 2:
stateStr="审核不通过";
break;
case 3:
stateStr="审核成功";
break;
case 4:
stateStr="取消订单";
break;
case 5:
stateStr="已完成";
break;
}
}
public Integer getSource() {
return source;
}
public void setSource(Integer source) {
this.source = source;
if (source==0){
sourceStr="自建";
}else {
sourceStr="平台创建";
}
}
}
package com.atlgroupasia.servicecenter.dto;
import com.alibaba.fastjson.annotation.JSONField;
import com.atlgroupasia.servicecenter.utils.DateUtils;
import lombok.Data;
import java.util.Date;
@Data
public class DonorDto {
private Integer id;//捐建人id
private Integer companyId;
private String name;//捐建人姓名
private String pic;//头像
private String phone;//手机号绑定(作为登入账号)
private String identify;//身份证
private String password;//登入密码
private String identifyJustPic;//身份证正面照
private String identifyBackPic;//身份证反面照
private String province;//省份
private String city;//城市
private String area;//区域
private String address;//通讯地址
private String email;//邮箱
private String linkedName;//联系人
private String linkedPhone;//联系电话
private Integer authentication;//是否认证 0为未认证 1为已认证
private Integer provinceCode;//省份Code
private Integer cityCode;//城市Code
private Integer areaCode;//区域Code
private String reason;//理由
private String linkedBakPhone;
private String linkedBakName;
private Integer isService;
/*private Integer privacy;//隐私保护 0为可查看 1为不可查看 2为申请授权中
private Integer agencyId;//推广商id
*/
@JSONField(format = "yyyy-MM-dd HH:mm:ss")
private Date createTime;//创建时间
private String createTimeStr;//创建时间字符串
private Integer isPrivacy;//是否授权
private Integer agencyDonorId;//经销商与捐建人关系id
private Integer agencyId;//推广机构的名称
private String agencyName;//推广机构的名称
public String getCreateTimeStr() {
this.createTimeStr = DateUtils.DateToString(createTime, DateUtils.formatStr_yyyyMMddHHmmss);
if(createTimeStr == null){
return "";
}
return createTimeStr;
}
public void setCreateTimeStr(String createTimeStr) {
this.createTimeStr = createTimeStr;
}
}
package com.atlgroupasia.servicecenter.dto;
import com.alibaba.fastjson.annotation.JSONField;
import lombok.Data;
import java.util.Date;
@Data
public class GiveRecordDto {
private Integer id;
private Integer userId;
private Integer giveUserId;
private Integer referType;
private Integer referId;
private Integer blessId;
private String orderCode;
private Integer state;
@JSONField(format="yyyy-MM-dd HH:mm:ss")
private Date createTime;
private String codeNumber;//福位编号
private Integer memorialHallId;//纪念馆id
private Integer positionId;//方位id
private Integer specificationsId;//规格id
private String memorialHallFashionName;//款式名字
private String singlePic;//款式图
private String giveUserName;//转赠人姓名
private String giveUserPhone;//转赠人手机号码
private String userName;//被转赠人姓名
private String userPhone;//被转赠人手机号码
private String memorialHallName;//纪念馆名字
private String positionName;//获取方位名字
private String specificationsName;//获取规格名字
}
\ No newline at end of file
package com.atlgroupasia.servicecenter.dto;
import lombok.Data;
import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;
@Data
public class MaintainOrderDto implements Serializable {
private Integer id;
private Integer blessId;
private Integer blessIdx;
private Integer maintainPriceId;
private Integer payYears;
private BigDecimal price;
private BigDecimal payMoney;
private String payName;
private Integer payType;
private Date dateTime;
private Integer state;
private Integer isDel;
}
package com.atlgroupasia.servicecenter.dto;
import com.alibaba.fastjson.annotation.JSONField;
import com.atlgroupasia.servicecenter.entity.MaintainPrice;
import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;
import java.util.List;
public class MaintainPriceDto implements Serializable {
private int id;
private int templeId;
private int specificationsId;
private BigDecimal price;
private BigDecimal priceYear;
private String name;
@JSONField(format = "yyyy-MM-dd HH:mm:ss")
private Date createTime;
private List<MaintainPrice> maintainPriceList;
}
package com.atlgroupasia.servicecenter.dto;
import com.alibaba.fastjson.annotation.JSONField;
import com.atlgroupasia.servicecenter.entity.Column;
import com.atlgroupasia.servicecenter.utils.DateUtils;
import lombok.Data;
import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;
import java.util.List;
@Data
public class MemorialHallDto implements Serializable{
private Integer id;//纪念馆id
private Integer companyId;//SAAS公司id
private Integer manageId; //管理机构ID
private Integer templeId;//寺庙id
private Integer institutionId;//机构id
private String name;//纪念馆名称
private String introduce;//介绍
private String floor;//楼层
private String coverPic; //封面
private String pic;//图片
private String codePrefix;//编号前缀
private String serialPrefix;//序号前缀
private String url;//介绍url
private String linkName;//联系人
private String linkPhone;//联系电话
private String generalLayoutPic;//总平面图
private Integer isRec;
@JSONField(format = "yyyy-MM-dd HH:mm:ss")
private Date createTime;//创建时间
private String blessNumber;//首页纪念馆福位数量
private Integer blessSum;//福位数量
private String createTimeStr;//创建时间字符串
private String templeName;//寺庙名称
private String institutionName;//机构名称或楼阁名称
private String templeProvince;//寺庙省份
private List<Column> columnList;//柱List
private String templeCity;//寺庙城市
private String templeArea;//寺庙区域
private Integer sum;//纪念馆数量
private Integer fashionCount;
private Integer layerCount;
private Integer columnCount;
private BigDecimal sumPrice;//总价格
private List<String> picList;
public List<Column> getColumnList() {
return columnList;
}
public void setColumnList(List<Column> columnList) {
this.columnList = columnList;
}
public String getCreateTimeStr() {
if(null == createTime){
return "";
}
this.createTimeStr = DateUtils.DateToString(createTime, DateUtils.formatStr_yyyyMMddHHmmss);
if(createTimeStr == null){
return "";
}
return createTimeStr;
}
public void setCreateTimeStr(String createTimeStr) {
this.createTimeStr = createTimeStr;
}
}
package com.atlgroupasia.servicecenter.dto;
import com.alibaba.fastjson.annotation.JSONField;
import com.atlgroupasia.servicecenter.utils.DateUtils;
import lombok.Data;
import java.io.Serializable;
import java.util.Date;
@Data
public class OrderMessageDto implements Serializable {
private Integer id;//订单日志id
private Integer orderType;//订单类型 0为认捐单 1为助捐单
private String content;//订单内容
private Integer donateOrderId;//订单id
@JSONField(format = "yyyy-MM-dd HH:mm:ss")
private Date createTime;
private String createTimeStr;
private String orderNumber;//订单号
public String getCreateTimeStr() {
this.createTimeStr = DateUtils.DateToString(createTime, DateUtils.formatStr_yyyyMMddHHmmss);
if(createTimeStr == null){
return "";
}
return createTimeStr;
}
public void setCreateTimeStr(String createTimeStr) {
this.createTimeStr = createTimeStr;
}
}
package com.atlgroupasia.servicecenter.dto;
import com.atlgroupasia.servicecenter.utils.OssUtil;
import lombok.Data;
import java.io.Serializable;
import java.math.BigDecimal;
@Data
public class OshCartItemDto implements Serializable {
private Integer id;
private Integer userId;
private Integer productId;
private Integer quantity;
private String pic;
private String picUrl;
private String name;
private BigDecimal price;
private Integer templeId;//该购物车商品隶属哪个寺庙
private Integer productStock;
private Integer productSaleCount;
public OshCartItemDto() {
super();
}
public Integer getTempleId() {
return templeId;
}
public OshCartItemDto(Integer userId, Integer productId, Integer quantity) {
super();
this.userId = userId;
this.productId = productId;
this.quantity = quantity;
}
public String getPicUrl() {
return OssUtil.STATIC_IMG_URL + "/" + getPic();
}
public void setPicUrl(String picUrl) {
this.picUrl = picUrl;
}
}
\ No newline at end of file
package com.atlgroupasia.servicecenter.dto;
import lombok.Data;
import java.util.List;
@Data
public class OshParamsDto {
private Integer id;
private String name;
private String value;
private Integer type;
private String remark;
private Integer isDel;
private List<OshParamsDto> paramsList;
}
package com.atlgroupasia.servicecenter.dto;
import com.alibaba.fastjson.annotation.JSONField;
import lombok.Data;
import java.math.BigDecimal;
import java.util.Date;
@Data
public class ProductAdDto {
private Integer id;
private String link;
private String pic;
private Integer weight;
@JSONField(format="yyyy-MM-dd HH:mm:ss")
private Date createTime;
private Date updatetime;
private Integer isDel;
private Integer productId;
private Integer templeId;
private String title;
private String mtName;
private String firstPic;
private String productName;//商品名称
private BigDecimal productPrice;//商品价格
private Integer productStock;//商品库存
}
package com.atlgroupasia.servicecenter.dto;
import lombok.Data;
import java.math.BigDecimal;
import java.util.Date;
import java.util.List;
@Data
public class ProductDto {
private Integer id;
private Integer templeId;
private String serial;
private String name;
private Integer productTypeId;
private BigDecimal originPrice;
private BigDecimal price;
private String unit;
private Integer stock;
private Integer warningStock;
private Integer isShelves;
private String content;
private String firstPic;
private String pics;
private Date createTime;
private Integer creatorId;
private Integer saleCount;
/*******************************OSH****************/
private String templeName;
private String productTypeName;
private List<String> picList;
private String coverPic;
private Integer productIndex;
private Integer CartSum;//该商品存在购物车内的数量
}
package com.atlgroupasia.servicecenter.dto;
import lombok.Data;
/**
* @Description:省份表(安卓的不想找插件,所以后台代写一个省市区三级联动数据)
*
* @author ZYP 2017-3-19
*
*/
@Data
public class ProvinceDto {
private Integer id;
private String provinceCode;//省份編碼
private String name;//省份名稱
}
package com.atlgroupasia.servicecenter.dto;
import com.alibaba.fastjson.annotation.JSONField;
import com.atlgroupasia.servicecenter.utils.DateUtils;
import lombok.Data;
import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;
@Data
public class ShuttleDto implements Serializable {
private Integer id;
private Integer templeId;
private Integer type;
private Integer relationId;
private Integer site;
private String province;
private String city;
private String area;
private String provinceCode;
private String cityCode;
private String areaCode;
private String address;
//
// @JSONField(format="yyyy-MM-dd HH:mm")
// private Date time;
private String time;
@JSONField(format="yyyy-MM-dd HH:mm")
private Date shuttleTime;
// @JSONField(format="yyyy-MM-dd HH:mm")
// private Date endTime;
//
private String endTime;
private BigDecimal price;
private String phone;
private Integer passengers;
@JSONField(format="yyyy-MM-dd HH:mm:ss")
private Date createTime;
private String templeName;
private String contactPhone;
private String timeStr;
private String shuttleTimeStr;
public void setShuttleTime(Date shuttleTime) {
this.shuttleTime = shuttleTime;
this.shuttleTimeStr = DateUtils.DateToString(shuttleTime, DateUtils.formatStr_yyyyMMddHHmm);
}
}
\ No newline at end of file
package com.atlgroupasia.servicecenter.dto;
import com.alibaba.fastjson.annotation.JSONField;
import com.atlgroupasia.servicecenter.utils.DateUtils;
import lombok.Data;
import java.io.Serializable;
import java.util.Date;
@Data
public class SpecificationsDto implements Serializable {
private Integer id;//规格id
private String name;//名称
private Integer companyId;//企业id
private Integer number;//规格位数
private Integer weight;//权重
private Integer isDefault;//是否默认
@JSONField(format = "yyyy-MM-dd HH:mm:ss")
private Date createTime;//创建时间
private String createTimeStr;//创建时间字符串
public String getCreateTimeStr() {
this.createTimeStr = DateUtils.DateToString(createTime, DateUtils.formatStr_yyyyMMddHHmmss);
if(createTimeStr == null){
return "";
}
return createTimeStr;
}
}
package com.atlgroupasia.servicecenter.dto;
import com.alibaba.fastjson.annotation.JSONField;
import com.atlgroupasia.servicecenter.entity.Bless;
import com.atlgroupasia.servicecenter.entity.OshCartItem;
import com.atlgroupasia.servicecenter.entity.Product;
import com.atlgroupasia.servicecenter.entity.ProductAd;
import com.atlgroupasia.servicecenter.utils.DateUtils;
import lombok.Data;
import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;
import java.util.List;
@Data
public class TempleDto implements Serializable {
private Integer id;//寺庙id
private Integer companyId;//总公司id
private Integer manageId;//公司id
private String sequenceNumber;//序号
private String name;//寺庙名称
private String pic;//图片
private String coverPic; //封面图片
private String certificatePic;//证书公章
private String donateModelPic;//捐建书模版
private String blessVoucherPic;//福位凭证模版
private String moralityCardPic;//功德证
private String remark;//寺庙介绍
private BigDecimal maintainPrice;//维护费
private Integer provinceCode;
private String contactPhone;
private Integer cityCode;
private Integer areaCode;
private String province;//省份
private String city;//城市
private String area;//区域
private String address;//详情地址
private String bankNumber;
private String bankName;
private String bankUserName;
@JSONField(format = "yyyy-MM-dd HH:mm:ss")
private Date createTime;//创建时间
private String createTimeStr;
private List<Bless> blessList;
/****************************OSH***************/
private Integer applySum;
private List<OshCartItem> cartItemList;
private List<ProductAd> productAdList;
private List<Product> productList;
private Integer userId;
public String getCreateTimeStr() {
if(null == this.createTime){
return "";
}
this.createTimeStr = DateUtils.DateToString(createTime, DateUtils.formatStr_yyyyMMddHHmmss);
if(createTimeStr == null){
return "";
}
return createTimeStr;
}
}
package com.atlgroupasia.servicecenter.dto;
import com.alibaba.fastjson.annotation.JSONField;
import lombok.Data;
import java.io.Serializable;
import java.math.BigDecimal;
import java.text.SimpleDateFormat;
import java.util.Date;
/**
* @author Administrator
*
*/
@Data
public class UserBlessUsingDto implements Serializable {
private Integer id; //主键id
private Integer relationId;//启用人id
private Integer type; //0前端用户开启,1后端管理员开启
private Integer blessId;//对应的福位
private Integer blessIdx;//bless idx 对应福位中哪一个
private String relation;//与往生者的关系
private String name;//往生者姓名
private Integer sex;//性别 0 0为男,1为女
@JSONField(format = "yyyy-MM-dd")
private Date birthday;//公历生日
private String birthdayLunar;//农历生日
private String identify;//省份证号码
@JSONField(format="yyyy-MM-dd")
private Date deathDay;//死亡公历日期
private String deathDayLunar;//死亡农历日期
private Integer usingWayAshes;//启用方式(骨灰)0否 1.是
private Integer usingWayKeepsake;//启用方式(纪念品) 0否 1是
@JSONField(format="yyyy-MM-dd HH:mm:ss")
private Date usingTime;//晋塔安奉时间
private Integer isYingling;//是否迎灵
@JSONField(format="yyyy-MM-dd HH:mm:ss")
private Date yinglingTime;//迎灵时间
private String deathProve;//死亡证明
private String cremationProve;//火化证明
private BigDecimal money;//维护费
private String remarks;//备注
@JSONField(format = "yyyy-MM-dd HH:mm:ss")
private Date createTime;//申请时间
private Integer state;//状态:0待审核;1:已开启;2未通过
@JSONField(format = "yyyy-MM-dd HH:mm:ss")
private Date reviewTime;//审核时间
private String reason;//拒绝理由
private Date updatetime;//更新时间
private Integer isDel;
private Integer templeId;//启用纪念馆id
private Integer enableId;//启用福位id
private Integer isMemory;//是否提醒
private String arrImg;//其他证明
private String usingWayStr;
private String blessInformation;
private String sexStr;
private String templeName;
private String address;
private String hallName;
private String codeNumber;
private String userPhone;
private String adminPhone;
private BigDecimal maintainPrice;
private String columnName;
private String fashionName;
private String positionName;
private String spName;
private Integer number;
private String userName;
private String adminName;
private String province;
private String city;
private String area;
private String donorName;
private String floors;
private String serialNumber;
private String ddName;
private String ddIdentify;
private String ddPhone;
private String pic;
private String mrName;
private String layer;
private String ddAddress;
private Integer num;
private String stateStr;
private String typeStr;
private String numberStr;
private String payPassword;//支付密码
private String linkedPhone;
private String usingTimeStr;
private String birthdayStr;
private String deathdayStr;
public Integer getType() {
return type;
}
public void setType(Integer type) {
this.type = type;
if (type==0){
typeStr="前端";
}else {
typeStr="后台";
}
}
public String getUserName() {
if(userName==null||userName==""){
return "";
}
return userName;
}
public void setUserName(String userName) {
this.userName = userName;
}
public Date getBirthday() {
return birthday;
}
public void setBirthday(Date birthday) {
this.birthday = birthday;
SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
birthdayStr = sdf.format(birthday);
}
public String getBirthdayLunar() {
return birthdayLunar;
}
public void setBirthdayLunar(String birthdayLunar) {
this.birthdayLunar = birthdayLunar;
}
public String getIdentify() {
return identify;
}
public void setIdentify(String identify) {
this.identify = identify;
}
public Date getDeathDay() {
return deathDay;
}
public void setDeathDay(Date deathDay) {
this.deathDay = deathDay;
SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
deathdayStr = sdf.format(deathDay);
}
public Date getUsingTime() {
return usingTime;
}
public void setUsingTime(Date usingTime) {
this.usingTime = usingTime;
SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
usingTimeStr = sdf.format(usingTime);
}
public Integer getState() {
return state;
}
public void setState(Integer state) {
this.state = state;
if (state==0){
stateStr="待审核";
}else if (state==1){
stateStr="已开启";
}else {
stateStr="未通过";
}
}
public Integer getSex() {
return sex;
}
public void setSex(Integer sex) {
this.sex = sex;
if(this.sex==0){
this.sexStr="男";
}else{
this.sexStr="女";
}
}
}
package com.atlgroupasia.servicecenter.dto;
import com.alibaba.fastjson.annotation.JSONField;
import lombok.Data;
import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;
@Data
public class UserDto implements Serializable {
private Integer id;
private String phone;
private String password;
private BigDecimal money;
private String pic;
private String name;
private String paymentPassword;//支付密码
@JSONField(format = "yyyy-MM-dd HH:mm:ss")
private Date createTime;
@JSONField(format = "yyyy-MM-dd HH:mm:ss")
private Date lastLoginTime;
private Integer state;
private String sysToken;
private String openid;//微信的openid
private String identify;
private String identifyJustPic;
private String identifyBackPic;
private String province;
private String city;
private String area;
private String code;
private String address;
private Integer examine;
private String provinceCode;
private String cityCode;
private String areaCode;
private Integer blessNum;
private String picUrl;
private Integer applyUserId;//申请人id
private String applyUserName;//申请人姓名
}
package com.atlgroupasia.servicecenter.dto;
import com.alibaba.fastjson.annotation.JSONField;
import lombok.Data;
import java.math.BigDecimal;
import java.util.Date;
@Data
public class UserPostDto {
private Integer id;//主键id
private Integer userId;//用户id
private Integer blessId;//福位id
private BigDecimal price;//邮费价格
private String name;//收件人
private String phone;//收件人电话
private String address;//收件地址
private Integer certificateType;//邮寄证书类型 0为功德证 1为福位证 2为捐款书
@JSONField(format = "yyyy-MM-dd HH:mm:ss")
private Date applyTime;//申请邮寄时间
private Integer type;//申请类型 0 首次申请;1补寄
private String postCompany;//物流公司
private String postNumber;//物流单号
@JSONField(format = "yyyy-MM-dd HH:mm:ss")
private Date postTime;//寄出时间
private Integer state;//状态:0未支付;1已支付待邮寄;2已寄出
@JSONField(format = "yyyy-MM-dd HH:mm:ss")
private Date createTime;//订单创建时间
private String mfName;//更新时间
private String codeNumber;
private String hallName;
private String fashionName;
private String userPhone;
private String allPic;
private String mpName;
private String msName;
private String fashionPic;
private String postTimeStr;
private String certificateTypeStr;
public Integer getCertificateType() {
return certificateType;
}
public void setCertificateType(Integer certificateType) {
this.certificateType = certificateType;
if(certificateType==0){
this.certificateTypeStr="功德证";
}else if(certificateType==1){
this.certificateTypeStr="福位证";
}else if(certificateType==2){
this.certificateTypeStr="捐赠书";
}
}
}
package com.atlgroupasia.servicecenter.dto;
import com.alibaba.fastjson.annotation.JSONField;
import lombok.Data;
import java.math.BigDecimal;
import java.util.Date;
@Data
public class WalletRecordDto {
private Integer id;
private Integer userId;
private Integer payState;
private Integer operateId;
private Integer type;
private String typeStr;
private String remark;
@JSONField(format="yyyy-MM-dd HH:mm:ss")
private Date createTime;
private BigDecimal amount;
private Integer isDel;
private String userName;
private String operateName;
private String dateStr;
public String getTypeStr() {
if(this.type==0){
return "订单支付";
}else if(this.type==1){
return "会员充值";
}else if(this.type==2){
return "商家调整";
}else if(this.type==3){
return "邮寄消费";
}else if(this.type==4){
return "启用福位";
}else{
return "预约服务";
}
}
public void setTypeStr(String typeStr) {
this.typeStr = typeStr;
}
}
package com.atlgroupasia.servicecenter.entity;
import com.alibaba.fastjson.annotation.JSONField;
import lombok.Data;
import java.io.Serializable;
import java.util.Date;
@Data
public class Activity implements Serializable {
private Integer id;
private String pic;//图片
private String coverPic;//封面
private String title;//标题
private String province;//省份
private String city;//城市
private String area;//区域
private String provinceCode;//省份代码
private String cityCode;//城市代码
private String areaCode;//区域代码
private String address;//地址
@JSONField(format = "yyyy-MM-dd HH:mm:ss")
private Date beginTime;//开始时间
@JSONField(format = "yyyy-MM-dd HH:mm:ss")
private Date endTime;
@JSONField(format = "yyyy-MM-dd HH:mm:ss")
private Date applyStartTime;//报名开始时间
@JSONField(format = "yyyy-MM-dd HH:mm:ss")
private Date applyEndTime;//报名结束时间
private Integer templeId;//寺庙id
private String master;//主办方
private String phone;//电话
private Integer totalNumber;//总人数
private Integer applyNumber;//已报名人数
private String content;//活动详情
}
\ No newline at end of file
package com.atlgroupasia.servicecenter.entity;
import lombok.Data;
/**
* @Description:地區
*
* @author ZYP 2017-3-19
*
*/
@Data
public class Area {
private Integer id;
private String areaCode;
private String name;
private String cityCode;
}
package com.atlgroupasia.servicecenter.entity;
import lombok.Data;
import java.math.BigDecimal;
@Data
public class Bless {
private Integer id;//福位id
private Integer columnId;//柱id
private Integer memorialHallId;//纪念馆id
private String layer;//在第几层
private Integer recordId;//记录id
private BigDecimal priceRate;//价格比例
private BigDecimal basePrice;//基价格
private BigDecimal price;//总价格
private Integer rankId;//等级id
private Integer positionId;//方位id
private Integer fashionId;//款式id
private Integer specificationsId;//规格id
private String singlePic;//单层图片
private Integer lockSingle;//锁单
private String allPic;//全景图片
private String codeNumber;//编号
private String serialNumber;//序号
private Integer enable;//序号
private Integer saleTag;//0未卖出 1交易中 2已完成
private BigDecimal percent;//折扣
private Integer isShelves;//上下架
}
package com.atlgroupasia.servicecenter.entity;
import com.alibaba.fastjson.annotation.JSONField;
import lombok.Data;
import java.util.Date;
@Data
public class BlessEnable {
private Integer id;//福位启用id
private Integer userId;//用户id
private Integer blessId;//福位id
private Integer blessIndex;//福位位数
private Integer enableState;//启用状态
@JSONField(format = "yyyy-MM-dd HH:mm:ss")
private Date createTime;
}
package com.atlgroupasia.servicecenter.entity;
import lombok.Data;
import java.util.LinkedList;
/**
* @Description:城市
*
* @author ZYP 2017-3-19
*
*/
@Data
public class City {
private Integer id;
private String name;//名稱
private String cityCode;//城市ID
private String provinceCode;//省份id
}
package com.atlgroupasia.servicecenter.entity;
import com.alibaba.fastjson.annotation.JSONField;
import lombok.Data;
import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;
@Data
public class Column implements Serializable {
private Integer id;//列id
private Integer recordId;//记录id
private String name;//列名称
private BigDecimal basePrice;//基价格
private Integer positionId;//方位id
private Integer rankId;//等级id
private Integer fashionId;//款式id
private Integer specificationsId;//规格id
private Integer templeId;//寺庙id
private Integer memorialHallId;//纪念馆id
private Integer institutionId;//机构id//楼阁
private Integer layerSum;//层的数量
private String singlePic;//单层图
private String allPic;//全景图
private Integer isSel;//是否被卖出 0为未卖出 1为已卖出 2为部分售出
private Integer lockSingle;//是否认捐单中 0为否 1为是
private BigDecimal percent;//折扣
private Integer isShelves;//是否上架 0上架 1下架
@JSONField(format = "yyyy-MM-dd HH:mm:ss")
private Date createTime;
}
package com.atlgroupasia.servicecenter.entity;
import com.alibaba.fastjson.annotation.JSONField;
import lombok.Data;
import java.math.BigDecimal;
import java.util.Date;
@Data
public class DonateOrder {
private Integer id;//助捐单id
private Integer donorId;//助捐人id
private String donorName;//捐建人姓名
private String linkedName;//联系人
private String linkedPhone;//联系人电话
private String identity;//捐建人身份证
private String address;//通讯地址
private String numbers;//助捐单号
private Integer agencyId;//推广商id
private Integer merits;//功德证 0为免费代管 1为寄送并自己保管
private Integer voucher;//使用凭证 0为免费代管 1为寄送并自己保管
private Integer state;//支付状态 0为等待支付 1为已支付 2取消订单
private Integer determineState;//确定交易状态 1为自确定 2为平台确定
private Integer source;//来源 0为自建 1为平台创建
private Integer send;//捐建书
private String reason;//审核失败理由
private Integer pressConfirm;//0为未催促 1为促催确认
private BigDecimal price;//价格
@JSONField(format = "yyyy-MM-dd HH:mm:ss")
private Date outTime;//过期时间
@JSONField(format = "yyyy-MM-dd HH:mm:ss")
private Date confirmTime;//确认时间
private String blessIds;//福位id
private Integer blessNum;//福位数量
private Integer companyId;//公司id
private Integer isDonate;//是否 捐建发起的订单 0为助捐区 1为捐建区
private Integer realPayment;//实际付款方式
private String img;//图片
private String instruction;//说明
private BigDecimal discountPrice;//折扣后金额
private Integer belongSubscriptionOrderId;//属于哪个认捐单
private String changePriceRemark;
private String donateImg;
private String sqImg;
private String qtImg;
private Integer advanceState;
@JSONField(format = "yyyy-MM-dd HH:mm:ss")
private Date createTime;//创建时间
private Integer isView;
}
package com.atlgroupasia.servicecenter.entity;
import lombok.Data;
@Data
public class Donor {
private Integer id;//捐建人id
private Integer companyId;
private String name;//捐建人姓名
private String pic;//头像
private String phone;//手机号绑定(作为登入账号)
private String identify;//身份证
private String password;//登入密码
private String identifyJustPic;//身份证正面照
private String identifyBackPic;//身份证反面照
private String province;//省份
private String city;//城市
private String area;//区域
private String address;//通讯地址
private String email;//邮箱
private String linkedName;//联系人
private String linkedPhone;//联系电话
private Integer authentication;//是否认证 0为未认证 1为已认证
private Integer provinceCode;//省份Code
private Integer cityCode;//城市Code
private Integer areaCode;//区域Code
private String reason;//理由
private String linkedBakPhone;
private String linkedBakName;
private Integer isService;
}
package com.atlgroupasia.servicecenter.entity;
import com.alibaba.fastjson.annotation.JSONField;
import lombok.Data;
import java.util.Date;
@Data
public class GiveRecord {
private Integer id;
private Integer userId;
private Integer giveUserId;
private Integer referType;
private Integer referId;
private Integer blessId;
private String orderCode;
private Integer state;
@JSONField(format="yyyy-MM-dd HH:mm:ss")
private Date createTime;
}
\ No newline at end of file
package com.atlgroupasia.servicecenter.entity;
import lombok.Data;
import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;
@Data
public class MaintainOrder implements Serializable {
private Integer id;
private Integer blessId;
private Integer blessIdx;
private Integer maintainPriceId;
private Integer payYears;
private BigDecimal price;
private BigDecimal maintainPrice;
private BigDecimal payMoney;
private String payName;
private Integer payType;
private Date payTime;
private Integer state;
private Integer isDel;
}
package com.atlgroupasia.servicecenter.entity;
import com.alibaba.fastjson.annotation.JSONField;
import lombok.Data;
import java.math.BigDecimal;
import java.util.Date;
@Data
public class MaintainPrice {
private int id;
private int templeId;
private int specificationsId;
private BigDecimal price;
private Integer priceYear;
private String name;
@JSONField(format = "yyyy-MM-dd HH:mm:ss")
private Date createTime;
}
package com.atlgroupasia.servicecenter.entity;
import lombok.Data;
@Data
public class MemorialHall {
private Integer id;//纪念馆id
private Integer companyId;//SAAS公司id
private Integer manageId; //管理机构ID
private Integer templeId;//寺庙id
private Integer institutionId;//机构id
private String name;//纪念馆名称
private String introduce;//介绍
private String floor;//楼层
private String coverPic; //封面
private String pic;//图片
private String codePrefix;//编号前缀
private String serialPrefix;//序号前缀
private String url;//介绍url
private String linkName;//联系人
private String linkPhone;//联系电话
private String generalLayoutPic;//总平面图
private Integer isRec;
}
package com.atlgroupasia.servicecenter.entity;
import com.alibaba.fastjson.annotation.JSONField;
import lombok.Data;
import java.util.Date;
@Data
public class OrderMessage {
private Integer id;//订单日志id
private Integer orderType;//订单类型 0为认捐单 1为助捐单
private String content;//订单内容
private Integer donateOrderId;//订单id
@JSONField(format = "yyyy-MM-dd HH:mm:ss")
private Date createTime;
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment