Browse Source

修改Bug。

master
刘忱 2 years ago
parent
commit
21bfcf933c
  1. 2
      win-module-wms/win-module-wms-biz/src/main/java/com/win/module/wms/service/countRequest/CountRequestMainServiceImpl.java
  2. 5
      win-server/src/main/resources/application.yaml

2
win-module-wms/win-module-wms-biz/src/main/java/com/win/module/wms/service/countRequest/CountRequestMainServiceImpl.java

@ -445,7 +445,7 @@ public class CountRequestMainServiceImpl implements CountRequestMainService {
@Transactional @Transactional
public int generateCountadjustRequest(Long countRecordMainId) { public int generateCountadjustRequest(Long countRecordMainId) {
CountRequestMainDO countRequestMainDO = countRequestMainMapper.selectById(countRecordMainId); CountRequestMainDO countRequestMainDO = countRequestMainMapper.selectById(countRecordMainId);
if("2".equals(countRequestMainDO.getCountAdjustStatus())) { if(!"2".equals(countRequestMainDO.getCountAdjustStatus())) {
throw new ServiceException(COUNTADJUST_REQUEST_EXISTS); throw new ServiceException(COUNTADJUST_REQUEST_EXISTS);
} }
List<CountRecordDetailDO> countRecordDetailDOList = countRecordDetailMapper.getDifferenceList(countRequestMainDO.getNumber()); List<CountRecordDetailDO> countRecordDetailDOList = countRecordDetailMapper.getDifferenceList(countRequestMainDO.getNumber());

5
win-server/src/main/resources/application.yaml

@ -68,6 +68,10 @@ flowable:
# MyBatis Plus 的配置项 # MyBatis Plus 的配置项
mybatis-plus: mybatis-plus:
# 对应的 XML 文件位置
mapper-locations: classpath*:mapper/**/*Mapper.xml
# 实体扫描,多个package用逗号或者分号分隔
type-aliases-package: ${win.info.base-package}.module.*.dal.dataobject
configuration: configuration:
map-underscore-to-camel-case: true # 虽然默认为 true ,但是还是显示去指定下。 map-underscore-to-camel-case: true # 虽然默认为 true ,但是还是显示去指定下。
logImpl: org.apache.ibatis.logging.slf4j.Slf4jImpl logImpl: org.apache.ibatis.logging.slf4j.Slf4jImpl
@ -82,7 +86,6 @@ mybatis-plus:
logic-delete-value: 1 # 逻辑已删除值(默认为 1) logic-delete-value: 1 # 逻辑已删除值(默认为 1)
logic-not-delete-value: 0 # 逻辑未删除值(默认为 0) logic-not-delete-value: 0 # 逻辑未删除值(默认为 0)
banner: false # 关闭控制台的 Banner 打印 banner: false # 关闭控制台的 Banner 打印
type-aliases-package: ${win.info.base-package}.module.*.dal.dataobject
encryptor: encryptor:
password: XDV71a+xqStEA3WH # 加解密的秘钥,可使用 https://www.imaegoo.com/2020/aes-key-generator/ 网站生成 password: XDV71a+xqStEA3WH # 加解密的秘钥,可使用 https://www.imaegoo.com/2020/aes-key-generator/ 网站生成

Loading…
Cancel
Save