Skip to content
切换导航条
切换导航条
当前项目
正在载入...
登录
张雷
/
skboot-zhongye
转到一个项目
切换导航栏
切换导航栏固定状态
项目
群组
代码片段
帮助
项目
活动
版本库
流水线
图表
问题
0
合并请求
0
维基
网络
创建新的问题
构建
提交
问题看板
文件
提交
网络
比较
分支
标签
73d00fac
由
sonin
编写于
2025-04-21 17:56:54 +0800
浏览文件
选项
浏览文件
标签
下载
电子邮件补丁
差异文件
出库统计分析 物料/设备
1 个父辈
805c4dc5
全部展开
显示空白字符变更
内嵌
并排
正在显示
3 个修改的文件
包含
26 行增加
和
30 行删除
sk-base-common/src/main/java/com/skua/modules/biz/impl/BusinessServiceImpl.java
sk-module-equipment/src/main/java/com/skua/modules/equipment/controller/EquipmentOutController.java
sk-module-equipment/src/main/java/com/skua/modules/equipment/controller/EquipmentStatisticController.java
sk-base-common/src/main/java/com/skua/modules/biz/impl/BusinessServiceImpl.java
查看文件 @
73d00fa
...
...
@@ -21,37 +21,28 @@ public class BusinessServiceImpl implements IBusinessService {
@Autowired
private
IBaseService
baseService
;
/**
* table0 => (key0, value0)
*/
private
static
final
Map
<
String
,
String
[]>
DICT_MAP
=
new
HashMap
<
String
,
String
[]>()
{{
put
(
"equipment_info"
,
new
String
[]{
"id"
,
"equipment_name"
});
put
(
"sys_user"
,
new
String
[]{
"id"
,
"realname"
});
put
(
"sys_struct_dict"
,
new
String
[]{
"id"
,
"struct_name"
});
put
(
"equipment_category"
,
new
String
[]{
"id"
,
"des"
});
put
(
"evaluate_score_desc"
,
new
String
[]{
"id"
,
"score_desc"
});
put
(
"carbon_qualitative_desc"
,
new
String
[]{
"id"
,
"qualitative_desc"
});
put
(
"sys_depart"
,
new
String
[]{
"id"
,
"depart_name"
});
put
(
"equipment_sparepart_type"
,
new
String
[]{
"id"
,
"item_text"
});
}};
@Override
public
Map
<
String
,
String
>
dictMap
(
String
dictCode
,
Collection
<?>
inCol
)
{
String
key0
,
value0
,
table0
;
QueryWrapper
<?>
queryWrapper0
=
new
QueryWrapper
<>();
if
(
"equipment_info"
.
equals
(
dictCode
))
{
key0
=
"id"
;
value0
=
"equipment_name"
;
table0
=
dictCode
;
}
else
if
(
"sys_user"
.
equals
(
dictCode
))
{
key0
=
"id"
;
value0
=
"realname"
;
table0
=
dictCode
;
}
else
if
(
"sys_struct_dict"
.
equals
(
dictCode
))
{
key0
=
"id"
;
value0
=
"struct_name"
;
table0
=
dictCode
;
}
else
if
(
"equipment_category"
.
equals
(
dictCode
))
{
key0
=
"id"
;
value0
=
"des"
;
table0
=
dictCode
;
}
else
if
(
"evaluate_score_desc"
.
equals
(
dictCode
))
{
key0
=
"id"
;
value0
=
"score_desc"
;
table0
=
dictCode
;
}
else
if
(
"carbon_qualitative_desc"
.
equals
(
dictCode
))
{
key0
=
"id"
;
value0
=
"qualitative_desc"
;
table0
=
dictCode
;
}
else
if
(
"sys_depart"
.
equals
(
dictCode
))
{
key0
=
"id"
;
value0
=
"depart_name"
;
if
(
DICT_MAP
.
containsKey
(
dictCode
))
{
String
[]
dictArray
=
DICT_MAP
.
get
(
dictCode
);
key0
=
dictArray
[
0
];
value0
=
dictArray
[
1
];
table0
=
dictCode
;
}
else
{
// 数据字典查询
...
...
@@ -72,5 +63,4 @@ public class BusinessServiceImpl implements IBusinessService {
return
dictMap
;
}
}
...
...
sk-module-equipment/src/main/java/com/skua/modules/equipment/controller/EquipmentOutController.java
查看文件 @
73d00fa
...
...
@@ -159,10 +159,16 @@ public class EquipmentOutController {
EquipmentOut
equipmentOut
=
BeanExtUtils
.
bean2Bean
(
equipmentOutDTO
,
EquipmentOut
.
class
);
QueryWrapper
<
EquipmentOut
>
queryWrapper
=
QueryGenerator
.
initQueryWrapper
(
equipmentOut
,
req
.
getParameterMap
());
if
(
StringUtils
.
isNotEmpty
(
equipmentOutDTO
.
getStartTime
()))
{
queryWrapper
.
ge
(
"out_date"
,
equipmentOutDTO
.
getStartTime
()
+
" 00:00:00"
);
if
(
equipmentOutDTO
.
getStartTime
().
length
()
==
10
)
{
equipmentOutDTO
.
setStartTime
(
equipmentOutDTO
.
getStartTime
()
+
" 00:00:00"
);
}
queryWrapper
.
ge
(
"out_date"
,
equipmentOutDTO
.
getStartTime
());
}
if
(
StringUtils
.
isNotEmpty
(
equipmentOutDTO
.
getEndTime
()))
{
queryWrapper
.
le
(
"out_date"
,
equipmentOutDTO
.
getEndTime
()
+
" 23:59:59"
);
if
(
equipmentOutDTO
.
getEndTime
().
length
()
==
10
)
{
equipmentOutDTO
.
setEndTime
(
equipmentOutDTO
.
getEndTime
()
+
" 23:59:59"
);
}
queryWrapper
.
le
(
"out_date"
,
equipmentOutDTO
.
getEndTime
());
}
if
(
StringUtils
.
isNotEmpty
(
equipmentOutDTO
.
getSparepartId
()))
{
String
sparepartId
=
equipmentOutDTO
.
getSparepartId
();
...
...
sk-module-equipment/src/main/java/com/skua/modules/equipment/controller/EquipmentStatisticController.java
0 → 100644
查看文件 @
73d00fa
此文件的差异被折叠,
点击展开。
编写
预览
支持
Markdown
格式
附加文件
你添加了
0
人
到此讨论。请谨慎行事。
Finish editing this message first!
Cancel
请
注册
或
登录
后发表评论