Commit 59bd76fb0f4afff33b75241d0c68d28e7d69b45b

Authored by Jiang
0 parents

初始化项目

Showing 67 changed files with 4845 additions and 0 deletions

Too many changes to show.

To preserve performance only 67 of 409 files are displayed.

.gitignore 0 → 100644
  1 +++ a/.gitignore
  1 +*.iml
  2 +.idea
  3 +.classpath
  4 +**/target/
  5 +*/webapp/WEB-INF/classes
  6 +*/webapp/WEB-INF/lib
  7 +*.MF
  8 +**/WEB-INF/classes/
  9 +**/WEB-INF/lib
  10 +**/.settings/
  11 +**/.classpath
  12 +**/.project
0 13 \ No newline at end of file
... ...
diligrp-website-api/pom.xml 0 → 100644
  1 +++ a/diligrp-website-api/pom.xml
  1 +<?xml version="1.0"?>
  2 +<project
  3 + xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"
  4 + xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
  5 + <modelVersion>4.0.0</modelVersion>
  6 + <groupId>com.b2c.website.web</groupId>
  7 + <artifactId>diligrp-website-api</artifactId>
  8 + <version>1.0.5-SNAPSHOT</version>
  9 + <name>diligrp-website-api</name>
  10 + <url>http://maven.apache.org</url>
  11 + <properties>
  12 + <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
  13 + <java.version>1.7</java.version>
  14 + </properties>
  15 +
  16 + <dependencies>
  17 + <!-- LOG -->
  18 + <dependency>
  19 + <groupId>log4j</groupId>
  20 + <artifactId>log4j</artifactId>
  21 + <version>1.2.16</version>
  22 + </dependency>
  23 + <dependency>
  24 + <groupId>org.slf4j</groupId>
  25 + <artifactId>slf4j-api</artifactId>
  26 + <version>1.6.1</version>
  27 + </dependency>
  28 + <dependency>
  29 + <groupId>org.slf4j</groupId>
  30 + <artifactId>slf4j-log4j12</artifactId>
  31 + <version>1.6.1</version>
  32 + </dependency>
  33 + <dependency>
  34 + <groupId>com.alibaba</groupId>
  35 + <artifactId>fastjson</artifactId>
  36 + <version>1.1.41</version>
  37 + </dependency>
  38 +
  39 + <dependency>
  40 + <groupId>org.apache.commons</groupId>
  41 + <artifactId>commons-lang3</artifactId>
  42 + <version>3.3.2</version>
  43 + </dependency>
  44 +
  45 + <dependency>
  46 + <groupId>com.b2c.website</groupId>
  47 + <artifactId>diligrp-website-util</artifactId>
  48 + <version>0.0.2-SNAPSHOT</version>
  49 + </dependency>
  50 +
  51 + <dependency>
  52 + <groupId>com.google.guava</groupId>
  53 + <artifactId>guava</artifactId>
  54 + <version>17.0</version>
  55 + </dependency>
  56 +
  57 +
  58 + </dependencies>
  59 +
  60 + <build>
  61 + <plugins>
  62 + <plugin>
  63 + <groupId>org.apache.maven.plugins</groupId>
  64 + <artifactId>maven-compiler-plugin</artifactId>
  65 + <version>3.1</version>
  66 + <configuration>
  67 + <source>${java.version}</source>
  68 + <target>${java.version}</target>
  69 + <showWarnings>true</showWarnings>
  70 + </configuration>
  71 + </plugin>
  72 + <plugin>
  73 + <artifactId>maven-source-plugin</artifactId>
  74 + <version>2.1</version>
  75 + <configuration>
  76 + <attach>true</attach>
  77 + </configuration>
  78 + <executions>
  79 + <execution>
  80 + <phase>compile</phase>
  81 + <goals>
  82 + <goal>jar</goal>
  83 + </goals>
  84 + </execution>
  85 + </executions>
  86 + </plugin>
  87 + </plugins>
  88 + </build>
  89 +
  90 +</project>
... ...
diligrp-website-api/src/main/java/com/diligrp/website/web/interfaces/WebsiteClient.java 0 → 100644
  1 +++ a/diligrp-website-api/src/main/java/com/diligrp/website/web/interfaces/WebsiteClient.java
  1 +package com.diligrp.website.web.interfaces;
  2 +
  3 +import com.diligrp.website.web.interfaces.service.*;
  4 +import com.diligrp.website.web.interfaces.service.impl.*;
  5 +
  6 +public class WebsiteClient {
  7 +
  8 + private CityService cityService;
  9 + private SysConfigService sysConfigService;
  10 + private DataDictionaryService dataDictionaryService;
  11 + private MailService mailService;
  12 + private DiliServiceService diliServiceService;
  13 + private SMSService smsService;
  14 + private PickUpApiService pickUpApiService;
  15 + private EncryptService encryptService;
  16 + private ShopNameModifyService shopNameModifyService;
  17 + private AuthLevelService authLevelService;
  18 + private OperateLogService operateLogService;
  19 +
  20 + public WebsiteClient(String token, String baseUrl) {
  21 + cityService = new CityServiceImpl(token, baseUrl);
  22 + sysConfigService = new SysConfigServiceImpl(token, baseUrl);
  23 + dataDictionaryService = new DataDictionaryServiceImpl(token, baseUrl);
  24 + mailService = new MailServiceImpl(token, baseUrl);
  25 + diliServiceService = new DiliServiceServiceImpl(token, baseUrl);
  26 + smsService = new SMSServiceImpl(token, baseUrl);
  27 + pickUpApiService = new PickUpApiServiceImpl(token, baseUrl);
  28 + encryptService = new EncryptServiceImpl(token, baseUrl);
  29 + shopNameModifyService = new ShopNameModifyServiceImpl(token, baseUrl);
  30 + authLevelService = new AuthLevelServiceImpl(token, baseUrl);
  31 + operateLogService = new OperateLogServiceImpl(token, baseUrl);
  32 + }
  33 +
  34 + public CityService getCityService() {
  35 + return this.cityService;
  36 + }
  37 +
  38 + public SysConfigService getSysConfigService() {
  39 + return this.sysConfigService;
  40 + }
  41 +
  42 + public DataDictionaryService getDataDictionaryService() {
  43 + return this.dataDictionaryService;
  44 + }
  45 +
  46 + public DiliServiceService getDiliServiceService() {
  47 + return diliServiceService;
  48 + }
  49 +
  50 + public MailService getMailService() {
  51 + return this.mailService;
  52 + }
  53 +
  54 + public SMSService getSMSService() {
  55 + return this.smsService;
  56 + }
  57 +
  58 + public PickUpApiService getPickUpApiService() {
  59 + return this.pickUpApiService;
  60 + }
  61 +
  62 + public EncryptService getEncryptService(){
  63 + return this.encryptService;
  64 + }
  65 +
  66 + public ShopNameModifyService getShopNameModifyService() {
  67 + return shopNameModifyService;
  68 + }
  69 +
  70 + public AuthLevelService getAuthLevelService() {
  71 + return authLevelService;
  72 + }
  73 +
  74 + public OperateLogService getOperateLogService() {
  75 + return operateLogService;
  76 + }
  77 +
  78 + public static void main(String[] args) {
  79 + WebsiteClient client = new WebsiteClient("token", "http://manweb.1n4j.com/");
  80 + CityService cityService = client.getCityService();
  81 + System.out.println(cityService.getParentCityListById(1231003));
  82 +// PickUpApiService pickUpApiService = client.getPickUpApiService();
  83 +// System.out.println(pickUpApiService.getAllPickupInfo(PickupTypeEnum.ALL));
  84 +// SMSService sms = client.getSMSService();
  85 +//
  86 +// SMSReq req = new SMSReq();
  87 +// req.setSmsMob("13693447275");
  88 +// req.setSmsText("test...");
  89 +//
  90 +// sms.sendSMS(req);
  91 + }
  92 +
  93 +
  94 +}
... ...
diligrp-website-api/src/main/java/com/diligrp/website/web/interfaces/domain/input/DiliServiceEnum.java 0 → 100644
  1 +++ a/diligrp-website-api/src/main/java/com/diligrp/website/web/interfaces/domain/input/DiliServiceEnum.java
  1 +package com.diligrp.website.web.interfaces.domain.input;
  2 +
  3 +
  4 +/**
  5 + * <B>Description</B> TODO <br />
  6 + * <B>Copyright</B> Copyright (c) 2014 www.diligrp.com All rights reserved. <br />
  7 + * 本软件源代码版权归地利集团,未经许可不得任意复制与传播.<br />
  8 + * <B>Company</B> 地利集团
  9 + * @createTime 2014年9月4日 上午10:37:20
  10 + * @author liujie
  11 + */
  12 +public enum DiliServiceEnum {
  13 + /**
  14 + * all 查询所有提货点的服务,up 查询提货点下面上架状态的服务 down 查询提货点下面下架状态的服务
  15 + */
  16 + all,up,down;
  17 +}
... ...
diligrp-website-api/src/main/java/com/diligrp/website/web/interfaces/domain/input/DiliServiceParam.java 0 → 100644
  1 +++ a/diligrp-website-api/src/main/java/com/diligrp/website/web/interfaces/domain/input/DiliServiceParam.java
  1 +package com.diligrp.website.web.interfaces.domain.input;
  2 +
  3 +/**
  4 + * <p>Title: 〈标题〉</p>
  5 + * <p>Description: 〈描述〉</p>
  6 + * <B>Copyright</B> Copyright (c) 2014 www.diligrp.com All rights reserved. <br />
  7 + * 本软件源代码版权归地利集团,未经许可不得任意复制与传播.<br />
  8 + * <B>Company</B> 地利集团
  9 + * <p>CreateTime:2014/6/9</p>
  10 + *
  11 + * @author zhukai
  12 + */
  13 +public class DiliServiceParam {
  14 + /**
  15 + * 上下架状态
  16 + */
  17 + public enum Status{
  18 + //上架
  19 + PUTAWAY(0)
  20 + //下架
  21 + ,DOWN(1)
  22 + ;
  23 + int val;
  24 +
  25 + Status(int val) {
  26 + this.val = val;
  27 + }
  28 +
  29 + public int getVal() {
  30 + return val;
  31 + }
  32 + }
  33 +
  34 + /**
  35 + * 服务类型
  36 + */
  37 + public enum Type{
  38 + /**
  39 + * 独立服务
  40 + */
  41 + INDIE(1)
  42 + /**
  43 + * 订单
  44 + */
  45 + ,ORDER(2)
  46 + /**
  47 + * 通用
  48 + */
  49 + , GENERAL(3);
  50 + int val;
  51 +
  52 + Type(int val) {
  53 + this.val = val;
  54 + }
  55 +
  56 + public int getVal() {
  57 + return val;
  58 + }
  59 + }
  60 +
  61 + /**
  62 + * 类别
  63 + */
  64 + public enum Category{
  65 + /**
  66 + * 采购
  67 + */
  68 + PURCHASE(1),
  69 + /**
  70 + * 销售
  71 + */
  72 + SALE(2),
  73 + /**
  74 + * 通用
  75 + */
  76 + GENERAL(3);
  77 + int val;
  78 +
  79 + Category(int val) {
  80 + this.val = val;
  81 + }
  82 +
  83 + public int getVal() {
  84 + return val;
  85 + }
  86 + }
  87 +}
... ...
diligrp-website-api/src/main/java/com/diligrp/website/web/interfaces/domain/input/MailReq.java 0 → 100644
  1 +++ a/diligrp-website-api/src/main/java/com/diligrp/website/web/interfaces/domain/input/MailReq.java
  1 +package com.diligrp.website.web.interfaces.domain.input;
  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年6月3日 上午11:34:52
  10 + * @author Wang22
  11 + */
  12 +public class MailReq {
  13 +
  14 + /**
  15 + * 收件人
  16 + */
  17 + private String addressee;
  18 +
  19 + /**
  20 + * 主题
  21 + */
  22 + private String subject;
  23 +
  24 + /**
  25 + * 内容
  26 + */
  27 + private String content;
  28 +
  29 + /**
  30 + * get value of EmailReq.addressee
  31 + * @return the addressee
  32 + * @createTime 2014年6月3日 上午11:59:04
  33 + * @author Wang22
  34 + */
  35 + public String getAddressee() {
  36 + return addressee;
  37 + }
  38 +
  39 + /**
  40 + * set value of EmailReq.addressee
  41 + * @param addressee the addressee to set
  42 + * @createTime 2014年6月3日 上午11:59:04
  43 + * @author Wang22
  44 + */
  45 + public void setAddressee(String addressee) {
  46 + this.addressee = addressee;
  47 + }
  48 +
  49 + /**
  50 + * get value of EmailReq.subject
  51 + * @return the subject
  52 + * @createTime 2014年6月3日 上午11:59:04
  53 + * @author Wang22
  54 + */
  55 + public String getSubject() {
  56 + return subject;
  57 + }
  58 +
  59 + /**
  60 + * set value of EmailReq.subject
  61 + * @param subject the subject to set
  62 + * @createTime 2014年6月3日 上午11:59:04
  63 + * @author Wang22
  64 + */
  65 + public void setSubject(String subject) {
  66 + this.subject = subject;
  67 + }
  68 +
  69 + /**
  70 + * get value of EmailReq.content
  71 + * @return the content
  72 + * @createTime 2014年6月3日 上午11:59:04
  73 + * @author Wang22
  74 + */
  75 + public String getContent() {
  76 + return content;
  77 + }
  78 +
  79 + /**
  80 + * set value of EmailReq.content
  81 + * @param content the content to set
  82 + * @createTime 2014年6月3日 上午11:59:04
  83 + * @author Wang22
  84 + */
  85 + public void setContent(String content) {
  86 + this.content = content;
  87 + }
  88 +
  89 + /*
  90 + * (non-Javadoc)
  91 + * @see java.lang.Object#toString()
  92 + */
  93 + @Override
  94 + public String toString() {
  95 + StringBuilder builder = new StringBuilder();
  96 + builder.append("EmailReq [addressee=");
  97 + builder.append(addressee);
  98 + builder.append(", subject=");
  99 + builder.append(subject);
  100 + builder.append(", content=");
  101 + builder.append(content);
  102 + builder.append("]");
  103 + return builder.toString();
  104 + }
  105 +
  106 +}
... ...
diligrp-website-api/src/main/java/com/diligrp/website/web/interfaces/domain/input/OperateLogTypeEnum.java 0 → 100644
  1 +++ a/diligrp-website-api/src/main/java/com/diligrp/website/web/interfaces/domain/input/OperateLogTypeEnum.java
  1 +package com.diligrp.website.web.interfaces.domain.input;
  2 +
  3 +/**
  4 + * <B>Description</B> TODO <br />
  5 + * <B>Copyright</B> Copyright (c) 2014 www.diligrp.com All rights reserved. <br />
  6 + * 本软件源代码版权归地利集团,未经许可不得任意复制与传播.<br />
  7 + * <B>Company</B> 地利集团
  8 + * @createTime 2015年11月5日 上午10:35:56
  9 + * @author LaiKui
  10 + */
  11 +public enum OperateLogTypeEnum {
  12 + /**
  13 + * SHOP:店铺 USER:用户 REAL_NAME_AUTH:实名认证 ENTERPRISE_AUTH :企业认证
  14 + */
  15 + SHOP, USER, REAL_NAME_AUTH ,ENTERPRISE_AUTH
  16 +
  17 +}
... ...
diligrp-website-api/src/main/java/com/diligrp/website/web/interfaces/domain/input/PickupTypeEnum.java 0 → 100644
  1 +++ a/diligrp-website-api/src/main/java/com/diligrp/website/web/interfaces/domain/input/PickupTypeEnum.java
  1 +package com.diligrp.website.web.interfaces.domain.input;
  2 +
  3 +/**
  4 + * <B>Description</B> TODO <br />
  5 + * <B>Copyright</B> Copyright (c) 2014 www.diligrp.com All rights reserved. <br />
  6 + * 本软件源代码版权归地利集团,未经许可不得任意复制与传播.<br />
  7 + * <B>Company</B> 地利集团
  8 + * @createTime 2014年8月22日 上午10:35:56
  9 + * @author liujie
  10 + */
  11 +public enum PickupTypeEnum {
  12 + /**
  13 + * ALL:所有 MARKET:市场 PUCKUP:提货点
  14 + */
  15 + ALL, MARKET, PUCKUP
  16 +
  17 +}
... ...
diligrp-website-api/src/main/java/com/diligrp/website/web/interfaces/domain/input/SMSReq.java 0 → 100644
  1 +++ a/diligrp-website-api/src/main/java/com/diligrp/website/web/interfaces/domain/input/SMSReq.java
  1 +package com.diligrp.website.web.interfaces.domain.input;
  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年6月4日 下午5:22:10
  10 + * @author Wang22
  11 + */
  12 +public class SMSReq {
  13 +
  14 + /**
  15 + * 短信号码,最多100个
  16 + */
  17 + private String[] smsMob;
  18 +
  19 + /**
  20 + * 短信内容
  21 + */
  22 + private String smsText;
  23 +
  24 + /**
  25 + * get value of SMSReq.smsMob
  26 + * @return the smsMob
  27 + * @createTime 2014年6月4日 下午5:23:17
  28 + * @author Wang22
  29 + */
  30 + public String[] getSmsMob() {
  31 + return smsMob;
  32 + }
  33 +
  34 + /**
  35 + * set value of SMSReq.smsMob
  36 + * @param smsMob the smsMob to set
  37 + * @createTime 2014年6月4日 下午5:23:17
  38 + * @author Wang22
  39 + */
  40 + public void setSmsMob(String... smsMob) {
  41 + this.smsMob = smsMob;
  42 + }
  43 +
  44 + /**
  45 + * get value of SMSReq.smsText
  46 + * @return the smsText
  47 + * @createTime 2014年6月4日 下午5:23:17
  48 + * @author Wang22
  49 + */
  50 + public String getSmsText() {
  51 + return smsText;
  52 + }
  53 +
  54 + /**
  55 + * set value of SMSReq.smsText
  56 + * @param smsText the smsText to set
  57 + * @createTime 2014年6月4日 下午5:23:17
  58 + * @author Wang22
  59 + */
  60 + public void setSmsText(String smsText) {
  61 + this.smsText = smsText;
  62 + }
  63 +
  64 +}
... ...
diligrp-website-api/src/main/java/com/diligrp/website/web/interfaces/domain/output/AuthLevelResp.java 0 → 100644
  1 +++ a/diligrp-website-api/src/main/java/com/diligrp/website/web/interfaces/domain/output/AuthLevelResp.java
  1 +package com.diligrp.website.web.interfaces.domain.output;
  2 +
  3 +import java.sql.Timestamp;
  4 +
  5 +public class AuthLevelResp extends BaseResp {
  6 +
  7 + private static final long serialVersionUID = 1L;
  8 +
  9 + private Long id;
  10 + // 状态 1:启用,2:停用
  11 + private Integer state;
  12 + // 等级名称
  13 + private String levelName;
  14 + //等级图标
  15 + private String levelLogo;
  16 + // 创建时间
  17 + private Timestamp createTime;
  18 +
  19 + public Integer getState() {
  20 + return state;
  21 + }
  22 +
  23 + public void setState(Integer state) {
  24 + this.state = state;
  25 + }
  26 +
  27 + public String getLevelName() {
  28 + return levelName;
  29 + }
  30 +
  31 + public void setLevelName(String levelName) {
  32 + this.levelName = levelName;
  33 + }
  34 +
  35 + public String getLevelLogo() {
  36 + return levelLogo;
  37 + }
  38 +
  39 + public void setLevelLogo(String levelLogo) {
  40 + this.levelLogo = levelLogo;
  41 + }
  42 +
  43 + public Timestamp getCreateTime() {
  44 + return createTime;
  45 + }
  46 +
  47 + public void setCreateTime(Timestamp createTime) {
  48 + this.createTime = createTime;
  49 + }
  50 +
  51 + public Long getId() {
  52 + return id;
  53 + }
  54 +
  55 + public void setId(Long id) {
  56 + this.id = id;
  57 + }
  58 +
  59 + @Override
  60 + public String toString() {
  61 + return "AuthLevelResp{" +
  62 + "id=" + id +
  63 + ", state=" + state +
  64 + ", levelName='" + levelName + '\'' +
  65 + ", levelLogo='" + levelLogo + '\'' +
  66 + ", createTime=" + createTime +
  67 + '}';
  68 + }
  69 +}
... ...
diligrp-website-api/src/main/java/com/diligrp/website/web/interfaces/domain/output/BaseResp.java 0 → 100644
  1 +++ a/diligrp-website-api/src/main/java/com/diligrp/website/web/interfaces/domain/output/BaseResp.java
  1 +package com.diligrp.website.web.interfaces.domain.output;
  2 +
  3 +import java.io.Serializable;
  4 +
  5 +public class BaseResp implements Serializable {
  6 +
  7 + private static final long serialVersionUID = 1L;
  8 +
  9 + /**
  10 + * 返回码: 正常
  11 + */
  12 + public static final int CODE_SUCCESS = 1;
  13 +
  14 + /**
  15 + * 返回码:数据不存在
  16 + */
  17 + public static final int CODE_NOT_EXISTS = 2;
  18 +
  19 + /**
  20 + * 返回码:非法参数
  21 + */
  22 + public static final int CODE_ILLEGAL_PARAM = 3;
  23 +
  24 + /**
  25 + * 返回码:失败
  26 + */
  27 + public static final int CODE_FAIL = 4;
  28 +
  29 + protected int code;
  30 +
  31 + protected String msg;
  32 +
  33 + /**
  34 + * get value of BaseResp.code
  35 + * @return the code
  36 + * @createTime 2014年5月22日 下午1:56:51
  37 + * @author Wang22
  38 + */
  39 + public int getCode() {
  40 + return code;
  41 + }
  42 +
  43 + /**
  44 + * set value of BaseResp.code
  45 + * @param code the code to set
  46 + * @createTime 2014年5月22日 下午1:56:51
  47 + * @author Wang22
  48 + */
  49 + public void setCode(int code) {
  50 + this.code = code;
  51 + }
  52 +
  53 + /**
  54 + * get value of BaseResp.msg
  55 + * @return the msg
  56 + * @createTime 2014年5月22日 下午1:56:51
  57 + * @author Wang22
  58 + */
  59 + public String getMsg() {
  60 + return msg;
  61 + }
  62 +
  63 + /**
  64 + * set value of BaseResp.msg
  65 + * @param msg the msg to set
  66 + * @createTime 2014年5月22日 下午1:56:51
  67 + * @author Wang22
  68 + */
  69 + public void setMsg(String msg) {
  70 + this.msg = msg;
  71 + }
  72 +
  73 +}
