Commit 9ffdd8e02c7ee6e3d6b7f365dbbf35902c04b85f
1 parent
d8ee8428
初始化工程
Showing
73 changed files
with
4750 additions
and
0 deletions
Too many changes to show.
To preserve performance only 73 of 1282 files are displayed.
mobsite-getway-dao/.gitignore
0 → 100644
1 | +/target/ | ... | ... |
mobsite-getway-dao/pom.xml
0 → 100644
1 | +<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> | |
2 | + <modelVersion>4.0.0</modelVersion> | |
3 | + <parent> | |
4 | + <groupId>com.diligrp.mobsite</groupId> | |
5 | + <artifactId>mobsite-getway</artifactId> | |
6 | + <version>0.0.1-SNAPSHOT</version> | |
7 | + </parent> | |
8 | + <artifactId>mobsite-getway-dao</artifactId> | |
9 | + <properties> | |
10 | + <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> | |
11 | + </properties> | |
12 | + <dependencies> | |
13 | + <dependency> | |
14 | + <groupId>com.diligrp.mobsite</groupId> | |
15 | + <artifactId>mobsite-getway-domain</artifactId> | |
16 | + <version>0.0.1-SNAPSHOT</version> | |
17 | + </dependency> | |
18 | + </dependencies> | |
19 | +</project> | |
0 | 20 | \ No newline at end of file | ... | ... |
mobsite-getway-dao/src/main/java/com/diligrp/mobsite/getway/dao/grardlog/GuardLogMapperDao.java
0 → 100644
1 | +package com.diligrp.mobsite.getway.dao.grardlog; | |
2 | + | |
3 | +import java.util.List; | |
4 | + | |
5 | +import com.diligrp.mobsite.getway.domain.GuardLogMapper; | |
6 | +import com.diligrp.website.util.dao.BaseQuery; | |
7 | +import com.diligrp.website.util.dao.IBaseDao; | |
8 | + | |
9 | +/** | |
10 | + * Created by david on 2015/7/14. | |
11 | + */ | |
12 | +public interface GuardLogMapperDao extends IBaseDao<GuardLogMapper> { | |
13 | + | |
14 | + /** | |
15 | + * 在岗历史查询 | |
16 | + * @param bq | |
17 | + * @return | |
18 | + */ | |
19 | + List<GuardLogMapper> listHistoryByCondition(BaseQuery bq); | |
20 | + | |
21 | + /** | |
22 | + * 在岗历史查询--数据条数 | |
23 | + * @param bq | |
24 | + * @return | |
25 | + */ | |
26 | + Integer countHistoryByCondition(BaseQuery bq); | |
27 | +} | ... | ... |
mobsite-getway-dao/src/main/java/com/diligrp/mobsite/getway/dao/grardlog/impl/GuardLogmapperDaoImpl.java
0 → 100644
1 | +package com.diligrp.mobsite.getway.dao.grardlog.impl; | |
2 | + | |
3 | +import java.util.List; | |
4 | + | |
5 | +import org.springframework.stereotype.Component; | |
6 | + | |
7 | +import com.diligrp.mobsite.getway.dao.grardlog.GuardLogMapperDao; | |
8 | +import com.diligrp.mobsite.getway.domain.GuardLogMapper; | |
9 | +import com.diligrp.website.util.dao.BaseQuery; | |
10 | +import com.diligrp.website.util.dao.impl.BaseDaoImpl; | |
11 | + | |
12 | +/** | |
13 | + * Created by david on 2015/7/14. | |
14 | + */ | |
15 | +@Component | |
16 | +public class GuardLogmapperDaoImpl extends BaseDaoImpl<GuardLogMapper> implements GuardLogMapperDao { | |
17 | + | |
18 | + /** | |
19 | + * 在岗历史查询 | |
20 | + */ | |
21 | + @Override | |
22 | + public List<GuardLogMapper> listHistoryByCondition(BaseQuery bq) { | |
23 | + return getSqlSessionTemplate().selectList( | |
24 | + this.getClass().getCanonicalName() + ".listHistoryByCondition", | |
25 | + bq); | |
26 | + } | |
27 | + | |
28 | + /** | |
29 | + * 在岗历史查询--数据总数 | |
30 | + */ | |
31 | + @Override | |
32 | + public Integer countHistoryByCondition(BaseQuery bq) { | |
33 | + return getSqlSessionTemplate().selectOne( | |
34 | + this.getClass().getCanonicalName() + ".countHistoryByCondition", | |
35 | + bq); | |
36 | + } | |
37 | + | |
38 | +} | ... | ... |
mobsite-getway-dao/src/main/java/com/diligrp/mobsite/getway/dao/user/RegisterNoMapperDao.java
0 → 100644
1 | + | |
2 | +package com.diligrp.mobsite.getway.dao.user; | |
3 | + | |
4 | + | |
5 | +import com.diligrp.mobsite.getway.domain.RegisterNoMapper; | |
6 | +import com.diligrp.website.util.dao.*; | |
7 | + | |
8 | +import java.util.*; | |
9 | + | |
10 | +/** | |
11 | + * <B>Description</B> <br /> | |
12 | + * <B>Copyright</B> Copyright (c) 2014 www.diligrp.com All rights reserved. <br /> | |
13 | + * 本软件源代码版权归地利集团,未经许可不得任意复制与传播.<br /> | |
14 | + * <B>Company</B> 地利集团 | |
15 | + * @createTime 2014-10-16 10:52:44 | |
16 | + * @author template | |
17 | + */ | |
18 | +public interface RegisterNoMapperDao extends IBaseDao<RegisterNoMapper> { | |
19 | + /** | |
20 | + * 通过用户id得到激光注册ID | |
21 | + * @param userid | |
22 | + * @return | |
23 | + */ | |
24 | + List<RegisterNoMapper> getByUserId(Long userid); | |
25 | + | |
26 | + /** | |
27 | + * 修改用户yn(逻辑删除) | |
28 | + * @param id | |
29 | + * @return | |
30 | + */ | |
31 | + boolean updateByuid(Long id); | |
32 | + | |
33 | + /** | |
34 | + * 通过用户List<id>,获取极光号 | |
35 | + * @param baseQuery | |
36 | + * @return | |
37 | + */ | |
38 | + List<RegisterNoMapper> batchQuery(Map<String, Object> baseQuery); | |
39 | + | |
40 | + /** | |
41 | + * 通过条件进行数据查询没有yn限制 | |
42 | + * @param conditions 条件 | |
43 | + * @return 数据集 | |
44 | + */ | |
45 | + public List<RegisterNoMapper> listByConditionNoYn(BaseQuery conditions); | |
46 | +} | ... | ... |
mobsite-getway-dao/src/main/java/com/diligrp/mobsite/getway/dao/user/impl/RegisterNoMapperDaoImpl.java
0 → 100644
1 | +package com.diligrp.mobsite.getway.dao.user.impl; | |
2 | + | |
3 | +import com.diligrp.mobsite.getway.dao.user.RegisterNoMapperDao; | |
4 | +import com.diligrp.mobsite.getway.domain.RegisterNoMapper; | |
5 | +import com.diligrp.website.util.dao.BaseQuery; | |
6 | +import com.diligrp.website.util.dao.impl.BaseDaoImpl; | |
7 | +import org.springframework.stereotype.Component; | |
8 | + | |
9 | +import java.util.*; | |
10 | + | |
11 | +/** | |
12 | + * <B>Description</B> <br /> | |
13 | + * <B>Copyright</B> Copyright (c) 2014 www.diligrp.com All rights reserved. <br /> | |
14 | + * 本软件源代码版权归地利集团,未经许可不得任意复制与传播.<br /> | |
15 | + * <B>Company</B> 地利集团 | |
16 | + * | |
17 | + * @createTime 2014-10-16 10:52:44 | |
18 | + * @author template | |
19 | + */ | |
20 | +@Component | |
21 | +public class RegisterNoMapperDaoImpl extends BaseDaoImpl<RegisterNoMapper> | |
22 | + implements RegisterNoMapperDao { | |
23 | + | |
24 | + /** | |
25 | + * 通过userid获取 | |
26 | + * | |
27 | + * @return RegisterNoMapper | |
28 | + */ | |
29 | + @Override | |
30 | + public List<RegisterNoMapper> getByUserId(Long userid) { | |
31 | + List<RegisterNoMapper> mappers = getSqlSessionTemplate().selectList( | |
32 | + this.getClass().getCanonicalName() + ".getByUserId", userid); | |
33 | + | |
34 | + return mappers; | |
35 | + } | |
36 | + @Override | |
37 | + public boolean updateByuid(Long id) { | |
38 | + | |
39 | + return getSqlSessionTemplate().update( | |
40 | + this.getClass().getCanonicalName() + ".updateByuid", id) > 0 ? true : false; | |
41 | + } | |
42 | + @Override | |
43 | + public List<RegisterNoMapper> batchQuery(Map<String, Object> baseQuery) { | |
44 | + List<RegisterNoMapper> mappers = getSqlSessionTemplate().selectList( | |
45 | + this.getClass().getCanonicalName() + ".batchQuery", baseQuery); | |
46 | + | |
47 | + return mappers; | |
48 | + } | |
49 | + | |
50 | + @Override | |
51 | + public List<RegisterNoMapper> listByConditionNoYn(BaseQuery conditions) { | |
52 | + return getSqlSessionTemplate().selectList( | |
53 | + this.getClass().getCanonicalName() + ".listByConditionNoYn", | |
54 | + conditions); | |
55 | + } | |
56 | + | |
57 | +} | ... | ... |
mobsite-getway-dao/src/main/java/com/diligrp/mobsite/getway/dao/version/AppPatchDao.java
0 → 100644
1 | +package com.diligrp.mobsite.getway.dao.version; | |
2 | + | |
3 | +import com.diligrp.mobsite.getway.domain.protocol.version.model.AppPatch; | |
4 | +import com.diligrp.website.util.dao.BaseQuery; | |
5 | +import com.diligrp.website.util.dao.IBaseDao; | |
6 | + | |
7 | +public interface AppPatchDao extends IBaseDao<AppPatch> { | |
8 | + | |
9 | + AppPatch getPatchByVersionCode(BaseQuery conditions); | |
10 | + | |
11 | +} | ... | ... |
mobsite-getway-dao/src/main/java/com/diligrp/mobsite/getway/dao/version/AppVersionDao.java
0 → 100644
1 | +package com.diligrp.mobsite.getway.dao.version; | |
2 | + | |
3 | +import com.diligrp.mobsite.getway.domain.AppVersion; | |
4 | +import com.diligrp.website.util.dao.BaseQuery; | |
5 | +import com.diligrp.website.util.dao.IBaseDao; | |
6 | + | |
7 | + | |
8 | +/** | |
9 | + * | |
10 | + * @ClassName: AppVersionDao | |
11 | + * @Description: | |
12 | + * @author zhangshirui | |
13 | + * @date 2014年8月8日 下午2:10:18 | |
14 | + */ | |
15 | +public interface AppVersionDao extends IBaseDao<AppVersion> { | |
16 | + | |
17 | + /** | |
18 | + * | |
19 | + * @Title: getByVersion | |
20 | + * @Description: 根据版本号获取版本 | |
21 | + * @param @param version | |
22 | + * @param @return | |
23 | + * @return AppVersion | |
24 | + * @throws | |
25 | + */ | |
26 | + public AppVersion getByVersion(String version); | |
27 | + | |
28 | + /** | |
29 | + * | |
30 | + * @Title: getLastAppVersion | |
31 | + * @Description: 获取最新的版本 | |
32 | + * @param osType | |
33 | + * @return AppVersion | |
34 | + * @throws | |
35 | + */ | |
36 | + public AppVersion getLastAppVersion(BaseQuery bq); | |
37 | + | |
38 | +} | |
0 | 39 | \ No newline at end of file | ... | ... |
mobsite-getway-dao/src/main/java/com/diligrp/mobsite/getway/dao/version/DeviceInfoDao.java
0 → 100644
1 | +package com.diligrp.mobsite.getway.dao.version; | |
2 | + | |
3 | +import com.diligrp.mobsite.getway.domain.DeviceInfo; | |
4 | +import com.diligrp.website.util.dao.IBaseDao; | |
5 | + | |
6 | + | |
7 | +/** | |
8 | + * <B>Description</B> 设备信息 <br /> | |
9 | + * <B>Copyright</B> Copyright (c) 2014 www.diligrp.com All rights reserved. <br /> | |
10 | + * 本软件源代码版权归地利集团,未经许可不得任意复制与传播.<br /> | |
11 | + * <B>Company</B> 地利集团 | |
12 | + * @createTime 2014年8月26日 下午3:32:10 | |
13 | + * @author zhangshirui | |
14 | + */ | |
15 | +public interface DeviceInfoDao extends IBaseDao<DeviceInfo>{ | |
16 | + | |
17 | + | |
18 | + | |
19 | +} | ... | ... |
mobsite-getway-dao/src/main/java/com/diligrp/mobsite/getway/dao/version/FeedBackDao.java
0 → 100644
1 | +package com.diligrp.mobsite.getway.dao.version; | |
2 | + | |
3 | +import com.diligrp.mobsite.getway.domain.FeedBack; | |
4 | +import com.diligrp.website.util.dao.IBaseDao; | |
5 | + | |
6 | +/** | |
7 | + * <B>Description</B> 反馈意见 <br /> | |
8 | + * <B>Copyright</B> Copyright (c) 2014 www.diligrp.com All rights reserved. <br /> | |
9 | + * 本软件源代码版权归地利集团,未经许可不得任意复制与传播.<br /> | |
10 | + * <B>Company</B> 地利集团 | |
11 | + * | |
12 | + * @author wujianjun | |
13 | + * @createTime 2014/9/24 15:01 | |
14 | + */ | |
15 | +public interface FeedBackDao extends IBaseDao<FeedBack> { | |
16 | +} | ... | ... |
mobsite-getway-dao/src/main/java/com/diligrp/mobsite/getway/dao/version/impl/AppPatchDaoImpl.java
0 → 100644
1 | +package com.diligrp.mobsite.getway.dao.version.impl; | |
2 | + | |
3 | +import org.springframework.stereotype.Repository; | |
4 | + | |
5 | +import com.diligrp.mobsite.getway.dao.version.AppPatchDao; | |
6 | +import com.diligrp.mobsite.getway.domain.protocol.version.model.AppPatch; | |
7 | +import com.diligrp.website.util.dao.BaseQuery; | |
8 | +import com.diligrp.website.util.dao.impl.BaseDaoImpl; | |
9 | + | |
10 | +@Repository("appPatchDao") | |
11 | +public class AppPatchDaoImpl extends BaseDaoImpl<AppPatch> implements AppPatchDao{ | |
12 | + | |
13 | + @Override | |
14 | + public AppPatch getPatchByVersionCode(BaseQuery conditions) { | |
15 | + return (AppPatch)getSqlSessionTemplate().selectOne( | |
16 | + this.getClass().getCanonicalName() + ".getPatchByVersionCode", | |
17 | + conditions); | |
18 | + } | |
19 | + | |
20 | +} | ... | ... |
mobsite-getway-dao/src/main/java/com/diligrp/mobsite/getway/dao/version/impl/AppVersionDaoImpl.java
0 → 100644
1 | +package com.diligrp.mobsite.getway.dao.version.impl; | |
2 | + | |
3 | +import com.diligrp.mobsite.getway.dao.version.AppVersionDao; | |
4 | +import com.diligrp.mobsite.getway.domain.AppVersion; | |
5 | +import com.diligrp.website.util.dao.BaseQuery; | |
6 | +import com.diligrp.website.util.dao.impl.BaseDaoImpl; | |
7 | + | |
8 | +import org.springframework.stereotype.Repository; | |
9 | + | |
10 | +/** | |
11 | + * | |
12 | + * @ClassName: AppVersionImpl | |
13 | + * @Description: | |
14 | + * @author zhangshirui | |
15 | + * @date 2014年8月8日 下午4:30:55 | |
16 | + */ | |
17 | +@Repository("appVersionDao") | |
18 | +public class AppVersionDaoImpl extends BaseDaoImpl<AppVersion> implements AppVersionDao { | |
19 | + | |
20 | + @Override | |
21 | + public AppVersion getByVersion(String version) { | |
22 | + return (AppVersion)getSqlSessionTemplate().selectOne( | |
23 | + this.getClass().getCanonicalName() + ".getByVersion", version); | |
24 | + } | |
25 | + | |
26 | + @Override | |
27 | + public AppVersion getLastAppVersion(BaseQuery bq) { | |
28 | + return (AppVersion)getSqlSessionTemplate().selectOne( | |
29 | + this.getClass().getCanonicalName() + ".getLastAppVersion",bq); | |
30 | + } | |
31 | + | |
32 | + | |
33 | + | |
34 | +} | ... | ... |
mobsite-getway-dao/src/main/java/com/diligrp/mobsite/getway/dao/version/impl/DeviceInfoDaoImpl.java
0 → 100644
1 | +package com.diligrp.mobsite.getway.dao.version.impl; | |
2 | + | |
3 | +import org.springframework.stereotype.Repository; | |
4 | + | |
5 | +import com.diligrp.mobsite.getway.dao.version.DeviceInfoDao; | |
6 | +import com.diligrp.mobsite.getway.domain.DeviceInfo; | |
7 | +import com.diligrp.website.util.dao.impl.BaseDaoImpl; | |
8 | + | |
9 | +/** | |
10 | + * <B>Description</B> 设备信息 <br /> | |
11 | + * <B>Copyright</B> Copyright (c) 2014 www.diligrp.com All rights reserved. <br /> | |
12 | + * 本软件源代码版权归地利集团,未经许可不得任意复制与传播.<br /> | |
13 | + * <B>Company</B> 地利集团 | |
14 | + * @createTime 2014年8月26日 下午4:22:03 | |
15 | + * @author zhangshirui | |
16 | + */ | |
17 | +@Repository("deviceInfoDao") | |
18 | +public class DeviceInfoDaoImpl extends BaseDaoImpl<DeviceInfo> implements DeviceInfoDao { | |
19 | + | |
20 | +} | ... | ... |
mobsite-getway-dao/src/main/java/com/diligrp/mobsite/getway/dao/version/impl/FeedBackDaoImpl.java
0 → 100644
1 | +package com.diligrp.mobsite.getway.dao.version.impl; | |
2 | + | |
3 | +import com.diligrp.mobsite.getway.dao.version.FeedBackDao; | |
4 | +import com.diligrp.mobsite.getway.domain.FeedBack; | |
5 | +import com.diligrp.website.util.dao.impl.BaseDaoImpl; | |
6 | +import org.springframework.stereotype.Component; | |
7 | + | |
8 | +/** | |
9 | + * <B>Description</B> 反馈意见 <br /> | |
10 | + * <B>Copyright</B> Copyright (c) 2014 www.diligrp.com All rights reserved. <br /> | |
11 | + * 本软件源代码版权归地利集团,未经许可不得任意复制与传播.<br /> | |
12 | + * <B>Company</B> 地利集团 | |
13 | + * | |
14 | + * @author wujianjun | |
15 | + * @createTime 2014/9/24 15:01 | |
16 | + */ | |
17 | +@Component | |
18 | +public class FeedBackDaoImpl extends BaseDaoImpl<FeedBack> implements FeedBackDao { | |
19 | + | |
20 | +} | ... | ... |
mobsite-getway-domain/.gitignore
0 → 100644
1 | +/target/ | ... | ... |
mobsite-getway-domain/pom.xml
0 → 100644
1 | +<?xml version="1.0"?> | |
2 | +<project xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd" xmlns="http://maven.apache.org/POM/4.0.0" | |
3 | + xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> | |
4 | + <modelVersion>4.0.0</modelVersion> | |
5 | + <parent> | |
6 | + <groupId>com.diligrp.mobsite</groupId> | |
7 | + <artifactId>mobsite-getway</artifactId> | |
8 | + <version>0.0.1-SNAPSHOT</version> | |
9 | + </parent> | |
10 | + <groupId>com.diligrp.mobsite</groupId> | |
11 | + <artifactId>mobsite-getway-domain</artifactId> | |
12 | + <version>0.0.1-SNAPSHOT</version> | |
13 | + <name>mobsite-getway-domain</name> | |
14 | + <url>http://maven.apache.org</url> | |
15 | + <properties> | |
16 | + <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> | |
17 | + </properties> | |
18 | + <dependencies> | |
19 | + <dependency> | |
20 | + <groupId>junit</groupId> | |
21 | + <artifactId>junit</artifactId> | |
22 | + <version>3.8.1</version> | |
23 | + <scope>test</scope> | |
24 | + </dependency> | |
25 | + </dependencies> | |
26 | +</project> | ... | ... |
mobsite-getway-domain/src/main/java/com/diligrp/mobsite/getway/domain/AppVersion.java
0 → 100644
1 | +package com.diligrp.mobsite.getway.domain; | |
2 | + | |
3 | +import com.diligrp.website.util.domain.BaseDomain; | |
4 | + | |
5 | + | |
6 | +/** | |
7 | + * | |
8 | + * @ClassName: Version | |
9 | + * @Description: | |
10 | + * @author zhangshirui | |
11 | + * @date 2014年8月8日 上午11:34:55 | |
12 | + */ | |
13 | +@SuppressWarnings("serial") | |
14 | +public class AppVersion extends BaseDomain { | |
15 | + | |
16 | + /** | |
17 | + * 1 - 所有设备 | |
18 | + */ | |
19 | + public static final int DEVICE_ALL = 1; | |
20 | + /** | |
21 | + * 2 - ANDROID | |
22 | + */ | |
23 | + public static final int DEVICE_ANDROID= 2; | |
24 | + /** | |
25 | + * 3 - IOS | |
26 | + */ | |
27 | + public static final int DEVICE_IOS = 3; | |
28 | + | |
29 | + /** | |
30 | + * 设备类型 | |
31 | + */ | |
32 | + private Integer deviceType; | |
33 | + | |
34 | + /** | |
35 | + * 客户端app版本 | |
36 | + */ | |
37 | + private String appVersion; | |
38 | + | |
39 | + /** | |
40 | + * 客户端app下载地址 | |
41 | + */ | |
42 | + private String appUrl; | |
43 | + | |
44 | + /** | |
45 | + * app描述 | |
46 | + */ | |
47 | + private String description; | |
48 | + | |
49 | + /** | |
50 | + * 是否启用 | |
51 | + * 1.启用 | |
52 | + * 2.禁用 | |
53 | + */ | |
54 | + private Integer status; | |
55 | + | |
56 | + /** | |
57 | + * 是否强制升级 | |
58 | + * 1.是 | |
59 | + * 2.否 | |
60 | + */ | |
61 | + private Integer forceFlag; | |
62 | + /** | |
63 | + * 版本编号 | |
64 | + */ | |
65 | + private Integer versionCode; | |
66 | + /** | |
67 | + * 是否增量升级 | |
68 | + */ | |
69 | + private Integer patchFlag; | |
70 | + | |
71 | + /** | |
72 | + * 创建者id | |
73 | + */ | |
74 | + private Long creatorId; | |
75 | + | |
76 | + /** | |
77 | + * get value of AppVersion.deviceType | |
78 | + * @return the deviceType | |
79 | + * @createTime 2014年8月26日 下午3:11:20 | |
80 | + * @author zhangshirui | |
81 | + */ | |
82 | + public Integer getDeviceType() { | |
83 | + return deviceType; | |
84 | + } | |
85 | + | |
86 | + | |
87 | + | |
88 | + /** | |
89 | + * set value of AppVersion.deviceType | |
90 | + * @param deviceType the deviceType to set | |
91 | + * @createTime 2014年8月26日 下午3:11:20 | |
92 | + * @author zhangshirui | |
93 | + */ | |
94 | + public void setDeviceType(Integer deviceType) { | |
95 | + this.deviceType = deviceType; | |
96 | + } | |
97 | + | |
98 | + | |
99 | + | |
100 | + /** | |
101 | + * get value of AppVersion.appVersion | |
102 | + * @return the appVersion | |
103 | + * @createTime 2014年8月26日 下午3:11:20 | |
104 | + * @author zhangshirui | |
105 | + */ | |
106 | + public String getAppVersion() { | |
107 | + return appVersion; | |
108 | + } | |
109 | + | |
110 | + | |
111 | + | |
112 | + /** | |
113 | + * set value of AppVersion.appVersion | |
114 | + * @param appVersion the appVersion to set | |
115 | + * @createTime 2014年8月26日 下午3:11:20 | |
116 | + * @author zhangshirui | |
117 | + */ | |
118 | + public void setAppVersion(String appVersion) { | |
119 | + this.appVersion = appVersion; | |
120 | + } | |
121 | + | |
122 | + | |
123 | + | |
124 | + /** | |
125 | + * get value of AppVersion.appUrl | |
126 | + * @return the appUrl | |
127 | + * @createTime 2014年8月26日 下午3:11:20 | |
128 | + * @author zhangshirui | |
129 | + */ | |
130 | + public String getAppUrl() { | |
131 | + return appUrl; | |
132 | + } | |
133 | + | |
134 | + | |
135 | + | |
136 | + /** | |
137 | + * set value of AppVersion.appUrl | |
138 | + * @param appUrl the appUrl to set | |
139 | + * @createTime 2014年8月26日 下午3:11:20 | |
140 | + * @author zhangshirui | |
141 | + */ | |
142 | + public void setAppUrl(String appUrl) { | |
143 | + this.appUrl = appUrl; | |
144 | + } | |
145 | + | |
146 | + | |
147 | + | |
148 | + /** | |
149 | + * get value of AppVersion.description | |
150 | + * @return the description | |
151 | + * @createTime 2014年8月26日 下午3:11:20 | |
152 | + * @author zhangshirui | |
153 | + */ | |
154 | + public String getDescription() { | |
155 | + return description; | |
156 | + } | |
157 | + | |
158 | + | |
159 | + | |
160 | + /** | |
161 | + * set value of AppVersion.description | |
162 | + * @param description the description to set | |
163 | + * @createTime 2014年8月26日 下午3:11:20 | |
164 | + * @author zhangshirui | |
165 | + */ | |
166 | + public void setDescription(String description) { | |
167 | + this.description = description; | |
168 | + } | |
169 | + | |
170 | + | |
171 | + | |
172 | + /** | |
173 | + * get value of AppVersion.status | |
174 | + * @return the status | |
175 | + * @createTime 2014年8月26日 下午3:11:20 | |
176 | + * @author zhangshirui | |
177 | + */ | |
178 | + public Integer getStatus() { | |
179 | + return status; | |
180 | + } | |
181 | + | |
182 | + | |
183 | + | |
184 | + /** | |
185 | + * set value of AppVersion.status | |
186 | + * @param status the status to set | |
187 | + * @createTime 2014年8月26日 下午3:11:20 | |
188 | + * @author zhangshirui | |
189 | + */ | |
190 | + public void setStatus(Integer status) { | |
191 | + this.status = status; | |
192 | + } | |
193 | + | |
194 | + | |
195 | + | |
196 | + /** | |
197 | + * get value of AppVersion.forceFlag | |
198 | + * @return the forceFlag | |
199 | + * @createTime 2014年8月26日 下午3:11:20 | |
200 | + * @author zhangshirui | |
201 | + */ | |
202 | + public Integer getForceFlag() { | |
203 | + return forceFlag; | |
204 | + } | |
205 | + | |
206 | + | |
207 | + | |
208 | + /** | |
209 | + * set value of AppVersion.forceFlag | |
210 | + * @param forceFlag the forceFlag to set | |
211 | + * @createTime 2014年8月26日 下午3:11:20 | |
212 | + * @author zhangshirui | |
213 | + */ | |
214 | + public void setForceFlag(Integer forceFlag) { | |
215 | + this.forceFlag = forceFlag; | |
216 | + } | |
217 | + | |
218 | + | |
219 | + | |
220 | + /** | |
221 | + * get value of AppVersion.creatorId | |
222 | + * @return the creatorId | |
223 | + * @createTime 2014年8月26日 下午3:11:20 | |
224 | + * @author zhangshirui | |
225 | + */ | |
226 | + public Long getCreatorId() { | |
227 | + return creatorId; | |
228 | + } | |
229 | + | |
230 | + | |
231 | + | |
232 | + /** | |
233 | + * set value of AppVersion.creatorId | |
234 | + * @param creatorId the creatorId to set | |
235 | + * @createTime 2014年8月26日 下午3:11:20 | |
236 | + * @author zhangshirui | |
237 | + */ | |
238 | + public void setCreatorId(Long creatorId) { | |
239 | + this.creatorId = creatorId; | |
240 | + } | |
241 | + | |
242 | + @Override | |
243 | + public String toString() { | |
244 | + StringBuilder builder = new StringBuilder(); | |
245 | + builder.append("AppVersion [deviceType="); | |
246 | + builder.append(deviceType); | |
247 | + builder.append(", appVersion="); | |
248 | + builder.append(appVersion); | |
249 | + builder.append(", appUrl="); | |
250 | + builder.append(appUrl); | |
251 | + builder.append(", description="); | |
252 | + builder.append(description); | |
253 | + builder.append(", status="); | |
254 | + builder.append(status); | |
255 | + builder.append(", forceFlag="); | |
256 | + builder.append(forceFlag); | |
257 | + builder.append(", creatorId="); | |
258 | + builder.append(creatorId); | |
259 | + builder.append("]"); | |
260 | + return builder.toString(); | |
261 | + } | |
262 | + | |
263 | + public Integer getPatchFlag() { | |
264 | + return patchFlag; | |
265 | + } | |
266 | + | |
267 | + | |
268 | + | |
269 | + | |
270 | + public void setPatchFlag(Integer patchFlag) { | |
271 | + this.patchFlag = patchFlag; | |
272 | + } | |
273 | + | |
274 | + | |
275 | + | |
276 | + | |
277 | + public Integer getVersionCode() { | |
278 | + return versionCode; | |
279 | + } | |
280 | + | |
281 | + | |
282 | + | |
283 | + | |
284 | + public void setVersionCode(Integer versionCode) { | |
285 | + this.versionCode = versionCode; | |
286 | + } | |
287 | +} | ... | ... |
mobsite-getway-domain/src/main/java/com/diligrp/mobsite/getway/domain/DeviceInfo.java
0 → 100644
1 | +package com.diligrp.mobsite.getway.domain; | |
2 | + | |
3 | +import com.diligrp.website.util.domain.BaseDomain; | |
4 | + | |
5 | + | |
6 | +/** | |
7 | + * <B>Description</B> 设备信息 <br /> | |
8 | + * <B>Copyright</B> Copyright (c) 2014 www.diligrp.com All rights reserved. <br /> | |
9 | + * 本软件源代码版权归地利集团,未经许可不得任意复制与传播.<br /> | |
10 | + * <B>Company</B> 地利集团 | |
11 | + * @createTime 2014年8月26日 下午3:20:48 | |
12 | + * @author zhangshirui | |
13 | + */ | |
14 | +@SuppressWarnings("serial") | |
15 | +public class DeviceInfo extends BaseDomain { | |
16 | + | |
17 | + /** | |
18 | + * ID | |
19 | + */ | |
20 | + private Long id; | |
21 | + /** | |
22 | + * 用户ID | |
23 | + */ | |
24 | + private Long userId; | |
25 | + /** | |
26 | + * 用户登录名 | |
27 | + */ | |
28 | + private String accountName; | |
29 | + /** | |
30 | + * 设备ID | |
31 | + */ | |
32 | + private String deviceId; | |
33 | + /** | |
34 | + * 设备操作系统类型 | |
35 | + */ | |
36 | + private String deviceSystem; | |
37 | + /** | |
38 | + * 设备系统版本 | |
39 | + */ | |
40 | + private String systemVersion; | |
41 | + /** | |
42 | + * 设备操作系统订制商 | |
43 | + */ | |
44 | + private String systemVendor; | |
45 | + /** | |
46 | + * 设备屏幕尺寸 | |
47 | + */ | |
48 | + private String deviceScreen; | |
49 | + /** | |
50 | + * 设备厂商 | |
51 | + */ | |
52 | + private String deviceBarand; | |
53 | + /** | |
54 | + * 设备号码 | |
55 | + */ | |
56 | + private String deviceMsisdn; | |
57 | + | |
58 | + | |
59 | + | |
60 | + /** | |
61 | + * get value of DeviceInfo.id | |
62 | + * @return the id | |
63 | + * @createTime 2014年8月26日 下午3:29:23 | |
64 | + * @author zhangshirui | |
65 | + */ | |
66 | + public Long getId() { | |
67 | + return id; | |
68 | + } | |
69 | + | |
70 | + | |
71 | + | |
72 | + /** | |
73 | + * set value of DeviceInfo.id | |
74 | + * @param id the id to set | |
75 | + * @createTime 2014年8月26日 下午3:29:23 | |
76 | + * @author zhangshirui | |
77 | + */ | |
78 | + public void setId(Long id) { | |
79 | + this.id = id; | |
80 | + } | |
81 | + | |
82 | + | |
83 | + | |
84 | + /** | |
85 | + * get value of DeviceInfo.userId | |
86 | + * @return the userId | |
87 | + * @createTime 2014年8月26日 下午3:29:23 | |
88 | + * @author zhangshirui | |
89 | + */ | |
90 | + public Long getUserId() { | |
91 | + return userId; | |
92 | + } | |
93 | + | |
94 | + | |
95 | + | |
96 | + /** | |
97 | + * set value of DeviceInfo.userId | |
98 | + * @param userId the userId to set | |
99 | + * @createTime 2014年8月26日 下午3:29:23 | |
100 | + * @author zhangshirui | |
101 | + */ | |
102 | + public void setUserId(Long userId) { | |
103 | + this.userId = userId; | |
104 | + } | |
105 | + | |
106 | + | |
107 | + | |
108 | + /** | |
109 | + * get value of DeviceInfo.accountName | |
110 | + * @return the accountName | |
111 | + * @createTime 2014年8月26日 下午3:29:23 | |
112 | + * @author zhangshirui | |
113 | + */ | |
114 | + public String getAccountName() { | |
115 | + return accountName; | |
116 | + } | |
117 | + | |
118 | + | |
119 | + | |
120 | + /** | |
121 | + * set value of DeviceInfo.accountName | |
122 | + * @param accountName the accountName to set | |
123 | + * @createTime 2014年8月26日 下午3:29:23 | |
124 | + * @author zhangshirui | |
125 | + */ | |
126 | + public void setAccountName(String accountName) { | |
127 | + this.accountName = accountName; | |
128 | + } | |
129 | + | |
130 | + | |
131 | + | |
132 | + /** | |
133 | + * get value of DeviceInfo.deviceId | |
134 | + * @return the deviceId | |
135 | + * @createTime 2014年8月26日 下午3:29:23 | |
136 | + * @author zhangshirui | |
137 | + */ | |
138 | + public String getDeviceId() { | |
139 | + return deviceId; | |
140 | + } | |
141 | + | |
142 | + | |
143 | + | |
144 | + /** | |
145 | + * set value of DeviceInfo.deviceId | |
146 | + * @param deviceId the deviceId to set | |
147 | + * @createTime 2014年8月26日 下午3:29:23 | |
148 | + * @author zhangshirui | |
149 | + */ | |
150 | + public void setDeviceId(String deviceId) { | |
151 | + this.deviceId = deviceId; | |
152 | + } | |
153 | + | |
154 | + | |
155 | + | |
156 | + /** | |
157 | + * get value of DeviceInfo.deviceSystem | |
158 | + * @return the deviceSystem | |
159 | + * @createTime 2014年8月26日 下午3:29:23 | |
160 | + * @author zhangshirui | |
161 | + */ | |
162 | + public String getDeviceSystem() { | |
163 | + return deviceSystem; | |
164 | + } | |
165 | + | |
166 | + | |
167 | + | |
168 | + /** | |
169 | + * set value of DeviceInfo.deviceSystem | |
170 | + * @param deviceSystem the deviceSystem to set | |
171 | + * @createTime 2014年8月26日 下午3:29:23 | |
172 | + * @author zhangshirui | |
173 | + */ | |
174 | + public void setDeviceSystem(String deviceSystem) { | |
175 | + this.deviceSystem = deviceSystem; | |
176 | + } | |
177 | + | |
178 | + | |
179 | + | |
180 | + /** | |
181 | + * get value of DeviceInfo.systemVersion | |
182 | + * @return the systemVersion | |
183 | + * @createTime 2014年8月26日 下午3:29:23 | |
184 | + * @author zhangshirui | |
185 | + */ | |
186 | + public String getSystemVersion() { | |
187 | + return systemVersion; | |
188 | + } | |
189 | + | |
190 | + | |
191 | + | |
192 | + /** | |
193 | + * set value of DeviceInfo.systemVersion | |
194 | + * @param systemVersion the systemVersion to set | |
195 | + * @createTime 2014年8月26日 下午3:29:23 | |
196 | + * @author zhangshirui | |
197 | + */ | |
198 | + public void setSystemVersion(String systemVersion) { | |
199 | + this.systemVersion = systemVersion; | |
200 | + } | |
201 | + | |
202 | + | |
203 | + | |
204 | + /** | |
205 | + * get value of DeviceInfo.systemVendor | |
206 | + * @return the systemVendor | |
207 | + * @createTime 2014年8月26日 下午3:29:23 | |
208 | + * @author zhangshirui | |
209 | + */ | |
210 | + public String getSystemVendor() { | |
211 | + return systemVendor; | |
212 | + } | |
213 | + | |
214 | + | |
215 | + | |
216 | + /** | |
217 | + * set value of DeviceInfo.systemVendor | |
218 | + * @param systemVendor the systemVendor to set | |
219 | + * @createTime 2014年8月26日 下午3:29:23 | |
220 | + * @author zhangshirui | |
221 | + */ | |
222 | + public void setSystemVendor(String systemVendor) { | |
223 | + this.systemVendor = systemVendor; | |
224 | + } | |
225 | + | |
226 | + | |
227 | + | |
228 | + /** | |
229 | + * get value of DeviceInfo.deviceScreen | |
230 | + * @return the deviceScreen | |
231 | + * @createTime 2014年8月26日 下午3:29:23 | |
232 | + * @author zhangshirui | |
233 | + */ | |
234 | + public String getDeviceScreen() { | |
235 | + return deviceScreen; | |
236 | + } | |
237 | + | |
238 | + | |
239 | + | |
240 | + /** | |
241 | + * set value of DeviceInfo.deviceScreen | |
242 | + * @param deviceScreen the deviceScreen to set | |
243 | + * @createTime 2014年8月26日 下午3:29:23 | |
244 | + * @author zhangshirui | |
245 | + */ | |
246 | + public void setDeviceScreen(String deviceScreen) { | |
247 | + this.deviceScreen = deviceScreen; | |
248 | + } | |
249 | + | |
250 | + | |
251 | + | |
252 | + /** | |
253 | + * get value of DeviceInfo.deviceBarand | |
254 | + * @return the deviceBarand | |
255 | + * @createTime 2014年8月26日 下午3:29:23 | |
256 | + * @author zhangshirui | |
257 | + */ | |
258 | + public String getDeviceBarand() { | |
259 | + return deviceBarand; | |
260 | + } | |
261 | + | |
262 | + | |
263 | + | |
264 | + /** | |
265 | + * set value of DeviceInfo.deviceBarand | |
266 | + * @param deviceBarand the deviceBarand to set | |
267 | + * @createTime 2014年8月26日 下午3:29:23 | |
268 | + * @author zhangshirui | |
269 | + */ | |
270 | + public void setDeviceBarand(String deviceBarand) { | |
271 | + this.deviceBarand = deviceBarand; | |
272 | + } | |
273 | + | |
274 | + | |
275 | + | |
276 | + /** | |
277 | + * get value of DeviceInfo.deviceMsisdn | |
278 | + * @return the deviceMsisdn | |
279 | + * @createTime 2014年8月26日 下午3:29:23 | |
280 | + * @author zhangshirui | |
281 | + */ | |
282 | + public String getDeviceMsisdn() { | |
283 | + return deviceMsisdn; | |
284 | + } | |
285 | + | |
286 | + | |
287 | + | |
288 | + /** | |
289 | + * set value of DeviceInfo.deviceMsisdn | |
290 | + * @param deviceMsisdn the deviceMsisdn to set | |
291 | + * @createTime 2014年8月26日 下午3:29:23 | |
292 | + * @author zhangshirui | |
293 | + */ | |
294 | + public void setDeviceMsisdn(String deviceMsisdn) { | |
295 | + this.deviceMsisdn = deviceMsisdn; | |
296 | + } | |
297 | + | |
298 | + | |
299 | + | |
300 | + /* (non-Javadoc) | |
301 | + * @see java.lang.Object#toString() | |
302 | + */ | |
303 | + @Override | |
304 | + public String toString() { | |
305 | + StringBuilder builder = new StringBuilder(); | |
306 | + builder.append("DeviceInfo [id="); | |
307 | + builder.append(id); | |
308 | + builder.append(", userId="); | |
309 | + builder.append(userId); | |
310 | + builder.append(", accountName="); | |
311 | + builder.append(accountName); | |
312 | + builder.append(", deviceId="); | |
313 | + builder.append(deviceId); | |
314 | + builder.append(", deviceSystem="); | |
315 | + builder.append(deviceSystem); | |
316 | + builder.append(", systemVersion="); | |
317 | + builder.append(systemVersion); | |
318 | + builder.append(", systemVendor="); | |
319 | + builder.append(systemVendor); | |
320 | + builder.append(", deviceScreen="); | |
321 | + builder.append(deviceScreen); | |
322 | + builder.append(", deviceBarand="); | |
323 | + builder.append(deviceBarand); | |
324 | + builder.append(", deviceMsisdn="); | |
325 | + builder.append(deviceMsisdn); | |
326 | + builder.append("]"); | |
327 | + return builder.toString(); | |
328 | + } | |
329 | + | |
330 | +} | ... | ... |
mobsite-getway-domain/src/main/java/com/diligrp/mobsite/getway/domain/DicResp.java
0 → 100644
1 | +package com.diligrp.mobsite.getway.domain; | |
2 | + | |
3 | +/** | |
4 | + * Created by david on 2015/7/30. | |
5 | + */ | |
6 | +public class DicResp { | |
7 | + | |
8 | + /** | |
9 | + *字典id | |
10 | + * | |
11 | + * */ | |
12 | + private Long dicId; | |
13 | + | |
14 | + /** | |
15 | + *字典名字 | |
16 | + * */ | |
17 | + private String dicName; | |
18 | + | |
19 | + public Long getDicId() { | |
20 | + return dicId; | |
21 | + } | |
22 | + | |
23 | + public void setDicId(Long dicId) { | |
24 | + this.dicId = dicId; | |
25 | + } | |
26 | + | |
27 | + public String getDicName() { | |
28 | + return dicName; | |
29 | + } | |
30 | + | |
31 | + public void setDicName(String dicName) { | |
32 | + this.dicName = dicName; | |
33 | + } | |
34 | +} | ... | ... |
mobsite-getway-domain/src/main/java/com/diligrp/mobsite/getway/domain/FeedBack.java
0 → 100644
1 | +package com.diligrp.mobsite.getway.domain; | |
2 | + | |
3 | +import com.diligrp.website.util.domain.BaseDomain; | |
4 | + | |
5 | +/** | |
6 | + * <B>Description</B> 反馈意见 <br /> | |
7 | + * <B>Copyright</B> Copyright (c) 2014 www.diligrp.com All rights reserved. <br /> | |
8 | + * 本软件源代码版权归地利集团,未经许可不得任意复制与传播.<br /> | |
9 | + * <B>Company</B> 地利集团 | |
10 | + * | |
11 | + * @author wujianjun | |
12 | + * @createTime 2014/9/24 14:42 | |
13 | + */ | |
14 | +@SuppressWarnings("serial") | |
15 | +public class FeedBack extends BaseDomain { | |
16 | + /** | |
17 | + * android | |
18 | + */ | |
19 | + public static final Integer DEVICE_TYPE_ANDROID = 1; | |
20 | + /** | |
21 | + * ios | |
22 | + */ | |
23 | + public static final Integer DEVICE_TYPE_IOS = 2; | |
24 | + /** | |
25 | + * 已读 | |
26 | + */ | |
27 | + public static final Integer STATUS_READED = 1; | |
28 | + /** | |
29 | + * 未读 | |
30 | + */ | |
31 | + public static final Integer STATUS_UNREAD = 2; | |
32 | + /** | |
33 | + * 反馈类型:反馈 | |
34 | + */ | |
35 | + private static final int TYPE_FEEDBACK = 1; | |
36 | + | |
37 | + | |
38 | + /** | |
39 | + * 反馈的意见内容 | |
40 | + */ | |
41 | + private String content; | |
42 | + /** | |
43 | + * 用户移动设备类型 | |
44 | + * DEVICE_TYPE_* | |
45 | + */ | |
46 | + private Integer deviceType; | |
47 | + /** | |
48 | + * 用户移动设备版本 | |
49 | + */ | |
50 | + private String deviceVersion; | |
51 | + /** | |
52 | + * 反馈类型 TYPE_* | |
53 | + */ | |
54 | + private Integer type = TYPE_FEEDBACK; | |
55 | + /** | |
56 | + * 应用软件版本 | |
57 | + */ | |
58 | + private String appVersion; | |
59 | + /** | |
60 | + * STATUS_* | |
61 | + */ | |
62 | + private Integer status = STATUS_UNREAD; | |
63 | + private Long marketId; | |
64 | + private Long userId; | |
65 | + private String userAccountName; | |
66 | + | |
67 | + /** | |
68 | + * 系统类型 | |
69 | + */ | |
70 | + private String systemType; | |
71 | + | |
72 | + public Integer getType() { | |
73 | + return type; | |
74 | + } | |
75 | + | |
76 | + public void setType(Integer type) { | |
77 | + this.type = type; | |
78 | + } | |
79 | + | |
80 | + public String getContent() { | |
81 | + return content; | |
82 | + } | |
83 | + | |
84 | + public void setContent(String content) { | |
85 | + this.content = content; | |
86 | + } | |
87 | + | |
88 | + public Integer getDeviceType() { | |
89 | + return deviceType; | |
90 | + } | |
91 | + | |
92 | + public void setDeviceType(Integer deviceType) { | |
93 | + this.deviceType = deviceType; | |
94 | + } | |
95 | + | |
96 | + public String getDeviceVersion() { | |
97 | + return deviceVersion; | |
98 | + } | |
99 | + | |
100 | + public void setDeviceVersion(String deviceVersion) { | |
101 | + this.deviceVersion = deviceVersion; | |
102 | + } | |
103 | + | |
104 | + public String getAppVersion() { | |
105 | + return appVersion; | |
106 | + } | |
107 | + | |
108 | + public void setAppVersion(String appVersion) { | |
109 | + this.appVersion = appVersion; | |
110 | + } | |
111 | + | |
112 | + public Integer getStatus() { | |
113 | + return status; | |
114 | + } | |
115 | + | |
116 | + public void setStatus(Integer status) { | |
117 | + this.status = status; | |
118 | + } | |
119 | + | |
120 | + public Long getMarketId() { | |
121 | + return marketId; | |
122 | + } | |
123 | + | |
124 | + public void setMarketId(Long marketId) { | |
125 | + this.marketId = marketId; | |
126 | + } | |
127 | + | |
128 | + public Long getUserId() { | |
129 | + return userId; | |
130 | + } | |
131 | + | |
132 | + public void setUserId(Long userId) { | |
133 | + this.userId = userId; | |
134 | + } | |
135 | + | |
136 | + public String getUserAccountName() { | |
137 | + return userAccountName; | |
138 | + } | |
139 | + | |
140 | + public void setUserAccountName(String userAccountName) { | |
141 | + this.userAccountName = userAccountName; | |
142 | + } | |
143 | + | |
144 | + | |
145 | + /** | |
146 | + * get value of FeedBack.systemType | |
147 | + * @return the systemType | |
148 | + * @createTime 2014年11月26日 下午3:50:15 | |
149 | + * @author zhangshirui | |
150 | + */ | |
151 | + public String getSystemType() { | |
152 | + return systemType; | |
153 | + } | |
154 | + | |
155 | + | |
156 | + /** | |
157 | + * set value of FeedBack.systemType | |
158 | + * @param systemType the systemType to set | |
159 | + * @createTime 2014年11月26日 下午3:50:15 | |
160 | + * @author zhangshirui | |
161 | + */ | |
162 | + public void setSystemType(String systemType) { | |
163 | + this.systemType = systemType; | |
164 | + } | |
165 | + | |
166 | + /* (non-Javadoc) | |
167 | + * @see java.lang.Object#toString() | |
168 | + */ | |
169 | + @Override | |
170 | + public String toString() { | |
171 | + return "FeedBack [content=" + content + ", deviceType=" + deviceType | |
172 | + + ", deviceVersion=" + deviceVersion + ", type=" + type | |
173 | + + ", appVersion=" + appVersion + ", status=" + status | |
174 | + + ", marketId=" + marketId + ", userId=" + userId | |
175 | + + ", userAccountName=" + userAccountName + ", systemType=" | |
176 | + + systemType + "]"; | |
177 | + } | |
178 | +} | ... | ... |
mobsite-getway-domain/src/main/java/com/diligrp/mobsite/getway/domain/GetDicsReq.java
0 → 100644
1 | +package com.diligrp.mobsite.getway.domain; | |
2 | + | |
3 | +/** | |
4 | + * Created by david on 2015/7/30. | |
5 | + */ | |
6 | +public class GetDicsReq { | |
7 | + /*** | |
8 | + * 数据字典的code | |
9 | + * */ | |
10 | + private String code; | |
11 | + | |
12 | + public String getCode() { | |
13 | + return code; | |
14 | + } | |
15 | + | |
16 | + public void setCode(String code) { | |
17 | + this.code = code; | |
18 | + } | |
19 | +} | ... | ... |
mobsite-getway-domain/src/main/java/com/diligrp/mobsite/getway/domain/GetDicsResp.java
0 → 100644
1 | +package com.diligrp.mobsite.getway.domain; | |
2 | + | |
3 | +import com.diligrp.mobsite.getway.domain.protocol.BaseResp; | |
4 | + | |
5 | +import java.util.List; | |
6 | + | |
7 | +/** | |
8 | + * Created by david on 2015/7/30. | |
9 | + */ | |
10 | +public class GetDicsResp extends BaseResp { | |
11 | + | |
12 | + /** | |
13 | + *字典数据集合 | |
14 | + * */ | |
15 | + private List<DicResp> dics; | |
16 | + | |
17 | + public List<DicResp> getDics() { | |
18 | + return dics; | |
19 | + } | |
20 | + | |
21 | + public void setDics(List<DicResp> dics) { | |
22 | + this.dics = dics; | |
23 | + } | |
24 | +} | ... | ... |
mobsite-getway-domain/src/main/java/com/diligrp/mobsite/getway/domain/GradeResp.java
0 → 100644
1 | +package com.diligrp.mobsite.getway.domain; | |
2 | + | |
3 | +/** | |
4 | + * Created by david on 2015/7/30. | |
5 | + */ | |
6 | +public class GradeResp { | |
7 | + | |
8 | + /** | |
9 | + *等级id | |
10 | + * | |
11 | + * */ | |
12 | + private Long gradeId; | |
13 | + | |
14 | + /** | |
15 | + *grade名称 | |
16 | + * */ | |
17 | + private String gradeName; | |
18 | + | |
19 | + /** | |
20 | + *grade 图片 | |
21 | + * */ | |
22 | + private String gradeImg; | |
23 | + | |
24 | + public Long getGradeId() { | |
25 | + return gradeId; | |
26 | + } | |
27 | + | |
28 | + public void setGradeId(Long gradeId) { | |
29 | + this.gradeId = gradeId; | |
30 | + } | |
31 | + | |
32 | + public String getGradeName() { | |
33 | + return gradeName; | |
34 | + } | |
35 | + | |
36 | + public void setGradeName(String gradeName) { | |
37 | + this.gradeName = gradeName; | |
38 | + } | |
39 | + | |
40 | + public String getGradeImg() { | |
41 | + return gradeImg; | |
42 | + } | |
43 | + | |
44 | + public void setGradeImg(String gradeImg) { | |
45 | + this.gradeImg = gradeImg; | |
46 | + } | |
47 | +} | ... | ... |
mobsite-getway-domain/src/main/java/com/diligrp/mobsite/getway/domain/GuardLogMapper.java
0 → 100644
1 | +package com.diligrp.mobsite.getway.domain; | |
2 | + | |
3 | +import com.diligrp.website.util.domain.BaseDomain; | |
4 | + | |
5 | +/** | |
6 | + * Created by david on 2015/7/14. | |
7 | + */ | |
8 | +public class GuardLogMapper extends BaseDomain { | |
9 | + | |
10 | + /** | |
11 | + * 门卫id | |
12 | + * */ | |
13 | + private Long guardId; | |
14 | + | |
15 | + /** | |
16 | + * 门卫名字 | |
17 | + * */ | |
18 | + private String guardName; | |
19 | + | |
20 | + /** | |
21 | + * 状态(-1 登出 1 登入) | |
22 | + * */ | |
23 | + private Integer status; | |
24 | + | |
25 | + public Long getGuardId() { | |
26 | + return guardId; | |
27 | + } | |
28 | + | |
29 | + public void setGuardId(Long guardId) { | |
30 | + this.guardId = guardId; | |
31 | + } | |
32 | + | |
33 | + public String getGuardName() { | |
34 | + return guardName; | |
35 | + } | |
36 | + | |
37 | + public void setGuardName(String guardName) { | |
38 | + this.guardName = guardName; | |
39 | + } | |
40 | + | |
41 | + public Integer getStatus() { | |
42 | + return status; | |
43 | + } | |
44 | + | |
45 | + public void setStatus(Integer status) { | |
46 | + this.status = status; | |
47 | + } | |
48 | + | |
49 | + @Override | |
50 | + public String toString() { | |
51 | + return "GuardLogMapper{" + | |
52 | + "guardId=" + guardId + | |
53 | + ", guardName='" + guardName + '\'' + | |
54 | + ", status=" + status + | |
55 | + '}'; | |
56 | + } | |
57 | +} | ... | ... |
mobsite-getway-domain/src/main/java/com/diligrp/mobsite/getway/domain/RegisterNoMapper.java
0 → 100644
1 | +package com.diligrp.mobsite.getway.domain; | |
2 | + | |
3 | +import com.diligrp.website.util.domain.BaseDomain; | |
4 | + | |
5 | +/** | |
6 | + * <B>Description</B> <br /> | |
7 | + * <B>Copyright</B> Copyright (c) 2014 www.diligrp.com All rights reserved. <br /> | |
8 | + * 本软件源代码版权归地利集团,未经许可不得任意复制与传播.<br /> | |
9 | + * <B>Company</B> 地利集团 | |
10 | + * | |
11 | + * @createTime 2014-10-16 10:52:44 | |
12 | + * @author template | |
13 | + */ | |
14 | +@SuppressWarnings("serial") | |
15 | +public class RegisterNoMapper extends BaseDomain { | |
16 | + | |
17 | + /** | |
18 | + * 极光推送 | |
19 | + */ | |
20 | + public static final Integer SYS_FLAG_JPUSH = 1; | |
21 | + /** | |
22 | + * 用户id | |
23 | + */ | |
24 | + private Long userid; | |
25 | + /** | |
26 | + * 注册ID | |
27 | + */ | |
28 | + private String registerNo; | |
29 | + /** | |
30 | + * 1:极光推送 | |
31 | + */ | |
32 | + private Integer sysFlag; | |
33 | + | |
34 | + /** | |
35 | + * 设备类型 | |
36 | + */ | |
37 | + private Integer deviceType; | |
38 | + | |
39 | + public void setUserid(Long userid) { | |
40 | + this.userid = userid; | |
41 | + } | |
42 | + | |
43 | + public Long getUserid() { | |
44 | + return this.userid; | |
45 | + } | |
46 | + | |
47 | + public void setRegisterNo(String registerNo) { | |
48 | + this.registerNo = registerNo; | |
49 | + } | |
50 | + | |
51 | + public String getRegisterNo() { | |
52 | + return this.registerNo; | |
53 | + } | |
54 | + | |
55 | + public void setSysFlag(Integer sysFlag) { | |
56 | + this.sysFlag = sysFlag; | |
57 | + } | |
58 | + | |
59 | + public Integer getSysFlag() { | |
60 | + return this.sysFlag; | |
61 | + } | |
62 | + | |
63 | + public Integer getDeviceType() { | |
64 | + return deviceType; | |
65 | + } | |
66 | + | |
67 | + public void setDeviceType(Integer deviceType) { | |
68 | + this.deviceType = deviceType; | |
69 | + } | |
70 | + | |
71 | + public String toString() { | |
72 | + StringBuffer sb = new StringBuffer(); | |
73 | + sb.append("RegisterNoMapper ["); | |
74 | + sb.append("id = "); | |
75 | + sb.append(id); | |
76 | + sb.append(", userid = "); | |
77 | + sb.append(userid); | |
78 | + sb.append(", registerNo = "); | |
79 | + sb.append(registerNo); | |
80 | + sb.append(", sysFlag = "); | |
81 | + sb.append(sysFlag); | |
82 | + sb.append(", deviceType = "); | |
83 | + sb.append(deviceType); | |
84 | + sb.append(", yn = "); | |
85 | + sb.append(yn); | |
86 | + sb.append(", created = "); | |
87 | + sb.append(created); | |
88 | + sb.append(", modified = "); | |
89 | + sb.append(modified); | |
90 | + sb.append("]"); | |
91 | + return sb.toString(); | |
92 | + } | |
93 | +} | |
0 | 94 | \ No newline at end of file | ... | ... |
mobsite-getway-domain/src/main/java/com/diligrp/mobsite/getway/domain/base/BaseDomain.java
0 → 100644
1 | + | |
2 | +package com.diligrp.mobsite.getway.domain.base; | |
3 | + | |
4 | +/** | |
5 | + * 基类 | |
6 | + * @createTime 2015年7月31日 | |
7 | + * @author zhangshirui | |
8 | + */ | |
9 | + | |
10 | +public class BaseDomain implements java.io.Serializable{ | |
11 | + | |
12 | + private Long id; | |
13 | + | |
14 | + private String name; | |
15 | + | |
16 | + public Long getId() { | |
17 | + return id; | |
18 | + } | |
19 | + | |
20 | + public void setId(Long id) { | |
21 | + this.id = id; | |
22 | + } | |
23 | + | |
24 | + public String getName() { | |
25 | + return name; | |
26 | + } | |
27 | + | |
28 | + public void setName(String name) { | |
29 | + this.name = name; | |
30 | + } | |
31 | +} | |
32 | + | ... | ... |
mobsite-getway-domain/src/main/java/com/diligrp/mobsite/getway/domain/base/BaseListReq.java
0 → 100644
1 | + | |
2 | +package com.diligrp.mobsite.getway.domain.base; | |
3 | + | |
4 | +import com.diligrp.mobsite.getway.domain.protocol.BaseReq; | |
5 | + | |
6 | +/** | |
7 | + * 列表请求基类 | |
8 | + * | |
9 | + * @createTime 2015年8月3日 | |
10 | + * @author zhangshirui | |
11 | + */ | |
12 | + | |
13 | +public class BaseListReq extends BaseReq { | |
14 | + | |
15 | + /** | |
16 | + * | |
17 | + */ | |
18 | + private static final long serialVersionUID = -6760811572957876270L; | |
19 | + | |
20 | + /** | |
21 | + * 页码 | |
22 | + */ | |
23 | + private Integer pageNum; | |
24 | + | |
25 | + public Integer getPageNum() { | |
26 | + return pageNum; | |
27 | + } | |
28 | + | |
29 | + public void setPageNum(Integer pageNum) { | |
30 | + this.pageNum = pageNum; | |
31 | + } | |
32 | +} | ... | ... |
mobsite-getway-domain/src/main/java/com/diligrp/mobsite/getway/domain/base/BaseListResp.java
0 → 100644
1 | + | |
2 | +package com.diligrp.mobsite.getway.domain.base; | |
3 | + | |
4 | +import com.diligrp.mobsite.getway.domain.protocol.BaseResp; | |
5 | + | |
6 | +/** | |
7 | + * 列表基类 | |
8 | + * @createTime 2015年7月31日 | |
9 | + * @author zhangshirui | |
10 | + */ | |
11 | + | |
12 | +public class BaseListResp extends BaseResp { | |
13 | + | |
14 | + /** | |
15 | + * 最大页码 | |
16 | + */ | |
17 | + private Integer maxPageNum; | |
18 | + | |
19 | + public Integer getMaxPageNum() { | |
20 | + return maxPageNum; | |
21 | + } | |
22 | + | |
23 | + public void setMaxPageNum(Integer maxPageNum) { | |
24 | + this.maxPageNum = maxPageNum; | |
25 | + } | |
26 | +} | |
27 | + | ... | ... |
mobsite-getway-domain/src/main/java/com/diligrp/mobsite/getway/domain/base/BaseTree.java
0 → 100644
1 | + | |
2 | +package com.diligrp.mobsite.getway.domain.base; | |
3 | + | |
4 | +import java.util.List; | |
5 | + | |
6 | +/** | |
7 | + * 基类树形 | |
8 | + * @createTime 2015年7月31日 | |
9 | + * @author zhangshirui | |
10 | + */ | |
11 | + | |
12 | +public class BaseTree extends BaseDomain{ | |
13 | + | |
14 | + /** | |
15 | + * 父id | |
16 | + */ | |
17 | + private Long pid; | |
18 | + /** | |
19 | + * 是否有下一级 1: 有 2 : 没有 | |
20 | + */ | |
21 | + private Integer hasNext; | |
22 | + /** | |
23 | + * | |
24 | + */ | |
25 | + private List<BaseTree> trees; | |
26 | + | |
27 | + public List<BaseTree> getTrees() { | |
28 | + return trees; | |
29 | + } | |
30 | + public void setTrees(List<BaseTree> trees) { | |
31 | + this.trees = trees; | |
32 | + } | |
33 | + public Long getPid() { | |
34 | + return pid; | |
35 | + } | |
36 | + public void setPid(Long pid) { | |
37 | + this.pid = pid; | |
38 | + } | |
39 | + public Integer getHasNext() { | |
40 | + return hasNext; | |
41 | + } | |
42 | + public void setHasNext(Integer hasNext) { | |
43 | + this.hasNext = hasNext; | |
44 | + } | |
45 | + | |
46 | +} | |
47 | + | ... | ... |
mobsite-getway-domain/src/main/java/com/diligrp/mobsite/getway/domain/common/Constant.java
0 → 100644
1 | +package com.diligrp.mobsite.getway.domain.common; | |
2 | + | |
3 | + | |
4 | +/** | |
5 | + * <B>Description</B> 基础常量 <br /> | |
6 | + * <B>Copyright</B> Copyright (c) 2014 www.diligrp.com All rights reserved. <br /> | |
7 | + * 本软件源代码版权归地利集团,未经许可不得任意复制与传播.<br /> | |
8 | + * <B>Company</B> 地利集团 | |
9 | + * @createTime 2014年10月25日 下午2:35:54 | |
10 | + * @author zhangshirui | |
11 | + */ | |
12 | +public class Constant { | |
13 | + | |
14 | + public static final String CHARSET_UTF8 = "UTF-8"; | |
15 | + | |
16 | + public static final String PRICE_UNIT_YUAN = "元"; | |
17 | + public static final String COMMON_COMMA_STR_EN = ","; | |
18 | + public static final String COMMON_COMMA_STR_ZH = ","; | |
19 | + public static final String COMMON_COLON = ":"; | |
20 | + public static final String COMMON_DOT = "."; | |
21 | + public static final String COMMON_DASH = "-"; | |
22 | + public static final String SLASH_STR = "/"; | |
23 | + public static final String WAVE_LINE= "~"; | |
24 | + public static final String BLANK_SPACE=" "; | |
25 | + public static final String BLANK=""; | |
26 | + public static final String COMMON_NUM_ONE = "1"; | |
27 | + public static final String COMMON_NUM_TWO = "2"; | |
28 | + public static final String COMMON_NUM_THREE = "3"; | |
29 | + public static final String COMMON_NUM_FOUR = "4"; | |
30 | + public static final String COMMON_SHOP = "shop"; | |
31 | + | |
32 | + public static final int LIST_EMPTY_SIZE = 0; | |
33 | + | |
34 | + public static final int RESPONSE_SUCCESS_CODE_ONE = 1; | |
35 | + //线下付款 | |
36 | + public static final String DIC_SMS_CONTENT_ORDER_REMITTANCE = "SMS_CONTENT_ORDER_REMITTANCE"; | |
37 | + //提货付款 | |
38 | + public static final String DIC_SMS_CONTENT_ORDER_DELIVERY = "SMS_CONTENT_ORDER_DELIVERY"; | |
39 | + | |
40 | + //短信内容 | |
41 | + public static final String DIC_SMS_CONTENT = "DIC_SMS_CONTENT"; | |
42 | + public static final String SMS_CONTENT_MODIFY_OLD_PHONE = "SMS_CONTENT_MODIFY_OLD_PHONE";//修改电话 | |
43 | + public static final String SMS_CONTENT_ACCOUNT_REGISTRATION = "SMS_CONTENT_ACCOUNT_REGISTRATION";//账户注册 | |
44 | + public static final String SMS_CONTENT_RETRIEVE_PASSWORD = "SMS_CONTENT_RETRIEVE_PASSWORD";//找回密码 | |
45 | + public static final String SMS_CONTENT_DEFAULT = "尊敬的用户,您的校验码为 {code}。请及时激活您的账户并完善资料。"; | |
46 | + | |
47 | + public static final String DILI_SELF_STR = "地利自营"; | |
48 | + | |
49 | + /** | |
50 | + * 全局常量 | |
51 | + */ | |
52 | + public static final int COMMON_YES_1 = 1;//是 | |
53 | + public static final int COMMON_NO_2 = 2;//否 | |
54 | + public static final int COMMON_YN_VALID_YES = 1;//有效 | |
55 | + public static final int COMMON_TOP_LEVEL = 0;//树形顶级id | |
56 | + /** | |
57 | + * 升级变量 | |
58 | + */ | |
59 | + public static final int LEVEL_IGNORE = 0;//0-不升级 | |
60 | + public static final int LEVEL_FORCED = 1;//1-强制升级 | |
61 | + public static final int LEVEL_UPGRADE = 2;//2-可升级 | |
62 | + | |
63 | + /** | |
64 | + * 首页常量 | |
65 | + */ | |
66 | + public static final String MOBILE_CATEGORY = "MOBILE_CATEGORY"; | |
67 | + public static final String TOPIC_CATEGORY = "TOPIC_CATEGORY"; | |
68 | + | |
69 | + /** | |
70 | + * 订单常量 | |
71 | + */ | |
72 | + public static final String ORDER_REPLACE_DATE = "#date#"; | |
73 | + public static final String ORDER_REPLACE_DATE2 = "#date2#"; | |
74 | + public static final String ORDER_REPLACE_MONEY = "#MONEY#"; | |
75 | + public static final String ORDER_REPLACE_SHIPINFO = "#SHIPINFO#"; | |
76 | + | |
77 | + public static final int ORDER_COMMENTED_YES = 1;//已经评价 | |
78 | + public static final int ORDER_COMMENTED_NO = 0;//未评价 | |
79 | + public static final String ORDER_AGREEMENT_URL = "//agreement//credit_agreement.html"; | |
80 | + public static final String NOTICE_URL = "//agreement//notice.html"; | |
81 | + public static final String ORDER_AGREEMENT_FIRST_PART = "甲方"; | |
82 | + public static final String ORDER_AGREEMENT_TWO_PART = "乙方"; | |
83 | + | |
84 | + public static final String ORDER_STATE_REFUND_DESC = "卖家同意退款,请自行联系卖家协商退款方式"; | |
85 | + public static final String ORDER_STATE_SPOT_WAIT_PAY = "请在市场内付款给卖家,并及时提取您的货物"; | |
86 | + | |
87 | + /** | |
88 | + * 搜索常量 | |
89 | + */ | |
90 | + public static final int SEARCH_CLIENT_ANDROID = 2;//Android客户端 | |
91 | + public static final int SEARCH_CLIENT_IOS = 3;//IOS客户端 | |
92 | + | |
93 | + public static final int SEARCH_HOT_TYPE_ALL = 1;//全站热销 | |
94 | + public static final int SEARCH_HOT_TYPE_CATEGORY = 2;//类目热销 | |
95 | + public static final int SEARCH_HOT_TYPE_SEARCH = 3;//搜索热销 | |
96 | + public static final int SEARCH_HOT_TYPE_SHOP = 4;//店铺热销 | |
97 | + | |
98 | + public static final int SEARCH_RETURN_NUM_FOUR = 4;//返回数量 | |
99 | + public static final int SEARCH_RETURN_NUM_EIGHT = 8; | |
100 | + | |
101 | + //统计类型 | |
102 | + public static final int STATISTIC_RESULT_TYPE_PRODUCT_SALES_VOLUME = 1;//商品销售量统计 | |
103 | + public static final int STATISTIC_RESULT_TYPE_PRODUCT_TRADE_VOLUME = 2;//商品交易量统计 | |
104 | + public static final int STATISTIC_RESULT_TYPE_SHOP_PRODUCT_NUM = 3;//店铺交易量统计 | |
105 | + public static final int STATISTIC_RESULT_TYPE_SHOP_TRADE_VOLUME = 4;//店铺交易量统计 | |
106 | + | |
107 | + //统计类型:(1:订单成交数量;2:商品发布数量;3:供应消息数量;4: 求购信息数量,5: 预售信息数量) | |
108 | + public static final int STATISTIC_HOME_ORDER_NUM = 1;//订单成交数量 | |
109 | + public static final int STATISTIC_HOME_PRODUCT_NUM = 2;//商品发布数量 | |
110 | + public static final int STATISTIC_HOME_SUPPLY_NUM = 3;//供应消息数量 | |
111 | + public static final int STATISTIC_HOME_PURCHASE_NUM = 4;//求购信息数量 | |
112 | + public static final int STATISTIC_HOME_PRESALE_NUM = 5;//预售信息数量 | |
113 | + | |
114 | + /** | |
115 | + * 进货单 | |
116 | + */ | |
117 | + public static final int CART_ADD_NORMAL_CART = 1;//1.普通支付 | |
118 | + public static final int CART_ADD_CREDIT_CART = 2;//2.赊账支付 | |
119 | + public static final int CART_ADD_SPECIAL_CART = 3;//3.特价商品 | |
120 | + | |
121 | + /** | |
122 | + * 用户 | |
123 | + */ | |
124 | + public static final int USER_TYPE_PERSONAL = 1; | |
125 | + public static final int USER_TYPE_COMPANY = 2; | |
126 | + public static final int USER_AUTH_RESULT_NOTAUTH = 100;//未认证 | |
127 | + public static final int USER_STATE_LOCKED = 3; | |
128 | + public static final String USER_AUTH_TYPE_PERSON_ID = "身份证号:"; | |
129 | + public static final String USER_AUTH_TYPE_ENTERPRISE_NO = "工商注册号:"; | |
130 | + | |
131 | + public static final String USER_REGISTER_PASS_KEY = "USER_REGISTER_PASS_KEY"; | |
132 | + | |
133 | + public static final String DIC_COUSTOM_TYPE = "DIC_COUSTOM_TYPE"; | |
134 | + | |
135 | + /** | |
136 | + * 店铺 | |
137 | + */ | |
138 | + public static final int SHOP_CREDIT_STATE_NO = 1;//关闭 | |
139 | + public static final int SHOP_CREDIT_STATE_YES = 2;//开启 | |
140 | + public static final int SHOP_CREDIT_STATE_NEVER = 3;//从未开启 | |
141 | + | |
142 | + /** | |
143 | + * 消息 | |
144 | + */ | |
145 | + public static final String MESSAGE_APPLYMSG_NAME = "供应"; | |
146 | + public static final String MESSAGE_WANTBUYMSG_NAME = "求购"; | |
147 | + public static final String MESSAGE_PRESALEMSG_NAME = "预售"; | |
148 | + | |
149 | + public static final int USER_IDENTITY_TIME = 3; | |
150 | + | |
151 | + public static final String COMMON_CLIENT_SERVICE_HOT_LINE = "Client_Service_Hot_Line"; | |
152 | + | |
153 | + public static final String PNR_APP_HOME_MULTIPLIER_NUM = "PNR_APP_HOME_MULTIPLIER_NUM"; | |
154 | + | |
155 | + /** | |
156 | + * 数据字典 | |
157 | + */ | |
158 | + public static final String CONFIG_SHOP_MANAGE_TYPE = "SHOP_MANAGE_TYPE"; | |
159 | + public static final String NOTICE_CODE = "NOTICE_YES"; | |
160 | + public static final String IS_SHOW_NOTICE = "IS_SHOW_NOTICE"; | |
161 | + | |
162 | + public static final String DIC_CLAIMS_APPLY_REASON="DIC_CLAIMS_APPLY_REASON"; | |
163 | + public static final String DIC_CLAIMS_REQUIRE = "DIC_CLAIMS_REQUIRE"; | |
164 | + public static final String CLIENT_SOURCE = "CLIENT_SOURCE"; | |
165 | + /** | |
166 | + * 代购订单使用 | |
167 | + */ | |
168 | + public static final Long OPERATOR_ROLE_BUYER = 10L; //操作人角色 10买家 | |
169 | + public static final Long OPERATOR_ROLE_SELLER = 20L; //操作人角色 20卖家 | |
170 | + /** 是否选择代找物流:1-是,2-否*/ | |
171 | + public static final Integer QUERYPARAM_ISAGENTLOGISTICS_YES = 1; | |
172 | + public static final Integer QUERYPARAM_ISAGENTLOGISTICS_NO = 0; | |
173 | + | |
174 | + | |
175 | + | |
176 | +} | ... | ... |
mobsite-getway-domain/src/main/java/com/diligrp/mobsite/getway/domain/common/ErrorMessage.java
0 → 100644
1 | +package com.diligrp.mobsite.getway.domain.common; | |
2 | + | |
3 | + | |
4 | +/** | |
5 | + * <B>Description</B> 错误提示信息 <br /> | |
6 | + * <B>Copyright</B> Copyright (c) 2015 www.diligrp.com All rights reserved. <br /> | |
7 | + * 本软件源代码版权归地利集团,未经许可不得任意复制与传播.<br /> | |
8 | + * <B>Company</B> 地利集团 | |
9 | + * @createTime 2015年3月26日 下午5:19:05 | |
10 | + * @author zhangshirui | |
11 | + */ | |
12 | +public final class ErrorMessage { | |
13 | + | |
14 | + public static final String COMMON_REQUEST_PARAM_ERROR = "请求参数不合格"; | |
15 | + | |
16 | + public static final String NETWORK_ERROR = "网络异常,请检查您的网络稍后重试"; | |
17 | + | |
18 | + public static final String NETWORK_ERROR_NEW = "连接超时,调用接口失败"; | |
19 | + | |
20 | + public static final String SHOULD_UPDATE = "App版本太旧无法开店,请升级或去网站开店"; | |
21 | + | |
22 | + public static final String ORDER_PRODUCT_STATE_CHANGE = "商品状态变化,请重新选择"; | |
23 | + public static final String ORDER_STATE_CHANGE = "操作失败,订单状态已变更,请刷新后再操作"; | |
24 | + public static final String ORDER_REFUND_OVER2 = "提交失败,每个订单最多只能申请两次退款"; | |
25 | + public static final String ORDER_REFUND_APPEAL_OVER2 = "提交失败,每个订单最多只能申请两次退款申诉"; | |
26 | + public static final String ORDER_REFUND_APPLEAL_OLD = "该订单已发起了新的一次退款申请,请选择最新的退款单进行退款申诉"; | |
27 | + public static final String ORDER_SPECIAL_HAS_BUYED = "特价商品只能购买一次,您已购买过,请勿再次购买!"; | |
28 | + public static final String SPECIAL_PRODUCT_ONLY_PAY_ONLINE = "特价商品只能使用线上支付方式付款!"; | |
29 | + public static final String ORDER_PRODUCT_STATE_NO_DELIVERY = "订单中存在不允许进行交割的商品!"; | |
30 | + public static final String ORDER_PRODUCT_NO_SELL = "该商品不在售!"; | |
31 | + | |
32 | + /** | |
33 | + * 商品 | |
34 | + */ | |
35 | + public static final String PRODUCT_BUYNUM_LESS_THAN_LEAST = "购买量不能低于最低起批量"; | |
36 | + public static final String PRODUCT_BUYNUM_MORE_THAN_STOCK = "库存不足,请重新选择"; | |
37 | + public static final String PRODUCT_STATE_DOWNORDEL = "商品已下架,请重新选择"; | |
38 | + public static final String PRODUCT_STATE_SOLDOUT = "商品已售罄,请重新选择"; | |
39 | + public static final String PRODUCT_NOT_EXIST = "商品已经不存在,请重新选择"; | |
40 | + public static final String PRODUCT_STATE_CHANGE = "商品状态已变化,请重新购买"; | |
41 | + | |
42 | + /** | |
43 | + * 用户 | |
44 | + */ | |
45 | + public static final String USER_NOT_LOGIN = "用户没有登录,请登录"; | |
46 | + public static final String USER_LOGIN_MULTI = "你的账号在其他设备登录,您被迫下线!"; | |
47 | + public static final String USER_NOT_EXIST = "用户信息不存在,请重新操作"; | |
48 | + public static final String USER_PASSWORD_WRONG = "原始密码输入错误,请重新输入"; | |
49 | + public static final String USER_MOBILE_EXIST = "手机号码已经存在,请重新输入"; | |
50 | + public static final String USER_MOBILE_NOT_EXIST = "用户不存在,请重新输入"; | |
51 | + public static final String USER_CONSIGNEE_SET_DEFAULT_FAILED = "设置默认提货人失败"; | |
52 | + public static final String USER_AUTH_USER_PASS = "您提交的身份证号已经被认证"; | |
53 | + public static final String USER_AUTH_ENTERPRISE_PASS = "每个企业仅能注册一次"; | |
54 | + public static final String USER_AUTH_FAILED = "认证失败,请重新认证"; | |
55 | + public static final String USER_IDENTITY_OVER_THREE = "每个账户每天只允许提交3次认证申请"; | |
56 | + public static final String USER_NICK_NAME_EXIST = "该昵称已经存在,请重新输入"; | |
57 | + public static final String USER_AUTH_CODE_EMPTY = "验证码为空,请输入证码"; | |
58 | + public static final String USER_AUTH_CODE_OVERTIME = "验证码已过期,请重新获取"; | |
59 | + public static final String USER_AUTH_CODE_WRONG = "验证码错误,请重新输入"; | |
60 | + | |
61 | + public static final String USER_STATE_LOCKED = "您的账户已经被锁定,请联系客服人员"; | |
62 | + | |
63 | + public static final String SELLER_NOT_OPEN_SHOP ="您还未开通店铺,请到网站进行开通"; | |
64 | + public static final String SELLER_SHOP_NOT_AUDIT ="您的店铺还未审核通过,请等待审核"; | |
65 | + public static final String USER_FAVORITE_ADD_ERROR ="添加收藏失败,请重新操作"; | |
66 | + | |
67 | + | |
68 | + | |
69 | + /** | |
70 | + * 店铺 | |
71 | + */ | |
72 | + public static final String SHOP_NOT_EXIST = "该店铺已经不存在"; | |
73 | + | |
74 | + | |
75 | + /** | |
76 | + * 进货单赊账提示 | |
77 | + */ | |
78 | + public static final String CART_CREDIT_NO_AUTH = "当前商品暂不支持赊账支付,请与卖家联系"; | |
79 | + | |
80 | +} | ... | ... |
mobsite-getway-domain/src/main/java/com/diligrp/mobsite/getway/domain/common/Page.java
0 → 100644
1 | +/* | |
2 | + * Copyright (c) 2014 www.diligrp.com All rights reserved. | |
3 | + * 本软件源代码版权归----所有,未经许可不得任意复制与传播. | |
4 | + */ | |
5 | +package com.diligrp.mobsite.getway.domain.common; | |
6 | + | |
7 | +import java.util.ArrayList; | |
8 | +import java.util.List; | |
9 | + | |
10 | +import com.diligrp.mobsite.getway.domain.protocol.BaseResp; | |
11 | + | |
12 | +/** | |
13 | + * 分页对象 | |
14 | + * @author dev-center | |
15 | + * @since 2014-05-15 | |
16 | + * @param <T> 实体 | |
17 | + */ | |
18 | +public class Page<T> extends BaseResp{ | |
19 | + //初始化size | |
20 | + private final static int INIT_SIZE = 10; | |
21 | + private int pageSize = INIT_SIZE; | |
22 | + private int totalCount; | |
23 | + private int currentPage; | |
24 | + private List<T> data = new ArrayList<>(); | |
25 | + | |
26 | + public Page() { | |
27 | + // 默认构造器 | |
28 | + } | |
29 | + | |
30 | + public Page(int currentPage) { | |
31 | + this.currentPage = currentPage; | |
32 | + } | |
33 | + | |
34 | + public Page(int currentPage, int pageSize) { | |
35 | + this.currentPage = currentPage; | |
36 | + this.pageSize = pageSize; | |
37 | + } | |
38 | + | |
39 | + /** | |
40 | + * 获取开始索引 | |
41 | + * @return | |
42 | + */ | |
43 | + public int getStartIndex() { | |
44 | + return (getCurrentPage() - 1) * this.pageSize; | |
45 | + } | |
46 | + | |
47 | + /** | |
48 | + * 获取结束索引 | |
49 | + * @return | |
50 | + */ | |
51 | + public int getEndIndex() { | |
52 | + return getCurrentPage() * this.pageSize; | |
53 | + } | |
54 | + | |
55 | + /** | |
56 | + * 是否第一页 | |
57 | + * @return | |
58 | + */ | |
59 | + public boolean isFirstPage() { | |
60 | + return getCurrentPage() <= 1; | |
61 | + } | |
62 | + | |
63 | + /** | |
64 | + * 是否末页 | |
65 | + * @return | |
66 | + */ | |
67 | + public boolean isLastPage() { | |
68 | + return getCurrentPage() >= getPageCount(); | |
69 | + } | |
70 | + | |
71 | + /** | |
72 | + * 获取下一页页码 | |
73 | + * @return | |
74 | + */ | |
75 | + public int getNextPage() { | |
76 | + if (isLastPage()) { | |
77 | + return getCurrentPage(); | |
78 | + } | |
79 | + return getCurrentPage() + 1; | |
80 | + } | |
81 | + | |
82 | + /** | |
83 | + * 获取上一页页码 | |
84 | + * @return | |
85 | + */ | |
86 | + public int getPreviousPage() { | |
87 | + if (isFirstPage()) { | |
88 | + return 1; | |
89 | + } | |
90 | + return getCurrentPage() - 1; | |
91 | + } | |
92 | + | |
93 | + /** | |
94 | + * 获取当前页页码 | |
95 | + * @return | |
96 | + */ | |
97 | + public int getCurrentPage() { | |
98 | + if (currentPage == 0) { | |
99 | + currentPage = 1; | |
100 | + } | |
101 | + return currentPage; | |
102 | + } | |
103 | + | |
104 | + /** | |
105 | + * 取得总页数 | |
106 | + * @return | |
107 | + */ | |
108 | + public int getPageCount() { | |
109 | + if (totalCount % pageSize == 0) { | |
110 | + return totalCount / pageSize; | |
111 | + } else { | |
112 | + return totalCount / pageSize + 1; | |
113 | + } | |
114 | + } | |
115 | + | |
116 | + /** | |
117 | + * 取总记录数. | |
118 | + * @return | |
119 | + */ | |
120 | + public int getTotalCount() { | |
121 | + return this.totalCount; | |
122 | + } | |
123 | + | |
124 | + /** | |
125 | + * 设置当前页 | |
126 | + * @param currentPage | |
127 | + */ | |
128 | + public void setCurrentPage(int currentPage) { | |
129 | + this.currentPage = currentPage; | |
130 | + } | |
131 | + | |
132 | + /** | |
133 | + * 获取每页数据容量. | |
134 | + * @return | |
135 | + */ | |
136 | + public int getPageSize() { | |
137 | + return pageSize; | |
138 | + } | |
139 | + | |
140 | + public void setPageSize(int pageSize) { | |
141 | + this.pageSize = pageSize; | |
142 | + } | |
143 | + /** | |
144 | + * 该页是否有下一页. | |
145 | + * @return | |
146 | + */ | |
147 | + public boolean hasNextPage() { | |
148 | + return getCurrentPage() < getPageCount(); | |
149 | + } | |
150 | + | |
151 | + /** | |
152 | + * 该页是否有上一页. | |
153 | + * @return | |
154 | + */ | |
155 | + public boolean hasPreviousPage() { | |
156 | + return getCurrentPage() > 1; | |
157 | + } | |
158 | + | |
159 | + /** | |
160 | + * 获取数据集 | |
161 | + * @return | |
162 | + */ | |
163 | + public List<T> getResult() { | |
164 | + return data; | |
165 | + } | |
166 | + | |
167 | + /** | |
168 | + * 设置数据集 | |
169 | + * @param data | |
170 | + */ | |
171 | + public void setResult(List<T> data) { | |
172 | + this.data = data; | |
173 | + } | |
174 | + | |
175 | + /** | |
176 | + * 设置总记录条数 | |
177 | + * @param totalCount | |
178 | + */ | |
179 | + public void setTotalCount(int totalCount) { | |
180 | + this.totalCount = totalCount; | |
181 | + } | |
182 | + //==============扩展字段===============// | |
183 | + private String unit = "条";//单位 | |
184 | + private String extInfo;//扩展信息 | |
185 | + public void setUnit(String unit) { | |
186 | + this.unit = unit; | |
187 | + } | |
188 | + public String getUnit() { | |
189 | + return unit; | |
190 | + } | |
191 | + public void setExtInfo(String extInfo) { | |
192 | + this.extInfo = extInfo; | |
193 | + } | |
194 | + public String getExtInfo() { | |
195 | + return extInfo; | |
196 | + } | |
197 | +} | ... | ... |
mobsite-getway-domain/src/main/java/com/diligrp/mobsite/getway/domain/common/RedisKey.java
0 → 100644
1 | +package com.diligrp.mobsite.getway.domain.common; | |
2 | + | |
3 | +/** | |
4 | + * <B>Description</B> redis <br /> | |
5 | + * <B>Copyright</B> Copyright (c) 2014 www.diligrp.com All rights reserved. <br /> | |
6 | + * 本软件源代码版权归地利集团,未经许可不得任意复制与传播.<br /> | |
7 | + * <B>Company</B> 地利集团 | |
8 | + * | |
9 | + * @author zhangshirui | |
10 | + * @createTime 2014/10/23 17:46 | |
11 | + */ | |
12 | +public final class RedisKey { | |
13 | + public static final int USER_EXPIRE_TIME = 5*60; | |
14 | + public static final int REGISTERNO_EXPIRE_TIME = 30*24*60*60; | |
15 | + | |
16 | + public static final int USER_SEND_VERICODE_EXPIRE_TIME = 10*60;//发送验证码失效时间,10分钟 | |
17 | + | |
18 | + public static final String PNR_GETWAY = "PNR_GETWAY"; | |
19 | + | |
20 | + //登录信息 | |
21 | + public static final String USER_LOGININFO = PNR_GETWAY+":USER:LOGININFO"; | |
22 | + public static final String USER_DEVICEID = PNR_GETWAY+":USER:DEVICEID"; | |
23 | + public static final String USER_REGISTERNO = PNR_GETWAY+":USER:REGISTERNO"; | |
24 | + | |
25 | + //门卫登录信息 | |
26 | + public static final String GUARD_LOGININFO = PNR_GETWAY+":GUARD:LOGININFO"; | |
27 | + | |
28 | + //门卫登录session | |
29 | + public static final String GUARD_SESSSION = PNR_GETWAY+":GUARD:SESSSION"; | |
30 | + | |
31 | + public static final String USER = PNR_GETWAY+":USER"; | |
32 | + public static final String USER_AUTH_CODE_REGISTER = USER+":AUTH_CODE_REGISTER";//注册验证码 | |
33 | + public static final String USER_AUTH_CODE_MODIFY_PWD_AND_PHONE = USER+":USER_AUTH_CODE_MODIFY_PWD_AND_PHONE";//修改密码 | |
34 | + | |
35 | + public static final String USER_INFO = USER+":DILI_USER_INFO"; | |
36 | + public static final String USER_IDENTITY_AUTH = USER + ":IDENTITY_AUTH";//个人认证 | |
37 | + public static final String REAL_AUTH_LIMIT_KEY = "REAL_AUTH_LIMIT_KEY";//个人认证次数key | |
38 | + | |
39 | + public static final String USER_AUTH_CODE = USER+":AUTH_CODE"; | |
40 | + | |
41 | + //延迟退出 暂时未调用 | |
42 | + public static final String LOGOUT = PNR_GETWAY+":LOGOUT"; | |
43 | + //订单cookieValue | |
44 | + public static final String COOKIE_VALUE = PNR_GETWAY+":COOKIE_VALUE"; | |
45 | + | |
46 | + //根据城市ID获取提货点 | |
47 | + public static final int GETPICKUPLISTBYCITYID_TIME = 10*60; | |
48 | + | |
49 | + //专题标题 | |
50 | + public static final int TOPIC_EXPIRE_TIME = 10; | |
51 | + public static final String TOPIC_BAR = PNR_GETWAY+":TOPIC:BAR"; | |
52 | + public static final String TOPIC_CATEGORY = PNR_GETWAY+":TOPIC:CATEGORY";//专题标题 | |
53 | + | |
54 | + //商品缓存 | |
55 | + public static final int PRODUCT_EXPIRE_TIME = 3*60; | |
56 | + public static final String PRODUCT = PNR_GETWAY+":PRODUCT"; | |
57 | + public static final String PRODUCT_PRODUCTDETAIL = PRODUCT+":PRODUCT_DETAIL"; | |
58 | + public static final String PRODUCT_CATEGORY = PRODUCT+":PRODUCT_CATEGORY"; | |
59 | + | |
60 | + /** | |
61 | + * 订单缓存 | |
62 | + */ | |
63 | + public static final int ORDER_EXPIRE_TIME = 10; | |
64 | + public static final String ORDER = PNR_GETWAY + ":ORDER"; | |
65 | + public static final String ORDER_SUM_INFO = ORDER + ":SUM_INFO"; | |
66 | + public static final String ORDER_AGREEMENT = ORDER + ":AGREEMENT"; | |
67 | + | |
68 | + /** | |
69 | + * 配置缓存,config | |
70 | + */ | |
71 | + public static final int CONFIG_EXPIRE_TIME = 3*60*60; | |
72 | + public static final String CONFIG = PNR_GETWAY+":CONFIG"; | |
73 | + public static final String CONFIG_PROVINCE_CITY_ADDRESS = CONFIG+":PROVINCE_CITY_ADDRESS"; | |
74 | + public static final String CONFIG_SYSTEM_CONFIG = CONFIG + ":SYSTEM_CONFIG"; | |
75 | + public static final String CONFIG_SMS_CONTENT = CONFIG + ":SMS_CONTENT"; | |
76 | + public static final String CONFIG_GETPARENTCOUNTRYLISTBYID = CONFIG + ":GETPARENTCOUNTRYLISTBYID"; | |
77 | + public static final String CONFIG_GETCITYLISTBYPARENT = CONFIG + ":GETCITYLISTBYPARENT"; | |
78 | + public static final String CONFIG_GETALLCOUNTRYINFO = CONFIG+":GETALLCOUNTRYINFO"; | |
79 | + public static final String CONFIG_GETPARENTCITYLISTBYID = CONFIG+":GETPARENTCITYLISTBYID"; | |
80 | + public static final String CONFIG_GETSYSCONFIG = CONFIG+":GETSYSCONFIG"; | |
81 | + public static final String CONFIG_GETAUTHLEVELBYID = CONFIG+":GETAUTHLEVELBYID"; | |
82 | + public static final String CONFIG_GETRECOMMENDPICKUP = CONFIG+":GETRECOMMENDPICKUP"; | |
83 | + public static final String CONFIG_GETALLPICKUPLISTBYCITYID = CONFIG+":GETALLPICKUPLISTBYCITYID"; | |
84 | + public static final String CONFIG_GETPICKUPINFOBYCITYNAME = CONFIG+":GETPICKUPINFOBYCITYNAME"; | |
85 | + public static final String CONFIG_GETPICKUPINFOBYNAME = CONFIG+":GETPICKUPINFOBYNAME"; | |
86 | + public static final String CONFIG_GETPICKUPLISTBYCITYID = CONFIG+":GETPICKUPLISTBYCITYID"; | |
87 | + public static final String CONFIG_GETALLPICKUPBYSERVICE = CONFIG+":GETALLPICKUPBYSERVICE"; | |
88 | + public static final String CONFIG_GETALLPICKUPINFO = CONFIG+":GETALLPICKUPINFO"; | |
89 | + public static final String CONFIG_GETPICKUPBYCHILDPICKID = CONFIG+":GETPICKUPBYCHILDPICKID"; | |
90 | + public static final String CONFIG_GETADDRESSTEXT = CONFIG+":GETADDRESSTEXT"; | |
91 | + public static final String CONFIG_GETPICKUPBYID = CONFIG+":GETPICKUPBYID"; | |
92 | + | |
93 | + /** | |
94 | + * 店铺信息 | |
95 | + */ | |
96 | + public static final int SHOP_EXPIRE_TIME = 3*60; | |
97 | + public static final String SHOP = PNR_GETWAY+":SHOP"; | |
98 | + public static final String SHOP_INFO = SHOP+"INFO"; | |
99 | + public static final String SHOP_SEND_ADDRESS = SHOP+"SEND_ADDRESS"; | |
100 | + | |
101 | +} | ... | ... |
mobsite-getway-domain/src/main/java/com/diligrp/mobsite/getway/domain/common/ResultCode.java
0 → 100644
1 | +package com.diligrp.mobsite.getway.domain.common; | |
2 | + | |
3 | + | |
4 | +/** | |
5 | + * <B>Description</B> 返回结果代码 <br /> | |
6 | + * <B>Copyright</B> Copyright (c) 2015 www.diligrp.com All rights reserved. <br /> | |
7 | + * 本软件源代码版权归地利集团,未经许可不得任意复制与传播.<br /> | |
8 | + * <B>Company</B> 地利集团 | |
9 | + * @createTime 2015年1月27日 下午6:06:23 | |
10 | + * @author zhangshirui | |
11 | + */ | |
12 | +public final class ResultCode { | |
13 | + | |
14 | + /** 响应成功 */ | |
15 | + public static final int SUCCESS = 200; | |
16 | + | |
17 | + /** 业务异常 **/ | |
18 | + public static final int BUSINESS_FAILED = 300; | |
19 | + | |
20 | + /** 请升级版本**/ | |
21 | + public static final int SHOULD_UPDATE = 305; | |
22 | + | |
23 | + /** 请求参数异常 **/ | |
24 | + public static final int REQUET_PARAMS_ERROR = 400; | |
25 | + | |
26 | + /** 网络异常(业务系统接口异常) **/ | |
27 | + public static final int NETWORK_FAILED = 500; | |
28 | + | |
29 | + /** 登录异常(没有登录) **/ | |
30 | + public static final int LOGIN_FAILED = 600; | |
31 | + | |
32 | + /** 登录异常(同时登录) **/ | |
33 | + public static final int LOGIN_MULTI = 650; | |
34 | + | |
35 | + /** token异常 **/ | |
36 | + public static final int TOKEN_FAILED = 700; | |
37 | + | |
38 | + /** 获取市场异常 **/ | |
39 | + public static final int MARKET_FAILED = 800; | |
40 | + | |
41 | + /** 极光推送异常 **/ | |
42 | + public static final int PUSH_MESSAGE_NO = 900; | |
43 | + | |
44 | + /** 商品状态发生变化 **/ | |
45 | + public static final int GOODS_STATE_CHANGE = 1000; | |
46 | + /** | |
47 | + * 用户电话已经存在 | |
48 | + */ | |
49 | + public static final int USER_MOBILE_EXIST = 1100; | |
50 | + /** | |
51 | + * 设置默认提货人失败 | |
52 | + */ | |
53 | + public static final int USER_CONSIGNEE_SET_DEFAULT_FAILED = 1110; | |
54 | + | |
55 | + /* | |
56 | + * 订单业务异常 | |
57 | + * 提交现场交易验证失败 | |
58 | + */ | |
59 | + public static final int BUSINESS_FAILED_ORDER_SUBMIT_SOPT_INVALID = 3001; | |
60 | + | |
61 | + | |
62 | +} | ... | ... |
mobsite-getway-domain/src/main/java/com/diligrp/mobsite/getway/domain/common/enums/CartTypeEnum.java
0 → 100644
1 | +package com.diligrp.mobsite.getway.domain.common.enums; | |
2 | + | |
3 | + | |
4 | +/** | |
5 | + * <B>Description</B> 进货单类型 <br /> | |
6 | + * <B>Copyright</B> Copyright (c) 2015 www.diligrp.com All rights reserved. <br /> | |
7 | + * 本软件源代码版权归地利集团,未经许可不得任意复制与传播.<br /> | |
8 | + * <B>Company</B> 地利集团 | |
9 | + * @createTime 2015年4月30日 下午4:53:07 | |
10 | + * @author zhangshirui | |
11 | + */ | |
12 | +public enum CartTypeEnum { | |
13 | + | |
14 | + /** | |
15 | + * 进货单类型 | |
16 | + * 1.普通支付 | |
17 | + * 2.赊账支付 | |
18 | + */ | |
19 | + NORMAL_CART(1), | |
20 | + CREDIT_CART(2); | |
21 | + | |
22 | + private int cartType; | |
23 | + | |
24 | + private CartTypeEnum(int cartType){ | |
25 | + this.cartType = cartType; | |
26 | + } | |
27 | + | |
28 | + public int getCartType(){ | |
29 | + return this.cartType; | |
30 | + } | |
31 | + | |
32 | +} | ... | ... |
mobsite-getway-domain/src/main/java/com/diligrp/mobsite/getway/domain/common/enums/CreditStateEnum.java
0 → 100644
1 | +package com.diligrp.mobsite.getway.domain.common.enums; | |
2 | + | |
3 | + | |
4 | +/** | |
5 | + * <B>Description</B> 赊账认证状态 <br /> | |
6 | + * <B>Copyright</B> Copyright (c) 2015 www.diligrp.com All rights reserved. <br /> | |
7 | + * 本软件源代码版权归地利集团,未经许可不得任意复制与传播.<br /> | |
8 | + * <B>Company</B> 地利集团 | |
9 | + * @createTime 2015年4月29日 上午11:04:48 | |
10 | + * @author zhangshirui | |
11 | + */ | |
12 | +public enum CreditStateEnum { | |
13 | + /** | |
14 | + * 是否可以赊账,是否认证和授信 | |
15 | + * 1:已认证已授信 | |
16 | + * 2:未认证已授信 | |
17 | + * 3:已认证未授信 | |
18 | + * 4:未认证未授信 | |
19 | + * 5:认证中已授信 | |
20 | + * 6:认证中未授信 | |
21 | + */ | |
22 | + CREDIT_AUTH(1), | |
23 | + CREDIT_AUTHNO(2), | |
24 | + CREDITNO_AUTH(3), | |
25 | + CREDITNO_AUTHNO(4), | |
26 | + CREDIT_AUTHING(5), | |
27 | + CREDITNO_AUTHING(6); | |
28 | + | |
29 | + private int creditState; | |
30 | + | |
31 | + private CreditStateEnum(int creditState){ | |
32 | + this.creditState = creditState; | |
33 | + } | |
34 | + | |
35 | + public int getCreditState(){ | |
36 | + return this.creditState; | |
37 | + } | |
38 | + | |
39 | +} | ... | ... |
mobsite-getway-domain/src/main/java/com/diligrp/mobsite/getway/domain/common/enums/DeviceTypeEnum.java
0 → 100644
1 | +package com.diligrp.mobsite.getway.domain.common.enums; | |
2 | + | |
3 | + | |
4 | +/** | |
5 | + * <B>Description</B> 设备类型 <br /> | |
6 | + * <B>Copyright</B> Copyright (c) 2015 www.diligrp.com All rights reserved. <br /> | |
7 | + * 本软件源代码版权归地利集团,未经许可不得任意复制与传播.<br /> | |
8 | + * <B>Company</B> 地利集团 | |
9 | + * @createTime 2015年5月21日 下午5:02:33 | |
10 | + * @author zhangshirui | |
11 | + */ | |
12 | +public enum DeviceTypeEnum { | |
13 | + /** | |
14 | + * 订单设备类型 :PC:10,iOS:20,Android:30,Wap:40 | |
15 | + */ | |
16 | + | |
17 | + /** | |
18 | + * 网关设备类型 | |
19 | + * 1:安卓手机 | |
20 | + */ | |
21 | + ANDROID_MOBILE(1,30), | |
22 | + /** | |
23 | + * 11:安卓pad | |
24 | + */ | |
25 | + ANDROID_PAD(11,30), | |
26 | + /** | |
27 | + * 2:ios手机 | |
28 | + */ | |
29 | + IOS_MOBILE(2,20), | |
30 | + /** | |
31 | + * 21:iosPad | |
32 | + */ | |
33 | + IOS_PAD(21,20), | |
34 | + /** | |
35 | + * 3:pos | |
36 | + */ | |
37 | + POS(3,0), | |
38 | + /** | |
39 | + * wap | |
40 | + */ | |
41 | + WAP(4,40); | |
42 | + | |
43 | + private int type; | |
44 | + /** | |
45 | + * | |
46 | + */ | |
47 | + private int orderType; | |
48 | + | |
49 | + private DeviceTypeEnum(int type,int orderType){ | |
50 | + this.type = type; | |
51 | + this.orderType = orderType; | |
52 | + } | |
53 | + | |
54 | + public int getType(){ | |
55 | + return this.type; | |
56 | + } | |
57 | + | |
58 | + public int getOrderType(){ | |
59 | + return this.orderType; | |
60 | + } | |
61 | + | |
62 | + public static int getOrderType(int type){ | |
63 | + for (DeviceTypeEnum typeEnum : values()) { | |
64 | + if (typeEnum.getType() == type) { | |
65 | + return typeEnum.getOrderType(); | |
66 | + } | |
67 | + } | |
68 | + return 0; | |
69 | + } | |
70 | +} | ... | ... |
mobsite-getway-domain/src/main/java/com/diligrp/mobsite/getway/domain/common/enums/GoodsPriceTypeEnmu.java
0 → 100644
1 | +package com.diligrp.mobsite.getway.domain.common.enums; | |
2 | + | |
3 | + | |
4 | +/** | |
5 | + * <B>Description</B> 商品价格报价方式 <br /> | |
6 | + * <B>Copyright</B> Copyright (c) 2015 www.diligrp.com All rights reserved. <br /> | |
7 | + * 本软件源代码版权归地利集团,未经许可不得任意复制与传播.<br /> | |
8 | + * <B>Company</B> 地利集团 | |
9 | + * @createTime 2015年3月9日 下午3:46:52 | |
10 | + * @author zhangshirui | |
11 | + */ | |
12 | +public enum GoodsPriceTypeEnmu { | |
13 | + | |
14 | + /** | |
15 | + * 1-普通价格方式 | |
16 | + */ | |
17 | + PRICE_TYPE_NORMAL(1), | |
18 | + /** | |
19 | + * 2-价格区间方式 | |
20 | + */ | |
21 | + PRICE_TYPE_QUOTATION(2); | |
22 | + | |
23 | + private int priceType; | |
24 | + | |
25 | + private GoodsPriceTypeEnmu(int priceType){ | |
26 | + this.priceType = priceType; | |
27 | + } | |
28 | + | |
29 | + public int getPriceType(){ | |
30 | + return this.priceType; | |
31 | + } | |
32 | +} | ... | ... |
mobsite-getway-domain/src/main/java/com/diligrp/mobsite/getway/domain/common/enums/GoodsSaleStateEnum.java
0 → 100644
1 | +package com.diligrp.mobsite.getway.domain.common.enums; | |
2 | + | |
3 | +/** | |
4 | + * | |
5 | + * <B>Description</B> 商品销售状态 <br /> | |
6 | + * <B>Copyright</B> Copyright (c) 2015 www.diligrp.com All rights reserved. <br /> | |
7 | + * 本软件源代码版权归地利集团,未经许可不得任意复制与传播.<br /> | |
8 | + * <B>Company</B> 地利集团 | |
9 | + * @createTime 2015年3月9日 下午3:39:09 | |
10 | + * @author zhangshirui | |
11 | + */ | |
12 | +public enum GoodsSaleStateEnum { | |
13 | + | |
14 | + /** | |
15 | + * 1-已售罄,销售完毕 | |
16 | + */ | |
17 | + STATE_SOLD_OUT(1), | |
18 | + /** | |
19 | + * 2-商品状态:已下架或删除 | |
20 | + */ | |
21 | + STATE_DOWN_DEL(2), | |
22 | + /** | |
23 | + * 3-在售并且正常 | |
24 | + */ | |
25 | + STATE_ON_SALE(3); | |
26 | + | |
27 | + private GoodsSaleStateEnum(int state){ | |
28 | + this.state = state; | |
29 | + } | |
30 | + | |
31 | + private int state; | |
32 | + | |
33 | + public int getState(){ | |
34 | + return this.state; | |
35 | + } | |
36 | + | |
37 | +} | ... | ... |
mobsite-getway-domain/src/main/java/com/diligrp/mobsite/getway/domain/common/enums/GoodsSaleTypeEnum.java
0 → 100644
1 | +package com.diligrp.mobsite.getway.domain.common.enums; | |
2 | + | |
3 | +/** | |
4 | + * | |
5 | + * <B>Description</B> 商品销售类型 <br /> | |
6 | + * <B>Copyright</B> Copyright (c) 2015 www.diligrp.com All rights reserved. <br /> | |
7 | + * 本软件源代码版权归地利集团,未经许可不得任意复制与传播.<br /> | |
8 | + * <B>Company</B> 地利集团 | |
9 | + * @createTime 2015年3月9日 下午3:39:31 | |
10 | + * @author zhangshirui | |
11 | + */ | |
12 | +public enum GoodsSaleTypeEnum { | |
13 | + | |
14 | + DILI(10,"地利自营"), | |
15 | + AGENT_SALE(20,"代销"), | |
16 | + THIRD_PARTY(30,"第三方卖家"), | |
17 | + CONSULT(40,"询价商品"); | |
18 | + | |
19 | + private GoodsSaleTypeEnum(int value,String name){ | |
20 | + this.value = value; | |
21 | + this.name = name; | |
22 | + } | |
23 | + | |
24 | + private int value; | |
25 | + private String name; | |
26 | + | |
27 | + public int getValue(){ | |
28 | + return this.value; | |
29 | + } | |
30 | + | |
31 | + public String getName(){ | |
32 | + return this.name; | |
33 | + } | |
34 | + | |
35 | +} | ... | ... |
mobsite-getway-domain/src/main/java/com/diligrp/mobsite/getway/domain/common/enums/OrderDeliveryTypeEnum.java
0 → 100644
1 | +package com.diligrp.mobsite.getway.domain.common.enums; | |
2 | + | |
3 | + | |
4 | +/** | |
5 | + * <B>Description</B> 配送方式 <br /> | |
6 | + * <B>Copyright</B> Copyright (c) 2015 www.diligrp.com All rights reserved. <br /> | |
7 | + * 本软件源代码版权归地利集团,未经许可不得任意复制与传播.<br /> | |
8 | + * <B>Company</B> 地利集团 | |
9 | + * @createTime 2015年2月12日 下午4:20:37 | |
10 | + * @author zhangshirui | |
11 | + */ | |
12 | +public enum OrderDeliveryTypeEnum { | |
13 | + | |
14 | + /** | |
15 | + * 自提 | |
16 | + */ | |
17 | + DELIVERY_TYPE_SELF_PICKUP(10,"上门自提"), | |
18 | + /** | |
19 | + * 送货上门 | |
20 | + */ | |
21 | + DELIVERY_TYPE_SEND_HOME(20,"送货上门"), | |
22 | + /** | |
23 | + * 现场交易 | |
24 | + */ | |
25 | + DELIVERY_TYPE_SPOT(30,"现场交易"), | |
26 | + | |
27 | + /** | |
28 | + * 物流配送 | |
29 | + */ | |
30 | + DELIVERY_TYPE_LOGISTICS(40, "物流配送"); | |
31 | + | |
32 | + private int value; | |
33 | + | |
34 | + private String name; | |
35 | + | |
36 | + private OrderDeliveryTypeEnum(int value,String name){ | |
37 | + this.value = value; | |
38 | + this.name = name; | |
39 | + } | |
40 | + | |
41 | + public int getDeliveryType(){ | |
42 | + return this.value; | |
43 | + } | |
44 | + | |
45 | + public String getName(){ | |
46 | + return this.name; | |
47 | + } | |
48 | + | |
49 | + public static OrderDeliveryTypeEnum getEnumByValue(int value){ | |
50 | + for(OrderDeliveryTypeEnum ose: values()){ | |
51 | + if(ose.getDeliveryType() == value){ | |
52 | + return ose; | |
53 | + } | |
54 | + } | |
55 | + return null; | |
56 | + } | |
57 | + | |
58 | +} | ... | ... |
mobsite-getway-domain/src/main/java/com/diligrp/mobsite/getway/domain/common/enums/OrderInvoiceType.java
0 → 100644
1 | + | |
2 | + | |
3 | + | |
4 | + | |
5 | + | |
6 | + | |
7 | + | |
8 | + | |
9 | + | |
10 | + | |
11 | + | |
12 | + | |
13 | + | |
14 | + | |
15 | + | |
16 | + | |
17 | + | |
18 | + | |
19 | + | |
20 | + | |
21 | + | |
22 | + | |
23 | + | |
24 | + | |
25 | + | |
26 | + | |
27 | + | |
28 | + | |
29 | + | |
30 | + | |
31 | + | |
32 | + | |
33 | + | |
34 | + | |
35 | + | |
36 | + | |
37 | +package com.diligrp.mobsite.getway.domain.common.enums; | |
38 | + | |
39 | + | |
40 | +/** | |
41 | + * <B>Description</B> 订单发票类型 <br /> | |
42 | + * <B>Copyright</B> Copyright (c) 2015 www.diligrp.com All rights reserved. <br /> | |
43 | + * 本软件源代码版权归地利集团,未经许可不得任意复制与传播.<br /> | |
44 | + * <B>Company</B> 地利集团 | |
45 | + * @createTime 2015年2月12日 下午4:24:35 | |
46 | + * @author zhangshirui | |
47 | + */ | |
48 | +public enum OrderInvoiceType { | |
49 | + | |
50 | + /** | |
51 | + * 无发票 | |
52 | + */ | |
53 | + INVOICE_TYPE_NO(10), | |
54 | + /** | |
55 | + * 增值税 | |
56 | + */ | |
57 | + INVOICE_TYPE_VAT(20), | |
58 | + /** | |
59 | + * 普通发票 | |
60 | + */ | |
61 | + INVOICE_TYPE_NORMAL(30); | |
62 | + | |
63 | + private int value; | |
64 | + | |
65 | + private OrderInvoiceType(int value){ | |
66 | + this.value = value; | |
67 | + } | |
68 | + | |
69 | + public int getInvoiceType(){ | |
70 | + return this.value; | |
71 | + } | |
72 | + | |
73 | +} | ... | ... |
mobsite-getway-domain/src/main/java/com/diligrp/mobsite/getway/domain/common/enums/OrderPayTypeEnum.java
0 → 100644
1 | +package com.diligrp.mobsite.getway.domain.common.enums; | |
2 | + | |
3 | + | |
4 | +/** | |
5 | + * <B>Description</B> 订单支付方式 <br /> | |
6 | + * <B>Copyright</B> Copyright (c) 2015 www.diligrp.com All rights reserved. <br /> | |
7 | + * 本软件源代码版权归地利集团,未经许可不得任意复制与传播.<br /> | |
8 | + * <B>Company</B> 地利集团 | |
9 | + * @createTime 2015年2月12日 下午4:08:09 | |
10 | + * @author zhangshirui | |
11 | + */ | |
12 | +public enum OrderPayTypeEnum { | |
13 | + | |
14 | + /** | |
15 | + * 在线支付 | |
16 | + */ | |
17 | + PAY_TYPE_ONLINE(10), | |
18 | + /** | |
19 | + * 线下支付 | |
20 | + */ | |
21 | + PAY_TYPE_OFFLINE(20), | |
22 | + /** | |
23 | + * 提货付款 | |
24 | + */ | |
25 | + PAY_TYPE_PICKUP(30), | |
26 | + /** | |
27 | + * 赊账付款 | |
28 | + */ | |
29 | + PAY_TYPE_CREDIT(40); | |
30 | + | |
31 | + private int value; | |
32 | + | |
33 | + private OrderPayTypeEnum(int value){ | |
34 | + this.value = value; | |
35 | + } | |
36 | + | |
37 | + public int getValue(){ | |
38 | + return this.value; | |
39 | + } | |
40 | +} | ... | ... |
mobsite-getway-domain/src/main/java/com/diligrp/mobsite/getway/domain/common/enums/OrderRefundStateEnum.java
0 → 100644
1 | +package com.diligrp.mobsite.getway.domain.common.enums; | |
2 | + | |
3 | +import com.diligrp.mobsite.getway.domain.common.Constant; | |
4 | + | |
5 | + | |
6 | +/** | |
7 | + * <B>Description</B> 订单退款状态 <br /> | |
8 | + * <B>Copyright</B> Copyright (c) 2015 www.diligrp.com All rights reserved. <br /> | |
9 | + * 本软件源代码版权归地利集团,未经许可不得任意复制与传播.<br /> | |
10 | + * <B>Company</B> 地利集团 | |
11 | + * @createTime 2015年4月30日 下午2:12:45 | |
12 | + * @author zhangshirui | |
13 | + */ | |
14 | +public enum OrderRefundStateEnum { | |
15 | + /** | |
16 | + * 10卖家待审核,20卖家审核通过,30卖家审核不通过,40申请退款取消,50平台申诉处理中,60退款申诉成功,70退款申诉失败,80退款申诉取消 | |
17 | + * 10待审核 | |
18 | + */ | |
19 | + STATE_WAIT_APPROVE(10,"卖家审核中","我们已通知卖家尽快处理,请耐心等待"), | |
20 | + /** | |
21 | + * 20-审核通过 | |
22 | + */ | |
23 | + STATE_APPROVED(20,"卖家同意退款","退款金额"+Constant.ORDER_REPLACE_MONEY+"元已返还到您的付款账户中,请注意查收"), | |
24 | + /** | |
25 | + * 30-审核不通过 | |
26 | + */ | |
27 | + STATE_NOT_APPROVED(30,"卖家拒绝退款",""), | |
28 | + /** | |
29 | + * 40-取消 | |
30 | + */ | |
31 | + STATE_CANCELED(40,"已取消",""), | |
32 | + /** | |
33 | + * 50-处理中 | |
34 | + */ | |
35 | + STATE_PROCESSING(50,"平台申诉处理中","我们会在三个工作日内处理完您的退款申诉,如有疑问请咨询客服"), | |
36 | + STATE_APPLY_SUCCESS(60,"申诉成功","退款金额"+Constant.ORDER_REPLACE_MONEY+"元已返还到您的付款账户中,请注意查收!"), | |
37 | + STATE_APPLY_FAILED(70,"申诉失败","经调查,按平台规则,决定驳回您的申诉"), | |
38 | + STATE_APPLY_CANCELED(80,"申诉取消",""), | |
39 | + | |
40 | + STATE_WaitRepayment(90,"卖家审核通过等待打款",""); | |
41 | + | |
42 | + private int state; | |
43 | + private String stateName; | |
44 | + private String stateDesc; | |
45 | + | |
46 | + private OrderRefundStateEnum(int state,String stateName,String stateDesc){ | |
47 | + this.state = state; | |
48 | + this.stateName = stateName; | |
49 | + this.stateDesc = stateDesc; | |
50 | + } | |
51 | + | |
52 | + public int getState(){ | |
53 | + return this.state; | |
54 | + } | |
55 | + | |
56 | + public String getStateName(){ | |
57 | + return this.stateName; | |
58 | + } | |
59 | + | |
60 | + public String getStateDesc(){ | |
61 | + return this.stateDesc; | |
62 | + } | |
63 | + | |
64 | + public static OrderRefundStateEnum getEnumByState(int state){ | |
65 | + for(OrderRefundStateEnum stateEnum : OrderRefundStateEnum.values()){ | |
66 | + if (state == stateEnum.getState()) { | |
67 | + return stateEnum; | |
68 | + } | |
69 | + } | |
70 | + return null; | |
71 | + } | |
72 | +} | ... | ... |
mobsite-getway-domain/src/main/java/com/diligrp/mobsite/getway/domain/common/enums/OrderStateEnum.java
0 → 100644
1 | +package com.diligrp.mobsite.getway.domain.common.enums; | |
2 | + | |
3 | +import com.diligrp.mobsite.getway.domain.common.Constant; | |
4 | + | |
5 | + | |
6 | +/** | |
7 | + * <B>Description</B> 订单状态 <br /> | |
8 | + * <B>Copyright</B> Copyright (c) 2015 www.diligrp.com All rights reserved. <br /> | |
9 | + * 本软件源代码版权归地利集团,未经许可不得任意复制与传播.<br /> | |
10 | + * <B>Company</B> 地利集团 | |
11 | + * @createTime 2015年2月13日 下午4:55:46 | |
12 | + * @author zhangshirui | |
13 | + */ | |
14 | +public enum OrderStateEnum { | |
15 | + | |
16 | + /** | |
17 | + * 订单状态:(10待付款,20待备货,30备货中,40待提货,50已提货,60已过期,70已取消,80已申请退款,90已退款,100提货超时)<br/> | |
18 | + */ | |
19 | + /** | |
20 | + * 所有状态:0 | |
21 | + */ | |
22 | + ORDER_STATE_ALL(-1,""), | |
23 | + /** | |
24 | + * 待付款-10 | |
25 | + */ | |
26 | + ORDER_STATE_NOT_PAY(10,"请在"+Constant.ORDER_REPLACE_DATE+"前完成付款,否则订单会自动取消"), | |
27 | + /** | |
28 | + * 待审核(赊帐付款订单)-15 | |
29 | + */ | |
30 | + ORDER_STATE_WAIT_AUDIT(15,"您的赊账付款订单卖家正在审核中,订单将在"+Constant.ORDER_REPLACE_DATE+"自动过期,请联系卖家及时确认"), | |
31 | + /** | |
32 | + * (已付款待确认)-20 | |
33 | + */ | |
34 | + ORDER_STATE_PAYMENT(20,"付款成功后,请耐心等待卖家开始备货"), | |
35 | + /** | |
36 | + * 备货中-30 | |
37 | + */ | |
38 | + ORDER_STATE_STOCKUP(30,"卖家已开始备货,请耐心等待"), | |
39 | + /** | |
40 | + * 待提货-(上门自提订单)-40 | |
41 | + */ | |
42 | + ORDER_STATE_PICKUP(40,"请在"+Constant.ORDER_REPLACE_DATE+"前上门提货,如您已完成提货请及时确认,超期未确认提货,系统会默认为已提货"), | |
43 | + /** | |
44 | + * 待收货-(送货上门订单)-45 | |
45 | + */ | |
46 | + ORDER_STATE_WAIT_RECEIVE(45,"卖家已于"+Constant.ORDER_REPLACE_DATE+"完成发货。"+Constant.ORDER_REPLACE_SHIPINFO+ "收货后,请于"+Constant.ORDER_REPLACE_DATE2+"前完成确认,超期未确认收货,系统会默认为已收货"), | |
47 | + /** | |
48 | + * 已提货(交易完成)-50 | |
49 | + */ | |
50 | + ORDER_STATE_FINISH(50,"订单已于"+Constant.ORDER_REPLACE_DATE+"完成交易"), | |
51 | + /** | |
52 | + * 待评价 | |
53 | + */ | |
54 | + ORDER_STATE_WAIT_APPRAISE(51,"订单已于"+Constant.ORDER_REPLACE_DATE+"完成交易"), | |
55 | + /** | |
56 | + * 已过期-60 | |
57 | + */ | |
58 | + ORDER_STATE_OVERDUE(60,"订单因为没及时完成付款,已于"+Constant.ORDER_REPLACE_DATE+"过期"), | |
59 | + /**已取消-70*/ | |
60 | + ORDER_STATE_CANCELED(70,"订单已于"+Constant.ORDER_REPLACE_DATE+"被取消"), | |
61 | + /**申请退款中-80*/ | |
62 | + ORDER_STATE_APPLY_REFUND(80,"您已提交了退款申请,请等待卖家确认"), | |
63 | + /** 退款申诉中 85 */ | |
64 | + ORDER_STATE_REFUNDAPPEALING(85,"我们会在三个工作日内处理完您的退款申诉,如有疑问请咨询客服"), | |
65 | + /**已退款-90*/ | |
66 | + ORDER_STATE_REFUND(90,"卖家于"+Constant.ORDER_REPLACE_DATE+"同意了您的退款申请,货款会在3-5个工作日内结算到您的账户,请注意查收"), | |
67 | + /**提货超时-100*/ | |
68 | + ORDER_STATE_PICKUP_OVERTIME(100,""); | |
69 | + | |
70 | + | |
71 | + private int value; | |
72 | + private String desc; | |
73 | + | |
74 | + | |
75 | + | |
76 | + private OrderStateEnum(int value,String desc){ | |
77 | + this.value = value; | |
78 | + this.desc = desc; | |
79 | + } | |
80 | + | |
81 | + public int getOrderState(){ | |
82 | + return this.value; | |
83 | + } | |
84 | + | |
85 | + public String getOrderDesc(){ | |
86 | + return this.desc; | |
87 | + } | |
88 | + | |
89 | + public static OrderStateEnum getEnumByValue(int value){ | |
90 | + for(OrderStateEnum ose: values()){ | |
91 | + if(ose.getOrderState() == value){ | |
92 | + return ose; | |
93 | + } | |
94 | + } | |
95 | + return null; | |
96 | + } | |
97 | +} | ... | ... |
mobsite-getway-domain/src/main/java/com/diligrp/mobsite/getway/domain/common/enums/OrderStateEnumInput.java
0 → 100644
1 | +package com.diligrp.mobsite.getway.domain.common.enums; | |
2 | + | |
3 | +/** | |
4 | + * 对接移动端订单列表显示状态 | |
5 | + */ | |
6 | +public enum OrderStateEnumInput { | |
7 | + | |
8 | + /** | |
9 | + * 所有状态:0 | |
10 | + */ | |
11 | + ORDER_STATE_ALL(-1), | |
12 | + /** | |
13 | + * 待付款-10 | |
14 | + */ | |
15 | + ORDER_STATE_NOT_PAY(10), | |
16 | + | |
17 | + /** | |
18 | + * 待发货-20 | |
19 | + */ | |
20 | + ORDER_STATE_SHIPMENTS(20), | |
21 | + | |
22 | + /** | |
23 | + * 待收货-30 | |
24 | + */ | |
25 | + ORDER_STATE_WAIT_RECEIVE(30), | |
26 | + | |
27 | + | |
28 | + /** | |
29 | + * 待评价-40 | |
30 | + */ | |
31 | + ORDER_STATE_WAIT_APPRAISE(40), | |
32 | + | |
33 | + | |
34 | + /** | |
35 | + * (已完成)-50 | |
36 | + */ | |
37 | + ORDER_STATE_FINISH(50), | |
38 | + | |
39 | + /**已取消-60*/ | |
40 | + ORDER_STATE_CANCELED(60); | |
41 | + | |
42 | + | |
43 | + private Integer value; | |
44 | + | |
45 | + | |
46 | + OrderStateEnumInput(Integer value) { | |
47 | + this.value = value; | |
48 | + } | |
49 | + | |
50 | + public Integer getValue() { | |
51 | + return value; | |
52 | + } | |
53 | + | |
54 | + | |
55 | +} | ... | ... |
mobsite-getway-domain/src/main/java/com/diligrp/mobsite/getway/domain/common/enums/OrderUserType.java
0 → 100644
1 | +/** | |
2 | + * | |
3 | + */ | |
4 | +package com.diligrp.mobsite.getway.domain.common.enums; | |
5 | + | |
6 | +/** | |
7 | + * @author zhangshirui | |
8 | + * | |
9 | + */ | |
10 | +public enum OrderUserType { | |
11 | + /** | |
12 | + * 10买家 | |
13 | + */ | |
14 | + BUYER(10L), | |
15 | + /** | |
16 | + * 20卖家 | |
17 | + */ | |
18 | + SELLER(20L); | |
19 | + | |
20 | + private long type; | |
21 | + | |
22 | + private OrderUserType(long type){ | |
23 | + this.type = type; | |
24 | + } | |
25 | + | |
26 | + public long getUserType(){ | |
27 | + return this.type; | |
28 | + } | |
29 | + | |
30 | +} | ... | ... |
mobsite-getway-domain/src/main/java/com/diligrp/mobsite/getway/domain/common/enums/PageEnum.java
0 → 100644
1 | +package com.diligrp.mobsite.getway.domain.common.enums; | |
2 | + | |
3 | + | |
4 | +/** | |
5 | + * <B>Description</B> 页码枚举 <br /> | |
6 | + * <B>Copyright</B> Copyright (c) 2014 www.diligrp.com All rights reserved. <br /> | |
7 | + * 本软件源代码版权归地利集团,未经许可不得任意复制与传播.<br /> | |
8 | + * <B>Company</B> 地利集团 | |
9 | + * @createTime 2014年10月21日 下午9:18:12 | |
10 | + * @author zhangshirui | |
11 | + */ | |
12 | +public enum PageEnum { | |
13 | + | |
14 | + MAXPAGESIZE(20), | |
15 | + MINPAGESIZE(10), | |
16 | + PAGENUM(1), | |
17 | + EMPTYSIZE(0); | |
18 | + | |
19 | + private int value; | |
20 | + | |
21 | + private PageEnum(int value){ | |
22 | + this.value = value; | |
23 | + } | |
24 | + | |
25 | + public int getValue(){ | |
26 | + return this.value; | |
27 | + } | |
28 | + | |
29 | +} | ... | ... |
mobsite-getway-domain/src/main/java/com/diligrp/mobsite/getway/domain/common/enums/ServiceCodeEnum.java
0 → 100644
1 | +package com.diligrp.mobsite.getway.domain.common.enums; | |
2 | + | |
3 | + | |
4 | +public enum ServiceCodeEnum { | |
5 | + | |
6 | + /** | |
7 | + * 保鲜预冷服务 | |
8 | + */ | |
9 | + SERVICE_FRESH_PRECOOLING("SERVICE_FRESH_PRECOOLING",1L), | |
10 | + /** | |
11 | + * 物流配送服务 | |
12 | + */ | |
13 | + SERVICE_LOGISTICS_DISTRIBUTION("SERVICE_LOGISTICS_DISTRIBUTION",2L), | |
14 | + /** | |
15 | + * 理货服务 | |
16 | + */ | |
17 | + SERVICE_FINISH_PACKAGE("SERVICE_FINISH_PACKAGE" ,4L), | |
18 | + /** | |
19 | + * 代购服务 | |
20 | + */ | |
21 | + SERVICE_AGENT_BUY("SERVICE_FINISH_PACKAGE" ,5L), | |
22 | + /** | |
23 | + * 代销服务 | |
24 | + */ | |
25 | + SERVICE_AGENT_SALE("SERVICE_AGENT_SALE" ,6L), | |
26 | + /** | |
27 | + * 联营联销服务 | |
28 | + */ | |
29 | + SERVICE_COMBINE_SALE("SERVICE_COMBINE_SALE" ,7L), | |
30 | + /** | |
31 | + * 仓储服务 | |
32 | + */ | |
33 | + SERVICE_WAREHOUSING("SERVICE_WAREHOUSING" ,8L); | |
34 | + | |
35 | + private String code; | |
36 | + | |
37 | + private Long id; | |
38 | + | |
39 | + private ServiceCodeEnum(String code,Long id){ | |
40 | + this.code = code; | |
41 | + this.id = id; | |
42 | + } | |
43 | + public String getCode() { | |
44 | + return code; | |
45 | + } | |
46 | + | |
47 | + public Long getId() { | |
48 | + return id; | |
49 | + } | |
50 | + | |
51 | + public static Long getServiceId(String serviceCode){ | |
52 | + return ServiceCodeEnum.valueOf(serviceCode).getId(); | |
53 | + } | |
54 | + | |
55 | + public static void main(String[] args) { | |
56 | + System.out.println(ServiceCodeEnum.valueOf("SERVICE_COMBINE_SALE").getId()); | |
57 | + } | |
58 | +} | ... | ... |
mobsite-getway-domain/src/main/java/com/diligrp/mobsite/getway/domain/common/enums/ShopSourceEnum.java
0 → 100644
1 | + | |
2 | +package com.diligrp.mobsite.getway.domain.common.enums; | |
3 | + | |
4 | +/** | |
5 | + * 店铺经营类型 | |
6 | + * @createTime 2015年8月26日 | |
7 | + * @author zhangshirui | |
8 | + */ | |
9 | + | |
10 | +public enum ShopSourceEnum { | |
11 | + | |
12 | + /** | |
13 | + * 店铺类型:1批发用户 2产地用户 3 农户用户 4零售用户 5代购用户 6物流用户 | |
14 | + */ | |
15 | + WHOLESALE(1), | |
16 | + ORIGIN(2), | |
17 | + FARMERS(3), | |
18 | + RETAIL(4), | |
19 | + PURCHASE(5), | |
20 | + LOGISTICS(6); | |
21 | + | |
22 | + private int shopSource; | |
23 | + | |
24 | + private ShopSourceEnum(int shopSource){ | |
25 | + this.shopSource = shopSource; | |
26 | + } | |
27 | + | |
28 | + public int getShopSource(){ | |
29 | + return this.shopSource; | |
30 | + } | |
31 | + | |
32 | + public static boolean isSalesShop(int shopSource){ | |
33 | + if (ShopSourceEnum.PURCHASE.getShopSource() != shopSource && | |
34 | + ShopSourceEnum.LOGISTICS.getShopSource() != shopSource ) { | |
35 | + return true; | |
36 | + }else { | |
37 | + return false; | |
38 | + } | |
39 | + } | |
40 | +} | |
41 | + | ... | ... |
mobsite-getway-domain/src/main/java/com/diligrp/mobsite/getway/domain/common/enums/ShopStateEnum.java
0 → 100644
1 | +package com.diligrp.mobsite.getway.domain.common.enums; | |
2 | + | |
3 | + | |
4 | +/** | |
5 | + * <B>Description</B> 店铺状态 <br /> | |
6 | + * <B>Copyright</B> Copyright (c) 2015 www.diligrp.com All rights reserved. <br /> | |
7 | + * 本软件源代码版权归地利集团,未经许可不得任意复制与传播.<br /> | |
8 | + * <B>Company</B> 地利集团 | |
9 | + * @createTime 2015年4月23日 下午4:42:27 | |
10 | + * @author zhangshirui | |
11 | + */ | |
12 | +public enum ShopStateEnum { | |
13 | + /** | |
14 | + * 1:未审核, 2:审核通过, 3:审核不通过 | |
15 | + */ | |
16 | + AUDIT_PROCESS(1), | |
17 | + AUDIT_PASS(2), | |
18 | + AUDIT_NOT_PASS(3); | |
19 | + | |
20 | + private int auditState; | |
21 | + | |
22 | + private ShopStateEnum(int auditState){ | |
23 | + this.auditState = auditState; | |
24 | + } | |
25 | + | |
26 | + public int getAuditState(){ | |
27 | + return this.auditState; | |
28 | + } | |
29 | +} | ... | ... |
mobsite-getway-domain/src/main/java/com/diligrp/mobsite/getway/domain/common/enums/ShopTypeEnum.java
0 → 100644
1 | +package com.diligrp.mobsite.getway.domain.common.enums; | |
2 | + | |
3 | + | |
4 | +/** | |
5 | + * <B>Description</B> 店铺类型 <br /> | |
6 | + * <B>Copyright</B> Copyright (c) 2015 www.diligrp.com All rights reserved. <br /> | |
7 | + * 本软件源代码版权归地利集团,未经许可不得任意复制与传播.<br /> | |
8 | + * <B>Company</B> 地利集团 | |
9 | + * @createTime 2015年3月4日 下午3:58:55 | |
10 | + * @author zhangshirui | |
11 | + */ | |
12 | +public enum ShopTypeEnum { | |
13 | + | |
14 | + /** | |
15 | + * 10-地利自营 | |
16 | + */ | |
17 | + DILI(10), | |
18 | + /** | |
19 | + * 20-代销 | |
20 | + */ | |
21 | + AGENT_SALE(20), | |
22 | + /** | |
23 | + * 30-第三方店铺 | |
24 | + */ | |
25 | + THIRD_PART(30); | |
26 | + | |
27 | + private int value; | |
28 | + | |
29 | + private ShopTypeEnum(int value){ | |
30 | + this.value=value; | |
31 | + } | |
32 | + | |
33 | + public int getValue(){ | |
34 | + return this.value; | |
35 | + } | |
36 | + | |
37 | + | |
38 | +} | ... | ... |
mobsite-getway-domain/src/main/java/com/diligrp/mobsite/getway/domain/common/enums/SystemTypeEnum.java
0 → 100644
1 | +package com.diligrp.mobsite.getway.domain.common.enums; | |
2 | + | |
3 | +/** | |
4 | + * PNR:pnr-app | |
5 | + * POS:pos机 | |
6 | + * PAY:地利宝 | |
7 | + */ | |
8 | +public enum SystemTypeEnum { | |
9 | + | |
10 | + PNR("pnr"),POS("pos"),PAY("pay"); | |
11 | + | |
12 | + private String value; | |
13 | + | |
14 | + private SystemTypeEnum(String value){ | |
15 | + this.value = value; | |
16 | + } | |
17 | + | |
18 | + public String getValue(){ | |
19 | + return this.value; | |
20 | + } | |
21 | + | |
22 | +} | ... | ... |
mobsite-getway-domain/src/main/java/com/diligrp/mobsite/getway/domain/common/enums/UserTypeEnum.java
0 → 100644
1 | + | |
2 | +package com.diligrp.mobsite.getway.domain.common.enums; | |
3 | + | |
4 | +/** | |
5 | + * 用户类型 | |
6 | + * @createTime 2015年7月9日 | |
7 | + * @author zhangshirui | |
8 | + */ | |
9 | + | |
10 | +public enum UserTypeEnum { | |
11 | + | |
12 | + PERSONAL(1), | |
13 | + ENTERPRISE(2); | |
14 | + | |
15 | + private int type; | |
16 | + | |
17 | + private UserTypeEnum(int type){ | |
18 | + this.type = type; | |
19 | + } | |
20 | + | |
21 | + public int getType(){ | |
22 | + return this.type; | |
23 | + } | |
24 | +} | |
25 | + | ... | ... |
mobsite-getway-domain/src/main/java/com/diligrp/mobsite/getway/domain/common/enums/user/FavoriteType.java
0 → 100644
1 | + | |
2 | +package com.diligrp.mobsite.getway.domain.common.enums.user; | |
3 | + | |
4 | +/** | |
5 | + * 收藏消息类型 | |
6 | + * @createTime 2015年8月3日 | |
7 | + * @author zhangshirui | |
8 | + */ | |
9 | + | |
10 | +public enum FavoriteType { | |
11 | + | |
12 | + PRODUCT(1), | |
13 | + SHOP(2), | |
14 | + SUPPLY(3), | |
15 | + PURCHASE(4), | |
16 | + PRESALE(5); | |
17 | + | |
18 | + private int type; | |
19 | + | |
20 | + private FavoriteType(int type){ | |
21 | + this.type = type; | |
22 | + } | |
23 | + | |
24 | + public int getType(){ | |
25 | + return this.type; | |
26 | + } | |
27 | +} | |
28 | + | ... | ... |
mobsite-getway-domain/src/main/java/com/diligrp/mobsite/getway/domain/except/AppException.java
0 → 100644
1 | +/* | |
2 | + * Copyright (c) 2014 www.diligrp.com All rights reserved. | |
3 | + * 本软件源代码版权归----所有,未经许可不得任意复制与传播. | |
4 | + */ | |
5 | +package com.diligrp.mobsite.getway.domain.except; | |
6 | + | |
7 | +/** | |
8 | + * AppException | |
9 | + * @author dev-center | |
10 | + * @since 2014-05-15 | |
11 | + */ | |
12 | +public class AppException extends RuntimeException{ | |
13 | + private static final long serialVersionUID = 1L; | |
14 | + private String code; | |
15 | + private String errorData; | |
16 | + public AppException() { | |
17 | + super(); | |
18 | + } | |
19 | + | |
20 | + public AppException(String message) { | |
21 | + super(message); | |
22 | + } | |
23 | + | |
24 | + public AppException(String message, Throwable cause) { | |
25 | + super(message, cause); | |
26 | + } | |
27 | + | |
28 | + public AppException(Throwable cause) { | |
29 | + super(cause); | |
30 | + } | |
31 | + | |
32 | + public AppException(String code, String message) { | |
33 | + super(message); | |
34 | + this.code=code; | |
35 | + } | |
36 | + | |
37 | + public AppException(String code, String errorData,String message) { | |
38 | + super(message); | |
39 | + this.code=code; | |
40 | + this.errorData=errorData; | |
41 | + } | |
42 | + | |
43 | + | |
44 | + public String getCode() { | |
45 | + return code; | |
46 | + } | |
47 | + | |
48 | + public void setCode(String code) { | |
49 | + this.code = code; | |
50 | + } | |
51 | + | |
52 | + | |
53 | + public String getErrorData() { | |
54 | + return errorData; | |
55 | + } | |
56 | + | |
57 | + | |
58 | + public void setErrorData(String errorData) { | |
59 | + this.errorData = errorData; | |
60 | + } | |
61 | + | |
62 | + @Override | |
63 | + public String toString() { | |
64 | + return "AppException [code=" + getCode() + ", errorData=" | |
65 | + + getErrorData() + ", message=" + getMessage() | |
66 | + + ", cause=" + getCause() + "]"; | |
67 | + } | |
68 | +} | ... | ... |
mobsite-getway-domain/src/main/java/com/diligrp/mobsite/getway/domain/except/ParamErrorException.java
0 → 100644
1 | +/* | |
2 | + * Copyright (c) 2014 www.diligrp.com All rights reserved. | |
3 | + * 本软件源代码版权归----所有,未经许可不得任意复制与传播. | |
4 | + */ | |
5 | +package com.diligrp.mobsite.getway.domain.except; | |
6 | + | |
7 | +/** | |
8 | + * AppException | |
9 | + * @author dev-center | |
10 | + * @since 2014-05-15 | |
11 | + */ | |
12 | +public class ParamErrorException extends AppException{ | |
13 | + private static final long serialVersionUID = 1L; | |
14 | + public ParamErrorException() { | |
15 | + super(); | |
16 | + } | |
17 | + | |
18 | + public ParamErrorException(String message) { | |
19 | + super(message); | |
20 | + } | |
21 | + | |
22 | + public ParamErrorException(String message, Throwable cause) { | |
23 | + super(message, cause); | |
24 | + } | |
25 | + | |
26 | + public ParamErrorException(Throwable cause) { | |
27 | + super(cause); | |
28 | + } | |
29 | + | |
30 | + public ParamErrorException(String code, String message) { | |
31 | + super(code,message); | |
32 | + } | |
33 | + | |
34 | + public ParamErrorException(String code, String errorData,String message) { | |
35 | + super(code,errorData,message); | |
36 | + } | |
37 | + | |
38 | + @Override | |
39 | + public String toString() { | |
40 | + return "ParamErrorException [code=" + getCode() + ", errorData=" | |
41 | + + getErrorData() + ", message=" + getMessage() | |
42 | + + ", cause=" + getCause() + "]"; | |
43 | + } | |
44 | +} | ... | ... |
mobsite-getway-domain/src/main/java/com/diligrp/mobsite/getway/domain/except/ServiceException.java
0 → 100644
1 | +package com.diligrp.mobsite.getway.domain.except; | |
2 | + | |
3 | +import com.diligrp.mobsite.getway.domain.common.ErrorMessage; | |
4 | +import com.diligrp.mobsite.getway.domain.common.ResultCode; | |
5 | + | |
6 | +/** | |
7 | + * <B>Description</B> 业务异常 <br /> | |
8 | + * <B>Copyright</B> Copyright (c) 2014 www.diligrp.com All rights reserved. <br /> | |
9 | + * 本软件源代码版权归地利集团,未经许可不得任意复制与传播.<br /> | |
10 | + * <B>Company</B> 地利集团 | |
11 | + * | |
12 | + * @author zhangshirui | |
13 | + * @createTime 2014/10/8 14:51 | |
14 | + */ | |
15 | +@SuppressWarnings("serial") | |
16 | +public class ServiceException extends RuntimeException { | |
17 | + private int code; | |
18 | + | |
19 | + /** | |
20 | + * 默认网络异常 | |
21 | + */ | |
22 | + public ServiceException() { | |
23 | + super(ErrorMessage.NETWORK_ERROR); | |
24 | + this.code = ResultCode.NETWORK_FAILED; | |
25 | + } | |
26 | + | |
27 | + public ServiceException(int code) { | |
28 | + this.code = code; | |
29 | + } | |
30 | + | |
31 | + public ServiceException(String message){ | |
32 | + super(message); | |
33 | + this.code = ResultCode.BUSINESS_FAILED; | |
34 | + } | |
35 | + | |
36 | + public ServiceException(int code, String message) { | |
37 | + super(message); | |
38 | + this.code = code; | |
39 | + } | |
40 | + | |
41 | + public ServiceException(String message, Throwable cause) { | |
42 | + super(message, cause); | |
43 | + } | |
44 | + | |
45 | + public int getCode() { | |
46 | + return code; | |
47 | + } | |
48 | + | |
49 | + public ServiceException setCode(int code) { | |
50 | + this.code = code; | |
51 | + return this; | |
52 | + } | |
53 | +} | ... | ... |
mobsite-getway-domain/src/main/java/com/diligrp/mobsite/getway/domain/protocol/AddCartProduct.java
0 → 100644
1 | +package com.diligrp.mobsite.getway.domain.protocol; | |
2 | + | |
3 | +import java.util.List; | |
4 | + | |
5 | +/** | |
6 | + * <B>Description</B> 合并进货单商品信息 <br /> | |
7 | + * <B>Copyright</B> Copyright (c) 2014 www.diligrp.com All rights reserved. <br /> | |
8 | + * 本软件源代码版权归地利集团,未经许可不得任意复制与传播.<br /> | |
9 | + * <B>Company</B> 地利集团 | |
10 | + * | |
11 | + * @author wujianjun | |
12 | + * @createTime 2014/8/26 18:36 | |
13 | + */ | |
14 | +public class AddCartProduct implements java.io.Serializable{ | |
15 | + | |
16 | + private static final long serialVersionUID = 835055891271505444L; | |
17 | + | |
18 | + /** | |
19 | + * 商品id | |
20 | + */ | |
21 | + private Long productId; | |
22 | + /** | |
23 | + * Sku版本 | |
24 | + */ | |
25 | + private Integer version; | |
26 | + /** | |
27 | + * SKU | |
28 | + */ | |
29 | + private List<Long> sku; | |
30 | + /** | |
31 | + * 店铺ID | |
32 | + */ | |
33 | + private Long shopId; | |
34 | + /** | |
35 | + * 价格方式:1-普通价格方式,2-价格区间方式 | |
36 | + */ | |
37 | + private Integer priceType; | |
38 | + /** | |
39 | + * TODO 后期需要删除,价格区间 | |
40 | + */ | |
41 | + @Deprecated | |
42 | + private List<Quotation> quotationList; | |
43 | + /** | |
44 | + * 普通价格 | |
45 | + */ | |
46 | + private Long price; | |
47 | + /** | |
48 | + * 购买数量 | |
49 | + */ | |
50 | + private Integer amount; | |
51 | + | |
52 | + | |
53 | + public Long getPrice() { | |
54 | + return price; | |
55 | + } | |
56 | + | |
57 | + public void setPrice(Long price) { | |
58 | + this.price = price; | |
59 | + } | |
60 | + | |
61 | + public Integer getAmount() { | |
62 | + return amount; | |
63 | + } | |
64 | + | |
65 | + public void setAmount(Integer amount) { | |
66 | + this.amount = amount; | |
67 | + } | |
68 | + | |
69 | + /** | |
70 | + * @return the sku | |
71 | + */ | |
72 | + public List<Long> getSku() { | |
73 | + return sku; | |
74 | + } | |
75 | + | |
76 | + /** | |
77 | + * @param sku the sku to set | |
78 | + */ | |
79 | + public void setSku(List<Long> sku) { | |
80 | + this.sku = sku; | |
81 | + } | |
82 | + | |
83 | + /** | |
84 | + * @return the productId | |
85 | + */ | |
86 | + public Long getProductId() { | |
87 | + return productId; | |
88 | + } | |
89 | + | |
90 | + /** | |
91 | + * @param productId the productId to set | |
92 | + */ | |
93 | + public void setProductId(Long productId) { | |
94 | + this.productId = productId; | |
95 | + } | |
96 | + | |
97 | + /** | |
98 | + * @return the priceType | |
99 | + */ | |
100 | + public Integer getPriceType() { | |
101 | + return priceType; | |
102 | + } | |
103 | + | |
104 | + /** | |
105 | + * @param priceType the priceType to set | |
106 | + */ | |
107 | + public void setPriceType(Integer priceType) { | |
108 | + this.priceType = priceType; | |
109 | + } | |
110 | + | |
111 | + /** | |
112 | + * @return the quotationList | |
113 | + */ | |
114 | + public List<Quotation> getQuotationList() { | |
115 | + return quotationList; | |
116 | + } | |
117 | + | |
118 | + /** | |
119 | + * @param quotationList the quotationList to set | |
120 | + */ | |
121 | + public void setQuotationList(List<Quotation> quotationList) { | |
122 | + this.quotationList = quotationList; | |
123 | + } | |
124 | + | |
125 | + /** | |
126 | + * @return the version | |
127 | + */ | |
128 | + public Integer getVersion() { | |
129 | + return version; | |
130 | + } | |
131 | + | |
132 | + /** | |
133 | + * @param version the version to set | |
134 | + */ | |
135 | + public void setVersion(Integer version) { | |
136 | + this.version = version; | |
137 | + } | |
138 | + | |
139 | + | |
140 | + public Long getShopId() { | |
141 | + return shopId; | |
142 | + } | |
143 | + | |
144 | + | |
145 | + public void setShopId(Long shopId) { | |
146 | + this.shopId = shopId; | |
147 | + } | |
148 | +} | ... | ... |
mobsite-getway-domain/src/main/java/com/diligrp/mobsite/getway/domain/protocol/AppraiseInfo.java
0 → 100644
1 | +package com.diligrp.mobsite.getway.domain.protocol; | |
2 | + | |
3 | +import java.util.Date; | |
4 | + | |
5 | +/** | |
6 | + * <B>Description</B> 评价信息 <br /> | |
7 | + * <B>Copyright</B> Copyright (c) 2014 www.diligrp.com All rights reserved. <br /> | |
8 | + * 本软件源代码版权归地利集团,未经许可不得任意复制与传播.<br /> | |
9 | + * <B>Company</B> 地利集团 | |
10 | + * @createTime Aug 14, 2014 8:36:41 PM | |
11 | + * @author wujianjun | |
12 | + */ | |
13 | +public class AppraiseInfo { | |
14 | + | |
15 | + /** | |
16 | + * 评分 | |
17 | + */ | |
18 | + private Float score; | |
19 | + /** | |
20 | + * 评价者-会员名 | |
21 | + */ | |
22 | + private String creator; | |
23 | + /** | |
24 | + * 评价内容 | |
25 | + */ | |
26 | + private String content; | |
27 | + /** | |
28 | + * 评价时间 | |
29 | + */ | |
30 | + private Date createTime; | |
31 | + | |
32 | + /** | |
33 | + * get value of AppraiseInfo.score | |
34 | + * @return the score | |
35 | + * @createTime Aug 14, 2014 8:39:22 PM | |
36 | + * @author wujianjun | |
37 | + */ | |
38 | + public Float getScore() { | |
39 | + return score; | |
40 | + } | |
41 | + | |
42 | + /** | |
43 | + * set value of AppraiseInfo.score | |
44 | + * @param score the score to set | |
45 | + * @createTime Aug 14, 2014 8:39:22 PM | |
46 | + * @author wujianjun | |
47 | + */ | |
48 | + public void setScore(Float score) { | |
49 | + this.score = score; | |
50 | + } | |
51 | + | |
52 | + /** | |
53 | + * get value of AppraiseInfo.creator | |
54 | + * @return the creator | |
55 | + * @createTime Aug 14, 2014 8:39:22 PM | |
56 | + * @author wujianjun | |
57 | + */ | |
58 | + public String getCreator() { | |
59 | + return creator; | |
60 | + } | |
61 | + | |
62 | + /** | |
63 | + * set value of AppraiseInfo.creator | |
64 | + * @param creator the creator to set | |
65 | + * @createTime Aug 14, 2014 8:39:22 PM | |
66 | + * @author wujianjun | |
67 | + */ | |
68 | + public void setCreator(String creator) { | |
69 | + this.creator = creator; | |
70 | + } | |
71 | + | |
72 | + /** | |
73 | + * get value of AppraiseInfo.content | |
74 | + * @return the content | |
75 | + * @createTime Aug 14, 2014 8:39:22 PM | |
76 | + * @author wujianjun | |
77 | + */ | |
78 | + public String getContent() { | |
79 | + return content; | |
80 | + } | |
81 | + | |
82 | + /** | |
83 | + * set value of AppraiseInfo.content | |
84 | + * @param content the content to set | |
85 | + * @createTime Aug 14, 2014 8:39:22 PM | |
86 | + * @author wujianjun | |
87 | + */ | |
88 | + public void setContent(String content) { | |
89 | + this.content = content; | |
90 | + } | |
91 | + | |
92 | + /** | |
93 | + * get value of AppraiseInfo.createTime | |
94 | + * @return the createTime | |
95 | + * @createTime Aug 14, 2014 8:39:22 PM | |
96 | + * @author wujianjun | |
97 | + */ | |
98 | + public Date getCreateTime() { | |
99 | + return createTime; | |
100 | + } | |
101 | + | |
102 | + /** | |
103 | + * set value of AppraiseInfo.createTime | |
104 | + * @param createTime the createTime to set | |
105 | + * @createTime Aug 14, 2014 8:39:22 PM | |
106 | + * @author wujianjun | |
107 | + */ | |
108 | + public void setCreateTime(Date createTime) { | |
109 | + this.createTime = createTime; | |
110 | + } | |
111 | + | |
112 | +} | ... | ... |
mobsite-getway-domain/src/main/java/com/diligrp/mobsite/getway/domain/protocol/AreaInfo.java
0 → 100644
1 | +package com.diligrp.mobsite.getway.domain.protocol; | |
2 | + | |
3 | +/** | |
4 | + * Created by xxxzzz on 2016/9/20. | |
5 | + */ | |
6 | +public class AreaInfo { | |
7 | + | |
8 | + private String cityCode; | |
9 | + | |
10 | + private String cityName; | |
11 | + | |
12 | + private String provinceCode; | |
13 | + private String provinceName; | |
14 | + | |
15 | + | |
16 | + public String getProvinceCode() { | |
17 | + return provinceCode; | |
18 | + } | |
19 | + | |
20 | + public void setProvinceCode(String provinceCode) { | |
21 | + this.provinceCode = provinceCode; | |
22 | + } | |
23 | + | |
24 | + public String getProvinceName() { | |
25 | + return provinceName; | |
26 | + } | |
27 | + | |
28 | + public void setProvinceName(String provinceName) { | |
29 | + this.provinceName = provinceName; | |
30 | + } | |
31 | + | |
32 | + public String getCityCode() { | |
33 | + return cityCode; | |
34 | + } | |
35 | + | |
36 | + public void setCityCode(String cityCode) { | |
37 | + this.cityCode = cityCode; | |
38 | + } | |
39 | + | |
40 | + public String getCityName() { | |
41 | + return cityName; | |
42 | + } | |
43 | + | |
44 | + public void setCityName(String cityName) { | |
45 | + this.cityName = cityName; | |
46 | + } | |
47 | + | |
48 | + @Override | |
49 | + public int hashCode() { | |
50 | + boolean prime = true; | |
51 | + byte result = 1; | |
52 | + int result1 = 31 * result + (this.cityCode == null?0:this.cityCode.hashCode()); | |
53 | + return result1; | |
54 | + } | |
55 | + | |
56 | + @Override | |
57 | + public boolean equals(Object obj){ | |
58 | + if(obj == null) return false; | |
59 | + if(this == obj) return true; | |
60 | + if(obj instanceof AreaInfo) { | |
61 | + AreaInfo areaInfo = (AreaInfo) obj; | |
62 | + // 比较cityCode和cityName 一致时才返回true 之后再去比较 hashCode | |
63 | + if (areaInfo.cityCode.equals(this.cityCode) && areaInfo.cityName.equals(this.cityName)) { | |
64 | + return true; | |
65 | + } | |
66 | + } | |
67 | + return false; | |
68 | + } | |
69 | + | |
70 | + | |
71 | +} | ... | ... |
mobsite-getway-domain/src/main/java/com/diligrp/mobsite/getway/domain/protocol/Attribute.java
0 → 100644
1 | +package com.diligrp.mobsite.getway.domain.protocol; | |
2 | + | |
3 | +import java.util.List; | |
4 | + | |
5 | +/** | |
6 | + * <B>Description</B> 商品搜索属性 <br /> | |
7 | + * <B>Copyright</B> Copyright (c) 2014 www.diligrp.com All rights reserved. <br /> | |
8 | + * 本软件源代码版权归地利集团,未经许可不得任意复制与传播.<br /> | |
9 | + * <B>Company</B> 地利集团 | |
10 | + * @createTime Aug 14, 2014 7:38:56 PM | |
11 | + * @author wujianjun | |
12 | + */ | |
13 | +public class Attribute { | |
14 | + | |
15 | + /** | |
16 | + * 商品属性Id | |
17 | + */ | |
18 | + private Long id; | |
19 | + /** | |
20 | + * 商品属性名称 | |
21 | + */ | |
22 | + private String name; | |
23 | + | |
24 | + /** | |
25 | + * 属性取值 | |
26 | + */ | |
27 | + private List<AttributeValue> values; | |
28 | + | |
29 | + /** | |
30 | + * get value of Attribute.id | |
31 | + * @return the id | |
32 | + * @createTime Aug 14, 2014 7:48:02 PM | |
33 | + * @author wujianjun | |
34 | + */ | |
35 | + public Long getId() { | |
36 | + return id; | |
37 | + } | |
38 | + | |
39 | + /** | |
40 | + * set value of Attribute.id | |
41 | + * @param id the id to set | |
42 | + * @createTime Aug 14, 2014 7:48:02 PM | |
43 | + * @author wujianjun | |
44 | + */ | |
45 | + public void setId(Long id) { | |
46 | + this.id = id; | |
47 | + } | |
48 | + | |
49 | + /** | |
50 | + * get value of Attribute.name | |
51 | + * @return the name | |
52 | + * @createTime Aug 14, 2014 7:48:02 PM | |
53 | + * @author wujianjun | |
54 | + */ | |
55 | + public String getName() { | |
56 | + return name; | |
57 | + } | |
58 | + | |
59 | + /** | |
60 | + * set value of Attribute.name | |
61 | + * @param name the name to set | |
62 | + * @createTime Aug 14, 2014 7:48:02 PM | |
63 | + * @author wujianjun | |
64 | + */ | |
65 | + public void setName(String name) { | |
66 | + this.name = name; | |
67 | + } | |
68 | + | |
69 | + /** | |
70 | + * get value of Attribute.values | |
71 | + * @return the values | |
72 | + * @createTime Aug 14, 2014 7:48:02 PM | |
73 | + * @author wujianjun | |
74 | + */ | |
75 | + public List<AttributeValue> getValues() { | |
76 | + return values; | |
77 | + } | |
78 | + | |
79 | + /** | |
80 | + * set value of Attribute.values | |
81 | + * @param values the values to set | |
82 | + * @createTime Aug 14, 2014 7:48:02 PM | |
83 | + * @author wujianjun | |
84 | + */ | |
85 | + public void setValues(List<AttributeValue> values) { | |
86 | + this.values = values; | |
87 | + } | |
88 | + | |
89 | +} | ... | ... |
mobsite-getway-domain/src/main/java/com/diligrp/mobsite/getway/domain/protocol/AttributeValue.java
0 → 100644
1 | +package com.diligrp.mobsite.getway.domain.protocol; | |
2 | + | |
3 | + | |
4 | +/** | |
5 | + * <B>Description</B> 属性值 <br /> | |
6 | + * <B>Copyright</B> Copyright (c) 2014 www.diligrp.com All rights reserved. <br /> | |
7 | + * 本软件源代码版权归地利集团,未经许可不得任意复制与传播.<br /> | |
8 | + * <B>Company</B> 地利集团 | |
9 | + * @createTime Aug 14, 2014 7:47:49 PM | |
10 | + * @author wujianjun | |
11 | + */ | |
12 | +public class AttributeValue { | |
13 | + | |
14 | + /** | |
15 | + * 是否有效:1-有效,2-失效 | |
16 | + * 1-有效 | |
17 | + */ | |
18 | + public static final int VALID_TYPE_YES = 1; | |
19 | + /** | |
20 | + * 2-失效 | |
21 | + */ | |
22 | + public static final int VALID_TYPE_NO = 2; | |
23 | + | |
24 | + /** | |
25 | + * 属性值ID | |
26 | + */ | |
27 | + private Long id; | |
28 | + /** | |
29 | + * 属性值名称 | |
30 | + */ | |
31 | + private String name; | |
32 | + | |
33 | + /** | |
34 | + * sku是否失效 | |
35 | + * it | |
36 | + */ | |
37 | + private Integer validType = VALID_TYPE_NO; | |
38 | + | |
39 | + /** | |
40 | + * get value of AttributeValue.id | |
41 | + * @return the id | |
42 | + * @createTime Aug 14, 2014 7:49:03 PM | |
43 | + * @author wujianjun | |
44 | + */ | |
45 | + public Long getId() { | |
46 | + return id; | |
47 | + } | |
48 | + | |
49 | + /** | |
50 | + * set value of AttributeValue.id | |
51 | + * @param id the id to set | |
52 | + * @createTime Aug 14, 2014 7:49:03 PM | |
53 | + * @author wujianjun | |
54 | + */ | |
55 | + public void setId(Long id) { | |
56 | + this.id = id; | |
57 | + } | |
58 | + | |
59 | + /** | |
60 | + * get value of AttributeValue.name | |
61 | + * @return the name | |
62 | + * @createTime Aug 14, 2014 7:49:03 PM | |
63 | + * @author wujianjun | |
64 | + */ | |
65 | + public String getName() { | |
66 | + return name; | |
67 | + } | |
68 | + | |
69 | + /** | |
70 | + * set value of AttributeValue.name | |
71 | + * @param name the name to set | |
72 | + * @createTime Aug 14, 2014 7:49:03 PM | |
73 | + * @author wujianjun | |
74 | + */ | |
75 | + public void setName(String name) { | |
76 | + this.name = name; | |
77 | + } | |
78 | + | |
79 | + | |
80 | + /** | |
81 | + * get value of AttributeValue.validType | |
82 | + * @return the validType | |
83 | + * @createTime 2014年10月28日 下午4:14:26 | |
84 | + * @author zhangshirui | |
85 | + */ | |
86 | + public Integer getValidType() { | |
87 | + return validType; | |
88 | + } | |
89 | + | |
90 | + | |
91 | + /** | |
92 | + * set value of AttributeValue.validType | |
93 | + * @param validType the validType to set | |
94 | + * @createTime 2014年10月28日 下午4:14:26 | |
95 | + * @author zhangshirui | |
96 | + */ | |
97 | + public void setValidType(Integer validType) { | |
98 | + this.validType = validType; | |
99 | + } | |
100 | + | |
101 | +} | ... | ... |
mobsite-getway-domain/src/main/java/com/diligrp/mobsite/getway/domain/protocol/BaseReq.java
0 → 100644
1 | +package com.diligrp.mobsite.getway.domain.protocol; | |
2 | + | |
3 | +import com.diligrp.website.util.security.Validator; | |
4 | + | |
5 | + | |
6 | +/** | |
7 | + * <B>Description</B> 请求协议头共用字段 <br /> | |
8 | + * <B>Copyright</B> Copyright (c) 2014 www.diligrp.com All rights reserved. <br /> | |
9 | + * 本软件源代码版权归地利集团,未经许可不得任意复制与传播.<br /> | |
10 | + * <B>Company</B> 地利集团 | |
11 | + * @createTime Aug 12, 2014 4:22:46 PM | |
12 | + * @author wujianjun | |
13 | + */ | |
14 | +@SuppressWarnings("serial") | |
15 | +public class BaseReq implements java.io.Serializable { | |
16 | + | |
17 | + /** | |
18 | + * 基础信息 | |
19 | + */ | |
20 | + private Token token; | |
21 | + /** | |
22 | + * 设备ID | |
23 | + */ | |
24 | + @Deprecated | |
25 | + private String deviceId; | |
26 | + /** | |
27 | + * get value of BaseReq.token | |
28 | + * @return the token | |
29 | + * @createTime Aug 12, 2014 4:47:24 PM | |
30 | + * @author wujianjun | |
31 | + */ | |
32 | + public Token getToken() { | |
33 | + return token; | |
34 | + } | |
35 | + | |
36 | + /** | |
37 | + * set value of BaseReq.token | |
38 | + * @param token the token to set | |
39 | + * @createTime Aug 12, 2014 4:47:24 PM | |
40 | + * @author wujianjun | |
41 | + */ | |
42 | + public void setToken(Token token) { | |
43 | + this.token = token; | |
44 | + } | |
45 | + | |
46 | + /** | |
47 | + * get value of BaseReq.deviceId | |
48 | + * @return the deviceId | |
49 | + * @createTime Aug 12, 2014 4:47:24 PM | |
50 | + * @author wujianjun | |
51 | + */ | |
52 | + public String getDeviceId() { | |
53 | + //TODO 后期需要删除 | |
54 | + if (this.deviceId != null) { | |
55 | + return deviceId; | |
56 | + }else { | |
57 | + return token == null ? null:this.getToken().getDeviceId(); | |
58 | + } | |
59 | + } | |
60 | + | |
61 | + /** | |
62 | + * set value of BaseReq.deviceId | |
63 | + * @param deviceId the deviceId to set | |
64 | + * @createTime Aug 12, 2014 4:47:24 PM | |
65 | + * @author wujianjun | |
66 | + */ | |
67 | + @Deprecated | |
68 | + public void setDeviceId(String deviceId) { | |
69 | + this.deviceId = deviceId; | |
70 | + } | |
71 | + | |
72 | + /** | |
73 | + * 获取当前请求源的用户ID,则token中解码获取 | |
74 | + * @return 用户ID | |
75 | + * @createTime Aug 14, 2014 8:23:05 PM | |
76 | + * @author wujianjun | |
77 | + */ | |
78 | + public Long getUserId() { | |
79 | + return token == null ? null:token.getUserId(); | |
80 | + } | |
81 | + | |
82 | + /** | |
83 | + *获取经度 | |
84 | + * */ | |
85 | + public Double getLongitude() { | |
86 | + return token == null ? null:token.getLongitude(); | |
87 | + } | |
88 | + /** | |
89 | + *获取纬度 | |
90 | + * */ | |
91 | + | |
92 | + public Double getLatitude() { | |
93 | + return token == null ? null:token.getLatitude(); | |
94 | + } | |
95 | + | |
96 | + /** | |
97 | + * 获取市场ID | |
98 | + * @return 市场ID | |
99 | + * @createTime Aug 14, 2014 8:44:22 PM | |
100 | + * @author wujianjun | |
101 | + */ | |
102 | + public Long getMarketId() { | |
103 | + return token == null? null:token.getMarketId(); | |
104 | + } | |
105 | + | |
106 | + public void setUserId(Long userId){ | |
107 | + Token token = this.token; | |
108 | + if (Validator.isNull(token)) { | |
109 | + token = new Token(); | |
110 | + this.setToken(token); | |
111 | + } | |
112 | + token.setUserId(userId); | |
113 | + } | |
114 | + | |
115 | + public Integer getDeviceType(){ | |
116 | + return token == null ? null:token.getDeviceType(); | |
117 | + } | |
118 | +} | ... | ... |
mobsite-getway-domain/src/main/java/com/diligrp/mobsite/getway/domain/protocol/BaseResp.java
0 → 100644
1 | +package com.diligrp.mobsite.getway.domain.protocol; | |
2 | + | |
3 | + | |
4 | +/** | |
5 | + * <B>Description</B> 响应协议头共用字段 <br /> | |
6 | + * <B>Copyright</B> Copyright (c) 2014 www.diligrp.com All rights reserved. <br /> | |
7 | + * 本软件源代码版权归地利集团,未经许可不得任意复制与传播.<br /> | |
8 | + * <B>Company</B> 地利集团 | |
9 | + * @createTime Aug 12, 2014 4:22:57 PM | |
10 | + * @author wujianjun | |
11 | + */ | |
12 | +@SuppressWarnings("serial") | |
13 | +public class BaseResp implements java.io.Serializable { | |
14 | + | |
15 | + /** | |
16 | + * 响应码 | |
17 | + */ | |
18 | + private Integer code; | |
19 | + /** | |
20 | + * 结果信息 | |
21 | + */ | |
22 | + private String msg; | |
23 | + public String getMsg() { | |
24 | + return msg; | |
25 | + } | |
26 | + public void setMsg(String msg) { | |
27 | + this.msg = msg; | |
28 | + } | |
29 | + public Integer getCode() { | |
30 | + return code; | |
31 | + } | |
32 | + public void setCode(Integer code) { | |
33 | + this.code = code; | |
34 | + } | |
35 | + | |
36 | +} | ... | ... |
mobsite-getway-domain/src/main/java/com/diligrp/mobsite/getway/domain/protocol/Category.java
0 → 100644
1 | +package com.diligrp.mobsite.getway.domain.protocol; | |
2 | + | |
3 | + | |
4 | + | |
5 | +/** | |
6 | + * <B>Description</B> 商品分类 <br /> | |
7 | + * <B>Copyright</B> Copyright (c) 2014 www.diligrp.com All rights reserved. <br /> | |
8 | + * 本软件源代码版权归地利集团,未经许可不得任意复制与传播.<br /> | |
9 | + * <B>Company</B> 地利集团 | |
10 | + * @createTime 2014年9月12日 下午5:12:27 | |
11 | + * @author zhangshirui | |
12 | + */ | |
13 | +public class Category { | |
14 | + | |
15 | + public static final String LEVEL_TWO = "2"; | |
16 | + public static final String LEVEL_THREE = "3"; | |
17 | + | |
18 | + /** | |
19 | + * 分类id | |
20 | + */ | |
21 | + private Long id; | |
22 | + @Deprecated | |
23 | + private Long Id; | |
24 | + /** | |
25 | + * 分类名 | |
26 | + */ | |
27 | + private String name; | |
28 | + @Deprecated | |
29 | + private String Name; | |
30 | + /** | |
31 | + * 分类图标地址 | |
32 | + */ | |
33 | + private String imgUrl; | |
34 | + /** | |
35 | + * 关联分类id | |
36 | + */ | |
37 | + private Long relateId; | |
38 | + /** | |
39 | + * 分类级别 | |
40 | + */ | |
41 | + private String level; | |
42 | + | |
43 | + public Long getId() { | |
44 | + return id; | |
45 | + } | |
46 | + | |
47 | + public void setId(Long id) { | |
48 | + this.id = id; | |
49 | + this.Id = id; | |
50 | + } | |
51 | + | |
52 | + public String getName() { | |
53 | + return name; | |
54 | + } | |
55 | + | |
56 | + public void setName(String name) { | |
57 | + this.Name = name; | |
58 | + this.name = name; | |
59 | + } | |
60 | + | |
61 | + public String getImgUrl() { | |
62 | + return imgUrl; | |
63 | + } | |
64 | + | |
65 | + public void setImgUrl(String imgUrl) { | |
66 | + this.imgUrl = imgUrl; | |
67 | + } | |
68 | + | |
69 | + public Long getRelateId() { | |
70 | + return relateId; | |
71 | + } | |
72 | + | |
73 | + public void setRelateId(Long relateId) { | |
74 | + this.relateId = relateId; | |
75 | + } | |
76 | + | |
77 | + public String getLevel() { | |
78 | + return level; | |
79 | + } | |
80 | + | |
81 | + public void setLevel(String level) { | |
82 | + this.level = level; | |
83 | + } | |
84 | + | |
85 | + public static String getLevelTwo() { | |
86 | + return LEVEL_TWO; | |
87 | + } | |
88 | + | |
89 | + public static String getLevelThree() { | |
90 | + return LEVEL_THREE; | |
91 | + } | |
92 | +} | ... | ... |
mobsite-getway-domain/src/main/java/com/diligrp/mobsite/getway/domain/protocol/CategoryChoice.java
0 → 100644
1 | +package com.diligrp.mobsite.getway.domain.protocol; | |
2 | + | |
3 | +import java.util.List; | |
4 | + | |
5 | + | |
6 | +/** | |
7 | + * <B>Description</B> 商品分类,搜索筛选协议体 <br /> | |
8 | + * <B>Copyright</B> Copyright (c) 2014 www.diligrp.com All rights reserved. <br /> | |
9 | + * 本软件源代码版权归地利集团,未经许可不得任意复制与传播.<br /> | |
10 | + * <B>Company</B> 地利集团 | |
11 | + * @createTime 2014年9月12日 下午5:12:27 | |
12 | + * @author zhangshirui | |
13 | + */ | |
14 | +public class CategoryChoice extends Category{ | |
15 | + | |
16 | + private List<Category> categoryList; | |
17 | + | |
18 | + /** | |
19 | + * get value of CategoryChoice.categoryList | |
20 | + * @return the categoryList | |
21 | + * @createTime 2014年9月16日 上午10:32:09 | |
22 | + * @author zhangshirui | |
23 | + */ | |
24 | + public List<Category> getCategoryList() { | |
25 | + return categoryList; | |
26 | + } | |
27 | + | |
28 | + | |
29 | + /** | |
30 | + * set value of CategoryChoice.categoryList | |
31 | + * @param categoryList the categoryList to set | |
32 | + * @createTime 2014年9月16日 上午10:32:09 | |
33 | + * @author zhangshirui | |
34 | + */ | |
35 | + public void setCategoryList(List<Category> categoryList) { | |
36 | + this.categoryList = categoryList; | |
37 | + } | |
38 | + | |
39 | +} | ... | ... |
mobsite-getway-domain/src/main/java/com/diligrp/mobsite/getway/domain/protocol/City.java
0 → 100644
1 | +package com.diligrp.mobsite.getway.domain.protocol; | |
2 | + | |
3 | + | |
4 | + | |
5 | +/** | |
6 | + * <B>Description</B> 城市信息 <br /> | |
7 | + * <B>Copyright</B> Copyright (c) 2014 www.diligrp.com All rights reserved. <br /> | |
8 | + * 本软件源代码版权归地利集团,未经许可不得任意复制与传播.<br /> | |
9 | + * <B>Company</B> 地利集团 | |
10 | + * @createTime Aug 18, 2014 10:54:37 AM | |
11 | + * @author wujianjun | |
12 | + */ | |
13 | +public class City { | |
14 | + | |
15 | + /** | |
16 | + * 有子分类 | |
17 | + */ | |
18 | + public static final Integer HASNEXT_YES = 1; | |
19 | + /** | |
20 | + * 没有子分类 | |
21 | + */ | |
22 | + public static final Integer HASNEXT_NO = 2; | |
23 | + /** | |
24 | + * 城市 ID | |
25 | + */ | |
26 | + private Long id; | |
27 | + /** | |
28 | + * 城市级别 | |
29 | + */ | |
30 | + private Integer level; | |
31 | + /** | |
32 | + * 城市名称 | |
33 | + */ | |
34 | + private String name; | |
35 | + /** | |
36 | + * 是否子级分类,HASNEXT_* | |
37 | + */ | |
38 | + private Integer hasNext; | |
39 | + /** | |
40 | + * 父级地区ID | |
41 | + */ | |
42 | + private Long pid; | |
43 | + | |
44 | + /** | |
45 | + * get value of City.pid | |
46 | + * @return the pid | |
47 | + * @createTime Aug 20, 2014 2:54:56 PM | |
48 | + * @author wujianjun | |
49 | + */ | |
50 | + public Long getPid() { | |
51 | + return pid; | |
52 | + } | |
53 | + | |
54 | + /** | |
55 | + * set value of City.pid | |
56 | + * @param pid the pid to set | |
57 | + * @createTime Aug 20, 2014 2:54:56 PM | |
58 | + * @author wujianjun | |
59 | + */ | |
60 | + public void setPid(Long pid) { | |
61 | + this.pid = pid; | |
62 | + } | |
63 | + | |
64 | + /** | |
65 | + * get value of City.id | |
66 | + * @return the id | |
67 | + * @createTime Aug 18, 2014 10:56:55 AM | |
68 | + * @author wujianjun | |
69 | + */ | |
70 | + public Long getId() { | |
71 | + return id; | |
72 | + } | |
73 | + | |
74 | + /** | |
75 | + * set value of City.id | |
76 | + * @param id the id to set | |
77 | + * @createTime Aug 18, 2014 10:56:55 AM | |
78 | + * @author wujianjun | |
79 | + */ | |
80 | + public void setId(Long id) { | |
81 | + this.id = id; | |
82 | + } | |
83 | + | |
84 | + /** | |
85 | + * get value of City.name | |
86 | + * @return the name | |
87 | + * @createTime Aug 18, 2014 10:56:55 AM | |
88 | + * @author wujianjun | |
89 | + */ | |
90 | + public String getName() { | |
91 | + return name; | |
92 | + } | |
93 | + | |
94 | + /** | |
95 | + * set value of City.name | |
96 | + * @param name the name to set | |
97 | + * @createTime Aug 18, 2014 10:56:55 AM | |
98 | + * @author wujianjun | |
99 | + */ | |
100 | + public void setName(String name) { | |
101 | + this.name = name; | |
102 | + } | |
103 | + | |
104 | + /** | |
105 | + * get value of City.hasNext | |
106 | + * @return the hasNext | |
107 | + * @createTime Aug 20, 2014 9:56:17 AM | |
108 | + * @author wujianjun | |
109 | + */ | |
110 | + public Integer getHasNext() { | |
111 | + return hasNext; | |
112 | + } | |
113 | + | |
114 | + /** | |
115 | + * set value of City.hasNext | |
116 | + * @param hasNext the hasNext to set | |
117 | + * @createTime Aug 20, 2014 9:56:17 AM | |
118 | + * @author wujianjun | |
119 | + */ | |
120 | + public void setHasNext(Integer hasNext) { | |
121 | + this.hasNext = hasNext; | |
122 | + } | |
123 | + | |
124 | + public Integer getLevel() { | |
125 | + return level; | |
126 | + } | |
127 | + | |
128 | + public void setLevel(Integer level) { | |
129 | + this.level = level; | |
130 | + } | |
131 | +} | ... | ... |
mobsite-getway-domain/src/main/java/com/diligrp/mobsite/getway/domain/protocol/CleanCartItem.java
0 → 100644
1 | +package com.diligrp.mobsite.getway.domain.protocol; | |
2 | + | |
3 | + | |
4 | +/** | |
5 | + * <B>Description</B> 移除购物车商品信息 <br /> | |
6 | + * <B>Copyright</B> Copyright (c) 2014 www.diligrp.com All rights reserved. <br /> | |
7 | + * 本软件源代码版权归地利集团,未经许可不得任意复制与传播.<br /> | |
8 | + * <B>Company</B> 地利集团 | |
9 | + * | |
10 | + * @author wujianjun | |
11 | + * @createTime 2014/8/26 17:17 | |
12 | + */ | |
13 | +public class CleanCartItem { | |
14 | + /** | |
15 | + * SKU信息 | |
16 | + */ | |
17 | + private String sku; | |
18 | + /** | |
19 | + * 提货点ID | |
20 | + */ | |
21 | + private Integer pickupId; | |
22 | + | |
23 | + | |
24 | + public String getSku() { | |
25 | + return sku; | |
26 | + } | |
27 | + | |
28 | + public void setSku(String sku) { | |
29 | + this.sku = sku; | |
30 | + } | |
31 | + | |
32 | + public Integer getPickupId() { | |
33 | + return pickupId; | |
34 | + } | |
35 | + | |
36 | + public void setPickupId(Integer pickupId) { | |
37 | + this.pickupId = pickupId; | |
38 | + } | |
39 | +} | ... | ... |
mobsite-getway-domain/src/main/java/com/diligrp/mobsite/getway/domain/protocol/CommentInfo.java
0 → 100644
1 | +package com.diligrp.mobsite.getway.domain.protocol; | |
2 | + | |
3 | +import java.util.Date; | |
4 | + | |
5 | +/** | |
6 | + * Created by liuguofeng719 on 2016/9/28. | |
7 | + */ | |
8 | +public class CommentInfo { | |
9 | + | |
10 | + private Long pid; | |
11 | + private String sku; | |
12 | + private Long sellerUserId; | |
13 | + private Long buyerUserId; | |
14 | + private String name; | |
15 | + private String comment; | |
16 | + private Integer rate; | |
17 | + private Integer productRate; | |
18 | + private Integer serviceRate; | |
19 | + private Integer deliveryRate; | |
20 | + private Date ctime; | |
21 | + | |
22 | + public Long getPid() { | |
23 | + return pid; | |
24 | + } | |
25 | + | |
26 | + public void setPid(Long pid) { | |
27 | + this.pid = pid; | |
28 | + } | |
29 | + | |
30 | + public String getSku() { | |
31 | + return sku; | |
32 | + } | |
33 | + | |
34 | + public void setSku(String sku) { | |
35 | + this.sku = sku; | |
36 | + } | |
37 | + | |
38 | + public Long getSellerUserId() { | |
39 | + return sellerUserId; | |
40 | + } | |
41 | + | |
42 | + public void setSellerUserId(Long sellerUserId) { | |
43 | + this.sellerUserId = sellerUserId; | |
44 | + } | |
45 | + | |
46 | + public Long getBuyerUserId() { | |
47 | + return buyerUserId; | |
48 | + } | |
49 | + | |
50 | + public void setBuyerUserId(Long buyerUserId) { | |
51 | + this.buyerUserId = buyerUserId; | |
52 | + } | |
53 | + | |
54 | + public String getName() { | |
55 | + return name; | |
56 | + } | |
57 | + | |
58 | + public void setName(String name) { | |
59 | + this.name = name; | |
60 | + } | |
61 | + | |
62 | + public String getComment() { | |
63 | + return comment; | |
64 | + } | |
65 | + | |
66 | + public void setComment(String comment) { | |
67 | + this.comment = comment; | |
68 | + } | |
69 | + | |
70 | + public Integer getRate() { | |
71 | + return rate; | |
72 | + } | |
73 | + | |
74 | + public void setRate(Integer rate) { | |
75 | + this.rate = rate; | |
76 | + } | |
77 | + | |
78 | + public Integer getProductRate() { | |
79 | + return productRate; | |
80 | + } | |
81 | + | |
82 | + public void setProductRate(Integer productRate) { | |
83 | + this.productRate = productRate; | |
84 | + } | |
85 | + | |
86 | + public Integer getServiceRate() { | |
87 | + return serviceRate; | |
88 | + } | |
89 | + | |
90 | + public void setServiceRate(Integer serviceRate) { | |
91 | + this.serviceRate = serviceRate; | |
92 | + } | |
93 | + | |
94 | + public Integer getDeliveryRate() { | |
95 | + return deliveryRate; | |
96 | + } | |
97 | + | |
98 | + public void setDeliveryRate(Integer deliveryRate) { | |
99 | + this.deliveryRate = deliveryRate; | |
100 | + } | |
101 | + | |
102 | + public Date getCtime() { | |
103 | + return ctime; | |
104 | + } | |
105 | + | |
106 | + public void setCtime(Date ctime) { | |
107 | + this.ctime = ctime; | |
108 | + } | |
109 | +} | ... | ... |
mobsite-getway-domain/src/main/java/com/diligrp/mobsite/getway/domain/protocol/ConsigneeInfo.java
0 → 100644
1 | +package com.diligrp.mobsite.getway.domain.protocol; | |
2 | + | |
3 | +import java.io.Serializable; | |
4 | + | |
5 | + | |
6 | +/** | |
7 | + * <B>Description</B> 提货人信息 <br /> | |
8 | + * <B>Copyright</B> Copyright (c) 2014 www.diligrp.com All rights reserved. <br /> | |
9 | + * 本软件源代码版权归地利集团,未经许可不得任意复制与传播.<br /> | |
10 | + * <B>Company</B> 地利集团 | |
11 | + * | |
12 | + * @author wujianjun | |
13 | + * @createTime 2014/8/28 10:37 | |
14 | + */ | |
15 | +public class ConsigneeInfo implements Serializable { | |
16 | + | |
17 | + private static final long serialVersionUID = 8718494787385584082L; | |
18 | + | |
19 | + /** | |
20 | + * 默认提货人-是 | |
21 | + */ | |
22 | + public static final int ISDEFAULT_YES = 2; | |
23 | + /** | |
24 | + * 默认提货人-否 | |
25 | + */ | |
26 | + public static final int ISDEFAULT_NO = 1; | |
27 | + | |
28 | + /** | |
29 | + * 是否市场内交割-是 | |
30 | + */ | |
31 | + public static final int DELIVERYTYPE_YES = 1; | |
32 | + /** | |
33 | + * 是否市场内交割-否 | |
34 | + */ | |
35 | + public static final int DELIVERYTYPE_NO = 2; | |
36 | + | |
37 | + /** | |
38 | + * id | |
39 | + */ | |
40 | + private Long id; | |
41 | + /** | |
42 | + * 用户姓名名字 | |
43 | + */ | |
44 | + private String name; | |
45 | + /** | |
46 | + * 电话 | |
47 | + */ | |
48 | + private String mobile; | |
49 | + /** | |
50 | + * 身份证号 | |
51 | + */ | |
52 | + private String idCard; | |
53 | + /** | |
54 | + * 是否为默认提货人 | |
55 | + */ | |
56 | + private Integer isDefault; | |
57 | + /** | |
58 | + * 城市地址编号 | |
59 | + */ | |
60 | + private Long cityAddressNo; | |
61 | + /** | |
62 | + * 城市地址 | |
63 | + */ | |
64 | + private String cityAddress; | |
65 | + /** | |
66 | + * 街道地址 | |
67 | + */ | |
68 | + private String streetAddress; | |
69 | + | |
70 | + /** | |
71 | + * 交割类型:1-市场内 2-市场外 | |
72 | + */ | |
73 | + private Integer deliveryType; | |
74 | + | |
75 | + | |
76 | + private Long marketId; | |
77 | + | |
78 | + | |
79 | + public Long getMarketId() { | |
80 | + return marketId; | |
81 | + } | |
82 | + | |
83 | + public void setMarketId(Long marketId) { | |
84 | + this.marketId = marketId; | |
85 | + } | |
86 | + | |
87 | + public Integer getDeliveryType() { | |
88 | + return deliveryType; | |
89 | + } | |
90 | + | |
91 | + public void setDeliveryType(Integer deliveryType) { | |
92 | + this.deliveryType = deliveryType; | |
93 | + } | |
94 | + | |
95 | + public String getIdCard() { | |
96 | + return idCard; | |
97 | + } | |
98 | + | |
99 | + public void setIdCard(String idCard) { | |
100 | + this.idCard = idCard; | |
101 | + } | |
102 | + | |
103 | + public Long getId() { | |
104 | + return id; | |
105 | + } | |
106 | + | |
107 | + public void setId(Long id) { | |
108 | + this.id = id; | |
109 | + } | |
110 | + | |
111 | + public String getName() { | |
112 | + return name; | |
113 | + } | |
114 | + | |
115 | + public void setName(String name) { | |
116 | + this.name = name; | |
117 | + } | |
118 | + | |
119 | + public String getMobile() { | |
120 | + return mobile; | |
121 | + } | |
122 | + | |
123 | + public void setMobile(String mobile) { | |
124 | + this.mobile = mobile; | |
125 | + } | |
126 | + | |
127 | + public Integer getIsDefault() { | |
128 | + return isDefault; | |
129 | + } | |
130 | + | |
131 | + public void setIsDefault(Integer isDefault) { | |
132 | + this.isDefault = isDefault; | |
133 | + } | |
134 | + | |
135 | + | |
136 | + public Long getCityAddressNo() { | |
137 | + return cityAddressNo; | |
138 | + } | |
139 | + | |
140 | + | |
141 | + public void setCityAddressNo(Long cityAddressNo) { | |
142 | + this.cityAddressNo = cityAddressNo; | |
143 | + } | |
144 | + | |
145 | + | |
146 | + public String getCityAddress() { | |
147 | + return cityAddress; | |
148 | + } | |
149 | + | |
150 | + | |
151 | + public void setCityAddress(String cityAddress) { | |
152 | + this.cityAddress = cityAddress; | |
153 | + } | |
154 | + | |
155 | + | |
156 | + public String getStreetAddress() { | |
157 | + return streetAddress; | |
158 | + } | |
159 | + | |
160 | + | |
161 | + public void setStreetAddress(String streetAddress) { | |
162 | + this.streetAddress = streetAddress; | |
163 | + } | |
164 | +} | ... | ... |
mobsite-getway-domain/src/main/java/com/diligrp/mobsite/getway/domain/protocol/DeliveryConsigneeInfo.java
0 → 100644
mobsite-getway-domain/src/main/java/com/diligrp/mobsite/getway/domain/protocol/Goods.java
0 → 100644
1 | +package com.diligrp.mobsite.getway.domain.protocol; | |
2 | + | |
3 | + | |
4 | +/** | |
5 | + * <B>Description</B> 产品信息 <br /> | |
6 | + * <B>Copyright</B> Copyright (c) 2014 www.diligrp.com All rights reserved. <br /> | |
7 | + * 本软件源代码版权归地利集团,未经许可不得任意复制与传播.<br /> | |
8 | + * <B>Company</B> 地利集团 | |
9 | + * @createTime Aug 13, 2014 6:32:59 PM | |
10 | + * @author wujianjun | |
11 | + */ | |
12 | +public class Goods extends GoodsSuper{ | |
13 | + | |
14 | + /** | |
15 | + * 10-地利自营 | |
16 | + * 20-代销 | |
17 | + * 30-第三方卖家 | |
18 | + * 40-询价商品 | |
19 | + */ | |
20 | + public static final int FLAG_DILI = 10; | |
21 | + public static final int FLAG_AGENT_SALE = 20; | |
22 | + public static final int FLAG_THIRD_PARTY = 30; | |
23 | + public static final int FLAG_CONSULT = 40; | |
24 | + | |
25 | + /** | |
26 | + * 1-商品未收藏 | |
27 | + * 2-用户已收藏 | |
28 | + */ | |
29 | + public static final int FAVORITES_FLAG_NO = 1; | |
30 | + public static final int FAVORITES_FLAG_YES = 2; | |
31 | + | |
32 | + /** | |
33 | + * 商品分类ID | |
34 | + */ | |
35 | + private Long categoryId; | |
36 | + /** | |
37 | + * 收藏标识 | |
38 | + */ | |
39 | + private Integer favoritesFlag; | |
40 | + /** | |
41 | + * 商品销售类型标识 | |
42 | + */ | |
43 | + private Integer saleType; | |
44 | + /** | |
45 | + * 销售数量 | |
46 | + */ | |
47 | + private Long salesNum; | |
48 | + /** | |
49 | + * 商品所在地 | |
50 | + */ | |
51 | + private String locationAddr; | |
52 | + | |
53 | + /** | |
54 | + * 店铺信息 | |
55 | + */ | |
56 | + private ShopIntroduction shopInfo; | |
57 | + | |
58 | + | |
59 | + /** | |
60 | + * 是否允许合作市场以外的市场进行交割 1-允许 2-不允许 | |
61 | + */ | |
62 | + private int isAllowDelivery; | |
63 | + | |
64 | + | |
65 | + public int getIsAllowDelivery() { | |
66 | + return isAllowDelivery; | |
67 | + } | |
68 | + | |
69 | + public void setIsAllowDelivery(int isAllowDelivery) { | |
70 | + this.isAllowDelivery = isAllowDelivery; | |
71 | + } | |
72 | + | |
73 | + /** | |
74 | + * get value of Goods.favoritesFlag | |
75 | + * @return the favoritesFlag | |
76 | + * @createTime 2014年9月12日 下午2:38:14 | |
77 | + * @author zhangshirui | |
78 | + */ | |
79 | + public Integer getFavoritesFlag() { | |
80 | + return favoritesFlag; | |
81 | + } | |
82 | + | |
83 | + | |
84 | + /** | |
85 | + * set value of Goods.favoritesFlag | |
86 | + * @param favoritesFlag the favoritesFlag to set | |
87 | + * @createTime 2014年9月12日 下午2:38:14 | |
88 | + * @author zhangshirui | |
89 | + */ | |
90 | + public void setFavoritesFlag(Integer favoritesFlag) { | |
91 | + this.favoritesFlag = favoritesFlag; | |
92 | + } | |
93 | + | |
94 | + /** | |
95 | + * @return the categoryId | |
96 | + */ | |
97 | + public Long getCategoryId() { | |
98 | + return categoryId; | |
99 | + } | |
100 | + | |
101 | + /** | |
102 | + * @param categoryId the categoryId to set | |
103 | + */ | |
104 | + public void setCategoryId(Long categoryId) { | |
105 | + this.categoryId = categoryId; | |
106 | + } | |
107 | + | |
108 | + | |
109 | + | |
110 | + /** | |
111 | + * get value of Goods.saleType | |
112 | + * @return the saleType | |
113 | + * @createTime 2014年10月31日 下午5:17:56 | |
114 | + * @author zhangshirui | |
115 | + */ | |
116 | + public Integer getSaleType() { | |
117 | + return saleType; | |
118 | + } | |
119 | + | |
120 | + | |
121 | + | |
122 | + /** | |
123 | + * set value of Goods.saleType | |
124 | + * @param saleType the saleType to set | |
125 | + * @createTime 2014年10月31日 下午5:17:56 | |
126 | + * @author zhangshirui | |
127 | + */ | |
128 | + public void setSaleType(Integer saleType) { | |
129 | + this.saleType = saleType; | |
130 | + } | |
131 | + | |
132 | + | |
133 | + | |
134 | + public Long getSalesNum() { | |
135 | + return salesNum; | |
136 | + } | |
137 | + | |
138 | + | |
139 | + | |
140 | + public void setSalesNum(Long salesNum) { | |
141 | + this.salesNum = salesNum; | |
142 | + } | |
143 | + | |
144 | + | |
145 | + | |
146 | + public String getLocationAddr() { | |
147 | + return locationAddr; | |
148 | + } | |
149 | + | |
150 | + | |
151 | + | |
152 | + public void setLocationAddr(String locationAddr) { | |
153 | + this.locationAddr = locationAddr; | |
154 | + } | |
155 | + | |
156 | + | |
157 | + public ShopIntroduction getShopInfo() { | |
158 | + return shopInfo; | |
159 | + } | |
160 | + | |
161 | + | |
162 | + public void setShopInfo(ShopIntroduction shopInfo) { | |
163 | + this.shopInfo = shopInfo; | |
164 | + } | |
165 | +} | ... | ... |