Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
K
kwell-mes
Project
Project
Details
Activity
Releases
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
gavelinfo
kwell-mes
Commits
62730b26
Commit
62730b26
authored
Apr 02, 2022
by
黄自鹏
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
调整bug
parent
96ea8cd2
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
14 additions
and
18 deletions
+14
-18
KmesBoardController.java
.../java/com/gavel/kwell/controller/KmesBoardController.java
+2
-2
GpfkcxDaoImpl.java
...src/main/java/com/gavel/kwell/dao/impl/GpfkcxDaoImpl.java
+3
-3
KmesBoardServiceImpl.java
...va/com/gavel/kwell/service/impl/KmesBoardServiceImpl.java
+9
-13
No files found.
gavel/src/main/java/com/gavel/kwell/controller/KmesBoardController.java
View file @
62730b26
...
@@ -145,13 +145,13 @@ public class KmesBoardController extends BaseController {
...
@@ -145,13 +145,13 @@ public class KmesBoardController extends BaseController {
FileInputStream
fileInputStream
=
kmesBoardService
.
getVideo
();
FileInputStream
fileInputStream
=
kmesBoardService
.
getVideo
();
kmesBoardService
.
doAttachmentPreview
(
response
,
fileInputStream
);
kmesBoardService
.
doAttachmentPreview
(
response
,
fileInputStream
);
}
}
@RequestMapping
(
value
=
"/querySafeDays"
,
method
=
RequestMethod
.
POST
)
@RequestMapping
(
value
=
"/querySafeDays"
,
method
=
RequestMethod
.
POST
)
@ResponseBody
@ResponseBody
public
Object
querySafeDays
(
@RequestBody
JSONObject
param
)
{
public
Object
querySafeDays
(
@RequestBody
JSONObject
param
)
{
return
buildReturnData
(
kmesBoardService
.
querySafeDays
());
return
buildReturnData
(
kmesBoardService
.
querySafeDays
());
}
}
@RequestMapping
(
value
=
"/queryCurProZtsl"
,
method
=
RequestMethod
.
POST
)
@RequestMapping
(
value
=
"/queryCurProZtsl"
,
method
=
RequestMethod
.
POST
)
@ResponseBody
@ResponseBody
public
Object
queryCurProZtsl
(
@RequestBody
JSONObject
param
)
{
public
Object
queryCurProZtsl
(
@RequestBody
JSONObject
param
)
{
...
...
gavel/src/main/java/com/gavel/kwell/dao/impl/GpfkcxDaoImpl.java
View file @
62730b26
...
@@ -125,8 +125,8 @@ public class GpfkcxDaoImpl extends BaseDaoImpl implements GpfkcxDao {
...
@@ -125,8 +125,8 @@ public class GpfkcxDaoImpl extends BaseDaoImpl implements GpfkcxDao {
sqlMap
.
append
(
"from GPFKJG "
);
sqlMap
.
append
(
"from GPFKJG "
);
sqlMap
.
append
(
" left join WOGYLX on WOGYLX_ID = GPFKJG_FKGX "
);
sqlMap
.
append
(
" left join WOGYLX on WOGYLX_ID = GPFKJG_FKGX "
);
sqlMap
.
append
(
"where (GPFKJG_FKSJ >= :pStart and GPFKJG_FKSJ < :pEnd) and (WOGYLX_GXBZ = :pDGxbz or WOGYLX_GXBZ = :pMGxbz) "
);
//[a,b)
sqlMap
.
append
(
"where (GPFKJG_FKSJ >= :pStart and GPFKJG_FKSJ < :pEnd) and (WOGYLX_GXBZ = :pDGxbz or WOGYLX_GXBZ = :pMGxbz) "
);
//[a,b)
sqlMap
.
setParamValue
(
"pStart"
,
start
);
sqlMap
.
setParamValue
(
"pStart"
,
DateUtils
.
beginOfDay
(
start
)
);
sqlMap
.
setParamValue
(
"pEnd"
,
end
);
sqlMap
.
setParamValue
(
"pEnd"
,
DateUtils
.
endOfDay
(
end
)
);
sqlMap
.
setParamValue
(
"pDGxbz"
,
GxlxGxbzEnum
.
ONLY
.
getId
());
sqlMap
.
setParamValue
(
"pDGxbz"
,
GxlxGxbzEnum
.
ONLY
.
getId
());
sqlMap
.
setParamValue
(
"pMGxbz"
,
GxlxGxbzEnum
.
LAST
.
getId
());
sqlMap
.
setParamValue
(
"pMGxbz"
,
GxlxGxbzEnum
.
LAST
.
getId
());
return
sqlMap
.
query
(
Gpfkjg
.
class
);
return
sqlMap
.
query
(
Gpfkjg
.
class
);
...
@@ -152,7 +152,7 @@ public class GpfkcxDaoImpl extends BaseDaoImpl implements GpfkcxDao {
...
@@ -152,7 +152,7 @@ public class GpfkcxDaoImpl extends BaseDaoImpl implements GpfkcxDao {
@Override
@Override
public
Gpfkjg
queryWeekGpfk
(
Date
date
,
String
woid
)
{
public
Gpfkjg
queryWeekGpfk
(
Date
date
,
String
woid
)
{
SqlMap
sqlMap
=
new
SqlMap
();
SqlMap
sqlMap
=
new
SqlMap
();
sqlMap
.
append
(
"select sum(GPFKJG_FKSL) as GPFK_FKSL "
);
sqlMap
.
append
(
"select sum(GPFKJG_FKSL) as GPFK
JG
_FKSL "
);
sqlMap
.
append
(
"from GPFKJG "
);
sqlMap
.
append
(
"from GPFKJG "
);
sqlMap
.
append
(
" left join WOGYLX on WOGYLX_ID = GPFKJG_FKGX "
);
sqlMap
.
append
(
" left join WOGYLX on WOGYLX_ID = GPFKJG_FKGX "
);
sqlMap
.
append
(
" left join BZGX on BZGX_ID = WOGYLX_BZGXID "
);
sqlMap
.
append
(
" left join BZGX on BZGX_ID = WOGYLX_BZGXID "
);
...
...
gavel/src/main/java/com/gavel/kwell/service/impl/KmesBoardServiceImpl.java
View file @
62730b26
...
@@ -12,7 +12,6 @@ import com.gavel.kwell.service.KmesBoardService;
...
@@ -12,7 +12,6 @@ import com.gavel.kwell.service.KmesBoardService;
import
com.gavel.kwell.utils.DateCalculateUtil
;
import
com.gavel.kwell.utils.DateCalculateUtil
;
import
com.gavel.kwell.utils.KwellParamEnum
;
import
com.gavel.kwell.utils.KwellParamEnum
;
import
com.gavel.kwell.vo.*
;
import
com.gavel.kwell.vo.*
;
import
com.gavel.wo.persistent.Pcjhmx
;
import
org.slf4j.Logger
;
import
org.slf4j.Logger
;
import
org.slf4j.LoggerFactory
;
import
org.slf4j.LoggerFactory
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.beans.factory.annotation.Autowired
;
...
@@ -40,7 +39,7 @@ public class KmesBoardServiceImpl extends BaseEditServiceImpl implements KmesBoa
...
@@ -40,7 +39,7 @@ public class KmesBoardServiceImpl extends BaseEditServiceImpl implements KmesBoa
@Autowired
@Autowired
private
GpfkcxDao
gpfkcxDao
;
private
GpfkcxDao
gpfkcxDao
;
@Autowired
@Autowired
private
CommonService
commonService
;
private
CommonService
commonService
;
...
@@ -96,25 +95,22 @@ public class KmesBoardServiceImpl extends BaseEditServiceImpl implements KmesBoa
...
@@ -96,25 +95,22 @@ public class KmesBoardServiceImpl extends BaseEditServiceImpl implements KmesBoa
@Override
@Override
public
List
<
PcslVO
>
queryWeekPcsl
()
{
public
List
<
PcslVO
>
queryWeekPcsl
()
{
Date
beginDate
=
DateUtils
.
calcDate
(
DateUtils
.
getDate
(),
0
,
0
,-
7
,
0
,
0
,
0
);
Date
beginDate
=
DateUtils
.
calcDate
(
DateUtils
.
getDate
(),
0
,
0
,-
6
,
0
,
0
,
0
);
Date
endDate
=
DateUtils
.
calcDate
(
DateUtils
.
getDate
(),
0
,
0
,
-
1
,
0
,
0
,
0
);
Date
endDate
=
DateUtils
.
calcDate
(
DateUtils
.
getDate
(),
0
,
0
,
0
,
0
,
0
,
0
);
List
<
Date
>
dateList
=
DateCalculateUtil
.
findDates
(
"D"
,
beginDate
,
endDate
);
List
<
Date
>
dateList
=
DateCalculateUtil
.
findDates
(
"D"
,
beginDate
,
endDate
);
List
<
PcslVO
>
pcslVOList
=
new
ArrayList
<>();
List
<
PcslVO
>
pcslVOList
=
new
ArrayList
<>();
for
(
Date
date
:
dateList
){
for
(
Date
date
:
dateList
){
PcslVO
pcslVO
=
new
PcslVO
();
PcslVO
pcslVO
=
new
PcslVO
();
Pcjhmx
pcjhmx
=
kmesBoardDao
.
queryWeekPcsl
(
date
);
List
<
Gpfkjg
>
gpfks
=
queryByBetween
(
date
,
date
);
List
<
Gpfkjg
>
gpfks
=
queryByBetween
(
date
,
date
);
double
wgsl
=
0.0
;
double
wgsl
=
0.0
;
double
hgsl
=
0.0
;
if
(
gpfks
!=
null
&&
gpfks
.
size
()>
0
){
if
(
gpfks
!=
null
&&
gpfks
.
size
()>
0
){
wgsl
=
gpfks
.
stream
().
mapToDouble
(
Gpfkjg:
:
getFksl
).
sum
();
//每一天
wgsl
=
gpfks
.
stream
().
mapToDouble
(
Gpfkjg:
:
getFksl
).
sum
();
//每一天
}
hgsl
=
gpfks
.
stream
().
mapToDouble
(
Gpfkjg:
:
getHgsl
).
sum
();
//每一天
if
(
pcjhmx
!=
null
){
pcslVO
.
setJhsl
(
pcjhmx
.
getJhsl
()==
null
?
0.0
:
pcjhmx
.
getJhsl
());
}
else
{
pcslVO
.
setJhsl
(
0.0
);
}
}
pcslVO
.
setPcrq
(
date
);
pcslVO
.
setPcrq
(
date
);
pcslVO
.
setWgsl
(
wgsl
);
pcslVO
.
setJhsl
(
wgsl
);
//完工数量
pcslVO
.
setWgsl
(
hgsl
);
//合格数量
pcslVOList
.
add
(
pcslVO
);
pcslVOList
.
add
(
pcslVO
);
}
}
return
pcslVOList
;
return
pcslVOList
;
...
@@ -172,8 +168,8 @@ public class KmesBoardServiceImpl extends BaseEditServiceImpl implements KmesBoa
...
@@ -172,8 +168,8 @@ public class KmesBoardServiceImpl extends BaseEditServiceImpl implements KmesBoa
public
List
<
GpfkHgVO
>
queryGpfkHgl
()
{
public
List
<
GpfkHgVO
>
queryGpfkHgl
()
{
//首到工序的工票反馈最近7天合格率
//首到工序的工票反馈最近7天合格率
Date
beginDate
=
DateUtils
.
calcDate
(
DateUtils
.
getDate
(),
0
,
0
,-
7
,
0
,
0
,
0
);
Date
beginDate
=
DateUtils
.
calcDate
(
DateUtils
.
getDate
(),
0
,
0
,-
6
,
0
,
0
,
0
);
Date
endDate
=
DateUtils
.
calcDate
(
DateUtils
.
getDate
(),
0
,
0
,
-
1
,
0
,
0
,
0
);
Date
endDate
=
DateUtils
.
calcDate
(
DateUtils
.
getDate
(),
0
,
0
,
0
,
0
,
0
,
0
);
List
<
Date
>
dateList
=
DateCalculateUtil
.
findDates
(
"D"
,
beginDate
,
endDate
);
List
<
Date
>
dateList
=
DateCalculateUtil
.
findDates
(
"D"
,
beginDate
,
endDate
);
List
<
GpfkHgVO
>
gpfkHgVOList
=
new
ArrayList
<>();
List
<
GpfkHgVO
>
gpfkHgVOList
=
new
ArrayList
<>();
String
gxbz
=
commonService
.
getStringOptionValue
(
KwellParamEnum
.
DASHBOARD_HGL
.
getId
());
String
gxbz
=
commonService
.
getStringOptionValue
(
KwellParamEnum
.
DASHBOARD_HGL
.
getId
());
...
...
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