... ...
diligrp-website-api/src/main/java/com/diligrp/website/web/interfaces/domain/output/CityResp.java 0 → 100644
  1 +++ a/diligrp-website-api/src/main/java/com/diligrp/website/web/interfaces/domain/output/CityResp.java
  1 +package com.diligrp.website.web.interfaces.domain.output;
  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年5月14日 下午4:00:37
  10 + * @author Wang22
  11 + * @param <T>
  12 + */
  13 +public class CityResp extends BaseResp {
  14 +
  15 + private static final long serialVersionUID = 1L;
  16 +
  17 + // 区域ID
  18 + private Integer regionId;
  19 +
  20 + // 区域名称
  21 + private String regionName;
  22 +
  23 + // 区域级别
  24 + private Integer level;
  25 +
  26 + // 上级区域
  27 + private Integer parentId;
  28 +
  29 + // 排序
  30 + private Integer sort;
  31 +
  32 + /**
  33 + * get value of City.regionId
  34 + * @return the regionId
  35 + * @createTime 2014年5月14日 下午4:01:34
  36 + * @author Wang22
  37 + */
  38 + public Integer getRegionId() {
  39 + return regionId;
  40 + }
  41 +
  42 + /**
  43 + * set value of City.regionId
  44 + * @param regionId the regionId to set
  45 + * @createTime 2014年5月14日 下午4:01:34
  46 + * @author Wang22
  47 + */
  48 + public void setRegionId(Integer regionId) {
  49 + this.regionId = regionId;
  50 + }
  51 +
  52 + /**
  53 + * get value of City.regionName
  54 + * @return the regionName
  55 + * @createTime 2014年5月14日 下午4:01:34
  56 + * @author Wang22
  57 + */
  58 + public String getRegionName() {
  59 + return regionName;
  60 + }
  61 +
  62 + /**
  63 + * set value of City.regionName
  64 + * @param regionName the regionName to set
  65 + * @createTime 2014年5月14日 下午4:01:34
  66 + * @author Wang22
  67 + */
  68 + public void setRegionName(String regionName) {
  69 + this.regionName = regionName;
  70 + }
  71 +
  72 + /**
  73 + * get value of City.level
  74 + * @return the level
  75 + * @createTime 2014年5月14日 下午4:01:34
  76 + * @author Wang22
  77 + */
  78 + public Integer getLevel() {
  79 + return level;
  80 + }
  81 +
  82 + /**
  83 + * set value of City.level
  84 + * @param level the level to set
  85 + * @createTime 2014年5月14日 下午4:01:34
  86 + * @author Wang22
  87 + */
  88 + public void setLevel(Integer level) {
  89 + this.level = level;
  90 + }
  91 +
  92 + /**
  93 + * get value of City.parentId
  94 + * @return the parentId
  95 + * @createTime 2014年5月14日 下午4:01:34
  96 + * @author Wang22
  97 + */
  98 + public Integer getParentId() {
  99 + return parentId;
  100 + }
  101 +
  102 + /**
  103 + * set value of City.parentId
  104 + * @param parentId the parentId to set
  105 + * @createTime 2014年5月14日 下午4:01:34
  106 + * @author Wang22
  107 + */
  108 + public void setParentId(Integer parentId) {
  109 + this.parentId = parentId;
  110 + }
  111 +
  112 + /**
  113 + * get value of City.sort
  114 + * @return the sort
  115 + * @createTime 2014年5月14日 下午4:01:34
  116 + * @author Wang22
  117 + */
  118 + public Integer getSort() {
  119 + return sort;
  120 + }
  121 +
  122 + /**
  123 + * set value of City.sort
  124 + * @param sort the sort to set
  125 + * @createTime 2014年5月14日 下午4:01:34
  126 + * @author Wang22
  127 + */
  128 + public void setSort(Integer sort) {
  129 + this.sort = sort;
  130 + }
  131 +
  132 + /*
  133 + * (non-Javadoc)
  134 + * @see java.lang.Object#toString()
  135 + */
  136 + @Override
  137 + public String toString() {
  138 + StringBuilder builder = new StringBuilder();
  139 + builder.append("City [regionId=");
  140 + builder.append(regionId);
  141 + builder.append(", regionName=");
  142 + builder.append(regionName);
  143 + builder.append(", level=");
  144 + builder.append(level);
  145 + builder.append(", parentId=");
  146 + builder.append(parentId);
  147 + builder.append(", sort=");
  148 + builder.append(sort);
  149 + builder.append("]");
  150 + return builder.toString();
  151 + }
  152 +
  153 +}
... ...
diligrp-website-api/src/main/java/com/diligrp/website/web/interfaces/domain/output/CityResponseDto.java 0 → 100644
  1 +++ a/diligrp-website-api/src/main/java/com/diligrp/website/web/interfaces/domain/output/CityResponseDto.java
  1 +package com.diligrp.website.web.interfaces.domain.output;
  2 +
  3 +import java.io.Serializable;
  4 +
  5 +public class CityResponseDto implements Serializable {
  6 +
  7 +}
... ...
diligrp-website-api/src/main/java/com/diligrp/website/web/interfaces/domain/output/CountryAddressResp.java 0 → 100644
  1 +++ a/diligrp-website-api/src/main/java/com/diligrp/website/web/interfaces/domain/output/CountryAddressResp.java
  1 +package com.diligrp.website.web.interfaces.domain.output;
  2 +
  3 +public class CountryAddressResp extends BaseResp {
  4 +
  5 + /**
  6 + *
  7 + */
  8 + private static final long serialVersionUID = 1L;
  9 + //国家的具体地址
  10 + private String contryAddress;
  11 +
  12 + public String getContryAddress() {
  13 + return contryAddress;
  14 + }
  15 +
  16 + public void setContryAddress(String contryAddress) {
  17 + this.contryAddress = contryAddress;
  18 + }
  19 + @Override
  20 + public String toString() {
  21 + return "CountryAddressResp [contryAddress=" + contryAddress + "]";
  22 + }
  23 +}
... ...
diligrp-website-api/src/main/java/com/diligrp/website/web/interfaces/domain/output/CountryDto.java 0 → 100644
  1 +++ a/diligrp-website-api/src/main/java/com/diligrp/website/web/interfaces/domain/output/CountryDto.java
  1 +package com.diligrp.website.web.interfaces.domain.output;
  2 +
  3 +import java.util.List;
  4 +
  5 +public class CountryDto extends BaseResp {
  6 +
  7 + /**
  8 + *
  9 + */
  10 + private static final long serialVersionUID = 5216600564269586991L;
  11 +
  12 + /**
  13 + * 对应的是data_dictionary_value的id
  14 + */
  15 + private Long id;
  16 + /**
  17 + * 排序
  18 + */
  19 + private Integer sort;
  20 + /**
  21 + * 国家名称
  22 + */
  23 + private String name;
  24 + /**
  25 + * 国家下面的城市列表
  26 + */
  27 + private List<CityResp> cities;
  28 +
  29 + public Long getId() {
  30 + return id;
  31 + }
  32 +
  33 + public void setId(Long id) {
  34 + this.id = id;
  35 + }
  36 +
  37 + public Integer getSort() {
  38 + return sort;
  39 + }
  40 +
  41 + public void setSort(Integer sort) {
  42 + this.sort = sort;
  43 + }
  44 +
  45 + public String getName() {
  46 + return name;
  47 + }
  48 +
  49 + public void setName(String name) {
  50 + this.name = name;
  51 + }
  52 +
  53 + public List<CityResp> getCities() {
  54 + return cities;
  55 + }
  56 +
  57 + public void setCities(List<CityResp> cities) {
  58 + this.cities = cities;
  59 + }
  60 +
  61 +}
... ...
diligrp-website-api/src/main/java/com/diligrp/website/web/interfaces/domain/output/CountryResp.java 0 → 100644
  1 +++ a/diligrp-website-api/src/main/java/com/diligrp/website/web/interfaces/domain/output/CountryResp.java
  1 +package com.diligrp.website.web.interfaces.domain.output;
  2 +
  3 +import java.io.Serializable;
  4 +
  5 +import com.diligrp.website.util.domain.BaseDomain;
  6 +
  7 +/**
  8 + * <B>Description</B> TODO <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月27日 上午9:57:01
  13 + * @author liujie
  14 + */
  15 +public class CountryResp extends BaseResp implements Serializable {
  16 +
  17 + /**
  18 + *
  19 + */
  20 + private static final long serialVersionUID = 1L;
  21 + // 区域ID
  22 + private Long regionId;
  23 +
  24 + // 区域名称
  25 + private String regionName;
  26 + private String countryCode;
  27 + private Integer sort;
  28 +
  29 + public Long getRegionId() {
  30 + return regionId;
  31 + }
  32 +
  33 + public void setRegionId(Long regionId) {
  34 + this.regionId = regionId;
  35 + }
  36 +
  37 + public String getRegionName() {
  38 + return regionName;
  39 + }
  40 +
  41 + public void setRegionName(String regionName) {
  42 + this.regionName = regionName;
  43 + }
  44 +
  45 + public String getCountryCode() {
  46 + return countryCode;
  47 + }
  48 +
  49 + public void setCountryCode(String countryCode) {
  50 + this.countryCode = countryCode;
  51 + }
  52 +
  53 + public Integer getSort() {
  54 + return sort;
  55 + }
  56 +
  57 + public void setSort(Integer sort) {
  58 + this.sort = sort;
  59 + }
  60 +
  61 + @Override
  62 + public String toString() {
  63 + return "CountryResp [regionId=" + regionId + ", regionName="
  64 + + regionName + ", countryCode=" + countryCode + ", sort="
  65 + + sort + "]";
  66 + }
  67 +
  68 +}
... ...
diligrp-website-api/src/main/java/com/diligrp/website/web/interfaces/domain/output/DataDictionaryResp.java 0 → 100644
  1 +++ a/diligrp-website-api/src/main/java/com/diligrp/website/web/interfaces/domain/output/DataDictionaryResp.java
  1 +package com.diligrp.website.web.interfaces.domain.output;
  2 +
  3 +import java.sql.Timestamp;
  4 +import java.util.ArrayList;
  5 +import java.util.List;
  6 +import java.util.Map;
  7 +
  8 +import org.apache.commons.lang3.StringUtils;
  9 +
  10 +import com.google.common.collect.Maps;
  11 +
  12 +/**
  13 + *
  14 + * <B>Description</B> 数据字典对象 <br />
  15 + * <B>Copyright</B> Copyright (c) 2014 www.diligrp.com All rights reserved. <br />
  16 + * 本软件源代码版权归地利集团,未经许可不得任意复制与传播.<br />
  17 + * <B>Company</B> 地利集团
  18 + * @createTime 2014年5月22日 上午11:28:54
  19 + * @author Wang22
  20 + */
  21 +public class DataDictionaryResp extends BaseResp {
  22 +
  23 + private static final long serialVersionUID = 1L;
  24 +
  25 + /**
  26 + * id
  27 + */
  28 + private Long id;
  29 +
  30 + /**
  31 + * 字典编码
  32 + */
  33 + private String dataCode;
  34 +
  35 + /**
  36 + * 字典名称
  37 + */
  38 + private String name;
  39 +
  40 + /**
  41 + * 字典描述
  42 + */
  43 + private String remark;
  44 +
  45 + /**
  46 + * 创建时间
  47 + */
  48 + private Timestamp created;
  49 +
  50 + /**
  51 + * 变量列表
  52 + */
  53 + private List<DataDictionaryValueResp> values = new ArrayList<DataDictionaryValueResp>();
  54 +
  55 + private Map<Long, DataDictionaryValueResp> idValues;
  56 +
  57 + private Map<String, DataDictionaryValueResp> codeValues;
  58 +
  59 + public DataDictionaryValueResp getValueById(Long id){
  60 + if(idValues == null || idValues.isEmpty()){
  61 + return null;
  62 + }
  63 + return idValues.get(id);
  64 + }
  65 +
  66 + public DataDictionaryValueResp getValueByCode(String code){
  67 + if(codeValues == null || codeValues.isEmpty() || StringUtils.isEmpty(code)){
  68 + return null;
  69 + }
  70 + return codeValues.get(code);
  71 + }
  72 +
  73 +
  74 + /**
  75 + * get value of DataDictionaryResp.id
  76 + * @return the id
  77 + * @createTime 2014年5月22日 下午3:39:46
  78 + * @author Wang22
  79 + */
  80 + public Long getId() {
  81 + return id;
  82 + }
  83 +
  84 + /**
  85 + * set value of DataDictionaryResp.id
  86 + * @param id the id to set
  87 + * @createTime 2014年5月22日 下午3:39:46
  88 + * @author Wang22
  89 + */
  90 + public void setId(Long id) {
  91 + this.id = id;
  92 + }
  93 +
  94 + /**
  95 + * get value of DataDictionaryResp.dataCode
  96 + * @return the dataCode
  97 + * @createTime 2014年5月22日 下午3:39:46
  98 + * @author Wang22
  99 + */
  100 + public String getDataCode() {
  101 + return dataCode;
  102 + }
  103 +
  104 + /**
  105 + * set value of DataDictionaryResp.dataCode
  106 + * @param dataCode the dataCode to set
  107 + * @createTime 2014年5月22日 下午3:39:46
  108 + * @author Wang22
  109 + */
  110 + public void setDataCode(String dataCode) {
  111 + this.dataCode = dataCode;
  112 + }
  113 +
  114 + /**
  115 + * get value of DataDictionaryResp.name
  116 + * @return the name
  117 + * @createTime 2014年5月22日 下午3:39:46
  118 + * @author Wang22
  119 + */
  120 + public String getName() {
  121 + return name;
  122 + }
  123 +
  124 + /**
  125 + * set value of DataDictionaryResp.name
  126 + * @param name the name to set
  127 + * @createTime 2014年5月22日 下午3:39:46
  128 + * @author Wang22
  129 + */
  130 + public void setName(String name) {
  131 + this.name = name;
  132 + }
  133 +
  134 + /**
  135 + * get value of DataDictionaryResp.remark
  136 + * @return the remark
  137 + * @createTime 2014年5月22日 下午3:39:46
  138 + * @author Wang22
  139 + */
  140 + public String getRemark() {
  141 + return remark;
  142 + }
  143 +
  144 + /**
  145 + * set value of DataDictionaryResp.remark
  146 + * @param remark the remark to set
  147 + * @createTime 2014年5月22日 下午3:39:46
  148 + * @author Wang22
  149 + */
  150 + public void setRemark(String remark) {
  151 + this.remark = remark;
  152 + }
  153 +
  154 + /**
  155 + * get value of DataDictionaryResp.created
  156 + * @return the created
  157 + * @createTime 2014年5月22日 下午3:39:46
  158 + * @author Wang22
  159 + */
  160 + public Timestamp getCreated() {
  161 + return created;
  162 + }
  163 +
  164 + /**
  165 + * set value of DataDictionaryResp.created
  166 + * @param created the created to set
  167 + * @createTime 2014年5月22日 下午3:39:46
  168 + * @author Wang22
  169 + */
  170 + public void setCreated(Timestamp created) {
  171 + this.created = created;
  172 + }
  173 +
  174 + /**
  175 + * get value of DataDictionaryResp.values
  176 + * @return the values
  177 + * @createTime 2014年5月22日 下午3:39:46
  178 + * @author Wang22
  179 + */
  180 + public List<DataDictionaryValueResp> getValues() {
  181 + return values;
  182 + }
  183 +
  184 + /**
  185 + * set value of DataDictionaryResp.values
  186 + * @param values the values to set
  187 + * @createTime 2014年5月22日 下午3:39:46
  188 + * @author Wang22
  189 + */
  190 + public void setValues(List<DataDictionaryValueResp> values) {
  191 + this.values = values;
  192 + if (this.values == null || this.values.isEmpty()) {
  193 + return;
  194 + }
  195 + idValues = Maps.newHashMap();
  196 + codeValues = Maps.newHashMap();
  197 + for (DataDictionaryValueResp val : this.values) {
  198 + idValues.put(val.getId(), val);
  199 + codeValues.put(val.getCode(), val);
  200 + }
  201 + }
  202 +
  203 + /*
  204 + * (non-Javadoc)
  205 + * @see java.lang.Object#toString()
  206 + */
  207 + @Override
  208 + public String toString() {
  209 + StringBuilder builder = new StringBuilder();
  210 + builder.append("DataDictionaryResp [id=");
  211 + builder.append(id);
  212 + builder.append(", dataCode=");
  213 + builder.append(dataCode);
  214 + builder.append(", name=");
  215 + builder.append(name);
  216 + builder.append(", remark=");
  217 + builder.append(remark);
  218 + builder.append(", created=");
  219 + builder.append(created);
  220 + builder.append(", values=");
  221 + builder.append(values);
  222 + builder.append("]");
  223 + return builder.toString();
  224 + }
  225 +
  226 +}
... ...
diligrp-website-api/src/main/java/com/diligrp/website/web/interfaces/domain/output/DataDictionaryValueResp.java 0 → 100644
  1 +++ a/diligrp-website-api/src/main/java/com/diligrp/website/web/interfaces/domain/output/DataDictionaryValueResp.java
  1 +package com.diligrp.website.web.interfaces.domain.output;
  2 +
  3 +import java.sql.Timestamp;
  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年5月22日 上午11:33:20
  12 + * @author Wang22
  13 + */
  14 +public class DataDictionaryValueResp {
  15 +
  16 + /**
  17 + * id
  18 + */
  19 + private Long id;
  20 +
  21 + /**
  22 + * 主表ID
  23 + */
  24 + private Integer ddId;
  25 +
  26 + /**
  27 + * 排序
  28 + */
  29 + private Integer sort;
  30 +
  31 + /**
  32 + * 值编码
  33 + */
  34 + private String code;
  35 +
  36 + /**
  37 + * 值名称
  38 + */
  39 + private String name;
  40 +
  41 + /**
  42 + * 描述
  43 + */
  44 + private String remark;
  45 +
  46 + /**
  47 + * 创建时间
  48 + */
  49 + private Timestamp created;
  50 +
  51 + /**
  52 + * get value of DataDictionaryValue.id
  53 + * @return the id
  54 + * @createTime 2014年5月22日 上午11:40:34
  55 + * @author Wang22
  56 + */
  57 + public Long getId() {
  58 + return id;
  59 + }
  60 +
  61 + /**
  62 + * set value of DataDictionaryValue.id
  63 + * @param id the id to set
  64 + * @createTime 2014年5月22日 上午11:40:34
  65 + * @author Wang22
  66 + */
  67 + public void setId(Long id) {
  68 + this.id = id;
  69 + }
  70 +
  71 + /**
  72 + * get value of DataDictionaryValue.ddId
  73 + * @return the ddId
  74 + * @createTime 2014年5月22日 上午11:40:34
  75 + * @author Wang22
  76 + */
  77 + public Integer getDdId() {
  78 + return ddId;
  79 + }
  80 +
  81 + /**
  82 + * set value of DataDictionaryValue.ddId
  83 + * @param ddId the ddId to set
  84 + * @createTime 2014年5月22日 上午11:40:34
  85 + * @author Wang22
  86 + */
  87 + public void setDdId(Integer ddId) {
  88 + this.ddId = ddId;
  89 + }
  90 +
  91 + /**
  92 + * get value of DataDictionaryValue.soft
  93 + * @return the soft
  94 + * @createTime 2014年5月22日 上午11:40:34
  95 + * @author Wang22
  96 + */
  97 + public Integer getSort() {
  98 + return sort;
  99 + }
  100 +
  101 + /**
  102 + * set value of DataDictionaryValue.soft
  103 + * @param soft the soft to set
  104 + * @createTime 2014年5月22日 上午11:40:34
  105 + * @author Wang22
  106 + */
  107 + public void setSort(Integer sort) {
  108 + this.sort = sort;
  109 + }
  110 +
  111 + /**
  112 + * get value of DataDictionaryValue.code
  113 + * @return the code
  114 + * @createTime 2014年5月22日 上午11:40:34
  115 + * @author Wang22
  116 + */
  117 + public String getCode() {
  118 + return code;
  119 + }
  120 +
  121 + /**
  122 + * set value of DataDictionaryValue.code
  123 + * @param code the code to set
  124 + * @createTime 2014年5月22日 上午11:40:34
  125 + * @author Wang22
  126 + */
  127 + public void setCode(String code) {
  128 + this.code = code;
  129 + }
  130 +
  131 + /**
  132 + * get value of DataDictionaryValue.name
  133 + * @return the name
  134 + * @createTime 2014年5月22日 上午11:40:34
  135 + * @author Wang22
  136 + */
  137 + public String getName() {
  138 + return name;
  139 + }
  140 +
  141 + /**
  142 + * set value of DataDictionaryValue.name
  143 + * @param name the name to set
  144 + * @createTime 2014年5月22日 上午11:40:34
  145 + * @author Wang22
  146 + */
  147 + public void setName(String name) {
  148 + this.name = name;
  149 + }
  150 +
  151 + /**
  152 + * get value of DataDictionaryValue.remark
  153 + * @return the remark
  154 + * @createTime 2014年5月22日 上午11:40:34
  155 + * @author Wang22
  156 + */
  157 + public String getRemark() {
  158 + return remark;
  159 + }
  160 +
  161 + /**
  162 + * set value of DataDictionaryValue.remark
  163 + * @param remark the remark to set
  164 + * @createTime 2014年5月22日 上午11:40:34
  165 + * @author Wang22
  166 + */
  167 + public void setRemark(String remark) {
  168 + this.remark = remark;
  169 + }
  170 +
  171 + /**
  172 + * get value of DataDictionaryValue.created
  173 + * @return the created
  174 + * @createTime 2014年5月22日 上午11:40:34
  175 + * @author Wang22
  176 + */
  177 + public Timestamp getCreated() {
  178 + return created;
  179 + }
  180 +
  181 + /**
  182 + * set value of DataDictionaryValue.created
  183 + * @param created the created to set
  184 + * @createTime 2014年5月22日 上午11:40:34
  185 + * @author Wang22
  186 + */
  187 + public void setCreated(Timestamp created) {
  188 + this.created = created;
  189 + }
  190 +
  191 + /*
  192 + * (non-Javadoc)
  193 + * @see java.lang.Object#toString()
  194 + */
  195 + @Override
  196 + public String toString() {
  197 + StringBuilder builder = new StringBuilder();
  198 + builder.append("DataDictionaryValue [id=");
  199 + builder.append(id);
  200 + builder.append(", ddId=");
  201 + builder.append(ddId);
  202 + builder.append(", sort=");
  203 + builder.append(sort);
  204 + builder.append(", code=");
  205 + builder.append(code);
  206 + builder.append(", name=");
  207 + builder.append(name);
  208 + builder.append(", remark=");
  209 + builder.append(remark);
  210 + builder.append(", created=");
  211 + builder.append(created);
  212 + builder.append("]");
  213 + return builder.toString();
  214 + }
  215 +
  216 +}
... ...
diligrp-website-api/src/main/java/com/diligrp/website/web/interfaces/domain/output/DiliServiceResp.java 0 → 100644
  1 +++ a/diligrp-website-api/src/main/java/com/diligrp/website/web/interfaces/domain/output/DiliServiceResp.java
  1 +package com.diligrp.website.web.interfaces.domain.output;
  2 +
  3 +import java.util.Arrays;
  4 +
  5 +
  6 +/**
  7 + * <p>Title: 〈标题〉</p>
  8 + * <p>Description: 〈描述〉</p>
  9 + * <B>Copyright</B> Copyright (c) 2014 www.diligrp.com All rights reserved. <br />
  10 + * 本软件源代码版权归地利集团,未经许可不得任意复制与传播.<br />
  11 + * <B>Company</B> 地利集团
  12 + * <p>CreateTime:2014/6/4</p>
  13 + *
  14 + * @author zhukai
  15 + */
  16 +public class DiliServiceResp extends BaseResp {
  17 +
  18 + private static final long serialVersionUID = 1L;
  19 +
  20 + /**
  21 + * 上架
  22 + */
  23 + public static final Integer STATUS_PUTAWAY = 0;
  24 + /**
  25 + * 下架
  26 + */
  27 + public static final Integer STATUS_DOWN = 1;
  28 +
  29 +
  30 + private Long id;
  31 +
  32 + /**
  33 + * 服务名称
  34 + */
  35 + private String name;
  36 + /**
  37 + * 服务编码
  38 + */
  39 + private String serviceCode;
  40 + /**
  41 + * 服务类型;1独立服务,2订单服务,3.通用服务
  42 + */
  43 + private Integer type;
  44 + /**
  45 + * 服务介绍
  46 + */
  47 + private String remark;
  48 +
  49 + /**
  50 + * 上架状态,0上架,1下架
  51 + */
  52 + private Integer status;
  53 +
  54 + /**
  55 + * 覆盖范围
  56 + */
  57 + private Long[] coverages;
  58 +
  59 + /**
  60 + * 服务小图标
  61 + */
  62 + private String icon;
  63 +
  64 + /**
  65 + * 服务图片
  66 + */
  67 + private String image;
  68 +
  69 + /**
  70 + * 类别, 1, 采购, 2, 销售, 3, 通用
  71 + */
  72 + private Integer category;
  73 +
  74 +
  75 + public void setName (String name){
  76 + this.name = name;
  77 + }
  78 + public String getName(){
  79 + return this.name;
  80 + }
  81 +
  82 + public String getServiceCode() {
  83 + return serviceCode;
  84 + }
  85 +
  86 + public void setServiceCode(String serviceCode) {
  87 + this.serviceCode = serviceCode;
  88 + }
  89 +
  90 + public Long getId() {
  91 + return id;
  92 + }
  93 +
  94 + public void setId(Long id) {
  95 + this.id = id;
  96 + }
  97 +
  98 + public void setType (Integer type){
  99 + this.type = type;
  100 + }
  101 + public Integer getType(){
  102 + return this.type;
  103 + }
  104 +
  105 + public void setRemark (String remark){
  106 + this.remark = remark;
  107 + }
  108 + public String getRemark(){
  109 + return this.remark;
  110 + }
  111 +
  112 + public void setStatus (Integer status){
  113 + this.status = status;
  114 + }
  115 + public Integer getStatus(){
  116 + return this.status;
  117 + }
  118 +
  119 + public Long[] getCoverages() {
  120 + return coverages;
  121 + }
  122 +
  123 + public void setCoverages(Long[] coverages) {
  124 + this.coverages = coverages;
  125 + }
  126 +
  127 + public String getImage() {
  128 + return image;
  129 + }
  130 +
  131 + public void setImage(String image) {
  132 + this.image = image;
  133 + }
  134 +
  135 + public Integer getCategory() {
  136 + return category;
  137 + }
  138 +
  139 + public void setCategory(Integer category) {
  140 + this.category = category;
  141 + }
  142 +
  143 + /**
  144 + * get value of DiliServiceResp.icon
  145 + * @return the icon
  146 + * @createTime 2014年8月27日 下午4:37:36
  147 + * @author Wang22
  148 + */
  149 + public String getIcon() {
  150 + return icon;
  151 + }
  152 +
  153 + /**
  154 + * set value of DiliServiceResp.icon
  155 + * @param icon the icon to set
  156 + * @createTime 2014年8月27日 下午4:37:36
  157 + * @author Wang22
  158 + */
  159 + public void setIcon(String icon) {
  160 + this.icon = icon;
  161 + }
  162 + /* (non-Javadoc)
  163 + * @see java.lang.Object#toString()
  164 + */
  165 + @Override
  166 + public String toString() {
  167 + StringBuilder builder = new StringBuilder();
  168 + builder.append("DiliServiceResp [id=");
  169 + builder.append(id);
  170 + builder.append(", name=");
  171 + builder.append(name);
  172 + builder.append(", serviceCode=");
  173 + builder.append(serviceCode);
  174 + builder.append(", type=");
  175 + builder.append(type);
  176 + builder.append(", remark=");
  177 + builder.append(remark);
  178 + builder.append(", status=");
  179 + builder.append(status);
  180 + builder.append(", coverages=");
  181 + builder.append(Arrays.toString(coverages));
  182 + builder.append(", icon=");
  183 + builder.append(icon);
  184 + builder.append(", image=");
  185 + builder.append(image);
  186 + builder.append(", category=");
  187 + builder.append(category);
  188 + builder.append("]");
  189 + return builder.toString();
  190 + }
  191 +
  192 +
  193 +}
... ...
diligrp-website-api/src/main/java/com/diligrp/website/web/interfaces/domain/output/MailResp.java 0 → 100644
  1 +++ a/diligrp-website-api/src/main/java/com/diligrp/website/web/interfaces/domain/output/MailResp.java
  1 +package com.diligrp.website.web.interfaces.domain.output;
  2 +
  3 +
  4 +public class MailResp extends BaseResp {
  5 +
  6 + private static final long serialVersionUID = 1L;
  7 +
  8 + /**
  9 + * 邮件模板不存在
  10 + */
  11 + public static final int CODE_TEMPLATE_IS_NOT_EXISTS = 1000;
  12 +
  13 + /**
  14 + * 邮件配置不存在
  15 + */
  16 + public static final int CODE_MAIL_CFG_IS_NOT_EMPTY = 1010;
  17 +
  18 + /**
  19 + * 找不到邮件模板数据字典
  20 + */
  21 + public static final int CODE_CAN_NOT_FIND_MAIL_TEMPLATE = 1020;
  22 +
  23 +}
... ...
diligrp-website-api/src/main/java/com/diligrp/website/web/interfaces/domain/output/PickUpCityResp.java 0 → 100644
  1 +++ a/diligrp-website-api/src/main/java/com/diligrp/website/web/interfaces/domain/output/PickUpCityResp.java
  1 +package com.diligrp.website.web.interfaces.domain.output;
  2 +
  3 +import java.io.Serializable;
  4 +
  5 +
  6 +/**
  7 + * <B>Description</B> TODO <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月13日 下午3:41:43
  12 + * @author liujie
  13 + */
  14 +public class PickUpCityResp implements Serializable {
  15 + /**
  16 + *
  17 + */
  18 + private static final long serialVersionUID = 1L;
  19 + private Long pickId;
  20 + private Long cityId;
  21 +
  22 + public Long getPickId() {
  23 + return pickId;
  24 + }
  25 +
  26 + public void setPickId(Long pickId) {
  27 + this.pickId = pickId;
  28 + }
  29 +
  30 + public Long getCityId() {
  31 + return cityId;
  32 + }
  33 +
  34 + public void setCityId(Long cityId) {
  35 + this.cityId = cityId;
  36 + }
  37 +
  38 + @Override
  39 + public String toString() {
  40 + return "PickUpCity [pickId=" + pickId + ", cityId=" + cityId + "]";
  41 + }
  42 +
  43 +
  44 +}
... ...
diligrp-website-api/src/main/java/com/diligrp/website/web/interfaces/domain/output/PickUpPersonResp.java 0 → 100644
  1 +++ a/diligrp-website-api/src/main/java/com/diligrp/website/web/interfaces/domain/output/PickUpPersonResp.java
  1 +package com.diligrp.website.web.interfaces.domain.output;
  2 +
  3 +import java.io.Serializable;
  4 +import java.sql.Timestamp;
  5 +
  6 +/**
  7 + * <B>Description</B> TODO <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月13日 下午3:37:19
  12 + * @author liujie
  13 + */
  14 +public class PickUpPersonResp implements Serializable {
  15 +
  16 + /**
  17 + *
  18 + */
  19 + private static final long serialVersionUID = 1L;
  20 + private Long pickid;
  21 + // 联系人名字
  22 + private String contactName;
  23 + // 联系人电话
  24 + private String contactPhone;
  25 + // 创建时间
  26 + private Timestamp createTime;
  27 + // 修改时间
  28 + private Timestamp modifyTime;
  29 + // 是否有效
  30 + private Integer yn;
  31 +
  32 +
  33 +
  34 +
  35 + public Long getPickid() {
  36 + return pickid;
  37 + }
  38 +
  39 +
  40 + public void setPickid(Long pickid) {
  41 + this.pickid = pickid;
  42 + }
  43 +
  44 + public String getContactName() {
  45 + return contactName;
  46 + }
  47 +
  48 + public void setContactName(String contactName) {
  49 + this.contactName = contactName;
  50 + }
  51 +
  52 + public String getContactPhone() {
  53 + return contactPhone;
  54 + }
  55 +
  56 + public void setContactPhone(String contactPhone) {
  57 + this.contactPhone = contactPhone;
  58 + }
  59 +
  60 + public Timestamp getCreateTime() {
  61 + return createTime;
  62 + }
  63 +
  64 + public void setCreateTime(Timestamp createTime) {
  65 + this.createTime = createTime;
  66 + }
  67 +
  68 + public Timestamp getModifyTime() {
  69 + return modifyTime;
  70 + }
  71 +
  72 + public void setModifyTime(Timestamp modifyTime) {
  73 + this.modifyTime = modifyTime;
  74 + }
  75 +
  76 + public Integer getYn() {
  77 + return yn;
  78 + }
  79 +
  80 + public void setYn(Integer yn) {
  81 + this.yn = yn;
  82 + }
  83 +
  84 +
  85 + @Override
  86 + public String toString() {
  87 + return "PickUpPerson [pickid=" + pickid + ", contactName="
  88 + + contactName + ", contactPhone=" + contactPhone
  89 + + ", createTime=" + createTime + ", modifyTime=" + modifyTime
  90 + + ", yn=" + yn + "]";
  91 + }
  92 +
  93 +}
... ...
diligrp-website-api/src/main/java/com/diligrp/website/web/interfaces/domain/output/PickUpPointResp.java 0 → 100644
  1 +++ a/diligrp-website-api/src/main/java/com/diligrp/website/web/interfaces/domain/output/PickUpPointResp.java
  1 +package com.diligrp.website.web.interfaces.domain.output;
  2 +
  3 +import java.io.Serializable;
  4 +import java.sql.Timestamp;
  5 +import java.util.List;
  6 +
  7 +
  8 +/**
  9 + * <B>Description</B> TODO <br />
  10 + * <B>Copyright</B> Copyright (c) 2014 www.diligrp.com All rights reserved. <br />
  11 + * 本软件源代码版权归地利集团,未经许可不得任意复制与传播.<br />
  12 + * <B>Company</B> 地利集团
  13 + * @createTime 2014年8月13日 下午3:19:01
  14 + * @author liujie
  15 + */
  16 +public class PickUpPointResp extends BaseResp implements Serializable {
  17 +
  18 + /**
  19 + * 提货点不存在
  20 + */
  21 + public static final int PICKUP_IS_NOT_EXISTS = 1000;
  22 +
  23 + /**
  24 + *
  25 + */
  26 + private static final long serialVersionUID = 1L;
  27 + private Long id;
  28 + //提货点名称
  29 + private String pickName;
  30 + //提货点编码
  31 + private String pickCode;
  32 + //市场id
  33 + private Long addressId;
  34 + //联系地址
  35 + private String addressTxt;
  36 + //有效期开始时间
  37 +// private Timestamp startTime;
  38 + //有效期结束时间
  39 +// private Timestamp endTime;
  40 + //提货点描述
  41 + private String remark;
  42 + //是否是市场 1:是市场 2:不是市场
  43 + private Integer isMarket;
  44 + //是否是默认市场 0:否 1:是
  45 + private Integer isDeaflutMarket=0;
  46 + //坐标经度
  47 + private String longitude;
  48 + //坐标纬度
  49 + private String latitude;
  50 + //提货点简称
  51 + private String abbreviation;
  52 + //创建时间
  53 + private Timestamp createTime;
  54 + //修改时间
  55 + private Timestamp modifyTime;
  56 + //是否有效
  57 + private Integer yn;
  58 + //操作人员id
  59 + private Long operateId;
  60 + //操作人员名字
  61 + private String operateName;
  62 + //联系人信息
  63 + private List<PickUpPersonResp> personList;
  64 + //关联城市信息
  65 + private List<PickUpCityResp> cityList;
  66 + //当isMarket=2时 不是市场的时候提货点所关联的市场主键
  67 + private Long parentPickId;
  68 + //是否关联市场 0是未关联 1是关联
  69 + private Integer relationMarket;
  70 + //市场关联下面的提货点信息
  71 + private List<PickUpPointResp> relationPickList;
  72 +
  73 + public List<PickUpPointResp> getRelationPickList() {
  74 + return relationPickList;
  75 + }
  76 +
  77 +
  78 +
  79 +
  80 +
  81 + public void setRelationPickList(List<PickUpPointResp> relationPickList) {
  82 + this.relationPickList = relationPickList;
  83 + }
  84 +
  85 +
  86 +
  87 +
  88 + public Integer getRelationMarket() {
  89 + return relationMarket;
  90 + }
  91 +
  92 +
  93 +
  94 +
  95 + public void setRelationMarket(Integer relationMarket) {
  96 + this.relationMarket = relationMarket;
  97 + }
  98 +
  99 +
  100 +
  101 + public Long getParentPickId() {
  102 + return parentPickId;
  103 + }
  104 +
  105 +
  106 +
  107 + public void setParentPickId(Long parentPickId) {
  108 + this.parentPickId = parentPickId;
  109 + }
  110 +
  111 +
  112 + public List<PickUpPersonResp> getPersonList() {
  113 + return personList;
  114 + }
  115 +
  116 +
  117 + public void setPersonList(List<PickUpPersonResp> personList) {
  118 + this.personList = personList;
  119 + }
  120 +
  121 +
  122 + public List<PickUpCityResp> getCityList() {
  123 + return cityList;
  124 + }
  125 +
  126 +
  127 + public void setCityList(List<PickUpCityResp> cityList) {
  128 + this.cityList = cityList;
  129 + }
  130 +
  131 + public Long getId() {
  132 + return id;
  133 + }
  134 +
  135 + public void setId(Long id) {
  136 + this.id = id;
  137 + }
  138 +
  139 + public String getPickName() {
  140 + return pickName;
  141 + }
  142 +
  143 + public void setPickName(String pickName) {
  144 + this.pickName = pickName;
  145 + }
  146 +
  147 + public String getPickCode() {
  148 + return pickCode;
  149 + }
  150 +
  151 + public void setPickCode(String pickCode) {
  152 + this.pickCode = pickCode;
  153 + }
  154 +
  155 + public Long getAddressId() {
  156 + return addressId;
  157 + }
  158 +
  159 + public void setAddressId(Long addressId) {
  160 + this.addressId = addressId;
  161 + }
  162 +
  163 + public String getAddressTxt() {
  164 + return addressTxt;
  165 + }
  166 +
  167 + public void setAddressTxt(String addressTxt) {
  168 + this.addressTxt = addressTxt;
  169 + }
  170 +
  171 +
  172 +
  173 + public String getRemark() {
  174 + return remark;
  175 + }
  176 +
  177 + public void setRemark(String remark) {
  178 + this.remark = remark;
  179 + }
  180 +
  181 + public Integer getIsMarket() {
  182 + return isMarket;
  183 + }
  184 +
  185 + public void setIsMarket(Integer isMarket) {
  186 + this.isMarket = isMarket;
  187 + }
  188 +
  189 + public Integer getIsDeaflutMarket() {
  190 + return isDeaflutMarket;
  191 + }
  192 +
  193 + public void setIsDeaflutMarket(Integer isDeaflutMarket) {
  194 + this.isDeaflutMarket = isDeaflutMarket;
  195 + }
  196 +
  197 + public String getLongitude() {
  198 + return longitude;
  199 + }
  200 +
  201 + public void setLongitude(String longitude) {
  202 + this.longitude = longitude;
  203 + }
  204 +
  205 + public String getLatitude() {
  206 + return latitude;
  207 + }
  208 +
  209 + public void setLatitude(String latitude) {
  210 + this.latitude = latitude;
  211 + }
  212 +
  213 + public String getAbbreviation() {
  214 + return abbreviation;
  215 + }
  216 +
  217 + public void setAbbreviation(String abbreviation) {
  218 + this.abbreviation = abbreviation;
  219 + }
  220 +
  221 + public Timestamp getCreateTime() {
  222 + return createTime;
  223 + }
  224 +
  225 + public void setCreateTime(Timestamp createTime) {
  226 + this.createTime = createTime;
  227 + }
  228 +
  229 + public Timestamp getModifyTime() {
  230 + return modifyTime;
  231 + }
  232 +
  233 + public void setModifyTime(Timestamp modifyTime) {
  234 + this.modifyTime = modifyTime;
  235 + }
  236 +
  237 + public Integer getYn() {
  238 + return yn;
  239 + }
  240 +
  241 + public void setYn(Integer yn) {
  242 + this.yn = yn;
  243 + }
  244 +
  245 +
  246 + public Long getOperateId() {
  247 + return operateId;
  248 + }
  249 +
  250 +
  251 + public void setOperateId(Long operateId) {
  252 + this.operateId = operateId;
  253 + }
  254 +
  255 +
  256 + public String getOperateName() {
  257 + return operateName;
  258 + }
  259 +
  260 + public void setOperateName(String operateName) {
  261 + this.operateName = operateName;
  262 + }
  263 +
  264 +
  265 + @Override
  266 + public String toString() {
  267 + return "PickUpPointDomain [id=" + id + ", pickName=" + pickName
  268 + + ", pickCode=" + pickCode + ", addressId=" + addressId
  269 + + ", addressTxt=" + addressTxt + ", remark=" + remark
  270 + + ", isMarket=" + isMarket + ", isDeaflutMarket="
  271 + + isDeaflutMarket + ", longitude=" + longitude + ", latitude="
  272 + + latitude + ", abbreviation=" + abbreviation + ", createTime="
  273 + + createTime + ", modifyTime=" + modifyTime + ", yn=" + yn
  274 + + ", operateId=" + operateId + ", operateName=" + operateName
  275 + + ", personList=" + personList + ", cityList=" + cityList + "]";
  276 + }
  277 +
  278 +}
... ...
diligrp-website-api/src/main/java/com/diligrp/website/web/interfaces/domain/output/PickupCity.java 0 → 100644
  1 +++ a/diligrp-website-api/src/main/java/com/diligrp/website/web/interfaces/domain/output/PickupCity.java
  1 +package com.diligrp.website.web.interfaces.domain.output;
  2 +
  3 +
  4 +public class PickupCity {
  5 +
  6 +}
... ...
diligrp-website-api/src/main/java/com/diligrp/website/web/interfaces/domain/output/ResultResp.java 0 → 100644
  1 +++ a/diligrp-website-api/src/main/java/com/diligrp/website/web/interfaces/domain/output/ResultResp.java
  1 +package com.diligrp.website.web.interfaces.domain.output;
  2 +
  3 +public class ResultResp<T> extends BaseResp {
  4 +
  5 + private static final long serialVersionUID = 1L;
  6 +
  7 + private T value;
  8 +
  9 +
  10 +
  11 + public T getValue() {
  12 + return value;
  13 + }
  14 +
  15 +
  16 +
  17 + public void setValue(T value) {
  18 + this.value = value;
  19 + }
  20 +
  21 +
  22 + @Override
  23 + public String toString() {
  24 + StringBuilder builder = new StringBuilder();
  25 + builder.append("ResultResp [code=");
  26 + builder.append(code);
  27 + builder.append(", msg=");
  28 + builder.append(msg);
  29 + builder.append(", value=");
  30 + builder.append(value);
  31 + builder.append("]");
  32 + return builder.toString();
  33 + }
  34 +
  35 +}
... ...
diligrp-website-api/src/main/java/com/diligrp/website/web/interfaces/domain/output/SMSResp.java 0 → 100644
  1 +++ a/diligrp-website-api/src/main/java/com/diligrp/website/web/interfaces/domain/output/SMSResp.java
  1 +package com.diligrp.website.web.interfaces.domain.output;
  2 +
  3 +public class SMSResp extends BaseResp {
  4 +
  5 + private static final long serialVersionUID = 6682558893423912232L;
  6 +
  7 + /**
  8 + * 手机号码数量太长
  9 + */
  10 + public static final int CODE_MOBILE_SIZE_TOO_MUCH = 5;
  11 +
  12 + /*
  13 + * (non-Javadoc)
  14 + * @see java.lang.Object#toString()
  15 + */
  16 + @Override
  17 + public String toString() {
  18 + StringBuilder builder = new StringBuilder();
  19 + builder.append("SMSResp [code=");
  20 + builder.append(code);
  21 + builder.append(", msg=");
  22 + builder.append(msg);
  23 + builder.append("]");
  24 + return builder.toString();
  25 + }
  26 +
  27 +}
... ...
diligrp-website-api/src/main/java/com/diligrp/website/web/interfaces/domain/output/ShopNameModifyResp.java 0 → 100644
  1 +++ a/diligrp-website-api/src/main/java/com/diligrp/website/web/interfaces/domain/output/ShopNameModifyResp.java
  1 +package com.diligrp.website.web.interfaces.domain.output;
  2 +
  3 +import java.lang.Integer;
  4 +import java.lang.Override;
  5 +import java.lang.String;
  6 +import java.sql.Timestamp;
  7 +
  8 +public class ShopNameModifyResp extends BaseResp {
  9 +
  10 + private static final long serialVersionUID = 1L;
  11 +
  12 + // 审核状态 1:待审核,2:审核通过,3:审核未通过
  13 + private Integer state;
  14 +
  15 + // 拒绝原因
  16 + private String refuseReason;
  17 +
  18 + // 申请时间
  19 + private Timestamp createTime;
  20 +
  21 + public Integer getState() {
  22 + return state;
  23 + }
  24 +
  25 + public void setState(Integer state) {
  26 + this.state = state;
  27 + }
  28 +
  29 + public String getRefuseReason() {
  30 + return refuseReason;
  31 + }
  32 +
  33 + public void setRefuseReason(String refuseReason) {
  34 + this.refuseReason = refuseReason;
  35 + }
  36 +
  37 + public Timestamp getCreateTime() {
  38 + return createTime;
  39 + }
  40 +
  41 + public void setCreateTime(Timestamp createTime) {
  42 + this.createTime = createTime;
  43 + }
  44 +
  45 + @Override
  46 + public String toString() {
  47 + return "ShopNameModifyResp{" +
  48 + "state=" + state +
  49 + ", refuseReason='" + refuseReason + '\'' +
  50 + ", createTime=" + createTime +
  51 + '}';
  52 + }
  53 +}
