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
b7a050c0
Commit
b7a050c0
authored
Mar 03, 2022
by
zhoumaotao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
日计划/月计划 排产数量
parent
997e4e70
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
99 additions
and
4 deletions
+99
-4
KmesBoardController.java
.../java/com/gavel/kwell/controller/KmesBoardController.java
+26
-4
KmesBoardDao.java
gavel/src/main/java/com/gavel/kwell/dao/KmesBoardDao.java
+5
-0
KmesBoardDaoImpl.java
.../main/java/com/gavel/kwell/dao/impl/KmesBoardDaoImpl.java
+22
-0
KmesBoardService.java
...c/main/java/com/gavel/kwell/service/KmesBoardService.java
+5
-0
KmesBoardServiceImpl.java
...va/com/gavel/kwell/service/impl/KmesBoardServiceImpl.java
+11
-0
PsclVO.java
gavel/src/main/java/com/gavel/kwell/vo/PsclVO.java
+30
-0
No files found.
gavel/src/main/java/com/gavel/kwell/controller/KmesBoardController.java
View file @
b7a050c0
...
@@ -3,6 +3,7 @@ package com.gavel.kwell.controller;
...
@@ -3,6 +3,7 @@ package com.gavel.kwell.controller;
import
com.alibaba.fastjson.JSONObject
;
import
com.alibaba.fastjson.JSONObject
;
import
com.gavel.common.base.controller.BaseController
;
import
com.gavel.common.base.controller.BaseController
;
import
com.gavel.kwell.service.KmesBoardService
;
import
com.gavel.kwell.service.KmesBoardService
;
import
com.gavel.kwell.vo.PsclVO
;
import
com.gavel.kwell.vo.SdclVO
;
import
com.gavel.kwell.vo.SdclVO
;
import
com.gavel.wo.persistent.Pcjhmx
;
import
com.gavel.wo.persistent.Pcjhmx
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.beans.factory.annotation.Autowired
;
...
@@ -60,13 +61,34 @@ public class KmesBoardController extends BaseController {
...
@@ -60,13 +61,34 @@ public class KmesBoardController extends BaseController {
}
}
/**
/**
*
日排产达成
数据
*
近一周排产
数据
*/
*/
@RequestMapping
(
value
=
"queryPcsl"
,
method
=
RequestMethod
.
POST
)
@RequestMapping
(
value
=
"query
Week
Pcsl"
,
method
=
RequestMethod
.
POST
)
@ResponseBody
@ResponseBody
public
Object
queryPcsl
(
@RequestBody
JSONObject
param
)
{
public
Object
queryPcsl
(
@RequestBody
JSONObject
param
)
{
List
<
Pcjhmx
>
sdclVO
=
kmesBoardService
.
queryPcsl
();
List
<
Pcjhmx
>
pcjhmxList
=
kmesBoardService
.
queryPcsl
();
return
buildReturnData
(
sdclVO
);
return
buildReturnData
(
pcjhmxList
);
}
/**
*日排产达成数据
*/
@RequestMapping
(
value
=
"queryTodayPcsl"
,
method
=
RequestMethod
.
POST
)
@ResponseBody
public
Object
queryTodayPcsl
(
@RequestBody
JSONObject
param
)
{
PsclVO
psclVO
=
kmesBoardService
.
queryTodayPcsl
();
return
buildReturnData
(
psclVO
);
}
}
/**
*月排产达成数据
*/
@RequestMapping
(
value
=
"queryMonthPcsl"
,
method
=
RequestMethod
.
POST
)
@ResponseBody
public
Object
queryMonthPcsl
(
@RequestBody
JSONObject
param
)
{
PsclVO
psclVO
=
kmesBoardService
.
queryMonthPcsl
();
return
buildReturnData
(
psclVO
);
}
}
}
gavel/src/main/java/com/gavel/kwell/dao/KmesBoardDao.java
View file @
b7a050c0
...
@@ -2,6 +2,7 @@ package com.gavel.kwell.dao;
...
@@ -2,6 +2,7 @@ package com.gavel.kwell.dao;
import
com.gavel.common.base.dao.BaseDao
;
import
com.gavel.common.base.dao.BaseDao
;
import
com.gavel.kwell.persistent.Wlsn
;
import
com.gavel.kwell.persistent.Wlsn
;
import
com.gavel.kwell.vo.PsclVO
;
import
com.gavel.kwell.vo.WlsnCondition
;
import
com.gavel.kwell.vo.WlsnCondition
;
import
com.gavel.kwell.vo.WlsnVO
;
import
com.gavel.kwell.vo.WlsnVO
;
import
com.gavel.persistence.sql.RecordSet
;
import
com.gavel.persistence.sql.RecordSet
;
...
@@ -13,4 +14,8 @@ import java.util.List;
...
@@ -13,4 +14,8 @@ import java.util.List;
public
interface
KmesBoardDao
extends
BaseDao
{
public
interface
KmesBoardDao
extends
BaseDao
{
public
List
<
Pcjhmx
>
queryPcsl
();
public
List
<
Pcjhmx
>
queryPcsl
();
public
PsclVO
queryTodayPcsl
();
public
PsclVO
queryMonthPcsl
();
}
}
gavel/src/main/java/com/gavel/kwell/dao/impl/KmesBoardDaoImpl.java
View file @
b7a050c0
...
@@ -3,6 +3,7 @@ package com.gavel.kwell.dao.impl;
...
@@ -3,6 +3,7 @@ package com.gavel.kwell.dao.impl;
import
com.gavel.common.base.dao.impl.BaseDaoImpl
;
import
com.gavel.common.base.dao.impl.BaseDaoImpl
;
import
com.gavel.common.utils.DateUtils
;
import
com.gavel.common.utils.DateUtils
;
import
com.gavel.kwell.dao.KmesBoardDao
;
import
com.gavel.kwell.dao.KmesBoardDao
;
import
com.gavel.kwell.vo.PsclVO
;
import
com.gavel.persistence.sql.SqlMap
;
import
com.gavel.persistence.sql.SqlMap
;
import
com.gavel.wo.persistent.Pcjhmx
;
import
com.gavel.wo.persistent.Pcjhmx
;
import
org.springframework.stereotype.Repository
;
import
org.springframework.stereotype.Repository
;
...
@@ -26,4 +27,25 @@ public class KmesBoardDaoImpl extends BaseDaoImpl implements KmesBoardDao {
...
@@ -26,4 +27,25 @@ public class KmesBoardDaoImpl extends BaseDaoImpl implements KmesBoardDao {
return
sqlMap
.
query
(
Pcjhmx
.
class
);
return
sqlMap
.
query
(
Pcjhmx
.
class
);
}
}
@Override
public
PsclVO
queryTodayPcsl
()
{
SqlMap
sqlMap
=
new
SqlMap
();
sqlMap
.
append
(
"select sum(PCJHMX_JHSL) as JHSL,sum(PCJHMX_WGSL) as WGSL "
);
sqlMap
.
append
(
"from PCJHMX "
);
sqlMap
.
append
(
"where 1=1 and ( :ksrq <= PCJHMX_JHRQ and PCJHMX_JHRQ <= :jsrq ) "
);
sqlMap
.
setParamValue
(
"ksrq"
,
DateUtils
.
beginOfDay
(
DateUtils
.
getDateTime
()));
sqlMap
.
setParamValue
(
"jsrq"
,
DateUtils
.
endOfDay
(
DateUtils
.
getDateTime
()));
return
sqlMap
.
queryEntity
(
PsclVO
.
class
);
}
@Override
public
PsclVO
queryMonthPcsl
()
{
SqlMap
sqlMap
=
new
SqlMap
();
sqlMap
.
append
(
"select sum(PCJHMX_JHSL) as JHSL,sum(PCJHMX_WGSL) as WGSL "
);
sqlMap
.
append
(
"from PCJHMX "
);
sqlMap
.
append
(
"where 1=1 and ( :ksrq <= PCJHMX_JHRQ and PCJHMX_JHRQ <= :jsrq ) "
);
sqlMap
.
setParamValue
(
"ksrq"
,
DateUtils
.
beginOfMonth
(
DateUtils
.
getDateTime
()));
sqlMap
.
setParamValue
(
"jsrq"
,
DateUtils
.
endOfMonth
(
DateUtils
.
getDateTime
()));
return
sqlMap
.
queryEntity
(
PsclVO
.
class
);
}
}
}
gavel/src/main/java/com/gavel/kwell/service/KmesBoardService.java
View file @
b7a050c0
package
com
.
gavel
.
kwell
.
service
;
package
com
.
gavel
.
kwell
.
service
;
import
com.gavel.common.base.service.BaseEditService
;
import
com.gavel.common.base.service.BaseEditService
;
import
com.gavel.kwell.vo.PsclVO
;
import
com.gavel.kwell.vo.SdclVO
;
import
com.gavel.kwell.vo.SdclVO
;
import
com.gavel.wo.persistent.Pcjhmx
;
import
com.gavel.wo.persistent.Pcjhmx
;
...
@@ -12,4 +13,8 @@ public interface KmesBoardService extends BaseEditService {
...
@@ -12,4 +13,8 @@ public interface KmesBoardService extends BaseEditService {
public
SdclVO
querySdcl
();
public
SdclVO
querySdcl
();
public
List
<
Pcjhmx
>
queryPcsl
();
public
List
<
Pcjhmx
>
queryPcsl
();
public
PsclVO
queryTodayPcsl
();
public
PsclVO
queryMonthPcsl
();
}
}
gavel/src/main/java/com/gavel/kwell/service/impl/KmesBoardServiceImpl.java
View file @
b7a050c0
...
@@ -13,6 +13,7 @@ import com.gavel.kwell.service.KmesBoardService;
...
@@ -13,6 +13,7 @@ import com.gavel.kwell.service.KmesBoardService;
import
com.gavel.kwell.service.WlsnService
;
import
com.gavel.kwell.service.WlsnService
;
import
com.gavel.kwell.utils.DateCalculateUtil
;
import
com.gavel.kwell.utils.DateCalculateUtil
;
import
com.gavel.kwell.utils.WlsnLxEnum
;
import
com.gavel.kwell.utils.WlsnLxEnum
;
import
com.gavel.kwell.vo.PsclVO
;
import
com.gavel.kwell.vo.SdclVO
;
import
com.gavel.kwell.vo.SdclVO
;
import
com.gavel.kwell.vo.WlsnCondition
;
import
com.gavel.kwell.vo.WlsnCondition
;
import
com.gavel.kwell.vo.WlsnVO
;
import
com.gavel.kwell.vo.WlsnVO
;
...
@@ -78,4 +79,14 @@ public class KmesBoardServiceImpl extends BaseEditServiceImpl implements KmesBoa
...
@@ -78,4 +79,14 @@ public class KmesBoardServiceImpl extends BaseEditServiceImpl implements KmesBoa
public
List
<
Pcjhmx
>
queryPcsl
()
{
public
List
<
Pcjhmx
>
queryPcsl
()
{
return
kmesBoardDao
.
queryPcsl
();
return
kmesBoardDao
.
queryPcsl
();
}
}
@Override
public
PsclVO
queryTodayPcsl
()
{
return
kmesBoardDao
.
queryTodayPcsl
();
}
@Override
public
PsclVO
queryMonthPcsl
()
{
return
kmesBoardDao
.
queryMonthPcsl
();
}
}
}
gavel/src/main/java/com/gavel/kwell/vo/PsclVO.java
0 → 100644
View file @
b7a050c0
package
com
.
gavel
.
kwell
.
vo
;
import
com.gavel.common.base.entity.BaseEntity
;
import
java.util.ArrayList
;
import
java.util.List
;
public
class
PsclVO
extends
BaseEntity
{
private
Double
jhsl
;
//计划总量
private
Double
wgsl
;
//完工总量
public
Double
getJhsl
()
{
return
jhsl
;
}
public
void
setJhsl
(
Double
jhsl
)
{
this
.
jhsl
=
jhsl
;
}
public
Double
getWgsl
()
{
return
wgsl
;
}
public
void
setWgsl
(
Double
wgsl
)
{
this
.
wgsl
=
wgsl
;
}
}
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