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
9ab2fe9d
Commit
9ab2fe9d
authored
Mar 07, 2022
by
zhoumaotao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
代码调整
parent
b79c7987
Changes
5
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
46 additions
and
4 deletions
+46
-4
KmesBoardController.java
.../java/com/gavel/kwell/controller/KmesBoardController.java
+18
-0
KmesBoardDao.java
gavel/src/main/java/com/gavel/kwell/dao/KmesBoardDao.java
+3
-0
KmesBoardDaoImpl.java
.../main/java/com/gavel/kwell/dao/impl/KmesBoardDaoImpl.java
+15
-0
KmesBoardService.java
...c/main/java/com/gavel/kwell/service/KmesBoardService.java
+3
-0
KmesBoardServiceImpl.java
...va/com/gavel/kwell/service/impl/KmesBoardServiceImpl.java
+7
-4
No files found.
gavel/src/main/java/com/gavel/kwell/controller/KmesBoardController.java
View file @
9ab2fe9d
...
...
@@ -5,6 +5,7 @@ import com.gavel.common.base.controller.BaseController;
import
com.gavel.kwell.service.KmesBoardService
;
import
com.gavel.kwell.vo.PsclVO
;
import
com.gavel.kwell.vo.SdclVO
;
import
com.gavel.kwell.vo.UWoVO
;
import
com.gavel.wo.persistent.Pcjhmx
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.stereotype.Controller
;
...
...
@@ -90,5 +91,22 @@ public class KmesBoardController extends BaseController {
return
buildReturnData
(
psclVO
);
}
/**
*合格率
*/
/**
* 在制订单
*/
@RequestMapping
(
value
=
"queryWo"
,
method
=
RequestMethod
.
POST
)
@ResponseBody
public
Object
queryWo
(
@RequestBody
JSONObject
param
)
{
List
<
UWoVO
>
uWoVOS
=
kmesBoardService
.
queryWo
();
return
buildReturnData
(
uWoVOS
);
}
/**
*生产进度跟踪
*/
}
gavel/src/main/java/com/gavel/kwell/dao/KmesBoardDao.java
View file @
9ab2fe9d
...
...
@@ -3,6 +3,7 @@ package com.gavel.kwell.dao;
import
com.gavel.common.base.dao.BaseDao
;
import
com.gavel.kwell.persistent.Wlsn
;
import
com.gavel.kwell.vo.PsclVO
;
import
com.gavel.kwell.vo.UWoVO
;
import
com.gavel.kwell.vo.WlsnCondition
;
import
com.gavel.kwell.vo.WlsnVO
;
import
com.gavel.persistence.sql.RecordSet
;
...
...
@@ -18,4 +19,6 @@ public interface KmesBoardDao extends BaseDao {
public
PsclVO
queryTodayPcsl
();
public
PsclVO
queryMonthPcsl
();
public
List
<
UWoVO
>
queryWo
();
}
gavel/src/main/java/com/gavel/kwell/dao/impl/KmesBoardDaoImpl.java
View file @
9ab2fe9d
...
...
@@ -4,6 +4,7 @@ import com.gavel.common.base.dao.impl.BaseDaoImpl;
import
com.gavel.common.utils.DateUtils
;
import
com.gavel.kwell.dao.KmesBoardDao
;
import
com.gavel.kwell.vo.PsclVO
;
import
com.gavel.kwell.vo.UWoVO
;
import
com.gavel.persistence.sql.SqlMap
;
import
com.gavel.wo.persistent.Pcjhmx
;
import
org.springframework.stereotype.Repository
;
...
...
@@ -48,4 +49,18 @@ public class KmesBoardDaoImpl extends BaseDaoImpl implements KmesBoardDao {
sqlMap
.
setParamValue
(
"jsrq"
,
DateUtils
.
endOfMonth
(
DateUtils
.
getDateTime
()));
return
sqlMap
.
queryEntity
(
PsclVO
.
class
);
}
@Override
public
List
<
UWoVO
>
queryWo
()
{
SqlMap
sqlMap
=
new
SqlMap
();
sqlMap
.
append
(
"select WO_ID,WO_DJID,WO_GCID,WO_YWRQ,WO_WLID,WO_XQSL,WO_WGSL, "
);
sqlMap
.
append
(
" A.PCJHMX_JHSL as WO_PCSL,WLXX_CODE,WLXX_NAME,WLXX_GG "
);
sqlMap
.
append
(
"from WO "
);
sqlMap
.
append
(
" left join (select PCJHMX_WOID,sum(PCJHMX_JHSL) as PCJHMX_JHSL "
);
sqlMap
.
append
(
" from PCJHMX group by PCJHMX_WOID) A on A.PCJHMX_WOID = WO_ID "
);
sqlMap
.
append
(
" left join WLXX on WLXX_ID = WO_WLID "
);
sqlMap
.
append
(
"where WO_WGSL - WO_XQSL < 0 "
);
sqlMap
.
append
(
"order by WO_YWRQ desc "
);
return
sqlMap
.
query
(
UWoVO
.
class
);
}
}
gavel/src/main/java/com/gavel/kwell/service/KmesBoardService.java
View file @
9ab2fe9d
...
...
@@ -3,6 +3,7 @@ package com.gavel.kwell.service;
import
com.gavel.common.base.service.BaseEditService
;
import
com.gavel.kwell.vo.PsclVO
;
import
com.gavel.kwell.vo.SdclVO
;
import
com.gavel.kwell.vo.UWoVO
;
import
com.gavel.wo.persistent.Pcjhmx
;
import
java.util.List
;
...
...
@@ -17,4 +18,6 @@ public interface KmesBoardService extends BaseEditService {
public
PsclVO
queryTodayPcsl
();
public
PsclVO
queryMonthPcsl
();
public
List
<
UWoVO
>
queryWo
();
}
gavel/src/main/java/com/gavel/kwell/service/impl/KmesBoardServiceImpl.java
View file @
9ab2fe9d
...
...
@@ -13,10 +13,7 @@ import com.gavel.kwell.service.KmesBoardService;
import
com.gavel.kwell.service.WlsnService
;
import
com.gavel.kwell.utils.DateCalculateUtil
;
import
com.gavel.kwell.utils.WlsnLxEnum
;
import
com.gavel.kwell.vo.PsclVO
;
import
com.gavel.kwell.vo.SdclVO
;
import
com.gavel.kwell.vo.WlsnCondition
;
import
com.gavel.kwell.vo.WlsnVO
;
import
com.gavel.kwell.vo.*
;
import
com.gavel.persistence.sql.RecordSet
;
import
com.gavel.wo.persistent.Pcjhmx
;
import
org.springframework.beans.factory.annotation.Autowired
;
...
...
@@ -89,4 +86,10 @@ public class KmesBoardServiceImpl extends BaseEditServiceImpl implements KmesBoa
public
PsclVO
queryMonthPcsl
()
{
return
kmesBoardDao
.
queryMonthPcsl
();
}
@Override
public
List
<
UWoVO
>
queryWo
()
{
return
kmesBoardDao
.
queryWo
();
}
}
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