... ...
diligrp-website-api/src/main/java/com/diligrp/website/web/interfaces/domain/output/SysConfigResp.java 0 → 100644
  1 +++ a/diligrp-website-api/src/main/java/com/diligrp/website/web/interfaces/domain/output/SysConfigResp.java
  1 +package com.diligrp.website.web.interfaces.domain.output;
  2 +
  3 +import java.sql.Timestamp;
  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年5月22日 下午1:29:46
  12 + * @author Wang22
  13 + */
  14 +public class SysConfigResp extends BaseResp {
  15 +
  16 + private static final long serialVersionUID = 1L;
  17 +
  18 + private Long id;
  19 + /**
  20 + * 配置名
  21 + */
  22 + private String configName;
  23 + /**
  24 + * 配置码
  25 + */
  26 + private String configCode;
  27 + /**
  28 + * 选定值
  29 + */
  30 + private String value;
  31 + /**
  32 + * 描述
  33 + */
  34 + private String remark;
  35 + /**
  36 + * 创建时间
  37 + */
  38 + private Timestamp created;
  39 + /**
  40 + * 修改时间
  41 + */
  42 + private Timestamp modified;
  43 +
  44 + /**
  45 + * get value of SystemConfig.id
  46 + * @return the id
  47 + * @createTime 2014年5月22日 下午1:35:33
  48 + * @author Wang22
  49 + */
  50 + public Long getId() {
  51 + return id;
  52 + }
  53 +
  54 + /**
  55 + * set value of SystemConfig.id
  56 + * @param id the id to set
  57 + * @createTime 2014年5月22日 下午1:35:33
  58 + * @author Wang22
  59 + */
  60 + public void setId(Long id) {
  61 + this.id = id;
  62 + }
  63 +
  64 + /**
  65 + * get value of SystemConfig.configName
  66 + * @return the configName
  67 + * @createTime 2014年5月22日 下午1:35:33
  68 + * @author Wang22
  69 + */
  70 + public String getConfigName() {
  71 + return configName;
  72 + }
  73 +
  74 + /**
  75 + * set value of SystemConfig.configName
  76 + * @param configName the configName to set
  77 + * @createTime 2014年5月22日 下午1:35:33
  78 + * @author Wang22
  79 + */
  80 + public void setConfigName(String configName) {
  81 + this.configName = configName;
  82 + }
  83 +
  84 + /**
  85 + * get value of SystemConfig.configCode
  86 + * @return the configCode
  87 + * @createTime 2014年5月22日 下午1:35:33
  88 + * @author Wang22
  89 + */
  90 + public String getConfigCode() {
  91 + return configCode;
  92 + }
  93 +
  94 + /**
  95 + * set value of SystemConfig.configCode
  96 + * @param configCode the configCode to set
  97 + * @createTime 2014年5月22日 下午1:35:33
  98 + * @author Wang22
  99 + */
  100 + public void setConfigCode(String configCode) {
  101 + this.configCode = configCode;
  102 + }
  103 +
  104 + /**
  105 + * get value of SystemConfig.value
  106 + * @return the value
  107 + * @createTime 2014年5月22日 下午1:35:33
  108 + * @author Wang22
  109 + */
  110 + public String getValue() {
  111 + return value;
  112 + }
  113 +
  114 + /**
  115 + * set value of SystemConfig.value
  116 + * @param value the value to set
  117 + * @createTime 2014年5月22日 下午1:35:33
  118 + * @author Wang22
  119 + */
  120 + public void setValue(String value) {
  121 + this.value = value;
  122 + }
  123 +
  124 + /**
  125 + * get value of SystemConfig.remark
  126 + * @return the remark
  127 + * @createTime 2014年5月22日 下午1:35:33
  128 + * @author Wang22
  129 + */
  130 + public String getRemark() {
  131 + return remark;
  132 + }
  133 +
  134 + /**
  135 + * set value of SystemConfig.remark
  136 + * @param remark the remark to set
  137 + * @createTime 2014年5月22日 下午1:35:33
  138 + * @author Wang22
  139 + */
  140 + public void setRemark(String remark) {
  141 + this.remark = remark;
  142 + }
  143 +
  144 + /**
  145 + * get value of SystemConfig.created
  146 + * @return the created
  147 + * @createTime 2014年5月22日 下午1:35:33
  148 + * @author Wang22
  149 + */
  150 + public Timestamp getCreated() {
  151 + return created;
  152 + }
  153 +
  154 + /**
  155 + * set value of SystemConfig.created
  156 + * @param created the created to set
  157 + * @createTime 2014年5月22日 下午1:35:33
  158 + * @author Wang22
  159 + */
  160 + public void setCreated(Timestamp created) {
  161 + this.created = created;
  162 + }
  163 +
  164 + /**
  165 + * get value of SystemConfig.modified
  166 + * @return the modified
  167 + * @createTime 2014年5月22日 下午1:35:33
  168 + * @author Wang22
  169 + */
  170 + public Timestamp getModified() {
  171 + return modified;
  172 + }
  173 +
  174 + /**
  175 + * set value of SystemConfig.modified
  176 + * @param modified the modified to set
  177 + * @createTime 2014年5月22日 下午1:35:33
  178 + * @author Wang22
  179 + */
  180 + public void setModified(Timestamp modified) {
  181 + this.modified = modified;
  182 + }
  183 +
  184 + /*
  185 + * (non-Javadoc)
  186 + * @see java.lang.Object#toString()
  187 + */
  188 + @Override
  189 + public String toString() {
  190 + StringBuilder builder = new StringBuilder();
  191 + builder.append("SystemConfig [id=");
  192 + builder.append(id);
  193 + builder.append(", configName=");
  194 + builder.append(configName);
  195 + builder.append(", configCode=");
  196 + builder.append(configCode);
  197 + builder.append(", value=");
  198 + builder.append(value);
  199 + builder.append(", remark=");
  200 + builder.append(remark);
  201 + builder.append(", created=");
  202 + builder.append(created);
  203 + builder.append(", modified=");
  204 + builder.append(modified);
  205 + builder.append("]");
  206 + return builder.toString();
  207 + }
  208 +
  209 +}
... ...
diligrp-website-api/src/main/java/com/diligrp/website/web/interfaces/service/AuthLevelService.java 0 → 100644
  1 +++ a/diligrp-website-api/src/main/java/com/diligrp/website/web/interfaces/service/AuthLevelService.java
  1 +package com.diligrp.website.web.interfaces.service;
  2 +
  3 +import com.diligrp.website.web.interfaces.domain.output.AuthLevelResp;
  4 +import com.diligrp.website.web.interfaces.domain.output.ShopNameModifyResp;
  5 +
  6 +/**
  7 + *
  8 + * <B>Description</B> 认证等级API <br />
  9 + * <B>Copyright</B> Copyright (c) 2014 www.diligrp.com All rights reserved. <br />
  10 + * 本软件源代码版权归地利集团,未经许可不得任意复制与传播.<br />
  11 + * <B>Company</B> 地利集团
  12 + * @createTime 2015年8月3日 下午3:49:54
  13 + * @author LaiKui
  14 + */
  15 +public interface AuthLevelService {
  16 +
  17 + public AuthLevelResp getAuthLevelById(Long id);
  18 +
  19 +}
... ...
diligrp-website-api/src/main/java/com/diligrp/website/web/interfaces/service/CityService.java 0 → 100644
  1 +++ a/diligrp-website-api/src/main/java/com/diligrp/website/web/interfaces/service/CityService.java
  1 +package com.diligrp.website.web.interfaces.service;
  2 +
  3 +import java.util.List;
  4 +
  5 +import com.diligrp.website.web.interfaces.domain.output.BaseResp;
  6 +import com.diligrp.website.web.interfaces.domain.output.CityResp;
  7 +import com.diligrp.website.web.interfaces.domain.output.CountryAddressResp;
  8 +import com.diligrp.website.web.interfaces.domain.output.CountryDto;
  9 +import com.diligrp.website.web.interfaces.domain.output.ResultResp;
  10 +
  11 +public interface CityService {
  12 +
  13 + /**
  14 + *
  15 + * 根据上级ID查找下级分类列表,当parentID为0时,获取顶级分类。过滤掉其他
  16 + *
  17 + * @param parentId
  18 + * @return
  19 + * @createTime 2014年5月19日 上午11:42:28
  20 + * @author Wang22
  21 + */
  22 + public List<CityResp> getCityListByParent(int parentId);
  23 +
  24 + /**
  25 + *
  26 + * this method is 根据当前城市的id查询到它所有的上级城市id集合
  27 + *
  28 + * @param cityId
  29 + * @return
  30 + * @createTime 2014年6月4日 下午6:24:47
  31 + * @author liujie
  32 + */
  33 + public List<CityResp> getParentCityListById(int cityId);
  34 +
  35 + /**
  36 + *
  37 + * 根据城市ID,查询城市文字内容详情
  38 + *
  39 + * @param cityId
  40 + * @return
  41 + * @createTime 2014年7月14日 下午6:10:13
  42 + * @author Wang22
  43 + */
  44 + public BaseResp getAddressText(int cityId);
  45 +
  46 + /**
  47 + *
  48 + * this method is 获取所有的国家列表
  49 + *
  50 + * @param parentId
  51 + * @return
  52 + * @createTime 2014年9月18日 上午10:51:57
  53 + * @author liujie
  54 + */
  55 + public ResultResp<List<CityResp>> getAllCountryInfo(int parentId);
  56 +
  57 + /**
  58 + *
  59 + * this method is 倒查获取带有国家的城市地址
  60 + *
  61 + * @param cityId
  62 + * @return
  63 + * @createTime 2014年9月18日 上午10:52:41
  64 + * @author liujie
  65 + */
  66 + CountryAddressResp getCountryAddress(Integer cityId);
  67 +
  68 + /**
  69 + *
  70 + * 获取国家字符串地址
  71 + *
  72 + * @param cityId
  73 + * @return
  74 + * @createTime 2014年9月19日 下午5:53:08
  75 + * @author Wang22
  76 + */
  77 + public BaseResp getCountryAddressText(int cityId);
  78 +
  79 + /**
  80 + *
  81 + * this method is 根据当前城市的id查询到它所有的上级城市id包括国家信息集合
  82 + *
  83 + * @param cityId
  84 + * @return
  85 + * @createTime 2014年6月4日 下午6:24:47
  86 + * @author liujie
  87 + */
  88 + ResultResp<List<CityResp>> getParentCountryListById(int cityId);
  89 +
  90 + /**
  91 + * 根据城市名称查询城市
  92 + *
  93 + * @param text
  94 + * 城市名称,支持模糊匹配
  95 + * @param level
  96 + * 城市级别:1、省 2、市 3、县
  97 + * @return
  98 + */
  99 + List<CityResp> getCityByText(String text, int level);
  100 +
  101 + /**
  102 + *
  103 + * 根据上级ID查找下级分类列表,当parentID为0时,获取顶级分类。包含其他
  104 + *
  105 + * @param parentId
  106 + * @return
  107 + * @createTime 2015年9月29日 上午11:42:28
  108 + * @author LaiKui
  109 + */
  110 + public List<CityResp> getOtherCityListByParent(int parentId);
  111 +
  112 + /**
  113 + *
  114 + * 根据ids查询城市列表,不包含其他
  115 + *
  116 + * @param ids
  117 + * @return
  118 + * @createTime 2015年12月11日 上午11:42:28
  119 + * @author LaiKui
  120 + */
  121 + public List<CityResp> getCityListByCityIds(String ids);
  122 +
  123 + /**
  124 + * 查询所有国家包含城市
  125 + *
  126 + * @return 所有国家
  127 + */
  128 + List<CountryDto> getAllCountryTree();
  129 +
  130 + /**
  131 + * 根据国家id查询国家信息,并包含国家下面的城市
  132 + *
  133 + * @param countryId
  134 + * 国家id
  135 + * @return 国家信息
  136 + */
  137 + CountryDto getCountryTree(Long countryId);
  138 +}
... ...
diligrp-website-api/src/main/java/com/diligrp/website/web/interfaces/service/DataDictionaryService.java 0 → 100644
  1 +++ a/diligrp-website-api/src/main/java/com/diligrp/website/web/interfaces/service/DataDictionaryService.java
  1 +package com.diligrp.website.web.interfaces.service;
  2 +
  3 +import com.diligrp.website.web.interfaces.domain.output.DataDictionaryResp;
  4 +import com.diligrp.website.web.interfaces.domain.output.DataDictionaryValueResp;
  5 +
  6 +/**
  7 + *
  8 + * <B>Description</B> 数据字典API <br />
  9 + * <B>Copyright</B> Copyright (c) 2014 www.diligrp.com All rights reserved.
  10 + * <br />
  11 + * 本软件源代码版权归地利集团,未经许可不得任意复制与传播.<br />
  12 + * <B>Company</B> 地利集团
  13 + *
  14 + * @createTime 2014年5月22日 下午3:49:54
  15 + * @author Wang22
  16 + */
  17 +public interface DataDictionaryService {
  18 +
  19 + /**
  20 + *
  21 + * 获取数据字典
  22 + *
  23 + * @param code
  24 + * 字典编码
  25 + * @return
  26 + * @createTime 2014年5月22日 下午3:49:36
  27 + * @author Wang22
  28 + */
  29 + public DataDictionaryResp getDataDictionary(String code);
  30 +
  31 + /**
  32 + * 根据数据字典id查询
  33 + *
  34 + * @param id
  35 + * 数据字典id
  36 + * @return
  37 + */
  38 + public DataDictionaryResp getDataDictionaryById(Long id);
  39 +
  40 + /**
  41 + * 根据数据字典值得id查询数据字典值
  42 + *
  43 + * @param id
  44 + * 数据字典值的id
  45 + * @return 数据字典值
  46 + */
  47 + public DataDictionaryValueResp getDataDictionaryValueById(Long id);
  48 +
  49 + /**
  50 + * 查询数据字典
  51 + *
  52 + * @param dcode
  53 + * 父code
  54 + * @param vcode
  55 + * 子code
  56 + * @return 数据字典值
  57 + */
  58 + public DataDictionaryValueResp getDataDictionaryValueByCode(String dcode, String vcode);
  59 +
  60 +}
... ...
diligrp-website-api/src/main/java/com/diligrp/website/web/interfaces/service/DiliServiceService.java 0 → 100644
  1 +++ a/diligrp-website-api/src/main/java/com/diligrp/website/web/interfaces/service/DiliServiceService.java
  1 +package com.diligrp.website.web.interfaces.service;
  2 +
  3 +import com.diligrp.website.web.interfaces.domain.input.DiliServiceParam;
  4 +import com.diligrp.website.web.interfaces.domain.output.DiliServiceResp;
  5 +
  6 +import java.util.List;
  7 +
  8 +/**
  9 + * <p>Title: 〈标题〉</p>
  10 + * <p>Description: 〈描述〉</p>
  11 + * <B>Copyright</B> Copyright (c) 2014 www.diligrp.com All rights reserved. <br />
  12 + * 本软件源代码版权归地利集团,未经许可不得任意复制与传播.<br />
  13 + * <B>Company</B> 地利集团
  14 + * <p>CreateTime:2014/6/4</p>
  15 + *
  16 + * @author zhukai
  17 + */
  18 +public interface DiliServiceService {
  19 +
  20 + /**
  21 + * 获取所有地利服务
  22 + * @return
  23 + */
  24 + public List<DiliServiceResp> listAllDiliService();
  25 +
  26 + /**
  27 + * 根据ID号获取地利服务
  28 + * @param id
  29 + * @return
  30 + */
  31 + public DiliServiceResp getDiliService(Long id);
  32 +
  33 + /**
  34 + * 根据查询条件获取服务
  35 + *
  36 + * @param status
  37 + * @param type
  38 + * @param category
  39 + * @return
  40 + */
  41 + public List<DiliServiceResp> listDiliService(DiliServiceParam.Status status, DiliServiceParam.Type type, DiliServiceParam.Category category);
  42 + /**
  43 + * 根据CODE查询地利服务
  44 + * @param code
  45 + * @return
  46 + */
  47 + public DiliServiceResp getDiliServiceByCode(String code);
  48 +}
... ...
diligrp-website-api/src/main/java/com/diligrp/website/web/interfaces/service/EncryptService.java 0 → 100644
  1 +++ a/diligrp-website-api/src/main/java/com/diligrp/website/web/interfaces/service/EncryptService.java
  1 +package com.diligrp.website.web.interfaces.service;
  2 +
  3 +
  4 +public interface EncryptService {
  5 +
  6 + /**
  7 + *
  8 + * 密码加密
  9 + *
  10 + * @param pwd 明文密码
  11 + * @return 密文
  12 + * @createTime 2014年8月22日 上午11:41:55
  13 + * @author Wang22
  14 + */
  15 + public String encryptPWD(String pwd);
  16 +
  17 +}
... ...
diligrp-website-api/src/main/java/com/diligrp/website/web/interfaces/service/MailService.java 0 → 100644
  1 +++ a/diligrp-website-api/src/main/java/com/diligrp/website/web/interfaces/service/MailService.java
  1 +package com.diligrp.website.web.interfaces.service;
  2 +
  3 +import java.util.Map;
  4 +
  5 +import com.diligrp.website.web.interfaces.domain.input.MailReq;
  6 +import com.diligrp.website.web.interfaces.domain.output.BaseResp;
  7 +import com.diligrp.website.web.interfaces.domain.output.MailResp;
  8 +
  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年6月3日 下午2:37:50
  16 + * @author Wang22
  17 + */
  18 +public interface MailService {
  19 +
  20 + /**
  21 + *
  22 + * 发送邮件
  23 + *
  24 + * @param req
  25 + * @return
  26 + * @createTime 2014年8月11日 下午4:26:16
  27 + * @author Wang22
  28 + */
  29 + public BaseResp sendMail(MailReq req);
  30 +
  31 + /**
  32 + *
  33 + * 根据邮件模板发送邮件
  34 + *
  35 + * @param req
  36 + * @param template
  37 + * @param param
  38 + * @return
  39 + * @createTime 2014年8月11日 下午4:26:01
  40 + * @author Wang22
  41 + */
  42 + public MailResp sendMailByTemplate(MailReq req, String template,
  43 + Map<String, String> param);
  44 +
  45 +}
... ...
diligrp-website-api/src/main/java/com/diligrp/website/web/interfaces/service/OperateLogService.java 0 → 100644
  1 +++ a/diligrp-website-api/src/main/java/com/diligrp/website/web/interfaces/service/OperateLogService.java
  1 +package com.diligrp.website.web.interfaces.service;
  2 +
  3 +import com.diligrp.website.web.interfaces.domain.input.OperateLogTypeEnum;
  4 +
  5 +/**
  6 + *
  7 + * <B>Description</B> 操作日志API <br />
  8 + * <B>Copyright</B> Copyright (c) 2014 www.diligrp.com All rights reserved. <br />
  9 + * 本软件源代码版权归地利集团,未经许可不得任意复制与传播.<br />
  10 + * <B>Company</B> 地利集团
  11 + * @createTime 2015年11月5日 下午3:49:54
  12 + * @author LaiKui
  13 + */
  14 +public interface OperateLogService {
  15 +
  16 + /**
  17 + *
  18 + * 新增店铺相关操作日志
  19 + * @param shopId
  20 + * @param operateLogTypeEnum 1:店铺审核、2:用户锁定、3:实名认证、4:企业认证
  21 + * @param operateRemark
  22 + * @param userId
  23 + * @param userName
  24 + * @return boolean
  25 + * @createTime 2015年11月5日 下午3:49:36
  26 + * @author LaiKui
  27 + */
  28 + public boolean addOperateLog(Long shopId, OperateLogTypeEnum operateLogTypeEnum, String operateRemark, Long userId, String userName);
  29 +}
