Commit ce495f72 by 朱瑞泽

暂定

parent 8ad453eb
...@@ -42,10 +42,6 @@ ...@@ -42,10 +42,6 @@
<target>${maven.compiler.target}</target> <target>${maven.compiler.target}</target>
</configuration> </configuration>
</plugin> </plugin>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>flatten-maven-plugin</artifactId>
</plugin>
</plugins> </plugins>
</build> </build>
......
package com.gic.demo.project.service.dao.mapper; package com.gic.demo.project.dao.mapper;
import com.gic.demo.project.service.entity.TabGicDemoEnterprise; import com.gic.demo.project.entity.TabGicDemoEnterprise;
public interface DemoEnterpriseMapper { public interface DemoEnterpriseMapper {
int deleteByPrimaryKey(String enterpriseId); int deleteByPrimaryKey(String enterpriseId);
......
package com.gic.demo.project.service.dao.mapper; package com.gic.demo.project.dao.mapper;
import com.gic.demo.project.service.entity.TabGicDemoStore; import com.gic.demo.project.entity.TabGicDemoStore;
public interface DemoStoreMapper { public interface DemoStoreMapper {
int deleteByPrimaryKey(String storeId); int deleteByPrimaryKey(String storeId);
......
package com.gic.demo.project.service.entity; package com.gic.demo.project.entity;
import com.gic.commons.plugin.mybatis.InjectId; import com.gic.commons.plugin.mybatis.InjectId;
......
package com.gic.demo.project.service.entity; package com.gic.demo.project.entity;
import com.gic.commons.plugin.mybatis.InjectId; import com.gic.commons.plugin.mybatis.InjectId;
......
package com.gic.demo.project.service.inner.service; package com.gic.demo.project.service;
import com.gic.demo.project.service.entity.TabGicDemoStore; import com.gic.demo.project.entity.TabGicDemoStore;
/** /**
* 门店内部服务 * 门店内部服务
* *
* @author zhurz * @author zhurz
*/ */
public interface DemoStoreInnerService { public interface DemoStoreService {
/** /**
* 根据id查询 * 根据id查询
......
package com.gic.demo.project.service.inner.service.impl; package com.gic.demo.project.service.impl;
import com.gic.demo.project.service.dao.mapper.DemoStoreMapper; import com.gic.demo.project.dao.mapper.DemoStoreMapper;
import com.gic.demo.project.service.entity.TabGicDemoStore; import com.gic.demo.project.service.DemoStoreService;
import com.gic.demo.project.service.inner.service.DemoStoreInnerService; import com.gic.demo.project.entity.TabGicDemoStore;
import org.apache.commons.lang3.StringUtils; import org.apache.commons.lang3.StringUtils;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service; import org.springframework.stereotype.Service;
...@@ -14,7 +14,7 @@ import org.springframework.stereotype.Service; ...@@ -14,7 +14,7 @@ import org.springframework.stereotype.Service;
* @author zhurz * @author zhurz
*/ */
@Service @Service
public class DemoStoreInnerServiceImpl implements DemoStoreInnerService { public class DemoStoreServiceImpl implements DemoStoreService {
@Autowired @Autowired
private DemoStoreMapper mapper; private DemoStoreMapper mapper;
......
package com.gic.demo.project.service.service.impl; package com.gic.demo.project.service.outer.impl;
import com.gic.api.base.commons.ServiceResponse; import com.gic.api.base.commons.ServiceResponse;
import com.gic.commons.util.EntityUtil; import com.gic.commons.util.EntityUtil;
import com.gic.demo.project.api.dto.DemoStoreDTO; import com.gic.demo.project.api.dto.DemoStoreDTO;
import com.gic.demo.project.api.service.DemoStoreApiService; import com.gic.demo.project.api.service.DemoStoreApiService;
import com.gic.demo.project.api.utils.DemoProjectApiConstant; import com.gic.demo.project.api.utils.DemoProjectApiConstant;
import com.gic.demo.project.service.entity.TabGicDemoStore; import com.gic.demo.project.service.DemoStoreService;
import com.gic.demo.project.service.inner.service.DemoStoreInnerService; import com.gic.demo.project.entity.TabGicDemoStore;
import org.apache.commons.lang3.RandomUtils; import org.apache.commons.lang3.RandomUtils;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service; import org.springframework.stereotype.Service;
...@@ -18,7 +18,7 @@ import org.springframework.stereotype.Service; ...@@ -18,7 +18,7 @@ import org.springframework.stereotype.Service;
public class DemoStoreApiServiceImpl implements DemoStoreApiService { public class DemoStoreApiServiceImpl implements DemoStoreApiService {
@Autowired @Autowired
private DemoStoreInnerService localService; private DemoStoreService localService;
/** /**
* 根据id查询 * 根据id查询
......
<?xml version="1.0" encoding="UTF-8"?> <?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.gic.demo.project.service.dao.mapper.DemoEnterpriseMapper"> <mapper namespace="com.gic.demo.project.dao.mapper.DemoEnterpriseMapper">
<resultMap id="BaseResultMap" type="com.gic.demo.project.service.entity.TabGicDemoEnterprise"> <resultMap id="BaseResultMap" type="com.gic.demo.project.entity.TabGicDemoEnterprise">
<id column="enterprise_id" jdbcType="CHAR" property="enterpriseId" /> <id column="enterprise_id" jdbcType="CHAR" property="enterpriseId" />
<result column="enterprise_name" jdbcType="VARCHAR" property="enterpriseName" /> <result column="enterprise_name" jdbcType="VARCHAR" property="enterpriseName" />
<result column="enterprise_code" jdbcType="VARCHAR" property="enterpriseCode" /> <result column="enterprise_code" jdbcType="VARCHAR" property="enterpriseCode" />
...@@ -33,7 +33,7 @@ ...@@ -33,7 +33,7 @@
delete from tab_gic_demo_enterprise delete from tab_gic_demo_enterprise
where enterprise_id = #{enterpriseId,jdbcType=CHAR} where enterprise_id = #{enterpriseId,jdbcType=CHAR}
</delete> </delete>
<insert id="insert" parameterType="com.gic.demo.project.service.entity.TabGicDemoEnterprise"> <insert id="insert" parameterType="com.gic.demo.project.entity.TabGicDemoEnterprise">
insert into tab_gic_demo_enterprise (enterprise_id, enterprise_name, enterprise_code, insert into tab_gic_demo_enterprise (enterprise_id, enterprise_name, enterprise_code,
brand_name, logo_url, enterprise_description, brand_name, logo_url, enterprise_description,
license_number, country_id, province_id, license_number, country_id, province_id,
...@@ -47,7 +47,7 @@ ...@@ -47,7 +47,7 @@
#{createTime,jdbcType=TIMESTAMP}, #{updateTime,jdbcType=TIMESTAMP}, #{status,jdbcType=INTEGER} #{createTime,jdbcType=TIMESTAMP}, #{updateTime,jdbcType=TIMESTAMP}, #{status,jdbcType=INTEGER}
) )
</insert> </insert>
<insert id="insertSelective" parameterType="com.gic.demo.project.service.entity.TabGicDemoEnterprise"> <insert id="insertSelective" parameterType="com.gic.demo.project.entity.TabGicDemoEnterprise">
insert into tab_gic_demo_enterprise insert into tab_gic_demo_enterprise
<trim prefix="(" suffix=")" suffixOverrides=","> <trim prefix="(" suffix=")" suffixOverrides=",">
<if test="enterpriseId != null"> <if test="enterpriseId != null">
...@@ -144,7 +144,7 @@ ...@@ -144,7 +144,7 @@
</if> </if>
</trim> </trim>
</insert> </insert>
<update id="updateByPrimaryKeySelective" parameterType="com.gic.demo.project.service.entity.TabGicDemoEnterprise"> <update id="updateByPrimaryKeySelective" parameterType="com.gic.demo.project.entity.TabGicDemoEnterprise">
update tab_gic_demo_enterprise update tab_gic_demo_enterprise
<set> <set>
<if test="enterpriseName != null"> <if test="enterpriseName != null">
...@@ -192,7 +192,7 @@ ...@@ -192,7 +192,7 @@
</set> </set>
where enterprise_id = #{enterpriseId,jdbcType=CHAR} where enterprise_id = #{enterpriseId,jdbcType=CHAR}
</update> </update>
<update id="updateByPrimaryKey" parameterType="com.gic.demo.project.service.entity.TabGicDemoEnterprise"> <update id="updateByPrimaryKey" parameterType="com.gic.demo.project.entity.TabGicDemoEnterprise">
update tab_gic_demo_enterprise update tab_gic_demo_enterprise
set enterprise_name = #{enterpriseName,jdbcType=VARCHAR}, set enterprise_name = #{enterpriseName,jdbcType=VARCHAR},
enterprise_code = #{enterpriseCode,jdbcType=VARCHAR}, enterprise_code = #{enterpriseCode,jdbcType=VARCHAR},
......
<?xml version="1.0" encoding="UTF-8"?> <?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.gic.demo.project.service.dao.mapper.DemoStoreMapper"> <mapper namespace="com.gic.demo.project.dao.mapper.DemoStoreMapper">
<resultMap id="BaseResultMap" type="com.gic.demo.project.service.entity.TabGicDemoStore"> <resultMap id="BaseResultMap" type="com.gic.demo.project.entity.TabGicDemoStore">
<id column="store_id" jdbcType="CHAR" property="storeId" /> <id column="store_id" jdbcType="CHAR" property="storeId" />
<result column="enterprise_id" jdbcType="CHAR" property="enterpriseId" /> <result column="enterprise_id" jdbcType="CHAR" property="enterpriseId" />
<result column="store_name" jdbcType="VARCHAR" property="storeName" /> <result column="store_name" jdbcType="VARCHAR" property="storeName" />
...@@ -23,7 +23,7 @@ ...@@ -23,7 +23,7 @@
delete from tab_gic_demo_store delete from tab_gic_demo_store
where store_id = #{storeId,jdbcType=CHAR} where store_id = #{storeId,jdbcType=CHAR}
</delete> </delete>
<insert id="insert" parameterType="com.gic.demo.project.service.entity.TabGicDemoStore"> <insert id="insert" parameterType="com.gic.demo.project.entity.TabGicDemoStore">
insert into tab_gic_demo_store (store_id, enterprise_id, store_name, insert into tab_gic_demo_store (store_id, enterprise_id, store_name,
post_address, status, create_time, post_address, status, create_time,
update_time) update_time)
...@@ -31,7 +31,7 @@ ...@@ -31,7 +31,7 @@
#{postAddress,jdbcType=VARCHAR}, #{status,jdbcType=INTEGER}, #{createTime,jdbcType=TIMESTAMP}, #{postAddress,jdbcType=VARCHAR}, #{status,jdbcType=INTEGER}, #{createTime,jdbcType=TIMESTAMP},
#{updateTime,jdbcType=TIMESTAMP}) #{updateTime,jdbcType=TIMESTAMP})
</insert> </insert>
<insert id="insertSelective" parameterType="com.gic.demo.project.service.entity.TabGicDemoStore"> <insert id="insertSelective" parameterType="com.gic.demo.project.entity.TabGicDemoStore">
insert into tab_gic_demo_store insert into tab_gic_demo_store
<trim prefix="(" suffix=")" suffixOverrides=","> <trim prefix="(" suffix=")" suffixOverrides=",">
<if test="storeId != null"> <if test="storeId != null">
...@@ -80,7 +80,7 @@ ...@@ -80,7 +80,7 @@
</if> </if>
</trim> </trim>
</insert> </insert>
<update id="updateByPrimaryKeySelective" parameterType="com.gic.demo.project.service.entity.TabGicDemoStore"> <update id="updateByPrimaryKeySelective" parameterType="com.gic.demo.project.entity.TabGicDemoStore">
update tab_gic_demo_store update tab_gic_demo_store
<set> <set>
<if test="enterpriseId != null"> <if test="enterpriseId != null">
...@@ -104,7 +104,7 @@ ...@@ -104,7 +104,7 @@
</set> </set>
where store_id = #{storeId,jdbcType=CHAR} where store_id = #{storeId,jdbcType=CHAR}
</update> </update>
<update id="updateByPrimaryKey" parameterType="com.gic.demo.project.service.entity.TabGicDemoStore"> <update id="updateByPrimaryKey" parameterType="com.gic.demo.project.entity.TabGicDemoStore">
update tab_gic_demo_store update tab_gic_demo_store
set enterprise_id = #{enterpriseId,jdbcType=CHAR}, set enterprise_id = #{enterpriseId,jdbcType=CHAR},
store_name = #{storeName,jdbcType=VARCHAR}, store_name = #{storeName,jdbcType=VARCHAR},
......
...@@ -2,10 +2,10 @@ package com.gic; ...@@ -2,10 +2,10 @@ package com.gic;
import com.alibaba.fastjson.JSON; import com.alibaba.fastjson.JSON;
import com.dexcoder.commons.utils.UUIDUtils; import com.dexcoder.commons.utils.UUIDUtils;
import com.gic.demo.project.service.dao.mapper.DemoEnterpriseMapper; import com.gic.demo.project.dao.mapper.DemoEnterpriseMapper;
import com.gic.demo.project.service.dao.mapper.DemoStoreMapper; import com.gic.demo.project.dao.mapper.DemoStoreMapper;
import com.gic.demo.project.service.entity.TabGicDemoEnterprise; import com.gic.demo.project.entity.TabGicDemoEnterprise;
import com.gic.demo.project.service.entity.TabGicDemoStore; import com.gic.demo.project.entity.TabGicDemoStore;
import org.apache.commons.lang3.RandomStringUtils; import org.apache.commons.lang3.RandomStringUtils;
import org.junit.Test; import org.junit.Test;
import org.junit.runner.RunWith; import org.junit.runner.RunWith;
......
...@@ -49,11 +49,6 @@ ...@@ -49,11 +49,6 @@
<artifactId>spring-boot-starter-web</artifactId> <artifactId>spring-boot-starter-web</artifactId>
</dependency> </dependency>
<dependency>
<groupId>org.apache.tomcat.embed</groupId>
<artifactId>tomcat-embed-core</artifactId>
</dependency>
</dependencies> </dependencies>
<build> <build>
......
...@@ -22,7 +22,7 @@ public class Main { ...@@ -22,7 +22,7 @@ public class Main {
public static void main(String[] args) { public static void main(String[] args) {
ConfigurableApplicationContext context = SpringApplication.run(Main.class, args); ConfigurableApplicationContext context = SpringApplication.run(Main.class, args);
DubboContextUtil.setApplicationContext(context.getParent()); DubboContextUtil.setApplicationContext(context);
} }
} }
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment