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
c1cf1588
Commit
c1cf1588
authored
Jun 01, 2023
by
yff
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改业务
parent
b06b7914
Changes
8
Show whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
133 additions
and
13 deletions
+133
-13
PcjhkController.java
...main/java/com/gavel/kwell/controller/PcjhkController.java
+12
-1
PcjhkDao.java
gavel/src/main/java/com/gavel/kwell/dao/PcjhkDao.java
+6
-0
GpfkcxDaoImpl.java
...src/main/java/com/gavel/kwell/dao/impl/GpfkcxDaoImpl.java
+10
-10
PcjhkDaoImpl.java
.../src/main/java/com/gavel/kwell/dao/impl/PcjhkDaoImpl.java
+80
-0
PcjhkService.java
...l/src/main/java/com/gavel/kwell/service/PcjhkService.java
+6
-0
PcjhkServiceImpl.java
...n/java/com/gavel/kwell/service/impl/PcjhkServiceImpl.java
+16
-0
wosngzinfo.html
...ain/resources/templates/views/kmes/wosngz/wosngzinfo.html
+2
-1
wosearch.html
...src/main/resources/templates/views/wo/pcjhk/wosearch.html
+1
-1
No files found.
gavel/src/main/java/com/gavel/kwell/controller/PcjhkController.java
View file @
c1cf1588
package
com
.
gavel
.
kwell
.
controller
;
import
java.util.List
;
import
javax.servlet.http.HttpServletRequest
;
import
javax.servlet.http.HttpServletResponse
;
...
...
@@ -25,6 +27,8 @@ import com.gavel.kwell.vo.PcjhmxkCondition;
import
com.gavel.kwell.vo.PcjhmxkVO
;
import
com.gavel.persistence.sql.RecordSet
;
import
com.gavel.wo.utils.PcjhDjlyEnum
;
import
com.gavel.wo.vo.WoCondition
;
import
com.gavel.wo.vo.WoVO
;
@Controller
@RequestMapping
(
"kmes/pcjhk"
)
...
...
@@ -61,6 +65,13 @@ public class PcjhkController extends BaseController {
return
"wo/pcjhk/wosearch"
;
}
@RequestMapping
(
value
=
"/queryWo"
,
method
=
RequestMethod
.
POST
)
@ResponseBody
public
Object
queryWo
(
@RequestBody
JSONObject
param
)
{
WoCondition
condition
=
DataConvert
.
getCondition
(
param
,
WoCondition
.
class
);
List
<
WoVO
>
records
=
pcjhkService
.
queryWo
(
condition
);
return
buildReturnData
(
records
,
WoVO
.
class
);
}
@RequestMapping
(
value
=
BaseURL
.
GET
,
method
=
RequestMethod
.
POST
)
@ResponseBody
...
...
gavel/src/main/java/com/gavel/kwell/dao/PcjhkDao.java
View file @
c1cf1588
package
com
.
gavel
.
kwell
.
dao
;
import
java.util.List
;
import
com.gavel.common.base.dao.BaseDao
;
import
com.gavel.kwell.vo.PcjhkCondition
;
import
com.gavel.kwell.vo.PcjhkVO
;
import
com.gavel.persistence.sql.RecordSet
;
import
com.gavel.wo.vo.WoCondition
;
import
com.gavel.wo.vo.WoVO
;
public
interface
PcjhkDao
extends
BaseDao
{
public
RecordSet
<
PcjhkVO
>
query
(
PcjhkCondition
condition
);
public
List
<
WoVO
>
queryWo
(
WoCondition
condition
);
}
gavel/src/main/java/com/gavel/kwell/dao/impl/GpfkcxDaoImpl.java
View file @
c1cf1588
...
...
@@ -152,21 +152,21 @@ public class GpfkcxDaoImpl extends BaseDaoImpl implements GpfkcxDao {
@Override
public
List
<
Gpfkjg
>
queryGpfkForFirstJY
(
Date
date
,
String
[]
gxbzs
)
{
SqlMap
sqlMap
=
new
SqlMap
();
sqlMap
.
append
(
" select c.WOGYLX_BZGXID, b.GPFK
JG_WOSNID, b.GPFKJG_FKLX, b.GPFKJG
_FKGX, "
);
sqlMap
.
append
(
" b.GPFK
JG_FKSJ, b.GPFKJG_FKR, b.GPFKJG_FKRID, b.GPFKJG
_FKBX, "
);
sqlMap
.
append
(
" b.GPFK
JG_FKJSSJ,b.GPFKJG_HGBZ, b.GPFKJG_FKSL, b.GPFKJG
_HGSL, "
);
sqlMap
.
append
(
" b.GPFK
JG_BHGSL, b.GPFKJG_GFSL,b.GPFKJG
_LFSL, c.WOGYLX_GXBZ "
);
sqlMap
.
append
(
" from GPFK
JG b left join WOGYLX c on c.WOGYLX_ID = b.GPFKJG
_FKGX "
);
sqlMap
.
append
(
" select c.WOGYLX_BZGXID, b.GPFK
_WOSNID, b.GPFK_FKLX, b.GPFK
_FKGX, "
);
sqlMap
.
append
(
" b.GPFK
_FKSJ, b.GPFK_FKR, b.GPFK_FKRID, b.GPFK
_FKBX, "
);
sqlMap
.
append
(
" b.GPFK
_FKJSSJ,b.GPFK_HGBZ, b.GPFK_FKSL, b.GPFK
_HGSL, "
);
sqlMap
.
append
(
" b.GPFK
_BHGSL, b.GPFK_GFSL,b.GPFK
_LFSL, c.WOGYLX_GXBZ "
);
sqlMap
.
append
(
" from GPFK
b left join WOGYLX c on c.WOGYLX_ID = b.GPFK
_FKGX "
);
sqlMap
.
append
(
" inner join ( "
);
sqlMap
.
append
(
" select MIN(d.GPFK
JG_FKSJ) as fksj,e.WOGYLX_BZGXID,e.WOGYLX_ID,d.GPFKJG
_WOSNID "
);
sqlMap
.
append
(
" FROM GPFK
JG
d left join WOGYLX e "
);
sqlMap
.
append
(
" on e.WOGYLX_ID = d.GPFK
JG
_FKGX "
);
sqlMap
.
append
(
" GROUP BY e.WOGYLX_BZGXID,e.WOGYLX_ID,d.GPFK
JG
_WOSNID "
);
sqlMap
.
append
(
" select MIN(d.GPFK
_FKSJ) as fksj,e.WOGYLX_BZGXID,e.WOGYLX_ID,d.GPFK
_WOSNID "
);
sqlMap
.
append
(
" FROM GPFK d left join WOGYLX e "
);
sqlMap
.
append
(
" on e.WOGYLX_ID = d.GPFK_FKGX "
);
sqlMap
.
append
(
" GROUP BY e.WOGYLX_BZGXID,e.WOGYLX_ID,d.GPFK_WOSNID "
);
sqlMap
.
append
(
" HAVING 1=1 "
);
sqlMap
.
append
(
" and "
).
append
(
"e.WOGYLX_BZGXID"
,
gxbzs
);
sqlMap
.
append
(
" and ( fksj >= :pKsrq and fksj < :pJsrq ) "
);
sqlMap
.
append
(
" ) a "
);
sqlMap
.
append
(
" on b.GPFK
JG_WOSNID =a.GPFKJG_WOSNID and b.GPFKJG
_FKSJ= a.fksj "
);
sqlMap
.
append
(
" on b.GPFK
_WOSNID =a.GPFK_WOSNID and b.GPFK
_FKSJ= a.fksj "
);
sqlMap
.
append
(
" where 1=1 "
);
sqlMap
.
append
(
" and c.WOGYLX_BZGXID = a.WOGYLX_BZGXID and c.wogylx_id = a.wogylx_id "
);
sqlMap
.
setParamValue
(
"pKsrq"
,
DateUtils
.
beginOfDay
(
date
));
...
...
gavel/src/main/java/com/gavel/kwell/dao/impl/PcjhkDaoImpl.java
View file @
c1cf1588
...
...
@@ -9,6 +9,11 @@ import com.gavel.kwell.vo.PcjhkVO;
import
com.gavel.persistence.sql.RecordSet
;
import
com.gavel.persistence.sql.SqlMap
;
import
com.gavel.persistence.sql.SqlUtil
;
import
com.gavel.wo.vo.WoCondition
;
import
com.gavel.wo.vo.WoVO
;
import
java.util.List
;
import
org.springframework.stereotype.Repository
;
...
...
@@ -52,4 +57,79 @@ public class PcjhkDaoImpl extends BaseDaoImpl implements PcjhkDao {
return
sqlMap
.
getRecordSet
();
}
@Override
public
List
<
WoVO
>
queryWo
(
WoCondition
condition
)
{
SqlMap
sqlMap
=
new
SqlMap
();
sqlMap
.
setPageNo
(
condition
.
getPageNo
());
sqlMap
.
setRowCount
(
condition
.
getPageSize
());
sqlMap
.
append
(
"select WO_ID, WO_DJID, WO_GCID, WO_YWRQ, WO_WLID, "
);
sqlMap
.
append
(
" WO_JHKGRQ, WO_JHWGRQ, WO_BMID, WO_SCXID, WO_DJLY,(WO_XQSL-WO_WGSL) as WO_XQSL, "
);
// if (StringUtils.equals(condition.getAllowPc(),"N")){
// sqlMap.append(" (WO_XQSL- WO_PCSL) as WO_XQSL, ");
// }else {
// sqlMap.append(" WO_XQSL,");
// }
sqlMap
.
append
(
" WO_ZT, WO_QRR, WO_QRSJ,WO_GBR, "
);
sqlMap
.
append
(
" WO_GBSJ, WO_GBYY, WO_BOMID, WO_GYLXID, WO_PCYXJ,WO_SJKGRQ, "
);
sqlMap
.
append
(
" WO_SJWGRQ, WO_SNNUM, WO_BZ, WO_WHRID, WO_WHR, WO_WHSJ, "
);
sqlMap
.
append
(
" WO_XDR, WO_XMID, WO_XDSJ,WO_CJRID, WO_CJR, WO_CJSJ, "
);
sqlMap
.
append
(
" BM_CODE, BM_NAME, GC_CODE, GC_NAME, SCX_CODE, SCX_NAME, "
);
sqlMap
.
append
(
" WL.WLXX_CODE, WL.WLXX_NAME, WL.WLXX_GG, JLDW_NAME, "
);
sqlMap
.
append
(
" WO_SYSVERSION,GCXM_CODE, GCXM_NAME,WO_PCSL "
);
sqlMap
.
append
(
"from WO "
);
sqlMap
.
append
(
" left join GC on GC_ID = WO_GCID "
);
sqlMap
.
append
(
" left join BM on BM_ID = WO_BMID "
);
sqlMap
.
append
(
" left join SCX on SCX_ID = WO_SCXID "
);
sqlMap
.
append
(
" left join WLXX WL on WL.WLXX_ID = WO_WLID "
);
sqlMap
.
append
(
" left join JLDW on JLDW_ID = WL.WLXX_JLDW "
);
sqlMap
.
append
(
" left join GCXM on GCXM_ID = WO_XMID "
);
sqlMap
.
append
(
"where 1=1 "
);
if
(
StringUtils
.
equals
(
condition
.
getAllowPc
(),
"N"
)){
sqlMap
.
append
(
" and abs(WO_XQSL) - abs(WO_PCSL) > 0.0000000005 "
);
}
if
(
StringUtils
.
isNotEmpty
(
condition
.
getDjid
())){
sqlMap
.
append
(
" and WO_DJID like :pDJID"
);
sqlMap
.
setParamValueLike
(
"pDJID"
,
condition
.
getDjid
());
}
if
(
StringUtils
.
isNotEmpty
(
condition
.
getGcid
())){
sqlMap
.
append
(
" and WO_GCID = :pGCID"
);
sqlMap
.
setParamValue
(
"pGCID"
,
condition
.
getGcid
());
}
if
(
condition
.
getKsrq
()
!=
null
){
sqlMap
.
append
(
" and WO_YWRQ >= :KSRQ"
);
sqlMap
.
setParamValue
(
"KSRQ"
,
DateUtils
.
beginOfDay
(
condition
.
getKsrq
()));
}
if
(
condition
.
getJsrq
()
!=
null
){
sqlMap
.
append
(
" and WO_YWRQ <= :JSRQ"
);
sqlMap
.
setParamValue
(
"JSRQ"
,
DateUtils
.
endOfDay
(
condition
.
getJsrq
()));
}
if
(
condition
.
getXdksrq
()
!=
null
)
{
sqlMap
.
append
(
" and WO_XDSJ >= :XDKSRQ"
);
sqlMap
.
setParamValue
(
"XDKSRQ"
,
DateUtils
.
beginOfDay
(
condition
.
getXdksrq
()));
}
if
(
condition
.
getXdjsrq
()
!=
null
)
{
sqlMap
.
append
(
" and WO_XDSJ <=:XDJSRQ"
);
sqlMap
.
setParamValue
(
"XDJSRQ"
,
DateUtils
.
endOfDay
(
condition
.
getXdjsrq
()));
}
if
(
StringUtils
.
isNotEmpty
(
condition
.
getBmid
())){
sqlMap
.
append
(
" and WO_BMID = :pBMID"
);
sqlMap
.
setParamValue
(
"pBMID"
,
condition
.
getBmid
());
}
if
(
StringUtils
.
isNotEmpty
(
condition
.
getWlid
()))
{
sqlMap
.
append
(
" and (WL.WLXX_CODE like :WLID or WL.WLXX_NAME like :WLID)"
);
sqlMap
.
setParamValueLike
(
"WLID"
,
condition
.
getWlid
());
}
if
(
StringUtils
.
isNotEmpty
(
condition
.
getZt
()))
{
sqlMap
.
append
(
" and WO_ZT = :pZT"
);
sqlMap
.
setParamValue
(
"pZT"
,
condition
.
getZt
());
}
if
(
condition
.
getZtList
()
!=
null
&&
condition
.
getZtList
().
length
>
0
)
{
sqlMap
.
append
(
" and "
+
SqlUtil
.
getWhereEqualSql
(
"WO_ZT"
,
condition
.
getZtList
()));
}
sqlMap
.
append
(
"order by WO_YWRQ desc ,WO_DJID desc"
);
return
sqlMap
.
query
(
WoVO
.
class
);
}
}
gavel/src/main/java/com/gavel/kwell/service/PcjhkService.java
View file @
c1cf1588
package
com
.
gavel
.
kwell
.
service
;
import
java.util.List
;
import
com.gavel.common.base.service.BaseEditService
;
import
com.gavel.kwell.vo.PcjhkCondition
;
import
com.gavel.kwell.vo.PcjhkVO
;
import
com.gavel.kwell.vo.PcjhmxkCondition
;
import
com.gavel.kwell.vo.PcjhmxkVO
;
import
com.gavel.persistence.sql.RecordSet
;
import
com.gavel.wo.vo.WoCondition
;
import
com.gavel.wo.vo.WoVO
;
...
...
@@ -14,4 +18,6 @@ public interface PcjhkService extends BaseEditService {
public
RecordSet
<
PcjhkVO
>
query
(
PcjhkCondition
condition
);
public
RecordSet
<
PcjhmxkVO
>
queryDetails
(
PcjhmxkCondition
condition
);
public
List
<
WoVO
>
queryWo
(
WoCondition
condition
)
;
}
gavel/src/main/java/com/gavel/kwell/service/impl/PcjhkServiceImpl.java
View file @
c1cf1588
...
...
@@ -19,6 +19,11 @@ import com.gavel.wo.dao.PcjhmxDao;
import
com.gavel.wo.persistent.Pcjhmx
;
import
com.gavel.wo.vo.PcjhmxCondition
;
import
com.gavel.wo.vo.PcjhmxVO
;
import
com.gavel.wo.vo.WoCondition
;
import
com.gavel.wo.vo.WoVO
;
import
java.util.List
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.stereotype.Service
;
import
org.springframework.transaction.annotation.Transactional
;
...
...
@@ -26,6 +31,7 @@ import org.springframework.transaction.annotation.Transactional;
import
com.gavel.wo.dao.PcjhDao
;
import
com.gavel.wo.persistent.Pcjh
;
import
com.gavel.wo.service.PcjhService
;
import
com.gavel.wo.utils.WoStateEnum
;
import
com.gavel.wo.vo.PcjhCondition
;
import
com.gavel.wo.vo.PcjhVO
;
...
...
@@ -69,5 +75,15 @@ public class PcjhkServiceImpl extends BaseEditServiceImpl implements PcjhkServic
}
}
@Override
public
List
<
WoVO
>
queryWo
(
WoCondition
condition
)
{
if
(
condition
.
getZtList
()
==
null
||
condition
.
getZtList
().
length
<
1
)
{
condition
.
setZtList
(
new
String
[
1
]);
}
condition
.
getZtList
()[
0
]
=
WoStateEnum
.
Release
.
getId
();
return
pcjhkDao
.
queryWo
(
condition
);
}
}
gavel/src/main/resources/templates/views/kmes/wosngz/wosngzinfo.html
View file @
c1cf1588
...
...
@@ -113,7 +113,8 @@
" </div>"
+
" </div>"
+
" </div>"
);
jy
(
rowData
);
//jy(rowData);
if
(
rowData
.
hgbz
==
"N"
){
$
(
"#ishgs"
).
text
(
"不合格"
)
}
...
...
gavel/src/main/resources/templates/views/wo/pcjhk/wosearch.html
View file @
c1cf1588
...
...
@@ -132,7 +132,7 @@
/*查询操作*/
function
run
(
ops
){
$datagrid
.
datagrid
(
"options"
).
url
=
"
wo/wo
/queryWo"
;
$datagrid
.
datagrid
(
"options"
).
url
=
"
kmes/pcjhk
/queryWo"
;
$datagrid
.
datagrid
(
"load"
,
DataBind
.
collectData
(
$div
));
}
...
...
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