... ...
diligrp-website-api/src/main/java/com/diligrp/website/web/interfaces/service/PickUpApiService.java 0 → 100644
  1 +++ a/diligrp-website-api/src/main/java/com/diligrp/website/web/interfaces/service/PickUpApiService.java
  1 +package com.diligrp.website.web.interfaces.service;
  2 +
  3 +import java.util.List;
  4 +
  5 +import com.diligrp.website.web.interfaces.domain.input.DiliServiceEnum;
  6 +import com.diligrp.website.web.interfaces.domain.input.PickupTypeEnum;
  7 +import com.diligrp.website.web.interfaces.domain.output.DiliServiceResp;
  8 +import com.diligrp.website.web.interfaces.domain.output.PickUpPointResp;
  9 +import com.diligrp.website.web.interfaces.domain.output.ResultResp;
  10 +
  11 +
  12 +/**
  13 + * <B>Description</B> TODO <br />
  14 + * <B>Copyright</B> Copyright (c) 2014 www.diligrp.com All rights reserved. <br />
  15 + * 本软件源代码版权归地利集团,未经许可不得任意复制与传播.<br />
  16 + * <B>Company</B> 地利集团
  17 + * @createTime 2014年8月21日 下午3:50:13
  18 + * @author liujie
  19 + */
  20 +public interface PickUpApiService {
  21 + /**
  22 + *
  23 + * this method is 通过提货点id得到该提货点所有的服务功能
  24 + * @param pickId
  25 + * @return
  26 + * @createTime 2014年8月21日 下午6:31:03
  27 + * @author liujie
  28 + */
  29 + ResultResp<List<DiliServiceResp>> getDiliServiceInfo(Long pickId);
  30 + /**
  31 + *
  32 + * this method is 根据条件获取提货点下面的服务
  33 + * @param pickId
  34 + * @param diliServiceEnum all 获取所有提货点下面的服务 up获取提货点下面上架的服务 down获取提货点下面下架的服务
  35 + * @return
  36 + * @createTime 2014年9月4日 上午10:52:21
  37 + * @author liujie
  38 + */
  39 + ResultResp<List<DiliServiceResp>> getDiliServiceInfo(Long pickId,DiliServiceEnum diliServiceEnum);
  40 + /**
  41 + *
  42 + * this method is 通过服务id得到该服务下面的提货点
  43 + * @param serviceId
  44 + * @return
  45 + * @createTime 2014年8月21日 下午6:31:25
  46 + * @author liujie
  47 + */
  48 + ResultResp<List<PickUpPointResp>> getAllPickupByService(Long serviceId);
  49 + /**
  50 + *
  51 + * this method is 得到单个提货点信息
  52 + * @param id
  53 + * @return
  54 + * @createTime 2014年8月21日 下午6:31:54
  55 + * @author liujie
  56 + */
  57 + PickUpPointResp getPickupById(Long id);
  58 + /**
  59 + *
  60 + * this method is 通过类型查询所有提货点
  61 + * @param pickupTypeEnum
  62 + * @return
  63 + * @createTime 2014年8月25日 下午2:22:41
  64 + * @author liujie
  65 + */
  66 + ResultResp<List<PickUpPointResp>> getAllPickupInfo(PickupTypeEnum pickupTypeEnum);
  67 + /**
  68 + * 根据提货点code查询提货点
  69 + *
  70 + */
  71 + PickUpPointResp getPickupByCode(String code);
  72 + /**
  73 + *
  74 + * this method is 根据提货点信息查询到本身和关联到他下面的提货点信息
  75 + * @param id
  76 + * @return
  77 + * @createTime 2014年8月25日 下午2:38:45
  78 + * @author liujie
  79 + */
  80 + PickUpPointResp getPickupByParentId(Long id);
  81 + /**
  82 + *
  83 + * this method is 根据关联城市id获取提货点信息
  84 + * @param cityId
  85 + * @return
  86 + * @createTime 2014年9月17日 下午3:07:28
  87 + * @author liujie
  88 + */
  89 + PickUpPointResp getPickupByCityId(Long cityId);
  90 + /**
  91 + *
  92 + * this method is 根据提货点id查询关联该提货点的市场 如果本身是市场则返回当前提货点
  93 + * @param pickId
  94 + * @return
  95 + * @createTime 2014年9月30日 下午3:45:01
  96 + * @author liujie
  97 + */
  98 + PickUpPointResp getPickupByChildPickId(Long pickId);
  99 +
  100 + /**
  101 + * 根据提货点name查询提货点
  102 + *
  103 + */
  104 + ResultResp<List<PickUpPointResp>> getPickUpInfoByName(String pickName);
  105 +
  106 + /**
  107 + * 获取推荐提货点
  108 + *
  109 + */
  110 + ResultResp<List<PickUpPointResp>> getRecommendPickUp();
  111 +
  112 + /**
  113 + * 根据城市ID获取提货点
  114 + *
  115 + */
  116 + ResultResp<List<PickUpPointResp>> getPickUpListByCityId(Long cityId);
  117 +
  118 + /**
  119 + * 根据城市name模糊查询提货点
  120 + *
  121 + */
  122 + ResultResp<List<PickUpPointResp>> getPickUpInfoByCityName(String cityName);
  123 +
  124 + /**
  125 + * 根据城市ID获取所有提货点
  126 + *
  127 + */
  128 + ResultResp<List<PickUpPointResp>> getAllPickUpListByCityId(Long cityId);
  129 +}
... ...
diligrp-website-api/src/main/java/com/diligrp/website/web/interfaces/service/SMSService.java 0 → 100644
  1 +++ a/diligrp-website-api/src/main/java/com/diligrp/website/web/interfaces/service/SMSService.java
  1 +package com.diligrp.website.web.interfaces.service;
  2 +
  3 +import com.diligrp.website.web.interfaces.domain.input.SMSReq;
  4 +import com.diligrp.website.web.interfaces.domain.output.SMSResp;
  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年6月5日 下午1:44:24
  13 + * @author Wang22
  14 + */
  15 +public interface SMSService {
  16 +
  17 + public SMSResp sendSMS(SMSReq req);
  18 +
  19 +}
... ...
diligrp-website-api/src/main/java/com/diligrp/website/web/interfaces/service/ShopNameModifyService.java 0 → 100644
  1 +++ a/diligrp-website-api/src/main/java/com/diligrp/website/web/interfaces/service/ShopNameModifyService.java
  1 +package com.diligrp.website.web.interfaces.service;
  2 +
  3 +import com.diligrp.website.web.interfaces.domain.output.ShopNameModifyResp;
  4 +import org.springframework.web.bind.annotation.RequestParam;
  5 +
  6 +/**
  7 + *
  8 + * <B>Description</B> 数据字典API <br />
  9 + * <B>Copyright</B> Copyright (c) 2014 www.diligrp.com All rights reserved. <br />
  10 + * 本软件源代码版权归地利集团,未经许可不得任意复制与传播.<br />
  11 + * <B>Company</B> 地利集团
  12 + * @createTime 2015年7月7日 下午3:49:54
  13 + * @author LaiKui
  14 + */
  15 +public interface ShopNameModifyService {
  16 +
  17 + /**
  18 + *
  19 + * 验证店铺名称是否满足修改条件
  20 + * @param shopId ,newShopName
  21 + * @return ShopNameModifyResp
  22 + * @createTime 2015年7月7日 下午3:49:36
  23 + * @author LaiKui
  24 + */
  25 + public ShopNameModifyResp checkShopNameModify(Long shopId, String newShopName);
  26 +
  27 + /**
  28 + *
  29 + * 新增店铺名称修改申请
  30 + * @param shopId ,userId,newShopName,oldShopName
  31 + * @return boolean
  32 + * @createTime 2015年7月7日 下午3:49:36
  33 + * @author LaiKui
  34 + */
  35 + public boolean addShopNameModify(Long shopId, Long userId, String newShopName, String oldShopName);
  36 +}
... ...
diligrp-website-api/src/main/java/com/diligrp/website/web/interfaces/service/SysConfigService.java 0 → 100644
  1 +++ a/diligrp-website-api/src/main/java/com/diligrp/website/web/interfaces/service/SysConfigService.java
  1 +package com.diligrp.website.web.interfaces.service;
  2 +
  3 +import com.diligrp.website.web.interfaces.domain.output.SysConfigResp;
  4 +
  5 +/**
  6 + * <B>Description</B> 系统配置API <br />
  7 + * <B>Copyright</B> Copyright (c) 2014 www.diligrp.com All rights reserved. <br />
  8 + * 本软件源代码版权归地利集团,未经许可不得任意复制与传播.<br />
  9 + * <B>Company</B> 地利集团
  10 + * @createTime 2014年5月22日 下午1:47:06
  11 + * @author Wang22
  12 + */
  13 +public interface SysConfigService {
  14 +
  15 + /**
  16 + *
  17 + * 获取系统配置信息
  18 + * @param code 配置编码
  19 + * @return
  20 + * @createTime 2014年5月22日 下午5:48:12
  21 + * @author Wang22
  22 + */
  23 + public SysConfigResp getSysConfig(String code);
  24 +
  25 +}
... ...
diligrp-website-api/src/main/java/com/diligrp/website/web/interfaces/service/impl/AuthLevelServiceImpl.java 0 → 100644
  1 +++ a/diligrp-website-api/src/main/java/com/diligrp/website/web/interfaces/service/impl/AuthLevelServiceImpl.java
  1 +package com.diligrp.website.web.interfaces.service.impl;
  2 +
  3 +import com.diligrp.website.util.http.service.BaseHttpService;
  4 +import com.diligrp.website.web.interfaces.domain.output.AuthLevelResp;
  5 +import com.diligrp.website.web.interfaces.domain.output.ShopNameModifyResp;
  6 +import com.diligrp.website.web.interfaces.service.AuthLevelService;
  7 +import com.diligrp.website.web.interfaces.service.ShopNameModifyService;
  8 +
  9 +import java.util.HashMap;
  10 +import java.util.Map;
  11 +
  12 +public class AuthLevelServiceImpl extends BaseHttpService implements
  13 + AuthLevelService {
  14 +
  15 + public AuthLevelServiceImpl(String token, String baseUrl) {
  16 + super(token, baseUrl);
  17 + }
  18 +
  19 + public AuthLevelResp getAuthLevelById(Long id) {
  20 + Map<String, String> param = new HashMap<String, String>();
  21 + param.put("id", id+"");
  22 + AuthLevelResp resp = null;
  23 + try {
  24 + LOGGER.debug("开始调用根据ID获取认证等级接口");
  25 + resp = super.httpGet("api/authLevel/getAuthLevelById.do", param, AuthLevelResp.class);
  26 + if (resp == null) {
  27 + LOGGER.debug("根据ID获取认证等级接口数据为空:" + baseUrl + " , 等级ID:" + id );
  28 + }
  29 + LOGGER.debug("根据ID获取认证等级结果:" + resp);
  30 + } catch (Exception e) {
  31 + LOGGER.error("调用根据ID获取认证等级接口时出现异常:" + baseUrl + " , 等级ID:" + id, e);
  32 + }
  33 + LOGGER.debug("调用根据ID获取认证等级接口结束");
  34 + return resp;
  35 + }
  36 +
  37 +}
... ...
diligrp-website-api/src/main/java/com/diligrp/website/web/interfaces/service/impl/CityServiceImpl.java 0 → 100644
  1 +++ a/diligrp-website-api/src/main/java/com/diligrp/website/web/interfaces/service/impl/CityServiceImpl.java
  1 +package com.diligrp.website.web.interfaces.service.impl;
  2 +
  3 +import java.util.HashMap;
  4 +import java.util.List;
  5 +import java.util.Map;
  6 +
  7 +import org.apache.commons.lang3.StringUtils;
  8 +import org.slf4j.Logger;
  9 +import org.slf4j.LoggerFactory;
  10 +
  11 +import com.diligrp.website.util.http.service.BaseHttpService;
  12 +import com.diligrp.website.web.interfaces.domain.output.BaseResp;
  13 +import com.diligrp.website.web.interfaces.domain.output.CityResp;
  14 +import com.diligrp.website.web.interfaces.domain.output.CountryAddressResp;
  15 +import com.diligrp.website.web.interfaces.domain.output.CountryDto;
  16 +import com.diligrp.website.web.interfaces.domain.output.ResultResp;
  17 +import com.diligrp.website.web.interfaces.service.CityService;
  18 +import com.google.common.collect.Maps;
  19 +
  20 +public class CityServiceImpl extends BaseHttpService implements CityService {
  21 +
  22 + public CityServiceImpl(String token, String baseUrl) {
  23 + super(token, baseUrl);
  24 + }
  25 +
  26 + private static final Logger log = LoggerFactory.getLogger(CityServiceImpl.class);
  27 +
  28 + public List<CityResp> getCityListByParent(int parentId) {
  29 + Map<String, String> param = new HashMap<String, String>();
  30 + List<CityResp> list = null;
  31 + try {
  32 + param.put("parentId", parentId + "");
  33 + log.debug("获取城市列表:parentId = " + parentId);
  34 + list = httpGetArray("api/city/getCityList.do", param, CityResp.class);
  35 + } catch (Exception e) {
  36 + log.error("获取城市列表时发生异常", e);
  37 + }
  38 + return list;
  39 + }
  40 +
  41 + /*
  42 + * (non-Javadoc)
  43 + *
  44 + * @see com.diligrp.website.web.interfaces.service.CityService#
  45 + * getParentCityListById (int)
  46 + */
  47 + public List<CityResp> getParentCityListById(int cityId) {
  48 + Map<String, String> param = new HashMap<String, String>();
  49 + List<CityResp> list = null;
  50 + try {
  51 + param.put("cityId", cityId + "");
  52 + log.debug("获取城市列表:parentId = " + cityId);
  53 + list = httpGetArray("api/city/getParentCityList.do", param, CityResp.class);
  54 + } catch (Exception e) {
  55 + log.error("获取城市列表时发生异常", e);
  56 + }
  57 + return list;
  58 + }
  59 +
  60 + /**
  61 + *
  62 + * 根据城市ID,查询城市文字内容详情
  63 + *
  64 + * @param cityId
  65 + * @return
  66 + * @createTime 2014年7月14日 下午6:05:48
  67 + * @author Wang22
  68 + */
  69 + public BaseResp getAddressText(int cityId) {
  70 + BaseResp resp = null;
  71 + if (cityId < 0) {
  72 + resp = new BaseResp();
  73 + resp.setCode(BaseResp.CODE_ILLEGAL_PARAM);
  74 + return resp;
  75 + }
  76 + Map<String, String> param = Maps.newHashMap();
  77 + param.put("cityId", String.valueOf(cityId));
  78 + try {
  79 + param.put("cityId", cityId + "");
  80 + log.debug("获取城市列表:parentId = " + cityId);
  81 + resp = httpGet("api/city/getAddressText.do", param, BaseResp.class);
  82 + } catch (Exception e) {
  83 + log.error("获取根据城市ID,查询城市文字内容详情时异常。", e);
  84 + }
  85 + return resp;
  86 + }
  87 +
  88 + /*
  89 + * (non-Javadoc)
  90 + *
  91 + * @see
  92 + * com.diligrp.website.web.interfaces.service.CityService#getAllCountryInfo
  93 + * ()
  94 + */
  95 + public ResultResp<List<CityResp>> getAllCountryInfo(int parentId) {
  96 + List<CityResp> list = null;
  97 + ResultResp<List<CityResp>> res = new ResultResp<List<CityResp>>();
  98 + Map<String, String> param = new HashMap<String, String>();
  99 + param.put("parentId", parentId + "");
  100 + try {
  101 + log.debug("获取所有的国家列表");
  102 + list = httpGetArray("api/city/getAllCountry.do", param, CityResp.class);
  103 + res.setValue(list);
  104 + res.setCode(BaseResp.CODE_SUCCESS);
  105 + } catch (Exception e) {
  106 + res.setCode(BaseResp.CODE_FAIL);
  107 + log.error("获取城市列表时发生异常", e);
  108 + }
  109 + return res;
  110 + }
  111 +
  112 + public BaseResp getCountryAddressText(int cityId) {
  113 + BaseResp resp = null;
  114 + Map<String, String> param = Maps.newHashMap();
  115 + param.put("cityId", String.valueOf(cityId));
  116 + try {
  117 + param.put("cityId", cityId + "");
  118 + log.debug("获取城市列表:parentId = " + cityId);
  119 + resp = httpGet("api/city/getCountryAddressText.do", param, BaseResp.class);
  120 + } catch (Exception e) {
  121 + log.error("获取根据城市ID,查询国家文字内容详情时异常。", e);
  122 + }
  123 + return resp;
  124 + }
  125 +
  126 + public CountryAddressResp getCountryAddress(Integer cityId) {
  127 + CountryAddressResp country = null;
  128 + Map<String, String> param = new HashMap<String, String>();
  129 + param.put("cityId", cityId + "");
  130 + try {
  131 + log.debug("获取带有国家的城市地址");
  132 + country = httpGet("api/city/getCountryAddress.do", param, CountryAddressResp.class);
  133 + } catch (Exception e) {
  134 + log.error("获取带有国家的城市地址", e);
  135 + }
  136 + return country;
  137 + }
  138 +
  139 + public ResultResp<List<CityResp>> getParentCountryListById(int cityId) {
  140 + List<CityResp> list = null;
  141 + ResultResp<List<CityResp>> res = new ResultResp<List<CityResp>>();
  142 + Map<String, String> param = new HashMap<String, String>();
  143 + param.put("cityId", cityId + "");
  144 + try {
  145 + log.debug("获取所有的上级带有国家列表的城市信息");
  146 + list = httpGetArray("api/city/getCountryListByCityId.do", param, CityResp.class);
  147 + res.setValue(list);
  148 + res.setCode(BaseResp.CODE_SUCCESS);
  149 + } catch (Exception e) {
  150 + res.setCode(BaseResp.CODE_FAIL);
  151 + log.error("获取所有的上级带有国家列表的城市信息异常", e);
  152 + }
  153 + return res;
  154 + }
  155 +
  156 + public static void main(String[] args) {
  157 + CityService c = new CityServiceImpl("", "http://manweb.1n4j.com/");
  158 + // System.out.println(c.getCountryAddress(1211003));
  159 + // System.out.println(c.getAllCountryInfo(-20));
  160 + List<CityResp> cityByText = c.getCityByText("唐", 3);
  161 + System.out.println(cityByText);
  162 + }
  163 +
  164 + @Override
  165 + public List<CityResp> getCityByText(String text, int level) {
  166 + Map<String, String> param = new HashMap<String, String>();
  167 + List<CityResp> list = null;
  168 + try {
  169 + param.put("cityName", text);
  170 + param.put("cityLevel", level + "");
  171 + log.debug("模糊查询城市列表:text = " + text + ", level: " + level);
  172 + list = httpGetArray("api/city/getCityByText.do", param, CityResp.class);
  173 + } catch (Exception e) {
  174 + log.error("获取城市列表时发生异常", e);
  175 + }
  176 + return list;
  177 + }
  178 +
  179 + @Override
  180 + public List<CityResp> getOtherCityListByParent(int parentId) {
  181 + Map<String, String> param = new HashMap<String, String>();
  182 + List<CityResp> list = null;
  183 + try {
  184 + param.put("parentId", parentId + "");
  185 + log.debug("获取包含其他的全部城市列表:parentId = " + parentId);
  186 + list = httpGetArray("api/city/getOtherCityList.do", param, CityResp.class);
  187 + } catch (Exception e) {
  188 + log.error("获取包含其他的全部城市列表时发生异常", e);
  189 + }
  190 + return list;
  191 + }
  192 +
  193 + @Override
  194 + public List<CityResp> getCityListByCityIds(String cityIds) {
  195 + Map<String, String> param = new HashMap<String, String>();
  196 + List<CityResp> list = null;
  197 + if (StringUtils.isBlank(cityIds)) {
  198 + return null;
  199 + }
  200 + try {
  201 + param.put("cityIds", cityIds);
  202 + log.debug("获取城市列表:cityIds = " + cityIds);
  203 + list = httpGetArray("api/city/getCityListByCityIds.do", param, CityResp.class);
  204 + } catch (Exception e) {
  205 + log.error("获取城市列表时发生异常", e);
  206 + }
  207 + return list;
  208 + }
  209 +
  210 + @Override
  211 + public List<CountryDto> getAllCountryTree() {
  212 + Map<String, String> param = new HashMap<String, String>();
  213 + List<CountryDto> list = null;
  214 + try {
  215 + log.debug("获取国家包含城市列表");
  216 + list = httpGetArray("api/city/getAllCountryTree.do", param, CountryDto.class);
  217 + } catch (Exception e) {
  218 + log.error("获取国家包含城市列时发生异常", e);
  219 + }
  220 + return list;
  221 + }
  222 +
  223 + @Override
  224 + public CountryDto getCountryTree(Long countryId) {
  225 + Map<String, String> param = new HashMap<String, String>();
  226 + param.put("countryId", countryId.toString());
  227 + CountryDto dto = null;
  228 + try {
  229 + log.debug("获取国家包含城市列表");
  230 + dto = this.httpGet("/api/city/getCountryTree.do", param, CountryDto.class);
  231 + } catch (Exception e) {
  232 + log.error("获取国家包含城市列时发生异常", e);
  233 + }
  234 + return dto;
  235 + }
  236 +
  237 +}
... ...
diligrp-website-api/src/main/java/com/diligrp/website/web/interfaces/service/impl/DataDictionaryServiceImpl.java 0 → 100644
  1 +++ a/diligrp-website-api/src/main/java/com/diligrp/website/web/interfaces/service/impl/DataDictionaryServiceImpl.java
  1 +package com.diligrp.website.web.interfaces.service.impl;
  2 +
  3 +import java.util.HashMap;
  4 +import java.util.Map;
  5 +
  6 +import com.diligrp.website.util.http.service.BaseHttpService;
  7 +import com.diligrp.website.web.interfaces.domain.output.DataDictionaryResp;
  8 +import com.diligrp.website.web.interfaces.domain.output.DataDictionaryValueResp;
  9 +import com.diligrp.website.web.interfaces.domain.output.SysConfigResp;
  10 +import com.diligrp.website.web.interfaces.service.DataDictionaryService;
  11 +
  12 +public class DataDictionaryServiceImpl extends BaseHttpService implements DataDictionaryService {
  13 +
  14 + public DataDictionaryServiceImpl(String token, String baseUrl) {
  15 + super(token, baseUrl);
  16 + }
  17 +
  18 + public DataDictionaryResp getDataDictionary(String code) {
  19 + Map<String, String> param = new HashMap<String, String>();
  20 + param.put("code", code);
  21 +
  22 + DataDictionaryResp resp = null;
  23 +
  24 + try {
  25 + LOGGER.debug("开始调用数据字典接口");
  26 + resp = super.httpGet("api/dataDictionary/getDataDictionary.do", param, DataDictionaryResp.class);
  27 + if (resp == null) {
  28 + LOGGER.debug("系统数据字典接口数据为空:" + baseUrl + " , 配置代码:" + code);
  29 + } else if (resp.getCode() == SysConfigResp.CODE_NOT_EXISTS) {
  30 + LOGGER.debug("系统数据字典不能存在:" + baseUrl + " , 配置代码:" + code);
  31 + }
  32 + LOGGER.debug("数据字典结果:" + resp);
  33 + } catch (Exception e) {
  34 + LOGGER.error("调用数据字典接口时出现异常:" + baseUrl + " , 配置代码:" + code, e);
  35 + }
  36 + LOGGER.debug("调用数据字典接口结束");
  37 + return resp;
  38 + }
  39 +
  40 + @Override
  41 + public DataDictionaryResp getDataDictionaryById(Long id) {
  42 + Map<String, String> param = new HashMap<String, String>();
  43 + param.put("id", id.toString());
  44 +
  45 + DataDictionaryResp resp = null;
  46 +
  47 + try {
  48 + LOGGER.debug("开始调用数据字典接口");
  49 + resp = super.httpGet("api/dataDictionary/getDataDictionaryById.do", param, DataDictionaryResp.class);
  50 + if (resp == null) {
  51 + LOGGER.debug("系统数据字典接口数据为空:" + baseUrl + " , 配置代码:" + id);
  52 + } else if (resp.getCode() == SysConfigResp.CODE_NOT_EXISTS) {
  53 + LOGGER.debug("系统数据字典不能存在:" + baseUrl + " , 配置代码:" + id);
  54 + }
  55 + LOGGER.debug("数据字典结果:" + resp);
  56 + } catch (Exception e) {
  57 + LOGGER.error("调用数据字典接口时出现异常:" + baseUrl + " , 配置代码:" + id, e);
  58 + }
  59 + LOGGER.debug("调用数据字典接口结束");
  60 + return resp;
  61 + }
  62 +
  63 + @Override
  64 + public DataDictionaryValueResp getDataDictionaryValueByCode(String dcode, String vcode) {
  65 + Map<String, String> param = new HashMap<String, String>();
  66 + param.put("dcode", dcode);
  67 + param.put("vcode", vcode);
  68 +
  69 + DataDictionaryValueResp resp = null;
  70 +
  71 + try {
  72 + LOGGER.debug("开始调用数据字典接口");
  73 + resp = super.httpGet("api/dataDictionary/getDataDictionaryValueByCode.do", param,
  74 + DataDictionaryValueResp.class);
  75 + if (resp == null) {
  76 + LOGGER.debug(
  77 + "系统数据字典接口数据为空:" + baseUrl + " , 配置代码DataDictionary:" + dcode + ",DataDictionaryValue:" + vcode);
  78 + }
  79 + LOGGER.debug("数据字典结果:" + resp);
  80 + } catch (Exception e) {
  81 + LOGGER.error(
  82 + "调用数据字典接口时出现异常:" + baseUrl + " , 配置代码DataDictionary:" + dcode + ",DataDictionaryValue:" + vcode, e);
  83 + }
  84 + LOGGER.debug("调用数据字典接口结束");
  85 + return resp;
  86 + }
  87 +
  88 + @Override
  89 + public DataDictionaryValueResp getDataDictionaryValueById(Long id) {
  90 + Map<String, String> param = new HashMap<String, String>();
  91 + param.put("id", id.toString());
  92 +
  93 + DataDictionaryValueResp resp = null;
  94 +
  95 + try {
  96 + LOGGER.debug("开始调用数据字典接口");
  97 + resp = super.httpGet("api/dataDictionary/getDataDictionaryValueById.do", param,
  98 + DataDictionaryValueResp.class);
  99 + if (resp == null) {
  100 + LOGGER.debug("没有找到数据字典值id为" + id + "的数据字典值");
  101 + }
  102 + LOGGER.debug("数据字典结果:" + resp);
  103 + } catch (Exception e) {
  104 + LOGGER.error("根据数据字典值id查询数据字典值失败,id为" + id, e);
  105 + }
  106 + LOGGER.debug("调用数据字典接口结束");
  107 + return resp;
  108 + }
  109 +
  110 +}
... ...
diligrp-website-api/src/main/java/com/diligrp/website/web/interfaces/service/impl/DiliServiceServiceImpl.java 0 → 100644
  1 +++ a/diligrp-website-api/src/main/java/com/diligrp/website/web/interfaces/service/impl/DiliServiceServiceImpl.java
  1 +package com.diligrp.website.web.interfaces.service.impl;
  2 +
  3 +import com.diligrp.website.util.http.service.BaseHttpService;
  4 +import com.diligrp.website.web.interfaces.domain.input.DiliServiceParam;
  5 +import com.diligrp.website.web.interfaces.domain.input.DiliServiceParam.Category;
  6 +import com.diligrp.website.web.interfaces.domain.input.DiliServiceParam.Status;
  7 +import com.diligrp.website.web.interfaces.domain.input.DiliServiceParam.Type;
  8 +import com.diligrp.website.web.interfaces.domain.output.DiliServiceResp;
  9 +import com.diligrp.website.web.interfaces.service.DiliServiceService;
  10 +
  11 +import org.slf4j.Logger;
  12 +import org.slf4j.LoggerFactory;
  13 +
  14 +import java.util.HashMap;
  15 +import java.util.List;
  16 +import java.util.Map;
  17 +
  18 +/**
  19 + * <p>Title: 〈标题〉</p>
  20 + * <p>Description: 〈描述〉</p>
  21 + * <B>Copyright</B> Copyright (c) 2014 www.diligrp.com All rights reserved. <br />
  22 + * 本软件源代码版权归地利集团,未经许可不得任意复制与传播.<br />
  23 + * <B>Company</B> 地利集团
  24 + * <p>CreateTime:2014/6/4</p>
  25 + *
  26 + * @author zhukai
  27 + */
  28 +public class DiliServiceServiceImpl extends BaseHttpService implements DiliServiceService {
  29 + private static final Logger log = LoggerFactory
  30 + .getLogger(DiliServiceServiceImpl.class);
  31 + public DiliServiceServiceImpl(String token, String baseUrl) {
  32 + super(token, baseUrl);
  33 + }
  34 +
  35 + /**
  36 + * 获取所有地利服务(包括已下架服务)
  37 + * @return
  38 + */
  39 + public List<DiliServiceResp> listAllDiliService() {
  40 + List<DiliServiceResp> list = null;
  41 + try {
  42 + log.debug("获取地利服务");
  43 + list = httpGetArray("/api/diliService/getAllDiliService.do", new HashMap<String, String>(), DiliServiceResp.class);
  44 + } catch (Exception e) {
  45 + log.error("获取地利服务时发生异常", e);
  46 + }
  47 + return list;
  48 + }
  49 +
  50 + /**
  51 + * 根据查询条件获取服务
  52 + * @param status
  53 + * @param type
  54 + * @param category
  55 + * @return
  56 + */
  57 + public List<DiliServiceResp> listDiliService(DiliServiceParam.Status status, DiliServiceParam.Type type, DiliServiceParam.Category category){
  58 + List<DiliServiceResp> list = null;
  59 + Map<String, String> param = new HashMap<String, String>();
  60 + if (status != null) {
  61 + param.put("status", String.valueOf(status.getVal()));
  62 + }
  63 + if (type != null) {
  64 + param.put("type", String.valueOf(type.getVal()));
  65 + }
  66 + if (category != null) {
  67 + param.put("category", String.valueOf(category.getVal()));
  68 + }
  69 + try {
  70 + log.debug("获取地利服务");
  71 + list = httpGetArray("/api/diliService/getAllDiliService.do", param, DiliServiceResp.class);
  72 + } catch (Exception e) {
  73 + log.error("获取地利服务时发生异常", e);
  74 + }
  75 + return list;
  76 + }
  77 +
  78 + public static void main(String[] args) {
  79 + DiliServiceService d = new DiliServiceServiceImpl("", "http://manweb.diligrp.com/");
  80 + System.out.println(d.listDiliService(Status.PUTAWAY, Type.ORDER, Category.PURCHASE));
  81 + }
  82 +//
  83 +// /**
  84 +// * 获取所有已上架的地利服务
  85 +// * @return
  86 +// */
  87 +// public List<DiliServiceResp> getDiliServiceByPutaway() {
  88 +// List<DiliServiceResp> list = null;
  89 +// try {
  90 +// log.info("获取地利服务");
  91 +// list = httpGetArray("/api/diliService/getAllDiliService.do?status=0", new HashMap<String, String>(), DiliServiceResp.class);
  92 +// } catch (Exception e) {
  93 +// log.error("获取地利服务时发生异常", e);
  94 +// }
  95 +// return list;
  96 +// }
  97 +
  98 +
  99 + /**
  100 + * 根据ID号获取地利服务
  101 + * @param id
  102 + * @return
  103 + */
  104 + public DiliServiceResp getDiliService(Long id) {
  105 + Map<String, String> param = new HashMap<String, String>();
  106 + DiliServiceResp resp = null;
  107 + try {
  108 + resp = super.httpGet("/api/diliService/getDiliService.do?id=" + id, param, DiliServiceResp.class);
  109 + } catch (Exception e) {
  110 + log.error("获取地利服务时发生异常", e);
  111 + }
  112 + return resp;
  113 + }
  114 +
  115 + /**
  116 + * 根据CODE查询地利服务
  117 + * @param code
  118 + * @return
  119 + */
  120 + public DiliServiceResp getDiliServiceByCode(String code) {
  121 + Map<String, String> param = new HashMap<String, String>();
  122 +
  123 + DiliServiceResp resp = null;
  124 + try {
  125 + resp = super.httpGet("/api/diliService/getDiliServiceByCode.do?code=" + code, param, DiliServiceResp.class);
  126 + } catch (Exception e) {
  127 + log.error("获取地利服务时发生异常!", e );
  128 + }
  129 + return resp;
  130 + }
  131 +}
... ...
diligrp-website-api/src/main/java/com/diligrp/website/web/interfaces/service/impl/EncryptServiceImpl.java 0 → 100644
  1 +++ a/diligrp-website-api/src/main/java/com/diligrp/website/web/interfaces/service/impl/EncryptServiceImpl.java
  1 +package com.diligrp.website.web.interfaces.service.impl;
  2 +
  3 +import java.util.Map;
  4 +
  5 +import org.apache.commons.lang.StringUtils;
  6 +
  7 +import com.diligrp.website.util.http.service.BaseHttpService;
  8 +import com.diligrp.website.web.interfaces.service.EncryptService;
  9 +import com.google.common.collect.Maps;
  10 +
  11 +
  12 +public class EncryptServiceImpl extends BaseHttpService implements EncryptService {
  13 +
  14 + public EncryptServiceImpl(String token, String baseUrl) {
  15 + super(token, baseUrl);
  16 + }
  17 +
  18 + @Override
  19 + public String encryptPWD(String pwd) {
  20 + if(StringUtils.isEmpty(pwd)){
  21 + return null;
  22 + }
  23 + Map<String, String> param = Maps.newHashMap();
  24 + param.put("pwd",pwd);
  25 + String encrypt = null;
  26 + try {
  27 + LOGGER.debug("开始调用密码加密接口:" + this.baseUrl + "字符为:" + pwd);
  28 + encrypt = super.httpPost("api/encrypt/encryptPWD.do", param, String.class);
  29 + if (StringUtils.isBlank(encrypt)) {
  30 + LOGGER.debug("调用加密后,加密结果为空,加密字符串为:" + pwd);
  31 + }
  32 + } catch (Exception e) {
  33 + LOGGER.error("调用密码加密接口时出现异常:" + baseUrl + " , 加密字符:" + pwd, e);
  34 + }
  35 + return encrypt;
  36 + }
  37 +
  38 + public static void main(String[] args) {
  39 + EncryptService e = new EncryptServiceImpl("token", "http://127.0.0.1/");
  40 + System.out.println(e.encryptPWD("12345689"));
  41 + }
  42 +
  43 +
  44 +}
... ...
diligrp-website-api/src/main/java/com/diligrp/website/web/interfaces/service/impl/MailServiceImpl.java 0 → 100644
  1 +++ a/diligrp-website-api/src/main/java/com/diligrp/website/web/interfaces/service/impl/MailServiceImpl.java
  1 +package com.diligrp.website.web.interfaces.service.impl;
  2 +
  3 +import java.util.Map;
  4 +
  5 +import org.apache.commons.lang.StringUtils;
  6 +
  7 +import com.alibaba.fastjson.JSON;
  8 +import com.diligrp.website.util.http.service.BaseHttpService;
  9 +import com.diligrp.website.web.interfaces.domain.input.MailReq;
  10 +import com.diligrp.website.web.interfaces.domain.output.BaseResp;
  11 +import com.diligrp.website.web.interfaces.domain.output.MailResp;
  12 +import com.diligrp.website.web.interfaces.service.MailService;
  13 +import com.google.common.collect.Maps;
  14 +
  15 +public class MailServiceImpl extends BaseHttpService implements MailService {
  16 +
  17 + public MailServiceImpl(String token, String baseUrl) {
  18 + super(token, baseUrl);
  19 + }
  20 +
  21 + public BaseResp sendMail(MailReq req) {
  22 + if (req == null) {
  23 + LOGGER.error("邮件请求参数为空");
  24 + return null;
  25 + }
  26 + Map<String, String> param = Maps.newHashMap();
  27 + param.put("emailJson", JSON.toJSONString(req));
  28 + BaseResp resp = null;
  29 + try {
  30 + LOGGER.debug("开始调用邮件发送接口:" + baseUrl);
  31 + LOGGER.debug("邮件发送内容:" + req);
  32 + resp = httpPost("api/email/sendEmail.do", param, BaseResp.class);
  33 + } catch (Exception e) {
  34 + LOGGER.error("发送邮件失败! ", e);
  35 + }
  36 + LOGGER.info("调用邮件发送接口结束");
  37 + return resp;
  38 + }
  39 +
  40 + public MailResp sendMailByTemplate(MailReq req, String template,
  41 + Map<String, String> replace) {
  42 + if (req == null || StringUtils.isEmpty(template)) {
  43 + LOGGER.error("邮件请求参数为空");
  44 + return null;
  45 + }
  46 + Map<String, String> param = Maps.newHashMap();
  47 + param.put("emailJson", JSON.toJSONString(req));
  48 + param.put("template", template);
  49 + param.put("paramJson", JSON.toJSONString(replace));
  50 +
  51 + MailResp resp = null;
  52 + try {
  53 + resp = httpPost("api/email/sendMailByTemplate.do", param, MailResp.class);
  54 + } catch (Exception e) {
  55 + LOGGER.error("发送邮件失败! ", e);
  56 + }
  57 + return resp;
  58 + }
  59 +
  60 +}
... ...
diligrp-website-api/src/main/java/com/diligrp/website/web/interfaces/service/impl/OperateLogServiceImpl.java 0 → 100644
  1 +++ a/diligrp-website-api/src/main/java/com/diligrp/website/web/interfaces/service/impl/OperateLogServiceImpl.java
  1 +package com.diligrp.website.web.interfaces.service.impl;
  2 +
  3 +import com.diligrp.website.util.http.service.BaseHttpService;
  4 +import com.diligrp.website.web.interfaces.domain.input.OperateLogTypeEnum;
  5 +import com.diligrp.website.web.interfaces.service.OperateLogService;
  6 +
  7 +import java.util.HashMap;
  8 +import java.util.Map;
  9 +
  10 +public class OperateLogServiceImpl extends BaseHttpService implements
  11 + OperateLogService {
  12 +
  13 + public OperateLogServiceImpl(String token, String baseUrl) {
  14 + super(token, baseUrl);
  15 + }
  16 +
  17 + public boolean addOperateLog(Long shopId, OperateLogTypeEnum operateLogTypeEnum, String operateRemark,Long userId,String userName){
  18 + Map<String, String> param = new HashMap<String, String>();
  19 + param.put("shopId", shopId+"");
  20 + param.put("operateLogTypeEnum", operateLogTypeEnum+"");
  21 + param.put("operateRemark", operateRemark);
  22 + param.put("userId", userId+"");
  23 + param.put("userName", userName);
  24 + boolean resp = false;
  25 + try {
  26 + LOGGER.debug("开始调用新增操作日志接口");
  27 + resp = super.httpGet("api/operateLogApi/addOperateLog.do", param, Boolean.class);
  28 + LOGGER.debug("新增操作日志结果:" + resp);
  29 + } catch (Exception e) {
  30 + LOGGER.error("调用新增操作日志接口时出现异常:" + baseUrl + " , 店铺ID:" + shopId + "操作类型:" + operateLogTypeEnum+"操作描述:"+operateRemark, e);
  31 + }
  32 + LOGGER.debug("调用新增操作日志接口结束");
  33 + return resp;
  34 + }
  35 +}
... ...
diligrp-website-api/src/main/java/com/diligrp/website/web/interfaces/service/impl/PickUpApiServiceImpl.java 0 → 100644
  1 +++ a/diligrp-website-api/src/main/java/com/diligrp/website/web/interfaces/service/impl/PickUpApiServiceImpl.java
  1 +package com.diligrp.website.web.interfaces.service.impl;
  2 +
  3 +import java.util.ArrayList;
  4 +import java.util.HashMap;
  5 +import java.util.List;
  6 +import java.util.Map;
  7 +
  8 +import org.slf4j.Logger;
  9 +import org.slf4j.LoggerFactory;
  10 +
  11 +import com.diligrp.website.util.http.service.BaseHttpService;
  12 +import com.diligrp.website.web.interfaces.domain.input.DiliServiceEnum;
  13 +import com.diligrp.website.web.interfaces.domain.input.PickupTypeEnum;
  14 +import com.diligrp.website.web.interfaces.domain.output.BaseResp;
  15 +import com.diligrp.website.web.interfaces.domain.output.DiliServiceResp;
  16 +import com.diligrp.website.web.interfaces.domain.output.PickUpPointResp;
  17 +import com.diligrp.website.web.interfaces.domain.output.ResultResp;
  18 +import com.diligrp.website.web.interfaces.service.PickUpApiService;
  19 +
  20 +/**
  21 + * <B>Description</B> TODO <br />
  22 + * <B>Copyright</B> Copyright (c) 2014 www.diligrp.com All rights reserved. <br />
  23 + * 本软件源代码版权归地利集团,未经许可不得任意复制与传播.<br />
  24 + * <B>Company</B> 地利集团
  25 + * @createTime 2014年8月21日 下午3:53:08
  26 + * @author liujie
  27 + */
  28 +public class PickUpApiServiceImpl extends BaseHttpService implements
  29 + PickUpApiService {
  30 + private static final Logger log = LoggerFactory
  31 + .getLogger(PickUpApiServiceImpl.class);
  32 + public PickUpApiServiceImpl(String token, String baseUrl) {
  33 + super(token, baseUrl);
  34 + }
  35 +
  36 + /*
  37 + * (non-Javadoc)
  38 + * @see com.diligrp.website.web.interfaces.service.PickUpApiService#
  39 + * getDiliServiceRespInfo(java.lang.Long)
  40 + */
  41 + public ResultResp<List<DiliServiceResp>> getDiliServiceInfo(Long pickId) {
  42 + List<DiliServiceResp> list = new ArrayList<DiliServiceResp>();
  43 + Map<String,String> map = new HashMap<String, String>();
  44 + ResultResp<List<DiliServiceResp>> res= new ResultResp<List<DiliServiceResp>>();
  45 + map.put("id", pickId+"");
  46 + try {
  47 + log.debug("获取地利服务");
  48 + list = super.httpGetArray("/api/pickup/getDiliService.do",map , DiliServiceResp.class);
  49 + res.setCode(BaseResp.CODE_SUCCESS);
  50 + res.setValue(list);
  51 + } catch (Exception e) {
  52 + res.setCode(BaseResp.CODE_FAIL);
  53 + log.error("获取地利服务时发生异常", e);
  54 + }
  55 + return res;
  56 + }
  57 +
  58 + public ResultResp<List<PickUpPointResp>> getAllPickupByService(Long serviceId) {
  59 + List<PickUpPointResp> pickup = null;
  60 + Map<String,String> map = new HashMap<String, String>();
  61 + ResultResp<List<PickUpPointResp>> res= new ResultResp<List<PickUpPointResp>>();
  62 + map.put("id", serviceId+"");
  63 + try {
  64 + log.debug("获取服务下面的提货点信息");
  65 + pickup = super.httpGetArray("/api/pickup/getPickService.do",map , PickUpPointResp.class);
  66 + res.setCode(BaseResp.CODE_SUCCESS);
  67 + res.setValue(pickup);
  68 + } catch (Exception e) {
  69 + res.setCode(BaseResp.CODE_FAIL);
  70 + res.setMsg("获取服务下面的提货点信息失败");
  71 + log.error("获取服务下面的提货点信息失败时发生异常", e);
  72 + }
  73 + return res;
  74 + }
  75 +
  76 + public PickUpPointResp getPickupById(Long id) {
  77 + PickUpPointResp pickup = new PickUpPointResp();
  78 + Map<String,String> map = new HashMap<String, String>();
  79 + map.put("id", id+"");
  80 + try {
  81 + log.debug("获取单个提货点信息");
  82 + pickup = super.httpGet("/api/pickup/getPickUpInfo.do",map , PickUpPointResp.class);
  83 + } catch (Exception e) {
  84 + log.error("获取单个提货点信息", e);
  85 + }
  86 + return pickup;
  87 + }
  88 +
  89 + /* (non-Javadoc)
  90 + * @see com.diligrp.website.web.interfaces.service.PickUpApiService#getAllPickupInfo(com.diligrp.website.web.interfaces.domain.input.PickupTypeEnum)
  91 + */
  92 + public ResultResp<List<PickUpPointResp>> getAllPickupInfo(PickupTypeEnum pickupTypeEnum) {
  93 + Integer arg = 0;
  94 + /*if(pickupTypeEnum == PickupTypeEnum.MARKET){
  95 + arg = 1;
  96 + } if(pickupTypeEnum == PickupTypeEnum.PUCKUP){
  97 + arg = 2;
  98 + }*/
  99 + ResultResp<List<PickUpPointResp>> res= new ResultResp<List<PickUpPointResp>>();
  100 + List<PickUpPointResp> pickup = null;
  101 + Map<String,String> map = new HashMap<String, String>();
  102 + map.put("arg", arg+"");
  103 + try {
  104 + log.debug("获取地利服务");
  105 + pickup = super.httpGetArray("/api/pickup/getPickUpByMarket.do",map , PickUpPointResp.class);
  106 + res.setCode(BaseResp.CODE_SUCCESS);
  107 + res.setValue(pickup);
  108 + } catch (Exception e) {
  109 + res.setCode(BaseResp.CODE_FAIL);
  110 + res.setMsg("获取提货点信息失败");
  111 + log.error("获取地利服务时发生异常", e);
  112 + }
  113 + return res;
  114 + }
  115 +
  116 + /* (non-Javadoc)
  117 + * @see com.diligrp.website.web.interfaces.service.PickUpApiService#getPickupByCode(java.lang.String)
  118 + */
  119 + public PickUpPointResp getPickupByCode(String code) {
  120 + PickUpPointResp pickup = new PickUpPointResp();
  121 + Map<String,String> map = new HashMap<String, String>();
  122 + map.put("code", code);
  123 + try {
  124 + log.debug("获取地利服务");
  125 + pickup = super.httpGet("/api/pickup/getPickUpInfoByCode.do",map , PickUpPointResp.class);
  126 + } catch (Exception e) {
  127 + log.error("获取地利服务时发生异常", e);
  128 + }
  129 + return pickup;
  130 + }
  131 +
  132 + /* (non-Javadoc)
  133 + * @see com.diligrp.website.web.interfaces.service.PickUpApiService#getPickupByParentId(java.lang.Long)
  134 + */
  135 + public PickUpPointResp getPickupByParentId(Long id) {
  136 + PickUpPointResp pickup = null;
  137 + Map<String,String> map = new HashMap<String, String>();
  138 + map.put("id", id+"");
  139 + try {
  140 + log.debug("获取提货点信息以及该市场关联的提货点信息");
  141 + pickup = super.httpGet("/api/pickup/getPickByParentId.do",map , PickUpPointResp.class);
  142 + } catch (Exception e) {
  143 + log.error("获取提货点信息以及该市场关联的提货点信息失败", e);
  144 + }
  145 + return pickup;
  146 + }
  147 +
  148 + /* (non-Javadoc)
  149 + * @see com.diligrp.website.web.interfaces.service.PickUpApiService#getDiliServiceInfo(java.lang.Long, com.diligrp.website.web.interfaces.domain.input.DiliServiceEnum)
  150 + */
  151 + public ResultResp<List<DiliServiceResp>> getDiliServiceInfo(Long pickId,
  152 + DiliServiceEnum diliServiceEnum) {
  153 + ResultResp<List<DiliServiceResp>> resp = getDiliServiceInfo(pickId);
  154 + /*
  155 + * add by wzp : 2015-02-05
  156 + *
  157 + * List<DiliServiceResp> list = resp.getValue();
  158 + List<DiliServiceResp> retrunList = new ArrayList<DiliServiceResp>();
  159 + if (diliServiceEnum == DiliServiceEnum.all) {
  160 + return resp;
  161 + }
  162 + if (diliServiceEnum == DiliServiceEnum.up && list.size() > 0) {
  163 + for (DiliServiceResp dili : list) {
  164 + if (dili.getStatus() == 0) {
  165 + retrunList.add(dili);
  166 + }
  167 + }
  168 + }
  169 + if (diliServiceEnum == DiliServiceEnum.down && list.size() > 0) {
  170 + for (DiliServiceResp dili : list) {
  171 + if (dili.getStatus() == 1) {
  172 + retrunList.add(dili);
  173 + }
  174 + }
  175 + }
  176 + resp.setValue(retrunList);*/
  177 + return resp;
  178 + }
  179 + public PickUpPointResp getPickupByCityId(Long cityId) {
  180 + PickUpPointResp pickup = null;
  181 + Map<String,String> map = new HashMap<String, String>();
  182 + map.put("cityId", cityId+"");
  183 + try {
  184 + log.debug("根据关联城市id获取提货点信息");
  185 + pickup = super.httpGet("/api/pickup/getPickUpInByCityId.do",map , PickUpPointResp.class);
  186 + } catch (Exception e) {
  187 + log.error("根据关联城市id获取提货点信息以及该市场关联的提货点信息失败,参数:"+cityId, e);
  188 + }
  189 + return pickup;
  190 + }
  191 + public PickUpPointResp getPickupByChildPickId(Long pickId) {
  192 + PickUpPointResp pickup = null;
  193 + Map<String,String> map = new HashMap<String, String>();
  194 + map.put("id", pickId+"");
  195 + try {
  196 + log.debug("获取提货点信息以及该市场关联的提货点信息");
  197 + pickup = super.httpGet("/api/pickup/getPickByChildPickId.do",map , PickUpPointResp.class);
  198 + } catch (Exception e) {
  199 + log.error("获取提货点信息以及该市场关联的提货点信息失败", e);
  200 + }
  201 + return pickup;
  202 + }
  203 +
  204 + public ResultResp<List<PickUpPointResp>> getPickUpInfoByName(String pickName) {
  205 + ResultResp<List<PickUpPointResp>> res= new ResultResp<List<PickUpPointResp>>();
  206 + List<PickUpPointResp> pickup = null;
  207 + Map<String,String> map = new HashMap<String, String>();
  208 + map.put("pickName", pickName);
  209 + try {
  210 + log.debug("根据名称获取提货点信息");
  211 + pickup = super.httpGetArray("/api/pickup/getPickUpInfoByName.do",map,PickUpPointResp.class);
  212 + res.setCode(BaseResp.CODE_SUCCESS);
  213 + res.setValue(pickup);
  214 + } catch (Exception e) {
  215 + res.setCode(BaseResp.CODE_FAIL);
  216 + res.setMsg("根据名称获取提货点信息失败");
  217 + log.error("根据名称获取提货点信息发生异常", e);
  218 + }
  219 + return res;
  220 + }
  221 +
  222 + public ResultResp<List<PickUpPointResp>> getRecommendPickUp() {
  223 + ResultResp<List<PickUpPointResp>> res= new ResultResp<List<PickUpPointResp>>();
  224 + List<PickUpPointResp> pickup = null;
  225 + try {
  226 + log.debug("获取推荐提货点");
  227 + pickup = super.httpGetArray("/api/pickup/getRecommendPickUp.do",null,PickUpPointResp.class);
  228 + res.setCode(BaseResp.CODE_SUCCESS);
  229 + res.setValue(pickup);
  230 + } catch (Exception e) {
  231 + res.setCode(BaseResp.CODE_FAIL);
  232 + res.setMsg("获取推荐提货点失败");
  233 + log.error("获取推荐提货点发生异常", e);
  234 + }
  235 + return res;
  236 + }
  237 +
  238 + public ResultResp<List<PickUpPointResp>> getPickUpListByCityId(Long cityId) {
  239 + ResultResp<List<PickUpPointResp>> res= new ResultResp<List<PickUpPointResp>>();
  240 + List<PickUpPointResp> pickup = null;
  241 + Map<String,String> map = new HashMap<String, String>();
  242 + map.put("cityId", cityId+"");
  243 + try {
  244 + log.debug("根据城市ID获取提货点信息");
  245 + pickup = super.httpGetArray("/api/pickup/getPickUpListByCityId.do",map,PickUpPointResp.class);
  246 + res.setCode(BaseResp.CODE_SUCCESS);
  247 + res.setValue(pickup);
  248 + } catch (Exception e) {
  249 + res.setCode(BaseResp.CODE_FAIL);
  250 + res.setMsg("根据城市ID获取提货点信息失败");
  251 + log.error("根据城市ID获取提货点信息发生异常", e);
  252 + }
  253 + return res;
  254 + }
  255 +
  256 + public ResultResp<List<PickUpPointResp>> getPickUpInfoByCityName(String cityName) {
  257 + ResultResp<List<PickUpPointResp>> res= new ResultResp<List<PickUpPointResp>>();
  258 + List<PickUpPointResp> pickup = null;
  259 + Map<String,String> map = new HashMap<String, String>();
  260 + map.put("cityName", cityName);
  261 + try {
  262 + log.debug("根据城市名称获取提货点信息");
  263 + pickup = super.httpGetArray("/api/pickup/getPickUpInfoByCityName.do",map,PickUpPointResp.class);
  264 + res.setCode(BaseResp.CODE_SUCCESS);
  265 + res.setValue(pickup);
  266 + } catch (Exception e) {
  267 + res.setCode(BaseResp.CODE_FAIL);
  268 + res.setMsg("根据城市名称获取提货点信息失败");
  269 + log.error("根据城市名称获取提货点信息发生异常", e);
  270 + }
  271 + return res;
  272 + }
  273 +
  274 + public ResultResp<List<PickUpPointResp>> getAllPickUpListByCityId(Long cityId) {
  275 + ResultResp<List<PickUpPointResp>> res= new ResultResp<List<PickUpPointResp>>();
  276 + List<PickUpPointResp> pickup = null;
  277 + Map<String,String> map = new HashMap<String, String>();
  278 + map.put("cityId", cityId+"");
  279 + try {
  280 + log.debug("根据城市ID获取所有提货点信息");
  281 + pickup = super.httpGetArray("/api/pickup/getAllPickUpListByCityId.do",map,PickUpPointResp.class);
  282 + res.setCode(BaseResp.CODE_SUCCESS);
  283 + res.setValue(pickup);
  284 + } catch (Exception e) {
  285 + res.setCode(BaseResp.CODE_FAIL);
  286 + res.setMsg("根据城市ID获取所有提货点信息失败");
  287 + log.error("根据城市ID获取所有提货点信息发生异常", e);
  288 + }
  289 + return res;
  290 + }
  291 +
  292 + public static void main(String[] args) {
  293 + PickUpApiService p = new PickUpApiServiceImpl("","http://manweb.1n4j.com/");
  294 + System.out.println("====="+p.getPickUpInfoByCityName("齐齐哈尔市"));
  295 + }
  296 +}
