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
627a6294
Commit
627a6294
authored
Mar 23, 2022
by
yff
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
反馈升级
parent
a6da8cca
Changes
9
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
1114 additions
and
141 deletions
+1114
-141
GpfkController.java
.../main/java/com/gavel/kwell/controller/GpfkController.java
+7
-6
GpfkDao.java
gavel/src/main/java/com/gavel/kwell/dao/GpfkDao.java
+34
-1
GpfkDaoImpl.java
...l/src/main/java/com/gavel/kwell/dao/impl/GpfkDaoImpl.java
+410
-51
Gpfk.java
gavel/src/main/java/com/gavel/kwell/persistent/Gpfk.java
+1
-2
GpfkService.java
gavel/src/main/java/com/gavel/kwell/service/GpfkService.java
+7
-0
GpfkServiceImpl.java
...in/java/com/gavel/kwell/service/impl/GpfkServiceImpl.java
+577
-80
GpfkHgEnum.java
gavel/src/main/java/com/gavel/kwell/utils/GpfkHgEnum.java
+49
-0
GphyCondition.java
gavel/src/main/java/com/gavel/kwell/vo/GphyCondition.java
+14
-0
WlslItem.java
gavel/src/main/java/com/gavel/kwell/vo/WlslItem.java
+15
-1
No files found.
gavel/src/main/java/com/gavel/kwell/controller/GpfkController.java
View file @
627a6294
...
@@ -254,14 +254,15 @@ public class GpfkController extends BaseController {
...
@@ -254,14 +254,15 @@ public class GpfkController extends BaseController {
@RequestMapping
(
value
=
"/queryWoBomByWoid"
,
method
=
RequestMethod
.
POST
)
@RequestMapping
(
value
=
"/queryWoBomByWoid"
,
method
=
RequestMethod
.
POST
)
@ResponseBody
@ResponseBody
public
Object
getWoBomByWoid
(
@RequestBody
JSONObject
param
)
{
public
Object
getWoBomByWoid
(
@RequestBody
JSONObject
param
)
{
String
woid
=
param
.
getString
(
"woid"
);
//
String woid = param.getString("woid");
String
bzlx
=
param
.
getString
(
"bzlx"
);
String
bzlx
=
param
.
getString
(
"bzlx"
);
String
wosn
=
param
.
getString
(
"wosn"
);
String
wosn
=
param
.
getString
(
"wosn"
);
if
(
StringUtils
.
isEmpty
(
woid
)||
StringUtils
.
isEmpty
(
wosn
)){
if
(
StringUtils
.
isEmpty
(
bzlx
)||
StringUtils
.
isEmpty
(
wosn
)){
setReturnMessage
(
"条码不允许为空!"
);
setReturnMessage
(
"条码不允许为空!"
);
return
returnData
();
return
returnData
();
}
}
List
<
WobomVO
>
wobomVOs
=
gpfkService
.
queryWobomByWo
(
woid
,
bzlx
,
wosn
);
// List<WobomVO> wobomVOs= gpfkService.queryWobomByWo(woid,bzlx,wosn);
List
<
WobomVO
>
wobomVOs
=
gpfkService
.
queryWobomByWoUpgrade
(
wosn
,
bzlx
);
if
(
wobomVOs
!=
null
){
if
(
wobomVOs
!=
null
){
return
buildReturnData
(
wobomVOs
);
return
buildReturnData
(
wobomVOs
);
}
else
{
}
else
{
...
@@ -283,7 +284,7 @@ public class GpfkController extends BaseController {
...
@@ -283,7 +284,7 @@ public class GpfkController extends BaseController {
@ResponseBody
@ResponseBody
public
Object
query
(
@RequestBody
JSONObject
param
)
{
public
Object
query
(
@RequestBody
JSONObject
param
)
{
FkCondition
condition
=
JSONObject
.
toJavaObject
(
param
,
FkCondition
.
class
);
FkCondition
condition
=
JSONObject
.
toJavaObject
(
param
,
FkCondition
.
class
);
FkVO
gpfk
=
gpfkService
.
zpfk
(
condition
);
FkVO
gpfk
=
gpfkService
.
zpfk
Upgrade
(
condition
);
if
(
gpfk
!=
null
)
{
if
(
gpfk
!=
null
)
{
return
buildReturnData
(
gpfk
);
return
buildReturnData
(
gpfk
);
}
}
...
@@ -294,7 +295,7 @@ public class GpfkController extends BaseController {
...
@@ -294,7 +295,7 @@ public class GpfkController extends BaseController {
@ResponseBody
@ResponseBody
public
Object
jyfk
(
@RequestBody
JSONObject
param
)
{
public
Object
jyfk
(
@RequestBody
JSONObject
param
)
{
FkCondition
condition
=
JSONObject
.
toJavaObject
(
param
,
FkCondition
.
class
);
FkCondition
condition
=
JSONObject
.
toJavaObject
(
param
,
FkCondition
.
class
);
FkVO
gpfk
=
gpfkService
.
jyfk
(
condition
);
FkVO
gpfk
=
gpfkService
.
jyfk
Upgrade
(
condition
);
if
(
gpfk
!=
null
){
if
(
gpfk
!=
null
){
return
buildReturnData
(
gpfk
);
return
buildReturnData
(
gpfk
);
}
else
{
}
else
{
...
@@ -306,7 +307,7 @@ public class GpfkController extends BaseController {
...
@@ -306,7 +307,7 @@ public class GpfkController extends BaseController {
@ResponseBody
@ResponseBody
public
Object
wxfk
(
@RequestBody
JSONObject
param
)
{
public
Object
wxfk
(
@RequestBody
JSONObject
param
)
{
FkCondition
condition
=
JSONObject
.
toJavaObject
(
param
,
FkCondition
.
class
);
FkCondition
condition
=
JSONObject
.
toJavaObject
(
param
,
FkCondition
.
class
);
FkVO
gpfk
=
gpfkService
.
wxfk
(
condition
);
FkVO
gpfk
=
gpfkService
.
wxfk
Upgrade
(
condition
);
if
(
gpfk
!=
null
){
if
(
gpfk
!=
null
){
return
buildReturnData
(
gpfk
);
return
buildReturnData
(
gpfk
);
}
else
{
}
else
{
...
...
gavel/src/main/java/com/gavel/kwell/dao/GpfkDao.java
View file @
627a6294
...
@@ -20,6 +20,7 @@ import com.gavel.kwell.vo.GpfkCondition;
...
@@ -20,6 +20,7 @@ import com.gavel.kwell.vo.GpfkCondition;
import
com.gavel.kwell.vo.GpfkVO
;
import
com.gavel.kwell.vo.GpfkVO
;
import
com.gavel.kwell.vo.GphyCondition
;
import
com.gavel.kwell.vo.GphyCondition
;
import
com.gavel.kwell.vo.GpwxmxVO
;
import
com.gavel.kwell.vo.GpwxmxVO
;
import
com.gavel.kwell.vo.WlslItem
;
import
com.gavel.kwell.vo.WolinkInfoVO
;
import
com.gavel.kwell.vo.WolinkInfoVO
;
import
com.gavel.kwell.vo.WosngzVO
;
import
com.gavel.kwell.vo.WosngzVO
;
import
com.gavel.persistence.sql.RecordSet
;
import
com.gavel.persistence.sql.RecordSet
;
...
@@ -129,7 +130,6 @@ public interface GpfkDao extends BaseDao {
...
@@ -129,7 +130,6 @@ public interface GpfkDao extends BaseDao {
public
List
<
Gphy
>
queryGphyByGpfkid
(
String
mid
);
public
List
<
Gphy
>
queryGphyByGpfkid
(
String
mid
);
public
Wogylx
getLastGx
(
Wogylx
wogylx
);
public
double
getNowGyFksl
(
Wogylx
wogylx
);
public
double
getNowGyFksl
(
Wogylx
wogylx
);
...
@@ -140,4 +140,37 @@ public interface GpfkDao extends BaseDao {
...
@@ -140,4 +140,37 @@ public interface GpfkDao extends BaseDao {
public
double
checkIfContainsWobomWl
(
FkCondition
fkCondition
);
public
double
checkIfContainsWobomWl
(
FkCondition
fkCondition
);
public
double
checkIfContainsGphywl
(
GphyCondition
condition
);
public
double
checkIfContainsGphywl
(
GphyCondition
condition
);
/**科威尔工票反馈sql */
/** ------------BEGIN工票反馈升级-----------------***/
/**获取该序列号标准工序最新的反馈相关信息 */
public
FkVO
queryWowithIfExistGpfkByWosnAndBzgxidInNewDate
(
String
wosnid
,
String
bzgxid
);
/**获取该序列号标准工序所有的反馈相关信息 */
public
List
<
FkVO
>
queryWowithIfExistGpfkByWosnAndBzgxid
(
String
wosnid
,
String
bzgxid
);
/**获取该序列号标准工序的订单相关信息包含最新反馈记录 */
public
FkVO
queryKwellWoBySnidUptoDate
(
String
wosnid
,
String
bzgx
);
/**获取该序列号标准工序的订单相关信息包含最新反馈记录 */
public
List
<
FkVO
>
queryKwellAllGpfkByWosnAndGxid
(
FkCondition
condition
);
/**查询当前订单序列号最新反馈记录 */
public
GpfkVO
queryGpfkByWosnUptoDate
(
String
wosnid
);
/**查询当前工序下一道工序*/
public
Wogylx
getNextGxUpdate
(
Wogylx
wogylx
);
/**查询当前工序上一道工序 */
public
Wogylx
getLastGx
(
Wogylx
wogylx
);
/**查询当前工序上一道工序 */
public
double
queryIfZpwc
(
String
wosnid
,
String
bzgx
);
/**查询当前工序上一道工序 */
public
List
<
WobomVO
>
queryWobomByWosnAndBzgx
(
String
wosnid
,
String
bzgx
);
/**查询是否耗用了该物料编码 */
public
double
checkIfContainsGphywlUpgrade
(
GphyCondition
condition
);
/**查询是物料编码装配数量 */
public
WlslItem
queryKwellZpslGphy
(
GphyCondition
condition
);
/**查询是物料编码装配单位数量 */
public
double
queryWobomZpslByDjidAndWlidUpgrade
(
String
wosncode
,
String
bzgxid
,
String
wlid
);
/**查询当前订单序列号最新检验反馈记录 */
public
GpfkVO
queryJyGpfkByWosnUptoDate
(
String
wosnid
);
/** ------------END工票反馈升级-----------------***/
}
}
gavel/src/main/java/com/gavel/kwell/dao/impl/GpfkDaoImpl.java
View file @
627a6294
This diff is collapsed.
Click to expand it.
gavel/src/main/java/com/gavel/kwell/persistent/Gpfk.java
View file @
627a6294
...
@@ -93,10 +93,9 @@ public class Gpfk extends BaseEntity {
...
@@ -93,10 +93,9 @@ public class Gpfk extends BaseEntity {
@FieldMeta
(
fieldName
=
"GPFK_HGDJ"
,
caption
=
"合格等级"
)
@FieldMeta
(
fieldName
=
"GPFK_HGDJ"
,
caption
=
"合格等级"
)
private
String
hgdj
;
private
String
hgdj
;
@FieldMeta
(
fieldName
=
"GPFK_WLID"
,
caption
=
"物料编码"
)
@FieldMeta
(
fieldName
=
"GPFK_WLID"
,
caption
=
"物料编码"
)
private
String
wlid
;
private
String
wlid
;
public
String
getWogylx
()
{
public
String
getWogylx
()
{
return
wogylx
;
return
wogylx
;
...
...
gavel/src/main/java/com/gavel/kwell/service/GpfkService.java
View file @
627a6294
...
@@ -111,6 +111,13 @@ public interface GpfkService extends BaseEditService {
...
@@ -111,6 +111,13 @@ public interface GpfkService extends BaseEditService {
public
FkVO
jyfk
(
FkCondition
fkCondition
);
public
FkVO
jyfk
(
FkCondition
fkCondition
);
public
FkVO
wxfk
(
FkCondition
fkCondition
);
public
FkVO
wxfk
(
FkCondition
fkCondition
);
public
FkVO
zpfkUpgrade
(
FkCondition
fkCondition
);
public
FkVO
jyfkUpgrade
(
FkCondition
fkCondition
);
public
FkVO
wxfkUpgrade
(
FkCondition
fkCondition
);
public
List
<
WobomVO
>
queryWobomByWoUpgrade
(
String
wosn
,
String
bzgx
);
/** 科威尔mes工票反馈重写--end */
/** 科威尔mes工票反馈重写--end */
...
...
gavel/src/main/java/com/gavel/kwell/service/impl/GpfkServiceImpl.java
View file @
627a6294
This diff is collapsed.
Click to expand it.
gavel/src/main/java/com/gavel/kwell/utils/GpfkHgEnum.java
0 → 100644
View file @
627a6294
package
com
.
gavel
.
kwell
.
utils
;
import
com.gavel.kzzx.model.GavelEnumModel
;
import
java.util.ArrayList
;
import
java.util.List
;
public
enum
GpfkHgEnum
{
JYHG
(
"JYHG"
,
"检验合格"
),
WXHG
(
"WXHG"
,
"维修合格"
),
JYBHG
(
"JYBHG"
,
"检验不合格"
);
private
String
id
;
//数据库存储
private
String
name
;
GpfkHgEnum
(
String
name
,
String
id
)
{
this
.
id
=
id
;
this
.
name
=
name
;
}
public
String
getId
()
{
return
id
;
}
public
void
setId
(
String
id
)
{
this
.
id
=
id
;
}
public
String
getName
()
{
return
name
;
}
public
void
setName
(
String
name
)
{
this
.
name
=
name
;
}
public
static
List
<
GavelEnumModel
>
toList
(){
List
<
GavelEnumModel
>
list
=
new
ArrayList
<>();
for
(
GpfkHgEnum
e
:
GpfkHgEnum
.
values
())
{
GavelEnumModel
gavelEnumModel
=
new
GavelEnumModel
();
gavelEnumModel
.
setId
(
e
.
getId
());
gavelEnumModel
.
setName
(
e
.
getName
());
list
.
add
(
gavelEnumModel
);
}
return
list
;
}
}
gavel/src/main/java/com/gavel/kwell/vo/GphyCondition.java
View file @
627a6294
...
@@ -25,8 +25,22 @@ public class GphyCondition extends BaseEntity {
...
@@ -25,8 +25,22 @@ public class GphyCondition extends BaseEntity {
private
String
fkid
;
private
String
fkid
;
private
String
wosncode
;
private
String
bzgxid
;
public
String
getWosncode
()
{
return
wosncode
;
}
public
void
setWosncode
(
String
wosncode
)
{
this
.
wosncode
=
wosncode
;
}
public
String
getBzgxid
()
{
return
bzgxid
;
}
public
void
setBzgxid
(
String
bzgxid
)
{
this
.
bzgxid
=
bzgxid
;
}
public
String
getFkid
()
{
public
String
getFkid
()
{
return
fkid
;
return
fkid
;
}
}
...
...
gavel/src/main/java/com/gavel/kwell/vo/WlslItem.java
View file @
627a6294
...
@@ -3,9 +3,23 @@ package com.gavel.kwell.vo;
...
@@ -3,9 +3,23 @@ package com.gavel.kwell.vo;
import
java.io.Serializable
;
import
java.io.Serializable
;
public
class
WlslItem
implements
Serializable
{
public
class
WlslItem
implements
Serializable
{
private
static
final
long
serialVersionUID
=
1L
;
private
String
wlid
;
private
String
wlid
;
private
String
wosncode
;
private
String
bzgxid
;
private
Double
zpsl
;
private
Double
zpsl
;
public
String
getWosncode
()
{
return
wosncode
;
}
public
void
setWosncode
(
String
wosncode
)
{
this
.
wosncode
=
wosncode
;
}
public
String
getBzgxid
()
{
return
bzgxid
;
}
public
void
setBzgxid
(
String
bzgxid
)
{
this
.
bzgxid
=
bzgxid
;
}
public
String
getWlid
()
{
public
String
getWlid
()
{
return
wlid
;
return
wlid
;
}
}
...
...
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