Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
J
jilinzhongdianrenqun
概览
Overview
Details
Activity
Cycle Analytics
版本库
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
问题
0
Issues
0
列表
Board
标记
里程碑
合并请求
0
Merge Requests
0
CI / CD
CI / CD
流水线
作业
日程表
图表
维基
Wiki
代码片段
Snippets
成员
Members
Collapse sidebar
Close sidebar
活动
图像
聊天
创建新问题
作业
提交
Issue Boards
Open sidebar
吴超
jilinzhongdianrenqun
Commits
e76fdea5
Commit
e76fdea5
authored
Dec 24, 2025
by
wangchunyang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
导入修改
parent
7ce04f96
隐藏空白字符变更
内嵌
并排
正在显示
2 个修改的文件
包含
45 行增加
和
0 行删除
+45
-0
src/main/resources/keyMaterialImp.xlsx
+0
-0
src/main/resources/mybatis/mappers/standard/jilinsscgsdp/KeyDmMaterialDao.xml
+45
-0
没有找到文件。
src/main/resources/keyMaterialImp.xlsx
View file @
e76fdea5
No preview for this file type
src/main/resources/mybatis/mappers/standard/jilinsscgsdp/KeyDmMaterialDao.xml
View file @
e76fdea5
...
@@ -12,6 +12,7 @@
...
@@ -12,6 +12,7 @@
m.material_spec,
m.material_spec,
m.unit,
m.unit,
m.unit_price,
m.unit_price,
m.supplier_name,
m.storage_location,
m.storage_location,
m.min_stock,
m.min_stock,
m.max_stock,
m.max_stock,
...
@@ -42,6 +43,47 @@
...
@@ -42,6 +43,47 @@
ORDER BY m.order_no ASC, m.create_time DESC
ORDER BY m.order_no ASC, m.create_time DESC
</select>
</select>
<!-- 查询列表 -->
<select
id=
"findList"
parameterType=
"map"
resultType=
"map"
>
SELECT
m.id,
m.category_id,
m.material_code,
m.material_name,
m.material_spec,
m.unit,
m.unit_price,
m.supplier_name,
m.storage_location,
m.min_stock,
m.max_stock,
m.status,
m.can_borrow,
m.material_desc,
m.is_used,
m.create_by,
m.create_time,
m.update_by,
m.update_time,
m.order_no,
c.category_Name AS category_name
FROM jl_key_dm_material m
LEFT JOIN jl_key_dm_material_category c ON c.Id = m.category_id
<where>
AND m.is_used = 1
<if
test=
"material_name != null and material_name != ''"
>
AND m.material_name LIKE CONCAT('%', #{material_name}, '%')
</if>
<if
test=
"material_code != null and material_code != ''"
>
AND m.material_code LIKE CONCAT('%', #{material_code}, '%')
</if>
<if
test=
"category_id != null and category_id != ''"
>
AND m.category_id = #{category_id}
</if>
</where>
ORDER BY m.order_no ASC, m.create_time DESC
</select>
<!-- 新增 -->
<!-- 新增 -->
<insert
id=
"insert"
parameterType=
"map"
>
<insert
id=
"insert"
parameterType=
"map"
>
INSERT INTO jl_key_dm_material(
INSERT INTO jl_key_dm_material(
...
@@ -52,6 +94,7 @@
...
@@ -52,6 +94,7 @@
material_spec,
material_spec,
unit,
unit,
unit_price,
unit_price,
supplier_name,
storage_location,
storage_location,
min_stock,
min_stock,
max_stock,
max_stock,
...
@@ -70,6 +113,7 @@
...
@@ -70,6 +113,7 @@
#{material_spec},
#{material_spec},
#{unit},
#{unit},
#{unit_price},
#{unit_price},
#{supplier_name},
#{storage_location},
#{storage_location},
#{min_stock},
#{min_stock},
#{max_stock},
#{max_stock},
...
@@ -93,6 +137,7 @@
...
@@ -93,6 +137,7 @@
material_spec = #{material_spec},
material_spec = #{material_spec},
unit = #{unit},
unit = #{unit},
unit_price = #{unit_price},
unit_price = #{unit_price},
supplier_name = #{supplier_name},
storage_location = #{storage_location},
storage_location = #{storage_location},
min_stock = #{min_stock},
min_stock = #{min_stock},
max_stock = #{max_stock},
max_stock = #{max_stock},
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论