... ...
diligrp-website-api/src/main/java/com/diligrp/website/web/interfaces/service/impl/SMSServiceImpl.java 0 → 100644
  1 +++ a/diligrp-website-api/src/main/java/com/diligrp/website/web/interfaces/service/impl/SMSServiceImpl.java
  1 +package com.diligrp.website.web.interfaces.service.impl;
  2 +
  3 +import java.util.Map;
  4 +
  5 +import com.alibaba.fastjson.JSON;
  6 +import com.diligrp.website.util.http.service.BaseHttpService;
  7 +import com.diligrp.website.web.interfaces.domain.input.SMSReq;
  8 +import com.diligrp.website.web.interfaces.domain.output.SMSResp;
  9 +import com.diligrp.website.web.interfaces.service.SMSService;
  10 +import com.google.common.collect.Maps;
  11 +
  12 +public class SMSServiceImpl extends BaseHttpService implements SMSService {
  13 +
  14 + public SMSServiceImpl(String token, String baseUrl) {
  15 + super(token, baseUrl);
  16 + }
  17 +
  18 + public SMSResp sendSMS(SMSReq req) {
  19 + if (req == null) {
  20 + LOGGER.error("短信请求参数为空");
  21 + return null;
  22 + }
  23 + Map<String, String> param = Maps.newHashMap();
  24 + param.put("smsJson", JSON.toJSONString(req));
  25 + SMSResp resp = null;
  26 + try {
  27 + resp = httpPost("api/sms/sendMSM.do", param, SMSResp.class);
  28 + } catch (Exception e) {
  29 + LOGGER.error("发送短信失败! ", e);
  30 + }
  31 + return resp;
  32 + }
  33 +
  34 +}
... ...
diligrp-website-api/src/main/java/com/diligrp/website/web/interfaces/service/impl/ShopNameModifyServiceImpl.java 0 → 100644
  1 +++ a/diligrp-website-api/src/main/java/com/diligrp/website/web/interfaces/service/impl/ShopNameModifyServiceImpl.java
  1 +package com.diligrp.website.web.interfaces.service.impl;
  2 +
  3 +import com.diligrp.website.util.http.service.BaseHttpService;
  4 +import com.diligrp.website.web.interfaces.domain.output.ShopNameModifyResp;
  5 +import com.diligrp.website.web.interfaces.service.ShopNameModifyService;
  6 +
  7 +import java.util.HashMap;
  8 +import java.util.Map;
  9 +
  10 +public class ShopNameModifyServiceImpl extends BaseHttpService implements
  11 + ShopNameModifyService {
  12 +
  13 + public ShopNameModifyServiceImpl(String token, String baseUrl) {
  14 + super(token, baseUrl);
  15 + }
  16 +
  17 + public ShopNameModifyResp checkShopNameModify(Long shopId, String newShopName) {
  18 + Map<String, String> param = new HashMap<String, String>();
  19 + param.put("shopId", shopId+"");
  20 + param.put("newShopName", newShopName);
  21 + ShopNameModifyResp resp = null;
  22 + try {
  23 + LOGGER.debug("开始调用店铺名称修改验证接口");
  24 + resp = super.httpGet("api/shopNameModify/checkShopNameModify.do", param, ShopNameModifyResp.class);
  25 + if (resp == null) {
  26 + LOGGER.debug("店铺名称修改验证接口数据为空:" + baseUrl + " , 店铺ID:" + shopId + "新店铺名称:" + newShopName);
  27 + }
  28 + LOGGER.debug("店铺名称修改验证结果:" + resp);
  29 + } catch (Exception e) {
  30 + LOGGER.error("调用店铺名称修改验证接口时出现异常:" + baseUrl + " , 店铺ID:" + shopId + "新店铺名称:" + newShopName, e);
  31 + }
  32 + LOGGER.debug("调用店铺名称修改验证接口结束");
  33 + return resp;
  34 + }
  35 +
  36 + public boolean addShopNameModify(Long shopId, Long userId, String newShopName, String oldShopName){
  37 + Map<String, String> param = new HashMap<String, String>();
  38 + param.put("shopId", shopId+"");
  39 + param.put("userId", userId+"");
  40 + param.put("newShopName", newShopName);
  41 + param.put("oldShopName", oldShopName);
  42 + boolean resp = false;
  43 + try {
  44 + LOGGER.debug("开始调用新增店铺名称修改申请接口");
  45 + resp = super.httpGet("api/shopNameModify/addShopNameModify.do", param, Boolean.class);
  46 + LOGGER.debug("新增店铺名称修改申请结果:" + resp);
  47 + } catch (Exception e) {
  48 + LOGGER.error("调用新增店铺名称修改申请接口时出现异常:" + baseUrl + " , 店铺ID:" + shopId + "新店铺名称:" + newShopName, e);
  49 + }
  50 + LOGGER.debug("调用新增店铺名称修改申请接口结束");
  51 + return resp;
  52 + }
  53 +}
... ...
diligrp-website-api/src/main/java/com/diligrp/website/web/interfaces/service/impl/SysConfigServiceImpl.java 0 → 100644
  1 +++ a/diligrp-website-api/src/main/java/com/diligrp/website/web/interfaces/service/impl/SysConfigServiceImpl.java
  1 +package com.diligrp.website.web.interfaces.service.impl;
  2 +
  3 +import java.util.HashMap;
  4 +import java.util.Map;
  5 +
  6 +import com.diligrp.website.util.http.service.BaseHttpService;
  7 +import com.diligrp.website.web.interfaces.domain.output.SysConfigResp;
  8 +import com.diligrp.website.web.interfaces.service.SysConfigService;
  9 +
  10 +public class SysConfigServiceImpl extends BaseHttpService implements
  11 + SysConfigService {
  12 +
  13 + public SysConfigServiceImpl(String token, String baseUrl) {
  14 + super(token, baseUrl);
  15 + }
  16 +
  17 + public SysConfigResp getSysConfig(String code) {
  18 + Map<String, String> param = new HashMap<String, String>();
  19 + SysConfigResp resp = null;
  20 + try {
  21 + LOGGER.debug("开始调用系统配置信息接口");
  22 + param.put("code", code);
  23 + resp = super.httpGet("api/systemConfig/getSysConfig.do", param,
  24 + SysConfigResp.class);
  25 + if (resp == null) {
  26 + LOGGER.debug("系统配置信息接口数据为空:" + baseUrl + " , 配置代码:" + code);
  27 + } else if (resp.getCode() == SysConfigResp.CODE_NOT_EXISTS) {
  28 + LOGGER.debug("系统配置信息不能存在:" + baseUrl + " , 配置代码:" + code);
  29 + }
  30 + } catch (Exception e) {
  31 + LOGGER.error("调用系统配置信息接口时出现异常:" + baseUrl, e);
  32 + }
  33 + LOGGER.debug("调用系统配置信息接口结束");
  34 + return resp;
  35 + }
  36 +
  37 +}
... ...
diligrp-website-dao/pom.xml 0 → 100644
  1 +++ a/diligrp-website-dao/pom.xml
  1 +<?xml version="1.0"?>
  2 +<project
  3 + xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"
  4 + xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
  5 + <modelVersion>4.0.0</modelVersion>
  6 + <parent>
  7 + <groupId>com..website.web</groupId>
  8 + <artifactId>diligrp-website</artifactId>
  9 + <version>0.0.1-SNAPSHOT</version>
  10 + </parent>
  11 +
  12 + <artifactId>diligrp-website-dao</artifactId>
  13 + <name>diligrp-website-dao</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>com..website.web</groupId>
  21 + <artifactId>diligrp-website-domain</artifactId>
  22 + <version>0.0.1-SNAPSHOT</version>
  23 + </dependency>
  24 + </dependencies>
  25 +</project>
... ...
diligrp-website-dao/src/main/java/com/diligrp/website/dao/AuthLevelDao.java 0 → 100644
  1 +++ a/diligrp-website-dao/src/main/java/com/diligrp/website/dao/AuthLevelDao.java
  1 +package com.diligrp.website.dao;
  2 +
  3 +import com.diligrp.website.domain.AuthLevel;
  4 +import com.diligrp.website.domain.PickUpPointDomain;
  5 +import com.diligrp.website.util.dao.BaseQuery;
  6 +
  7 +import java.util.List;
  8 +
  9 +
  10 +public interface AuthLevelDao {
  11 +
  12 + Integer getAuthLevelCount(BaseQuery query);
  13 +
  14 + List<AuthLevel> getAuthLevelList(BaseQuery query);
  15 +
  16 + boolean save(AuthLevel authLevel);
  17 +
  18 + boolean modify(AuthLevel authLevel);
  19 +
  20 + AuthLevel getAuthLevelById(Long id);
  21 +
  22 + List<AuthLevel> getAllAuthLevel();
  23 +
  24 + AuthLevel checkName(Long id,String levelName);
  25 +}
... ...
diligrp-website-dao/src/main/java/com/diligrp/website/dao/CityDao.java 0 → 100644
  1 +++ a/diligrp-website-dao/src/main/java/com/diligrp/website/dao/CityDao.java
  1 +package com.diligrp.website.dao;
  2 +
  3 +import java.util.List;
  4 +
  5 +import com.diligrp.website.domain.City;
  6 +
  7 +public interface CityDao {
  8 +
  9 + List<City> getCityListByParentId(Integer pid);
  10 +
  11 + /**
  12 + *
  13 + * this method is 根据当前城市id查询父类所有城市的信息
  14 + *
  15 + * @param pid
  16 + * @return
  17 + * @createTime 2014年6月4日 下午6:33:48
  18 + * @author liujie
  19 + */
  20 + List<City> getParentCityListById(Integer pid);
  21 +
  22 + List<City> getCityByText(String cityName, int cityLevel);
  23 +
  24 + List<City> getCityListByCityIds(List cityIds);
  25 +
  26 + List<City> getCityListByCountryId(Long countryId);
  27 +
  28 +}
... ...
diligrp-website-dao/src/main/java/com/diligrp/website/dao/DataDictionaryDao.java 0 → 100644
  1 +++ a/diligrp-website-dao/src/main/java/com/diligrp/website/dao/DataDictionaryDao.java
  1 +package com.diligrp.website.dao;
  2 +
  3 +import java.util.List;
  4 +
  5 +import com.diligrp.website.domain.DataDictionary;
  6 +import com.diligrp.website.domain.DataDictionaryValue;
  7 +import com.diligrp.website.domain.SysConfig;
  8 +import com.diligrp.website.util.dao.BaseQuery;
  9 +
  10 +
  11 +public interface DataDictionaryDao {
  12 +
  13 + DataDictionary getDataDictionaryByCode(String code);
  14 +
  15 + List<DataDictionaryValue> getDataDictionaryValue(Long id);
  16 +
  17 + Integer getDataDicListCount(BaseQuery query);
  18 +
  19 + List<SysConfig> getDataDicList(BaseQuery query);
  20 +
  21 + boolean deleteValue(Long id);
  22 +
  23 + boolean delete(Long id);
  24 +
  25 + boolean save(DataDictionary dic);
  26 +
  27 + boolean update(DataDictionary dic);
  28 +
  29 + DataDictionary getDataDictionaryById(Long id);
  30 +
  31 + boolean saveValue(DataDictionaryValue dicv);
  32 +
  33 + DataDictionaryValue getDataDicValById(Long id);
  34 +
  35 + boolean editValue(DataDictionaryValue dicv);
  36 +
  37 + DataDictionaryValue getDataDicValByCode(String code, Integer ddId);
  38 +
  39 + DataDictionaryValue getDataDicValByName(String name, Integer ddId);
  40 +
  41 + DataDictionaryValue getDataDicValBySort(Integer sort, Integer ddId);
  42 +
  43 +}
... ...
diligrp-website-dao/src/main/java/com/diligrp/website/dao/DiliServiceCoverageDao.java 0 → 100644
  1 +++ a/diligrp-website-dao/src/main/java/com/diligrp/website/dao/DiliServiceCoverageDao.java
  1 +
  2 +package com.diligrp.website.dao;
  3 +
  4 +
  5 +import java.util.List;
  6 +
  7 +import com.diligrp.website.domain.DiliServiceCoverage;
  8 +import com.diligrp.website.util.dao.IBaseDao;
  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-6-3 11:33:00
  16 + * @author template
  17 + */
  18 +public interface DiliServiceCoverageDao extends IBaseDao<DiliServiceCoverage> {
  19 + /**
  20 + * 根据服务获取范围
  21 + * @param serviceId
  22 + * @return
  23 + */
  24 + public List<DiliServiceCoverage> findByService(Long serviceId);
  25 +
  26 + public Boolean deleteByServiceId(Long serviceId);
  27 + public List<DiliServiceCoverage> findServiceByPickId(Long pickId);
  28 +}
... ...
diligrp-website-dao/src/main/java/com/diligrp/website/dao/DiliServiceDao.java 0 → 100644
  1 +++ a/diligrp-website-dao/src/main/java/com/diligrp/website/dao/DiliServiceDao.java
  1 +
  2 +package com.diligrp.website.dao;
  3 +
  4 +
  5 +import java.util.List;
  6 +
  7 +import com.diligrp.website.domain.DiliService;
  8 +import com.diligrp.website.util.dao.BaseQuery;
  9 +import com.diligrp.website.util.dao.IBaseDao;
  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 + * @createTime 2014-6-3 11:33:00
  17 + * @author template
  18 + */
  19 +public interface DiliServiceDao extends IBaseDao<DiliService> {
  20 + /**
  21 + * 查询所有的数据
  22 + * @return
  23 + * @param baseQuery
  24 + */
  25 + public List<DiliService> listAll(BaseQuery baseQuery);
  26 +
  27 + public DiliService findByCode(String code);
  28 +}
... ...
diligrp-website-dao/src/main/java/com/diligrp/website/dao/MailDao.java 0 → 100644
  1 +++ a/diligrp-website-dao/src/main/java/com/diligrp/website/dao/MailDao.java
  1 +package com.diligrp.website.dao;
  2 +
  3 +import java.util.List;
  4 +
  5 +import com.diligrp.website.domain.Mail;
  6 +import com.diligrp.website.domain.SysConfig;
  7 +import com.diligrp.website.util.dao.BaseQuery;
  8 +
  9 +
  10 +public interface MailDao {
  11 +
  12 + public boolean save(Mail mh);
  13 +
  14 + public Integer getMailCount(BaseQuery query);
  15 +
  16 + public List<SysConfig> getMailList(BaseQuery query);
  17 +
  18 +}
... ...
diligrp-website-dao/src/main/java/com/diligrp/website/dao/OperateLogDao.java 0 → 100644
  1 +++ a/diligrp-website-dao/src/main/java/com/diligrp/website/dao/OperateLogDao.java
  1 +package com.diligrp.website.dao;
  2 +
  3 +import java.util.List;
  4 +
  5 +import com.diligrp.website.domain.OperateLog;
  6 +
  7 +
  8 +/**
  9 + * <B>Description</B> TODO <br />
  10 + * <B>Copyright</B> Copyright (c) 2014 www.diligrp.com All rights reserved. <br />
  11 + * 本软件源代码版权归地利集团,未经许可不得任意复制与传播.<br />
  12 + * <B>Company</B> 地利集团
  13 + * @createTime 2014年6月19日 下午3:14:42
  14 + * @author liujie
  15 + */
  16 +public interface OperateLogDao {
  17 + /**
  18 + *
  19 + * this method is 公共操作日志信息
  20 + * @param operateLog
  21 + * @return
  22 + * @createTime 2014年6月19日 下午3:15:01
  23 + * @author liujie
  24 + */
  25 + public boolean saveOperateLog(OperateLog operateLog);
  26 + /**
  27 + *
  28 + * this method is 通过数据id得到这条数据的操作信息
  29 + * @param dataId
  30 + * @return
  31 + * @createTime 2014年6月19日 下午5:29:16
  32 + * @author liujie
  33 + */
  34 + public List<OperateLog> getOperateLogInfoByDataId(OperateLog operateLog);
  35 + /**
  36 + *
  37 + * this method is 通过数据id修改这条数据的操作信息
  38 + * @param operateLog
  39 + * @return
  40 + * @createTime 2014年6月19日 下午5:29:36
  41 + * @author liujie
  42 + */
  43 + public boolean updaateOperateLogInfoByDataId(OperateLog operateLog);
  44 +}
