Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
T
tianjin-cement
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
竹天卫
tianjin-cement
Commits
969f8f9c
Commit
969f8f9c
authored
Feb 26, 2021
by
竹天卫
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
正式版本部署节点
parent
f9e8f13f
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
42 additions
and
18 deletions
+42
-18
EntrustController.java
...wise/sc/cement/business/controller/EntrustController.java
+2
-2
EntrustMapper.xml
...a/cn/wise/sc/cement/business/mapper/xml/EntrustMapper.xml
+6
-2
SampleReturnHandleVo.java
...ise/sc/cement/business/model/vo/SampleReturnHandleVo.java
+6
-0
PrecipriceServiceImpl.java
...c/cement/business/service/impl/PrecipriceServiceImpl.java
+13
-8
ExcelUtil.java
.../main/java/cn/wise/sc/cement/business/util/ExcelUtil.java
+14
-5
application.yml
cement-business/src/main/resources/application.yml
+1
-1
No files found.
cement-business/src/main/java/cn/wise/sc/cement/business/controller/EntrustController.java
View file @
969f8f9c
...
@@ -711,11 +711,11 @@ public class EntrustController {
...
@@ -711,11 +711,11 @@ public class EntrustController {
.
stream
()
.
stream
()
.
filter
(
arg
->
arg
.
getCementCode
().
equals
(
arg
.
getParallelCode
())
)
.
filter
(
arg
->
arg
.
getCementCode
().
equals
(
arg
.
getParallelCode
())
)
.
forEach
(
arg
->
{
.
forEach
(
arg
->
{
List
<
SampleTeamGroupVo
>
teamVoList
=
arg
.
getSampleTeamGroupVoList
();
/*
List<SampleTeamGroupVo> teamVoList = arg.getSampleTeamGroupVoList();
teamVoList.forEach(args ->{
teamVoList.forEach(args ->{
List<SampleDistributionTeamVo> teamVoList2 = args.getSampleDistributionTeamVoList();
List<SampleDistributionTeamVo> teamVoList2 = args.getSampleDistributionTeamVoList();
arg.setTeamName(getTeamName(teamVoList2));
arg.setTeamName(getTeamName(teamVoList2));
});
});
*/
sampleList
.
add
(
arg
);
sampleList
.
add
(
arg
);
});
});
beanParams
.
put
(
"list"
,
sampleList
);
beanParams
.
put
(
"list"
,
sampleList
);
...
...
cement-business/src/main/java/cn/wise/sc/cement/business/mapper/xml/EntrustMapper.xml
View file @
969f8f9c
...
@@ -372,8 +372,10 @@
...
@@ -372,8 +372,10 @@
ELSE ''
ELSE ''
END
END
) as statusValue,
) as statusValue,
t.remark as returnReason
t.remark as returnReason,
h.id as objId, h.name as objName
from sample_handle t
from sample_handle t
left join handle h on h.id = t.handle_id
left join sys_user su on su.id = t.user_id
left join sys_user su on su.id = t.user_id
left join sample s on s.id = t.sample_id
left join sample s on s.id = t.sample_id
left join entrust e on e.id = s.entrust_id
left join entrust e on e.id = s.entrust_id
...
@@ -419,8 +421,10 @@
...
@@ -419,8 +421,10 @@
ELSE ''
ELSE ''
END
END
) as statusValue,
) as statusValue,
t.remark as returnReason
t.remark as returnReason,
te.id as objId, te.name as objName
from sample_distribution t
from sample_distribution t
left join team te on te.id = t.team_id
left join sys_user su on su.id = t.user_id
left join sys_user su on su.id = t.user_id
left join sample s on s.id = t.sample_id
left join sample s on s.id = t.sample_id
left join entrust e on e.id = s.entrust_id
left join entrust e on e.id = s.entrust_id
...
...
cement-business/src/main/java/cn/wise/sc/cement/business/model/vo/SampleReturnHandleVo.java
View file @
969f8f9c
...
@@ -19,6 +19,12 @@ public class SampleReturnHandleVo {
...
@@ -19,6 +19,12 @@ public class SampleReturnHandleVo {
@ApiModelProperty
(
"样品处理表id/样品检测表id"
)
@ApiModelProperty
(
"样品处理表id/样品检测表id"
)
private
Integer
id
;
private
Integer
id
;
@ApiModelProperty
(
"处理项id/检测项id"
)
private
Integer
objId
;
@ApiModelProperty
(
"处理项名称/检测项名称"
)
private
String
objName
;
@ApiModelProperty
(
"委托表id"
)
@ApiModelProperty
(
"委托表id"
)
private
String
entrustId
;
private
String
entrustId
;
...
...
cement-business/src/main/java/cn/wise/sc/cement/business/service/impl/PrecipriceServiceImpl.java
View file @
969f8f9c
...
@@ -91,12 +91,8 @@ public class PrecipriceServiceImpl extends ServiceImpl<PrecipriceMapper, Precipr
...
@@ -91,12 +91,8 @@ public class PrecipriceServiceImpl extends ServiceImpl<PrecipriceMapper, Precipr
ISampleDistributionService
iSampleDistributionService
;
ISampleDistributionService
iSampleDistributionService
;
@Resource
@Resource
PrecipriceMapper
precipriceMapper
;
PrecipriceMapper
precipriceMapper
;
@Resource
@Autowired
private
SampleMapper
sampleMapper
;
private
ISysUserService
userService
;
@Resource
private
EntrustMapper
entrustMapper
;
@Resource
private
ProjectMapper
projectMapper
;
public
PrecipriceServiceImpl
(
EntrustMapper
iEntrustService
,
public
PrecipriceServiceImpl
(
EntrustMapper
iEntrustService
,
...
@@ -226,9 +222,18 @@ public class PrecipriceServiceImpl extends ServiceImpl<PrecipriceMapper, Precipr
...
@@ -226,9 +222,18 @@ public class PrecipriceServiceImpl extends ServiceImpl<PrecipriceMapper, Precipr
@Override
@Override
public
BaseResponse
<
List
<
NormProductionStatistics
>>
normProductionStatistics
(
Long
start
,
Long
end
,
String
name
,
Integer
groupId
)
{
public
BaseResponse
<
List
<
NormProductionStatistics
>>
normProductionStatistics
(
Long
start
,
Long
end
,
String
name
,
Integer
groupId
)
{
LoginUser
loginUser
=
userService
.
getLoginUser
();
if
(
loginUser
==
null
)
{
return
BaseResponse
.
errorMsg
(
"请登录账号"
);
}
//只有管理员角色的用户可以查看所有人的产值,其他人只能查看自己的产值
Integer
userobjId
=
null
;
if
(
loginUser
.
getRoleList
().
getId
()
!=
1
){
userobjId
=
loginUser
.
getId
();
}
//统计分样处理的详情
//统计分样处理的详情
List
<
NormProduction
.
NormProductionDetail
>
normProductionDetails
=
List
<
NormProduction
.
NormProductionDetail
>
normProductionDetails
=
normProductionDetails
(
null
,
start
,
end
);
normProductionDetails
(
userobjId
,
start
,
end
);
if
(
normProductionDetails
.
size
()
==
0
)
{
if
(
normProductionDetails
.
size
()
==
0
)
{
BaseResponse
<
List
<
NormProductionStatistics
>>
rts
=
BaseResponse
.
okData
(
null
);
BaseResponse
<
List
<
NormProductionStatistics
>>
rts
=
BaseResponse
.
okData
(
null
);
...
@@ -324,7 +329,7 @@ public class PrecipriceServiceImpl extends ServiceImpl<PrecipriceMapper, Precipr
...
@@ -324,7 +329,7 @@ public class PrecipriceServiceImpl extends ServiceImpl<PrecipriceMapper, Precipr
qw
.
le
(
"create_time"
,
endTime
);
qw
.
le
(
"create_time"
,
endTime
);
}
}
if
(!
BeanUtil
.
isEmpty
(
userId
))
{
if
(!
BeanUtil
.
isEmpty
(
userId
))
{
qw
.
like
(
"user_id"
,
userId
);
qw
.
eq
(
"user_id"
,
userId
);
}
}
qw
.
eq
(
"status"
,
1
);
qw
.
eq
(
"status"
,
1
);
qw
.
orderByDesc
(
"create_time"
);
qw
.
orderByDesc
(
"create_time"
);
...
...
cement-business/src/main/java/cn/wise/sc/cement/business/util/ExcelUtil.java
View file @
969f8f9c
...
@@ -205,6 +205,10 @@ public class ExcelUtil {
...
@@ -205,6 +205,10 @@ public class ExcelUtil {
cell
=
row
.
createCell
(
i
);
cell
=
row
.
createCell
(
i
);
if
(
value
!=
null
)
{
if
(
value
!=
null
)
{
//处理下标
//处理下标
if
(
value
.
contains
(
"<sup>"
)
||
value
.
contains
(
"</sup>"
))
{
value
=
value
.
replaceAll
(
"<sup>-</sup>"
,
"⁻"
);
}
if
(
value
.
contains
(
"<sub>"
)
||
value
.
contains
(
"</sub>"
))
{
if
(
value
.
contains
(
"<sub>"
)
||
value
.
contains
(
"</sub>"
))
{
xxsfFont
.
setTypeOffset
(
FontFormatting
.
SS_SUB
);
xxsfFont
.
setTypeOffset
(
FontFormatting
.
SS_SUB
);
cell
.
setCellStyle
(
style
);
cell
.
setCellStyle
(
style
);
...
@@ -212,18 +216,23 @@ public class ExcelUtil {
...
@@ -212,18 +216,23 @@ public class ExcelUtil {
//提取下标位置
//提取下标位置
applyRichStringFontsub
(
value
,
richString
,
xxsfFont
);
applyRichStringFontsub
(
value
,
richString
,
xxsfFont
);
cell
.
setCellValue
(
richString
);
cell
.
setCellValue
(
richString
);
}
else
if
(
value
.
contains
(
"<sup>"
)
||
value
.
contains
(
"</sup>"
))
{
// value = cell.getStringCellValue();
}
else
{
cell
.
setCellValue
(
value
);
cell
.
setCellStyle
(
style
);
}
/*if (value.contains("<sup>") || value.contains("</sup>")) {
xxsfFont.setTypeOffset(FontFormatting.SS_SUPER);
xxsfFont.setTypeOffset(FontFormatting.SS_SUPER);
cell.setCellStyle(style);
cell.setCellStyle(style);
XSSFRichTextString richString = new XSSFRichTextString(value.replaceAll("</sup>", "<sup>").replaceAll("<sup>", ""));
XSSFRichTextString richString = new XSSFRichTextString(value.replaceAll("</sup>", "<sup>").replaceAll("<sup>", ""));
//提取下标位置
//提取下标位置
applyRichStringFontsup(value, richString, xxsfFont);
applyRichStringFontsup(value, richString, xxsfFont);
cell.setCellValue(richString);
cell.setCellValue(richString);
}
else
{
value = cell.getStringCellValue();
cell
.
setCellValue
(
value
);
}*/
cell
.
setCellStyle
(
style
);
}
}
}
}
}
}
}
...
...
cement-business/src/main/resources/application.yml
View file @
969f8f9c
...
@@ -7,7 +7,7 @@ spring:
...
@@ -7,7 +7,7 @@ spring:
profiles
:
profiles
:
active
:
dev
active
:
dev
datasource
:
datasource
:
# 192.168.110.85 admin!@#123 sinoma_zhengshiData
# 192.168.110.85 admin!@#123 sinoma_zhengshiData
sinoma_tmp
# url: jdbc:mysql://192.168.110.85:3306/sinoma_zhengshiData?serverTimezone=Asia/Shanghai&useUnicode=true&characterEncoding=UTF-8&useSSL=false
# url: jdbc:mysql://192.168.110.85:3306/sinoma_zhengshiData?serverTimezone=Asia/Shanghai&useUnicode=true&characterEncoding=UTF-8&useSSL=false
# url: jdbc:mysql://192.168.110.85:3306/sinoma_bangye?serverTimezone=Asia/Shanghai&useUnicode=true&characterEncoding=UTF-8&useSSL=false
# url: jdbc:mysql://192.168.110.85:3306/sinoma_bangye?serverTimezone=Asia/Shanghai&useUnicode=true&characterEncoding=UTF-8&useSSL=false
url
:
jdbc:mysql://47.93.148.213:3306/sinoma_tcdri?serverTimezone=Asia/Shanghai&useUnicode=true&characterEncoding=UTF-8&useSSL=false
url
:
jdbc:mysql://47.93.148.213:3306/sinoma_tcdri?serverTimezone=Asia/Shanghai&useUnicode=true&characterEncoding=UTF-8&useSSL=false
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment