Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
L
lingxi-lxy-yanshou
Project
Project
Details
Activity
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
后端-黄柯铭
lingxi-lxy-yanshou
Commits
3cec0603
Commit
3cec0603
authored
Jul 26, 2021
by
fhj
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
加工服务 - 代码修复
parent
907da612
Hide whitespace changes
Inline
Side-by-side
Showing
12 changed files
with
17 additions
and
15 deletions
+17
-15
build.gradle
enhance-service/build.gradle
+1
-2
PNOAllStatusEnum.java
...ava/com/ssy/lingxi/enhance/constant/PNOAllStatusEnum.java
+2
-1
PNOOuterStatusEnum.java
...a/com/ssy/lingxi/enhance/constant/PNOOuterStatusEnum.java
+2
-1
PNOProcessInnerStatusEnum.java
...sy/lingxi/enhance/constant/PNOProcessInnerStatusEnum.java
+2
-1
PNOSupplierInnerStatusEnum.java
...y/lingxi/enhance/constant/PNOSupplierInnerStatusEnum.java
+2
-1
ProcessAllController.java
...ngxi/enhance/controller/process/ProcessAllController.java
+1
-1
ProcessToBeAddDeliveryController.java
.../controller/process/ProcessToBeAddDeliveryController.java
+1
-1
SupplierToBeAddStorageController.java
...controller/supplier/SupplierToBeAddStorageController.java
+1
-1
ParamCheckExceptionHandler.java
...enhance/handler/exception/ParamCheckExceptionHandler.java
+1
-1
QueryDslUtil.java
...java/com/ssy/lingxi/enhance/handler/jpa/QueryDslUtil.java
+2
-3
ProcessAllService.java
...ssy/lingxi/enhance/service/process/ProcessAllService.java
+1
-1
ProcessAllServiceImpl.java
...xi/enhance/serviceimpl/process/ProcessAllServiceImpl.java
+1
-1
No files found.
enhance-service/build.gradle
View file @
3cec0603
...
@@ -8,7 +8,6 @@ plugins {
...
@@ -8,7 +8,6 @@ plugins {
group
=
'com.ssy.lingxi'
group
=
'com.ssy.lingxi'
group
=
'com.ssy.lingxi.enhance.service'
group
=
'com.ssy.lingxi.enhance.service'
version
=
'2.0.0'
version
=
'2.0.0'
sourceCompatibility
=
'1.8'
repositories
{
repositories
{
maven
{
maven
{
...
@@ -45,7 +44,7 @@ dependencies {
...
@@ -45,7 +44,7 @@ dependencies {
implementation
'org.springframework.cloud:spring-cloud-starter-consul-discovery'
implementation
'org.springframework.cloud:spring-cloud-starter-consul-discovery'
// 链路追踪zipkin
// 链路追踪zipkin
implementation
'org.springframework.cloud:spring-cloud-sleuth-zipkin'
implementation
'org.springframework.cloud:spring-cloud-sleuth-zipkin'
//
springj
pa
//
SpringJ
pa
implementation
'org.springframework.boot:spring-boot-starter-data-jpa'
implementation
'org.springframework.boot:spring-boot-starter-data-jpa'
// web相关
// web相关
implementation
'org.springframework.boot:spring-boot-starter-web'
implementation
'org.springframework.boot:spring-boot-starter-web'
...
...
enhance-service/src/main/java/com/ssy/lingxi/enhance/constant/PNOAllStatusEnum.java
View file @
3cec0603
...
@@ -48,7 +48,8 @@ public enum PNOAllStatusEnum {
...
@@ -48,7 +48,8 @@ public enum PNOAllStatusEnum {
}
}
public
static
String
getMessage
(
Integer
code
)
{
public
static
String
getMessage
(
Integer
code
)
{
return
Arrays
.
stream
(
PNOAllStatusEnum
.
values
()).
filter
(
e
->
e
.
getCode
().
equals
(
code
)).
findFirst
().
orElse
(
null
).
getMessage
();
PNOAllStatusEnum
pnoAllStatusEnum
=
Arrays
.
stream
(
PNOAllStatusEnum
.
values
()).
filter
(
e
->
e
.
getCode
().
equals
(
code
)).
findFirst
().
orElse
(
null
);
return
pnoAllStatusEnum
!=
null
?
pnoAllStatusEnum
.
getMessage
()
:
"无效状态"
;
}
}
public
Integer
getCode
()
{
public
Integer
getCode
()
{
...
...
enhance-service/src/main/java/com/ssy/lingxi/enhance/constant/PNOOuterStatusEnum.java
View file @
3cec0603
...
@@ -39,7 +39,8 @@ public enum PNOOuterStatusEnum {
...
@@ -39,7 +39,8 @@ public enum PNOOuterStatusEnum {
* 根据code获取message
* 根据code获取message
* */
* */
public
static
String
getMessage
(
Integer
code
)
{
public
static
String
getMessage
(
Integer
code
)
{
return
Arrays
.
stream
(
PNOOuterStatusEnum
.
values
()).
filter
(
e
->
e
.
getCode
().
equals
(
code
)).
findFirst
().
orElse
(
null
).
getMessage
();
PNOOuterStatusEnum
pnoOuterStatusEnum
=
Arrays
.
stream
(
PNOOuterStatusEnum
.
values
()).
filter
(
e
->
e
.
getCode
().
equals
(
code
)).
findFirst
().
orElse
(
null
);
return
pnoOuterStatusEnum
!=
null
?
pnoOuterStatusEnum
.
getMessage
()
:
"无效状态"
;
}
}
/**
/**
...
...
enhance-service/src/main/java/com/ssy/lingxi/enhance/constant/PNOProcessInnerStatusEnum.java
View file @
3cec0603
...
@@ -47,7 +47,8 @@ public enum PNOProcessInnerStatusEnum {
...
@@ -47,7 +47,8 @@ public enum PNOProcessInnerStatusEnum {
* 根据code获取message
* 根据code获取message
* */
* */
public
static
String
getMessage
(
Integer
code
)
{
public
static
String
getMessage
(
Integer
code
)
{
return
Arrays
.
stream
(
PNOProcessInnerStatusEnum
.
values
()).
filter
(
e
->
e
.
getCode
().
equals
(
code
)).
findFirst
().
orElse
(
null
).
getMessage
();
PNOProcessInnerStatusEnum
pnoProcessInnerStatusEnum
=
Arrays
.
stream
(
PNOProcessInnerStatusEnum
.
values
()).
filter
(
e
->
e
.
getCode
().
equals
(
code
)).
findFirst
().
orElse
(
null
);
return
pnoProcessInnerStatusEnum
!=
null
?
pnoProcessInnerStatusEnum
.
getMessage
()
:
"无效状态"
;
}
}
/**
/**
...
...
enhance-service/src/main/java/com/ssy/lingxi/enhance/constant/PNOSupplierInnerStatusEnum.java
View file @
3cec0603
...
@@ -42,7 +42,8 @@ public enum PNOSupplierInnerStatusEnum {
...
@@ -42,7 +42,8 @@ public enum PNOSupplierInnerStatusEnum {
* 根据code获取message
* 根据code获取message
* */
* */
public
static
String
getMessage
(
Integer
code
)
{
public
static
String
getMessage
(
Integer
code
)
{
return
Arrays
.
stream
(
PNOSupplierInnerStatusEnum
.
values
()).
filter
(
e
->
e
.
getCode
().
equals
(
code
)).
findFirst
().
orElse
(
null
).
getMessage
();
PNOSupplierInnerStatusEnum
pnoSupplierInnerStatusEnum
=
Arrays
.
stream
(
PNOSupplierInnerStatusEnum
.
values
()).
filter
(
e
->
e
.
getCode
().
equals
(
code
)).
findFirst
().
orElse
(
null
);
return
pnoSupplierInnerStatusEnum
!=
null
?
pnoSupplierInnerStatusEnum
.
getMessage
()
:
"无效状态"
;
}
}
/**
/**
...
...
enhance-service/src/main/java/com/ssy/lingxi/enhance/controller/process/ProcessAllController.java
View file @
3cec0603
...
@@ -51,7 +51,7 @@ public class ProcessAllController extends BaseController {
...
@@ -51,7 +51,7 @@ public class ProcessAllController extends BaseController {
@ApiOperation
(
value
=
"中止"
)
@ApiOperation
(
value
=
"中止"
)
@PostMapping
(
value
=
"/discontinue"
)
@PostMapping
(
value
=
"/discontinue"
)
public
Wrapper
discontinue
(
@RequestBody
@Valid
DiscontinueDTO
dto
)
{
public
Wrapper
<
Void
>
discontinue
(
@RequestBody
@Valid
DiscontinueDTO
dto
)
{
return
allService
.
discontinue
(
dto
,
getSysUser
());
return
allService
.
discontinue
(
dto
,
getSysUser
());
}
}
}
}
enhance-service/src/main/java/com/ssy/lingxi/enhance/controller/process/ProcessToBeAddDeliveryController.java
View file @
3cec0603
...
@@ -59,7 +59,7 @@ public class ProcessToBeAddDeliveryController extends BaseController {
...
@@ -59,7 +59,7 @@ public class ProcessToBeAddDeliveryController extends BaseController {
/**
/**
* 当生产通知单新增了发货单之后, 可能发货数量填错等原因, 会在供应商新增入库单之前, 发货单可反审后进行修改。
* 当生产通知单新增了发货单之后, 可能发货数量填错等原因, 会在供应商新增入库单之前, 发货单可反审后进行修改。
* 问题1:
* 问题1:
* 在新增发货单, 选择的发货单明细时(即是选择货品), 假如选择了A
BCD
4个货品, 发货数量各为100个, 然后ABC货品选择对应要加工的A商品, D货品选择对应要加工的B商品,
* 在新增发货单, 选择的发货单明细时(即是选择货品), 假如选择了A
B C D
4个货品, 发货数量各为100个, 然后ABC货品选择对应要加工的A商品, D货品选择对应要加工的B商品,
* 接着提交发货单时该生产通知单对应的发货明细即为 {A商品, 发货数量是300个}, {D商品, 发货数量是100个}
* 接着提交发货单时该生产通知单对应的发货明细即为 {A商品, 发货数量是300个}, {D商品, 发货数量是100个}
* 这时候修改了发货单, 发货单明细货品全清空再重新选择ADE3个货品, 发货数量各为100个, ADE货品对应了C商品, 那么修改完提交后这对应的生产通知单里的发货明细为{C商品, 发货数量是300个}
* 这时候修改了发货单, 发货单明细货品全清空再重新选择ADE3个货品, 发货数量各为100个, ADE货品对应了C商品, 那么修改完提交后这对应的生产通知单里的发货明细为{C商品, 发货数量是300个}
* (经确认, 是可以这样操作, 且修改发货单只会修改发货单明细而已)
* (经确认, 是可以这样操作, 且修改发货单只会修改发货单明细而已)
...
...
enhance-service/src/main/java/com/ssy/lingxi/enhance/controller/supplier/SupplierToBeAddStorageController.java
View file @
3cec0603
...
@@ -59,7 +59,7 @@ public class SupplierToBeAddStorageController extends BaseController {
...
@@ -59,7 +59,7 @@ public class SupplierToBeAddStorageController extends BaseController {
/**
/**
* 当生产通知单新增了入库单之后, 可能入库数量填错等原因, 会在供应商确认收货之前, 入库单可反审后进行修改。
* 当生产通知单新增了入库单之后, 可能入库数量填错等原因, 会在供应商确认收货之前, 入库单可反审后进行修改。
* 问题1:
* 问题1:
* 在新增入库单, 选择的入库单明细时(即是选择货品), 假如选择了A
BCD
4个货品, 入库数量各为100个, 然后ABC货品选择对应要加工的A商品, D货品选择对应要加工的B商品,
* 在新增入库单, 选择的入库单明细时(即是选择货品), 假如选择了A
B C D
4个货品, 入库数量各为100个, 然后ABC货品选择对应要加工的A商品, D货品选择对应要加工的B商品,
* 接着提交入库单时该生产通知单对应的收货明细即为 {A商品, 入库数量是300个}, {D商品, 入库数量是100个}
* 接着提交入库单时该生产通知单对应的收货明细即为 {A商品, 入库数量是300个}, {D商品, 入库数量是100个}
* 这时候修改了入库单, 入库单明细货品全清空再重新选择ADE3个货品, 入库数量各为100个, ADE货品对应了C商品, 那么修改完提交后这对应的生产通知单里的收货明细为{C商品, 入库数量是300个}
* 这时候修改了入库单, 入库单明细货品全清空再重新选择ADE3个货品, 入库数量各为100个, ADE货品对应了C商品, 那么修改完提交后这对应的生产通知单里的收货明细为{C商品, 入库数量是300个}
* (经确认, 是可以这样操作, 且修改入库单只会修改入库单明细而已)
* (经确认, 是可以这样操作, 且修改入库单只会修改入库单明细而已)
...
...
enhance-service/src/main/java/com/ssy/lingxi/enhance/handler/exception/ParamCheckExceptionHandler.java
View file @
3cec0603
...
@@ -54,7 +54,7 @@ public class ParamCheckExceptionHandler {
...
@@ -54,7 +54,7 @@ public class ParamCheckExceptionHandler {
* <p>例如:http post接口接收了http get请求</p>
* <p>例如:http post接口接收了http get请求</p>
*/
*/
@ExceptionHandler
(
HttpRequestMethodNotSupportedException
.
class
)
@ExceptionHandler
(
HttpRequestMethodNotSupportedException
.
class
)
public
Wrapper
<?>
requestMetho
s
Exception
(
HttpRequestMethodNotSupportedException
exception
)
{
public
Wrapper
<?>
requestMetho
d
Exception
(
HttpRequestMethodNotSupportedException
exception
)
{
return
Wrapper
.
fail
(
ResponseCode
.
REQUEST_METHOD_NOT_SUPPORTED
,
ResponseCode
.
REQUEST_METHOD_NOT_SUPPORTED
.
getMessage
());
return
Wrapper
.
fail
(
ResponseCode
.
REQUEST_METHOD_NOT_SUPPORTED
,
ResponseCode
.
REQUEST_METHOD_NOT_SUPPORTED
.
getMessage
());
}
}
...
...
enhance-service/src/main/java/com/ssy/lingxi/enhance/handler/jpa/QueryDslUtil.java
View file @
3cec0603
...
@@ -16,6 +16,7 @@ import org.springframework.stereotype.Component;
...
@@ -16,6 +16,7 @@ import org.springframework.stereotype.Component;
import
javax.annotation.Resource
;
import
javax.annotation.Resource
;
import
java.util.List
;
import
java.util.List
;
import
java.util.stream.Collectors
;
/**
/**
* QueryDsl工具
* QueryDsl工具
...
@@ -105,9 +106,7 @@ public class QueryDslUtil {
...
@@ -105,9 +106,7 @@ public class QueryDslUtil {
.
fetch
();
.
fetch
();
//封装外部状态名称
//封装外部状态名称
list
.
forEach
(
a
->
{
list
=
list
.
stream
().
peek
(
a
->
a
.
setOuterStatusName
(
PNOOuterStatusEnum
.
getMessage
(
a
.
getOuterStatus
()))).
collect
(
Collectors
.
toList
());
a
.
setOuterStatusName
(
PNOOuterStatusEnum
.
getMessage
(
a
.
getOuterStatus
()));
});
return
new
PageData
<>(
totalCount
,
list
);
return
new
PageData
<>(
totalCount
,
list
);
}
}
...
...
enhance-service/src/main/java/com/ssy/lingxi/enhance/service/process/ProcessAllService.java
View file @
3cec0603
...
@@ -24,5 +24,5 @@ public interface ProcessAllService {
...
@@ -24,5 +24,5 @@ public interface ProcessAllService {
Wrapper
<
ProduceNoticeOrderDetailsVO
>
details
(
CommonIdDTO
dto
,
UserLoginCacheDTO
user
);
Wrapper
<
ProduceNoticeOrderDetailsVO
>
details
(
CommonIdDTO
dto
,
UserLoginCacheDTO
user
);
Wrapper
<
?
>
discontinue
(
DiscontinueDTO
dto
,
UserLoginCacheDTO
user
);
Wrapper
<
Void
>
discontinue
(
DiscontinueDTO
dto
,
UserLoginCacheDTO
user
);
}
}
enhance-service/src/main/java/com/ssy/lingxi/enhance/serviceimpl/process/ProcessAllServiceImpl.java
View file @
3cec0603
...
@@ -180,7 +180,7 @@ public class ProcessAllServiceImpl implements ProcessAllService {
...
@@ -180,7 +180,7 @@ public class ProcessAllServiceImpl implements ProcessAllService {
@Override
@Override
@Transactional
@Transactional
@ApiOperation
(
value
=
"中止"
)
@ApiOperation
(
value
=
"中止"
)
public
Wrapper
<
?
>
discontinue
(
DiscontinueDTO
dto
,
UserLoginCacheDTO
user
)
{
public
Wrapper
<
Void
>
discontinue
(
DiscontinueDTO
dto
,
UserLoginCacheDTO
user
)
{
//根据ID获取生产通知单详情
//根据ID获取生产通知单详情
ProduceNoticeOrderDO
produceNoticeOrder
=
produceNoticeOrderRepository
.
findById
(
dto
.
getId
()).
orElse
(
null
);
ProduceNoticeOrderDO
produceNoticeOrder
=
produceNoticeOrderRepository
.
findById
(
dto
.
getId
()).
orElse
(
null
);
if
(
produceNoticeOrder
==
null
)
{
if
(
produceNoticeOrder
==
null
)
{
...
...
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