master
parent
49e5ef680a
commit
06d0c3b837
|
@ -7,14 +7,14 @@
|
|||
<sourceOutputDir name="target/generated-sources/annotations" />
|
||||
<sourceTestOutputDir name="target/generated-test-sources/test-annotations" />
|
||||
<outputRelativeToContentRoot value="true" />
|
||||
<module name="bwie-customer" />
|
||||
<module name="bwie-user" />
|
||||
<module name="bwie-vip" />
|
||||
<module name="bwie-merch" />
|
||||
<module name="bwie-common" />
|
||||
<module name="bwie-rabbit" />
|
||||
<module name="bwie-gateway" />
|
||||
<module name="bwie-auth" />
|
||||
<module name="bwie-customer" />
|
||||
<module name="bwie-merch" />
|
||||
</profile>
|
||||
</annotationProcessing>
|
||||
</component>
|
||||
|
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
|
@ -0,0 +1,29 @@
|
|||
# Tomcat
|
||||
server:
|
||||
port: 9006
|
||||
# Spring
|
||||
spring:
|
||||
main:
|
||||
allow-circular-references: true
|
||||
jackson:
|
||||
date-format: yyyy-MM-dd
|
||||
time-zone: GMT+8
|
||||
application:
|
||||
# 应用名称
|
||||
name: bwie-vip
|
||||
profiles:
|
||||
# 环境配置
|
||||
active: dev
|
||||
cloud:
|
||||
nacos:
|
||||
discovery:
|
||||
# 服务注册地址
|
||||
server-addr: 111.229.36.192:8848
|
||||
config:
|
||||
# 配置中心地址
|
||||
server-addr: 111.229.36.192:8848
|
||||
# 配置文件格式
|
||||
file-extension: yml
|
||||
# 共享配置
|
||||
shared-configs:
|
||||
- application-${spring.profiles.active}.${spring.cloud.nacos.config.file-extension}
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
|
@ -0,0 +1,58 @@
|
|||
<?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">
|
||||
<mapper namespace="com.bwie.vip.mapper.VipMapper">
|
||||
|
||||
<insert id="add">
|
||||
insert into t_vip(
|
||||
vip_name,
|
||||
vip_age,
|
||||
vip_gender,
|
||||
customer_id,
|
||||
vip_tel,
|
||||
vip_grade,
|
||||
reg_date
|
||||
) values (
|
||||
#{vipName},
|
||||
#{vipAge},
|
||||
#{vipGender},
|
||||
#{customerId},
|
||||
#{vipTel},
|
||||
#{vipGrade},
|
||||
now()
|
||||
)
|
||||
</insert>
|
||||
|
||||
<update id="update">
|
||||
update t_vip set
|
||||
vip_name=#{vipName},
|
||||
vip_age=#{vipAge},
|
||||
vip_gender=#{vipGender},
|
||||
customer_id=#{customerId},
|
||||
vip_tel=#{vipTel},
|
||||
vip_grade=#{vipGrade},
|
||||
reg_date=#{regDate}
|
||||
where vip_id=#{vipId}
|
||||
</update>
|
||||
|
||||
<delete id="deleteId">
|
||||
delete from t_vip where vip_id=#{vipId}
|
||||
</delete>
|
||||
|
||||
<select id="list" resultType="com.bwie.common.domain.Vip">
|
||||
select * from t_vip
|
||||
<where>
|
||||
<if test="vipId!=null and vipId!=null">
|
||||
and vip_id=#{vipId}
|
||||
</if>
|
||||
<if test="vipName!=null and vipName!=''">
|
||||
and vip_name like concat('%',#{vipName},'%')
|
||||
</if>
|
||||
</where>
|
||||
</select>
|
||||
|
||||
<select id="findById" resultType="com.bwie.common.domain.Vip">
|
||||
select * from t_vip where vip_id=#{vipId}
|
||||
</select>
|
||||
</mapper>
|
|
@ -0,0 +1,3 @@
|
|||
artifactId=bwie-vip
|
||||
groupId=com.bwie
|
||||
version=1.0-SNAPSHOT
|
|
@ -0,0 +1,5 @@
|
|||
com\bwie\vip\mapper\VipMapper.class
|
||||
com\bwie\vip\service\VipServiceimpl.class
|
||||
com\bwie\vip\service\VipService.class
|
||||
com\bwie\vip\VipApp.class
|
||||
com\bwie\vip\controller\VipController.class
|
|
@ -0,0 +1,5 @@
|
|||
D:\zhuangao5\safeway\bwie-moudels\bwie-vip\src\main\java\com\bwie\vip\service\VipService.java
|
||||
D:\zhuangao5\safeway\bwie-moudels\bwie-vip\src\main\java\com\bwie\vip\VipApp.java
|
||||
D:\zhuangao5\safeway\bwie-moudels\bwie-vip\src\main\java\com\bwie\vip\controller\VipController.java
|
||||
D:\zhuangao5\safeway\bwie-moudels\bwie-vip\src\main\java\com\bwie\vip\service\VipServiceimpl.java
|
||||
D:\zhuangao5\safeway\bwie-moudels\bwie-vip\src\main\java\com\bwie\vip\mapper\VipMapper.java
|
Loading…
Reference in New Issue