... ...
diligrp-website-dao/src/main/java/com/diligrp/website/dao/PickUpCityDao.java 0 → 100644
  1 +++ a/diligrp-website-dao/src/main/java/com/diligrp/website/dao/PickUpCityDao.java
  1 +package com.diligrp.website.dao;
  2 +
  3 +import java.util.List;
  4 +
  5 +import com.diligrp.website.domain.PickUpCity;
  6 +
  7 +
  8 +/**
  9 + * <B>Description</B> TODO <br />
  10 + * <B>Copyright</B> Copyright (c) 2014 www.diligrp.com All rights reserved. <br />
  11 + * 本软件源代码版权归地利集团,未经许可不得任意复制与传播.<br />
  12 + * <B>Company</B> 地利集团
  13 + * @createTime 2014年8月15日 上午11:06:30
  14 + * @author liujie
  15 + */
  16 +public interface PickUpCityDao {
  17 +
  18 + boolean savePickUpCity(PickUpCity pickUpCity);
  19 + List<PickUpCity> getPickUpCityById(Long id);
  20 + boolean deletePickUpCityById(Long pickId);
  21 + List<PickUpCity> getAllCity();
  22 + PickUpCity getPickIdByCityId(Long cityId);
  23 + List<PickUpCity> getPickUpIdListByCityId(Long cityId);
  24 +}
... ...
diligrp-website-dao/src/main/java/com/diligrp/website/dao/PickUpPersonDao.java 0 → 100644
  1 +++ a/diligrp-website-dao/src/main/java/com/diligrp/website/dao/PickUpPersonDao.java
  1 +package com.diligrp.website.dao;
  2 +
  3 +import java.util.List;
  4 +
  5 +import com.diligrp.website.domain.PickUpPerson;
  6 +
  7 +
  8 +/**
  9 + * <B>Description</B> TODO <br />
  10 + * <B>Copyright</B> Copyright (c) 2014 www.diligrp.com All rights reserved. <br />
  11 + * 本软件源代码版权归地利集团,未经许可不得任意复制与传播.<br />
  12 + * <B>Company</B> 地利集团
  13 + * @createTime 2014年8月13日 下午4:35:15
  14 + * @author liujie
  15 + */
  16 +public interface PickUpPersonDao {
  17 + List<PickUpPerson> getPickUpList(Long pickId);
  18 + boolean savePickUpPerson(PickUpPerson pickUpPerson);
  19 + boolean deletePickUpPerson(Long pickId);
  20 +}
... ...
diligrp-website-dao/src/main/java/com/diligrp/website/dao/PickUpPointDao.java 0 → 100644
  1 +++ a/diligrp-website-dao/src/main/java/com/diligrp/website/dao/PickUpPointDao.java
  1 +package com.diligrp.website.dao;
  2 +
  3 +import com.diligrp.website.domain.PickUpPointDomain;
  4 +import com.diligrp.website.util.dao.BaseQuery;
  5 +
  6 +import java.util.List;
  7 +import java.util.Map;
  8 +
  9 +/**
  10 + * <B>Description</B> TODO <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月13日 下午3:17:08
  15 + * @author liujie
  16 + */
  17 +public interface PickUpPointDao {
  18 +
  19 + /**
  20 + *
  21 + * this method is 根据条件查询所有提货点管理信息
  22 + * @param bq
  23 + * @return
  24 + * @throws Exception
  25 + * @createTime 2014年8月21日 上午10:32:23
  26 + * @author liujie
  27 + */
  28 + List<PickUpPointDomain> getPickInfo(BaseQuery bq) throws Exception;
  29 +
  30 + /**
  31 + *
  32 + * this method is 根据条件统计提货点信心
  33 + * @param bq
  34 + * @return
  35 + * @throws Exception
  36 + * @createTime 2014年8月21日 上午10:32:42
  37 + * @author liujie
  38 + */
  39 + Integer getCountPickInfo(BaseQuery bq) throws Exception;
  40 +
  41 + /**
  42 + *
  43 + * this method is 新增提货点信息
  44 + * @param pickUpPointDomain
  45 + * @return
  46 + * @throws Exception
  47 + * @createTime 2014年8月21日 上午10:33:17
  48 + * @author liujie
  49 + */
  50 + Long savePickUpInfo(PickUpPointDomain pickUpPointDomain) throws Exception;
  51 +
  52 + /**
  53 + *
  54 + * this method is 修改提货点信心
  55 + * @param pickUpPointDomain
  56 + * @return
  57 + * @throws Exception
  58 + * @createTime 2014年8月21日 上午10:33:37
  59 + * @author liujie
  60 + */
  61 + boolean modifyPickUpInfo(PickUpPointDomain pickUpPointDomain)
  62 + throws Exception;
  63 +
  64 + /**
  65 + *
  66 + * this method is 设置所有市场提货点改成不默认市场
  67 + * @return
  68 + * @throws Exception
  69 + * @createTime 2014年8月21日 上午10:33:49
  70 + * @author liujie
  71 + */
  72 + boolean modifyPickUpInfoDeafult() throws Exception;
  73 + /**
  74 + *
  75 + * this method is 获取提货点信心
  76 + * @param id
  77 + * @return
  78 + * @throws Exception
  79 + * @createTime 2014年8月21日 上午10:34:03
  80 + * @author liujie
  81 + */
  82 + PickUpPointDomain getPickUpPointDomainInfo(Long id) throws Exception;
  83 + /**
  84 + *
  85 + * this method is 修改市场提货点为默认市场
  86 + * @param id
  87 + * @return
  88 + * @throws Exception
  89 + * @createTime 2014年8月21日 上午10:38:23
  90 + * @author liujie
  91 + */
  92 + boolean modifyStateByPickUpId(Long id) throws Exception;
  93 + /**
  94 + *
  95 + * this method is 通过父id查询该市场下面关联的提货点
  96 + * @param id
  97 + * @return
  98 + * @createTime 2014年8月21日 上午10:38:41
  99 + * @author liujie
  100 + */
  101 + List<PickUpPointDomain> getRelationPickInfo(Long id);
  102 + /**
  103 + *
  104 + * this method is 得到所有为未关联的提货点
  105 + * @return
  106 + * @createTime 2014年8月21日 上午10:40:16
  107 + * @author liujie
  108 + */
  109 + List<PickUpPointDomain> getNotMarketPickInfo();
  110 + /**
  111 + *
  112 + * this method is 关联提货点与市场的关系
  113 + * @param map
  114 + * @return
  115 + * @createTime 2014年8月21日 上午10:42:09
  116 + * @author liujie
  117 + */
  118 + boolean modifyRelationPoint(Map<String, Long> map);
  119 + /**
  120 + *
  121 + * this method is 清空这个id市场下面的提货点
  122 + * @param id
  123 + * @return
  124 + * @createTime 2014年8月21日 上午10:42:31
  125 + * @author liujie
  126 + */
  127 + boolean modifyRelationPointParent(Long id);
  128 + /**
  129 + *
  130 + * this method is 得到所有是市场的提货点
  131 + * @return
  132 + * @createTime 2014年8月21日 上午10:45:15
  133 + * @author liujie
  134 + */
  135 + List<PickUpPointDomain> getIsMarketPickUpInfo();
  136 + /**
  137 + *
  138 + * this method is 得到所有不是市场的提货点信息
  139 + * @return
  140 + * @throws Exception
  141 + * @createTime 2014年8月22日 上午10:23:22
  142 + * @author liujie
  143 + */
  144 + List<PickUpPointDomain> getIsNotMarketPickUpInfo() throws Exception;
  145 + /**
  146 + *
  147 + * this method is 得到所有提货点信息
  148 + * @return
  149 + * @throws Exception
  150 + * @createTime 2014年8月22日 上午10:23:45
  151 + * @author liujie
  152 + */
  153 + List<PickUpPointDomain> getAllMarketPickUpInfo() throws Exception;
  154 + /**
  155 + *
  156 + * this method is 根据提货点编码查询提货点信息
  157 + * @param code
  158 + * @return
  159 + * @throws Exception
  160 + * @createTime 2014年8月25日 上午11:50:35
  161 + * @author liujie
  162 + */
  163 + PickUpPointDomain getCodeByPickUpInfo(String code)throws Exception;
  164 + /**
  165 + *
  166 + * this method is 获取默认市场信息
  167 + * @return
  168 + * @throws Exception
  169 + * @createTime 2014年9月17日 下午2:46:17
  170 + * @author liujie
  171 + */
  172 + PickUpPointDomain getDefaultPickUpInfo()throws Exception;
  173 +
  174 + List<PickUpPointDomain> getPickUpInfoByName(String pickName);
  175 +
  176 + List<PickUpPointDomain> getRecommendPickUp();
  177 +
  178 + List<PickUpPointDomain> getPickUpListByCityId(Long cityId);
  179 +
  180 + List<PickUpPointDomain> getPickUpInfoByCityName(String cityName);
  181 +
  182 + List<PickUpPointDomain> getAllPickUpListByCityId(Long cityId);
  183 +
  184 +}
... ...
diligrp-website-dao/src/main/java/com/diligrp/website/dao/ShopCloseHistoryDao.java 0 → 100644
  1 +++ a/diligrp-website-dao/src/main/java/com/diligrp/website/dao/ShopCloseHistoryDao.java
  1 +package com.diligrp.website.dao;
  2 +
  3 +import com.diligrp.website.domain.ShopCloseHistory;
  4 +import com.diligrp.website.util.dao.BaseQuery;
  5 +
  6 +import java.util.List;
  7 +
  8 +
  9 +public interface ShopCloseHistoryDao {
  10 +
  11 + Integer getShopCloseHistoryCount(BaseQuery query);
  12 +
  13 + List<ShopCloseHistory> getShopCloseHistoryList(BaseQuery query);
  14 +
  15 + boolean save(ShopCloseHistory shopCloseHistory);
  16 +
  17 + ShopCloseHistory getShopCloseHistoryById(Long id);
  18 +
  19 + ShopCloseHistory getAuditShopCloseHistoryByShopId(Long shopId);
  20 +
  21 + boolean update(ShopCloseHistory shopCloseHistory);
  22 +}
... ...
diligrp-website-dao/src/main/java/com/diligrp/website/dao/ShopNameModifyDao.java 0 → 100644
  1 +++ a/diligrp-website-dao/src/main/java/com/diligrp/website/dao/ShopNameModifyDao.java
  1 +package com.diligrp.website.dao;
  2 +
  3 +import com.diligrp.website.domain.ShopNameModify;
  4 +import com.diligrp.website.util.dao.BaseQuery;
  5 +
  6 +import java.util.List;
  7 +
  8 +
  9 +public interface ShopNameModifyDao {
  10 +
  11 + List<ShopNameModify> getShopNameModifyByShopId(Long shopId);
  12 +
  13 + Integer getShopNameModifyCount(BaseQuery query);
  14 +
  15 + List<ShopNameModify> getShopNameModifyList(BaseQuery query);
  16 +
  17 + boolean save(ShopNameModify shopNameModify);
  18 +
  19 + boolean update(ShopNameModify shopNameModify);
  20 +
  21 + ShopNameModify getShopNameModifyById(Long id);
  22 +
  23 + ShopNameModify getShopNameModifyByNewShopName(String newShopName);
  24 +}
... ...
diligrp-website-dao/src/main/java/com/diligrp/website/dao/SysConfigDao.java 0 → 100644
  1 +++ a/diligrp-website-dao/src/main/java/com/diligrp/website/dao/SysConfigDao.java
  1 +package com.diligrp.website.dao;
  2 +
  3 +import java.util.List;
  4 +
  5 +import com.diligrp.website.domain.SysConfig;
  6 +import com.diligrp.website.util.dao.BaseQuery;
  7 +
  8 +
  9 +public interface SysConfigDao {
  10 +
  11 + SysConfig getSysConfigByCode(String code);
  12 +
  13 + Integer getSysConfigListCount(BaseQuery query);
  14 +
  15 + List<SysConfig> getSysConfigList(BaseQuery query);
  16 +
  17 + boolean saveSysConfig(SysConfig cfg);
  18 +
  19 + SysConfig getSysConfigById(Integer id);
  20 +
  21 + boolean editSysConfig(SysConfig newCfg);
  22 +
  23 +}
... ...
diligrp-website-dao/src/main/java/com/diligrp/website/dao/impl/AuthLevelDaoImpl.java 0 → 100644
  1 +++ a/diligrp-website-dao/src/main/java/com/diligrp/website/dao/impl/AuthLevelDaoImpl.java
  1 +package com.diligrp.website.dao.impl;
  2 +
  3 +import com.diligrp.website.dao.AuthLevelDao;
  4 +import com.diligrp.website.domain.AuthLevel;
  5 +import com.diligrp.website.domain.PickUpPointDomain;
  6 +import com.diligrp.website.util.dao.BaseQuery;
  7 +import com.diligrp.website.util.dao.impl.BaseDaoImpl;
  8 +import org.springframework.stereotype.Component;
  9 +
  10 +import java.util.List;
  11 +
  12 +@Component("authLevelDao")
  13 +public class AuthLevelDaoImpl extends BaseDaoImpl<AuthLevel>
  14 + implements AuthLevelDao {
  15 +
  16 + private static final String PREFIX = AuthLevelDaoImpl.class
  17 + .getCanonicalName();
  18 +
  19 + @Override
  20 + public Integer getAuthLevelCount(BaseQuery query) {
  21 + return getSqlSessionTemplate().selectOne(
  22 + PREFIX + ".getAuthLevelCount", query);
  23 + }
  24 +
  25 + @Override
  26 + public List<AuthLevel> getAuthLevelList(BaseQuery query) {
  27 + return getSqlSessionTemplate().selectList(PREFIX + ".getAuthLevelList",
  28 + query);
  29 + }
  30 +
  31 + @Override
  32 + public boolean save(AuthLevel authLevel) {
  33 + return super.save(authLevel);
  34 + }
  35 +
  36 + @Override
  37 + public boolean modify(AuthLevel authLevel) {
  38 + return super.update(authLevel);
  39 + }
  40 +
  41 + @Override
  42 + public AuthLevel getAuthLevelById(Long id) {
  43 + return super.getById(id);
  44 + }
  45 +
  46 + @Override
  47 + public List<AuthLevel> getAllAuthLevel() {
  48 + return getSqlSessionTemplate().selectList(
  49 + PREFIX + ".getAllAuthLevel");
  50 + }
  51 +
  52 + @Override
  53 + public AuthLevel checkName(Long id, String levelName) {
  54 + BaseQuery bq = new BaseQuery();
  55 + if (id != null) {
  56 + bq.addParam("id", id + "");
  57 + }
  58 + bq.addParam("levelName", levelName);
  59 + return getSqlSessionTemplate().selectOne(
  60 + PREFIX + ".checkName", bq);
  61 + }
  62 +}
... ...
diligrp-website-dao/src/main/java/com/diligrp/website/dao/impl/CityDaoImpl.java 0 → 100644
  1 +++ a/diligrp-website-dao/src/main/java/com/diligrp/website/dao/impl/CityDaoImpl.java
  1 +package com.diligrp.website.dao.impl;
  2 +
  3 +import java.util.HashMap;
  4 +import java.util.List;
  5 +import java.util.Map;
  6 +
  7 +import org.springframework.stereotype.Component;
  8 +
  9 +import com.diligrp.website.dao.CityDao;
  10 +import com.diligrp.website.domain.City;
  11 +import com.diligrp.website.util.dao.impl.BaseDaoImpl;
  12 +
  13 +@Component("CityDao")
  14 +public class CityDaoImpl extends BaseDaoImpl<City> implements CityDao {
  15 +
  16 + private static final String STATEMENT = CityDaoImpl.class.getCanonicalName();
  17 +
  18 + @Override
  19 + public List<City> getCityListByParentId(Integer pid) {
  20 + return getSqlSessionTemplate().selectList(STATEMENT + ".getCityListByParentId", pid);
  21 + }
  22 +
  23 + /*
  24 + * (non-Javadoc)
  25 + *
  26 + * @see
  27 + * com.diligrp.website.dao.CityDao#getParentCityListById(java.lang.Integer)
  28 + */
  29 + @Override
  30 + public List<City> getParentCityListById(Integer pid) {
  31 + List<City> list = getSqlSessionTemplate().selectList(STATEMENT + ".getParentCityListByRegionId", pid);
  32 + return list;
  33 + }
  34 +
  35 + @Override
  36 + public List<City> getCityByText(String cityName, int cityLevel) {
  37 + Map<String, Object> param = new HashMap<String, Object>();
  38 + param.put("cityName", cityName);
  39 + param.put("cityLevel", cityLevel);
  40 + return getSqlSessionTemplate().selectList(STATEMENT + ".getCityByText", param);
  41 + }
  42 +
  43 + @Override
  44 + public List<City> getCityListByCityIds(List cityIds) {
  45 + Map<String, Object> param = new HashMap<String, Object>();
  46 + param.put("cityIds", cityIds);
  47 + List<City> list = getSqlSessionTemplate().selectList(STATEMENT + ".getCityListByCityIds", param);
  48 + return list;
  49 + }
  50 +
  51 + @Override
  52 + public List<City> getCityListByCountryId(Long countryId) {
  53 + List<City> list = getSqlSessionTemplate().selectList(STATEMENT + ".getCityListByCountryId", countryId);
  54 + return list;
  55 + }
  56 +}
... ...
diligrp-website-dao/src/main/java/com/diligrp/website/dao/impl/DataDictionaryDaoImpl.java 0 → 100644
  1 +++ a/diligrp-website-dao/src/main/java/com/diligrp/website/dao/impl/DataDictionaryDaoImpl.java
  1 +package com.diligrp.website.dao.impl;
  2 +
  3 +import java.util.List;
  4 +import java.util.Map;
  5 +
  6 +import org.springframework.stereotype.Component;
  7 +
  8 +import com.diligrp.website.dao.DataDictionaryDao;
  9 +import com.diligrp.website.domain.DataDictionary;
  10 +import com.diligrp.website.domain.DataDictionaryValue;
  11 +import com.diligrp.website.domain.SysConfig;
  12 +import com.diligrp.website.util.dao.BaseQuery;
  13 +import com.diligrp.website.util.dao.impl.BaseDaoImpl;
  14 +import com.google.common.collect.Maps;
  15 +
  16 +@Component("dataDictionaryDao")
  17 +public class DataDictionaryDaoImpl extends BaseDaoImpl<DataDictionary>
  18 + implements DataDictionaryDao {
  19 +
  20 + private static final String PREFIX = DataDictionaryDaoImpl.class
  21 + .getCanonicalName();
  22 +
  23 + @Override
  24 + public DataDictionary getDataDictionaryByCode(String code) {
  25 + return getSqlSessionTemplate().selectOne(
  26 + PREFIX + ".getDataDictionaryByCode", code);
  27 + }
  28 +
  29 + @Override
  30 + public List<DataDictionaryValue> getDataDictionaryValue(Long id) {
  31 + return getSqlSessionTemplate().selectList(
  32 + PREFIX + ".getDataDictionaryValue", id);
  33 + }
  34 +
  35 + @Override
  36 + public Integer getDataDicListCount(BaseQuery query) {
  37 + return getSqlSessionTemplate().selectOne(
  38 + PREFIX + ".getDataDicListCount", query);
  39 + }
  40 +
  41 + @Override
  42 + public List<SysConfig> getDataDicList(BaseQuery query) {
  43 + return getSqlSessionTemplate().selectList(PREFIX + ".getDataDicList",
  44 + query);
  45 + }
  46 +
  47 + @Override
  48 + public boolean deleteValue(Long id) {
  49 + return getSqlSessionTemplate().delete(PREFIX + ".deleteValue", id) > 0;
  50 + }
  51 +
  52 + @Override
  53 + public boolean delete(Long id) {
  54 + return getSqlSessionTemplate().delete(PREFIX + ".delete", id) > 0;
  55 + }
  56 +
  57 + /*
  58 + * (non-Javadoc)
  59 + * @see com.diligrp.website.util.dao.impl.BaseDaoImpl#save(java.lang.Object)
  60 + */
  61 + @Override
  62 + public boolean save(DataDictionary value) {
  63 + return super.save(value);
  64 + }
  65 +
  66 + /*
  67 + * (non-Javadoc)
  68 + * @see
  69 + * com.diligrp.website.util.dao.impl.BaseDaoImpl#update(java.lang.Object)
  70 + */
  71 + @Override
  72 + public boolean update(DataDictionary value) {
  73 + return super.update(value);
  74 + }
  75 +
  76 + @Override
  77 + public DataDictionary getDataDictionaryById(Long id) {
  78 + return super.getById(id);
  79 + }
  80 +
  81 + @Override
  82 + public boolean saveValue(DataDictionaryValue dicv) {
  83 + return getSqlSessionTemplate().insert(PREFIX + ".saveValue", dicv) > 0;
  84 + }
  85 +
  86 + @Override
  87 + public DataDictionaryValue getDataDicValById(Long id) {
  88 + return getSqlSessionTemplate().selectOne(
  89 + PREFIX + ".getDataDicValById", id);
  90 + }
  91 +
  92 + @Override
  93 + public boolean editValue(DataDictionaryValue dicv) {
  94 + return getSqlSessionTemplate().update(PREFIX + ".editValue", dicv) > 0;
  95 + }
  96 +
  97 + @Override
  98 + public DataDictionaryValue getDataDicValByCode(String code, Integer ddId) {
  99 + Map<String, Object> param = Maps.newHashMap();
  100 + param.put("code", code);
  101 + param.put("ddId", ddId);
  102 + return getSqlSessionTemplate().selectOne(
  103 + PREFIX + ".getDataDicValByCode", param);
  104 + }
  105 +
  106 + @Override
  107 + public DataDictionaryValue getDataDicValByName(String name, Integer ddId) {
  108 + Map<String, Object> param = Maps.newHashMap();
  109 + param.put("name", name);
  110 + param.put("ddId", ddId);
  111 + return getSqlSessionTemplate().selectOne(
  112 + PREFIX + ".getDataDicValByName", param);
  113 + }
  114 +
  115 + @Override
  116 + public DataDictionaryValue getDataDicValBySort(Integer sort, Integer ddId) {
  117 + Map<String, Object> param = Maps.newHashMap();
  118 + param.put("sort", sort);
  119 + param.put("ddId", ddId);
  120 + return getSqlSessionTemplate().selectOne(
  121 + PREFIX + ".getDataDicValBySort", param);
  122 + }
  123 +
  124 +}
... ...