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
aab9db7e
Commit
aab9db7e
authored
Jan 04, 2026
by
zhangtw
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
消耗品不显示归还明细
parent
cb7aec8c
显示空白字符变更
内嵌
并排
正在显示
3 个修改的文件
包含
9 行增加
和
7 行删除
+9
-7
src/main/java/com/scpyun/platform/jilinsscgsdp/service/impl/KeyDmInboundServiceImpl.java
+5
-4
src/main/resources/mybatis/mappers/standard/jilinsscgsdp/KeyDmBorrowApplicationDao.xml
+2
-2
src/main/resources/mybatis/mappers/standard/jilinsscgsdp/KeyDmInboundRecordDao.xml
+2
-1
没有找到文件。
src/main/java/com/scpyun/platform/jilinsscgsdp/service/impl/KeyDmInboundServiceImpl.java
View file @
aab9db7e
...
@@ -77,10 +77,6 @@ public class KeyDmInboundServiceImpl {
...
@@ -77,10 +77,6 @@ public class KeyDmInboundServiceImpl {
if
(
map
==
null
)
throw
new
CustomException
(
"参数不能为空"
);
if
(
map
==
null
)
throw
new
CustomException
(
"参数不能为空"
);
Object
id
=
map
.
get
(
"id"
);
Object
id
=
map
.
get
(
"id"
);
List
<
Map
<
String
,
Object
>>
details
=
(
List
<
Map
<
String
,
Object
>>)
map
.
get
(
"details"
);
List
<
Map
<
String
,
Object
>>
details
=
(
List
<
Map
<
String
,
Object
>>)
map
.
get
(
"details"
);
if
(
id
==
null
||
String
.
valueOf
(
id
).
trim
().
isEmpty
())
{
System
.
out
.
println
(
map
);
map
.
put
(
"id"
,
UUID
.
randomUUID
().
toString
());
map
.
put
(
"order_no"
,
0
);
// 日期格式转换:兼容 2025-12-26 和 2025-12-25T16:00:00.000Z 两种格式
// 日期格式转换:兼容 2025-12-26 和 2025-12-25T16:00:00.000Z 两种格式
String
dateStr
=
(
String
)
map
.
get
(
"inbound_date"
);
String
dateStr
=
(
String
)
map
.
get
(
"inbound_date"
);
Date
inbound_date
=
null
;
Date
inbound_date
=
null
;
...
@@ -103,6 +99,11 @@ public class KeyDmInboundServiceImpl {
...
@@ -103,6 +99,11 @@ public class KeyDmInboundServiceImpl {
}
}
}
}
map
.
put
(
"inbound_date"
,
inbound_date
);
map
.
put
(
"inbound_date"
,
inbound_date
);
if
(
id
==
null
||
String
.
valueOf
(
id
).
trim
().
isEmpty
())
{
System
.
out
.
println
(
map
);
map
.
put
(
"id"
,
UUID
.
randomUUID
().
toString
());
map
.
put
(
"order_no"
,
0
);
map
.
put
(
"inbound_status"
,
0
);
map
.
put
(
"inbound_status"
,
0
);
if
(
commonService
.
insert
(
namespace
+
"insert"
,
map
)
!=
1
)
throw
new
CustomException
(
"保存失败"
);
if
(
commonService
.
insert
(
namespace
+
"insert"
,
map
)
!=
1
)
throw
new
CustomException
(
"保存失败"
);
...
...
src/main/resources/mybatis/mappers/standard/jilinsscgsdp/KeyDmBorrowApplicationDao.xml
View file @
aab9db7e
...
@@ -23,7 +23,7 @@
...
@@ -23,7 +23,7 @@
AND submit_time
<
= #{params.params.endDate}
AND submit_time
<
= #{params.params.endDate}
</if>
</if>
</where>
</where>
ORDER BY create_time DESC
ORDER BY
approval_status asc,
create_time DESC
</select>
</select>
<select
id=
"selectPendingList"
parameterType=
"page"
resultType=
"map"
>
<select
id=
"selectPendingList"
parameterType=
"page"
resultType=
"map"
>
...
@@ -68,7 +68,7 @@
...
@@ -68,7 +68,7 @@
id,application_no,applicant_id,applicant_name,department_id,department_name,borrow_purpose,expected_return_date,approver_id,approver_name,
id,application_no,applicant_id,applicant_name,department_id,department_name,borrow_purpose,expected_return_date,approver_id,approver_name,
approval_status,issue_status,is_used,create_by,create_time,order_no
approval_status,issue_status,is_used,create_by,create_time,order_no
) VALUES (
) VALUES (
#{id},CONCAT('borrow', REPLACE(UUID(),'-','')),#{applicant_id},#{applicant_name},#{department_id},#{department_name},#{borrow_purpose},#{expected_return_date},#{approver_id},#{approver_name}
#{id},CONCAT('borrow', REPLACE(UUID(),'-','')),#{applicant_id},#{applicant_name},#{department_id},#{department_name},#{borrow_purpose},#{expected_return_date},#{approver_id},#{approver_name}
,
#{approval_status},#{issue_status},1,#{_user.id},NOW(),#{order_no}
#{approval_status},#{issue_status},1,#{_user.id},NOW(),#{order_no}
)
)
</insert>
</insert>
...
...
src/main/resources/mybatis/mappers/standard/jilinsscgsdp/KeyDmInboundRecordDao.xml
View file @
aab9db7e
...
@@ -174,6 +174,7 @@
...
@@ -174,6 +174,7 @@
</if>
</if>
</where>
</where>
group by ba.id
group by ba.id
order by submit_time desc
</select>
</select>
<select
id=
"selectPendingReturnDetailsByApplicationId"
parameterType=
"map"
resultType=
"map"
>
<select
id=
"selectPendingReturnDetailsByApplicationId"
parameterType=
"map"
resultType=
"map"
>
...
@@ -183,7 +184,7 @@
...
@@ -183,7 +184,7 @@
from jl_key_dm_borrow_application_detail as bad
from jl_key_dm_borrow_application_detail as bad
left join jl_key_dm_material as m on bad.material_id = m.id
left join jl_key_dm_material as m on bad.material_id = m.id
left join jl_key_dm_borrow_application as ba on bad.application_id = ba.id
left join jl_key_dm_borrow_application as ba on bad.application_id = ba.id
where ba.id = #{id}
where ba.id = #{id}
and m.can_borrow = 1
</select>
</select>
<!-- 将物料code为键做成字典-->
<!-- 将物料code为键做成字典-->
<select
id=
"getMaterialMap"
resultType=
"map"
>
<select
id=
"getMaterialMap"
resultType=
"map"
>
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论