Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
weixin_53077510
production_ssm
提交
e84304ee
P
production_ssm
项目概览
weixin_53077510
/
production_ssm
与 Fork 源项目一致
从无法访问的项目Fork
通知
2
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
P
production_ssm
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
e84304ee
编写于
9月 28, 2016
作者:
M
megagao
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
删除了文件
上级
8fce4d61
变更
2
隐藏空白更改
内联
并排
Showing
2 changed file
with
22 addition
and
23 deletion
+22
-23
src/main/java/org/hqu/production_ms/mapper/COrderMapper.xml
src/main/java/org/hqu/production_ms/mapper/COrderMapper.xml
+22
-6
src/main/resources/mybatis/SqlMapConfig.xml
src/main/resources/mybatis/SqlMapConfig.xml
+0
-17
未找到文件。
src/main/java/org/hqu/production_ms/mapper/COrderMapper.xml
浏览文件 @
e84304ee
...
...
@@ -9,9 +9,10 @@
<result
column=
"quantity"
property=
"quantity"
jdbcType=
"INTEGER"
/>
<result
column=
"unit_price"
property=
"unitPrice"
jdbcType=
"DECIMAL"
/>
<result
column=
"unit"
property=
"unit"
jdbcType=
"VARCHAR"
/>
<result
column=
"image"
property=
"image"
jdbcType=
"VARCHAR"
/>
<result
column=
"file"
property=
"file"
jdbcType=
"VARCHAR"
/>
<result
column=
"status"
property=
"status"
jdbcType=
"INTEGER"
/>
<association
property=
"custom"
javaType=
"custom"
>
<association
property=
"custom"
javaType=
"custom"
>
<id
column=
"custom_id"
property=
"customId"
jdbcType=
"VARCHAR"
/>
<result
column=
"custom_name"
property=
"customName"
jdbcType=
"VARCHAR"
/>
<result
column=
"full_name"
property=
"fullName"
jdbcType=
"VARCHAR"
/>
...
...
@@ -43,6 +44,7 @@
quantity,
unit_price,
unit,
image,
file,
c_order.status,
custom.custom_id,
...
...
@@ -85,8 +87,6 @@
</foreach>
</update>
<sql
id=
"Example_Where_Clause"
>
<where
>
<foreach
collection=
"oredCriteria"
item=
"criteria"
separator=
"or"
>
...
...
@@ -147,7 +147,7 @@
</sql>
<sql
id=
"Base_Column_List"
>
order_id, custom_id, product_id, order_date, request_date, note, quantity, unit_price,
unit, file, status
unit,
image,
file, status
</sql>
<select
id=
"selectByExample"
resultMap=
"BaseResultMap"
parameterType=
"org.hqu.production_ms.domain.COrderExample"
>
select
...
...
@@ -183,11 +183,13 @@
insert into c_order (order_id, custom_id, product_id,
order_date, request_date, note,
quantity, unit_price, unit,
file, status)
image, file, status
)
values (#{orderId,jdbcType=VARCHAR}, #{customId,jdbcType=VARCHAR}, #{productId,jdbcType=VARCHAR},
#{orderDate,jdbcType=TIMESTAMP}, #{requestDate,jdbcType=TIMESTAMP}, #{note,jdbcType=VARCHAR},
#{quantity,jdbcType=INTEGER}, #{unitPrice,jdbcType=DECIMAL}, #{unit,jdbcType=VARCHAR},
#{file,jdbcType=VARCHAR}, #{status,jdbcType=INTEGER})
#{image,jdbcType=VARCHAR}, #{file,jdbcType=VARCHAR}, #{status,jdbcType=INTEGER}
)
</insert>
<insert
id=
"insertSelective"
parameterType=
"org.hqu.production_ms.domain.COrder"
>
insert into c_order
...
...
@@ -219,6 +221,9 @@
<if
test=
"unit != null"
>
unit,
</if>
<if
test=
"image != null"
>
image,
</if>
<if
test=
"file != null"
>
file,
</if>
...
...
@@ -254,6 +259,9 @@
<if
test=
"unit != null"
>
#{unit,jdbcType=VARCHAR},
</if>
<if
test=
"image != null"
>
#{image,jdbcType=VARCHAR},
</if>
<if
test=
"file != null"
>
#{file,jdbcType=VARCHAR},
</if>
...
...
@@ -298,6 +306,9 @@
<if
test=
"record.unit != null"
>
unit = #{record.unit,jdbcType=VARCHAR},
</if>
<if
test=
"record.image != null"
>
image = #{record.image,jdbcType=VARCHAR},
</if>
<if
test=
"record.file != null"
>
file = #{record.file,jdbcType=VARCHAR},
</if>
...
...
@@ -320,6 +331,7 @@
quantity = #{record.quantity,jdbcType=INTEGER},
unit_price = #{record.unitPrice,jdbcType=DECIMAL},
unit = #{record.unit,jdbcType=VARCHAR},
image = #{record.image,jdbcType=VARCHAR},
file = #{record.file,jdbcType=VARCHAR},
status = #{record.status,jdbcType=INTEGER}
<if
test=
"_parameter != null"
>
...
...
@@ -353,6 +365,9 @@
<if
test=
"unit != null"
>
unit = #{unit,jdbcType=VARCHAR},
</if>
<if
test=
"image != null"
>
image = #{image,jdbcType=VARCHAR},
</if>
<if
test=
"file != null"
>
file = #{file,jdbcType=VARCHAR},
</if>
...
...
@@ -372,6 +387,7 @@
quantity = #{quantity,jdbcType=INTEGER},
unit_price = #{unitPrice,jdbcType=DECIMAL},
unit = #{unit,jdbcType=VARCHAR},
image = #{image,jdbcType=VARCHAR},
file = #{file,jdbcType=VARCHAR},
status = #{status,jdbcType=INTEGER}
where order_id = #{orderId,jdbcType=VARCHAR}
...
...
src/main/resources/mybatis/SqlMapConfig.xml
已删除
100644 → 0
浏览文件 @
8fce4d61
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE configuration
PUBLIC "-//mybatis.org//DTD Config 3.0//EN"
"http://mybatis.org/dtd/mybatis-3-config.dtd">
<configuration>
<typeAliases>
<!--
通过package, 可以直接指定package的名字, mybatis会自动扫描你指定包下面的javabean,
并且默认设置一个别名,默认的名字为: javabean 的首字母小写的非限定类名来作为它的别名。
也可在javabean 加上注解@Alias 来自定义别名, 例如: @Alias(user)
-->
<package
name=
"org.hqu.production_ms.domain"
/>
<package
name=
"org.hqu.production_ms.domain.authority"
/>
</typeAliases>
</configuration>
\ No newline at end of file
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录