diff --git a/lms/.idea/fastRequestCollection.xml b/lms/.idea/fastRequestCollection.xml
new file mode 100644
index 0000000..a433492
--- /dev/null
+++ b/lms/.idea/fastRequestCollection.xml
@@ -0,0 +1,23 @@
+
+
+
+
+
+
\ No newline at end of file
diff --git a/lms/.idea/fastRequestCurrentProjectConfig.xml b/lms/.idea/fastRequestCurrentProjectConfig.xml
new file mode 100644
index 0000000..3f8a90a
--- /dev/null
+++ b/lms/.idea/fastRequestCurrentProjectConfig.xml
@@ -0,0 +1,8 @@
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/lms/.idea/lms.iml b/lms/.idea/lms.iml
index d6ebd48..6b648a4 100644
--- a/lms/.idea/lms.iml
+++ b/lms/.idea/lms.iml
@@ -1,5 +1,10 @@
+
+
+
+
+
diff --git a/lms/.idea/vcs.xml b/lms/.idea/vcs.xml
new file mode 100644
index 0000000..6c0b863
--- /dev/null
+++ b/lms/.idea/vcs.xml
@@ -0,0 +1,6 @@
+
+
+
+
+
+
\ No newline at end of file
diff --git a/lms/nladmin-system/nlsso-server/pom.xml b/lms/nladmin-system/nlsso-server/pom.xml
index 1ddb8c3..d167382 100644
--- a/lms/nladmin-system/nlsso-server/pom.xml
+++ b/lms/nladmin-system/nlsso-server/pom.xml
@@ -14,6 +14,7 @@
+ ${pom.basedir}/src/main/java/org/nl/libs/axis.jar
UTF-8
UTF-8
1.8
@@ -32,9 +33,44 @@
1.9
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+ org.apache.axis
+ axis
+ 1.4
+
+
+
+ wsdl4j
+ wsdl4j
+ 1.6.2
+
+
+
+
+ javax.xml
+ jaxrpc-api
+ 1.1
+
+
+
+
+ commons-discovery
+ commons-discovery
+ 0.2
+
+
org.fusesource.jansi
jansi
diff --git a/lms/nladmin-system/nlsso-server/src/main/java/org/nl/config/WebSocketConfig.java b/lms/nladmin-system/nlsso-server/src/main/java/org/nl/config/WebSocketConfig.java
index 60214f9..79c201b 100644
--- a/lms/nladmin-system/nlsso-server/src/main/java/org/nl/config/WebSocketConfig.java
+++ b/lms/nladmin-system/nlsso-server/src/main/java/org/nl/config/WebSocketConfig.java
@@ -1,33 +1,33 @@
-/*
- * Copyright 2019-2020 Zheng Jie
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-package org.nl.config;
-
-import org.springframework.context.annotation.Bean;
-import org.springframework.context.annotation.Configuration;
-import org.springframework.web.socket.server.standard.ServerEndpointExporter;
-
-/**
- * @author ZhangHouYing
- * @date 2019-08-24 15:44
- */
-@Configuration
-public class WebSocketConfig {
-
- @Bean
- public ServerEndpointExporter serverEndpointExporter() {
- return new ServerEndpointExporter();
- }
-}
+///*
+// * Copyright 2019-2020 Zheng Jie
+// *
+// * Licensed under the Apache License, Version 2.0 (the "License");
+// * you may not use this file except in compliance with the License.
+// * You may obtain a copy of the License at
+// *
+// * http://www.apache.org/licenses/LICENSE-2.0
+// *
+// * Unless required by applicable law or agreed to in writing, software
+// * distributed under the License is distributed on an "AS IS" BASIS,
+// * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// * See the License for the specific language governing permissions and
+// * limitations under the License.
+// */
+//package org.nl.config;
+//
+//import org.springframework.context.annotation.Bean;
+//import org.springframework.context.annotation.Configuration;
+//import org.springframework.web.socket.server.standard.ServerEndpointExporter;
+//
+///**
+// * @author ZhangHouYing
+// * @date 2019-08-24 15:44
+// */
+//@Configuration
+//public class WebSocketConfig {
+//
+// @Bean
+// public ServerEndpointExporter serverEndpointExporter() {
+// return new ServerEndpointExporter();
+// }
+//}
diff --git a/lms/nladmin-system/nlsso-server/src/main/java/org/nl/wms/database/eas/controller/EasOutInBillController.java b/lms/nladmin-system/nlsso-server/src/main/java/org/nl/wms/database/eas/controller/EasOutInBillController.java
index d4f20d5..61c534c 100644
--- a/lms/nladmin-system/nlsso-server/src/main/java/org/nl/wms/database/eas/controller/EasOutInBillController.java
+++ b/lms/nladmin-system/nlsso-server/src/main/java/org/nl/wms/database/eas/controller/EasOutInBillController.java
@@ -2,16 +2,23 @@ package org.nl.wms.database.eas.controller;
import java.util.List;
import java.util.Set;
+
import cn.dev33.satoken.annotation.SaIgnore;
+import com.baomidou.mybatisplus.core.conditions.update.LambdaUpdateWrapper;
+import org.apache.commons.lang3.StringUtils;
import org.nl.common.base.CommonPage;
import org.nl.common.base.CommonResult;
import org.nl.common.base.RestBusinessTemplate;
+import org.nl.common.base.ResultCode;
import org.nl.wms.database.eas.dao.EasOutInBill;
+import org.nl.wms.database.eas.dao.EasOutInBillDetail;
import org.nl.wms.database.eas.dao.HomeBillCounts;
import org.nl.wms.database.eas.dto.EasOutInBillQuery;
import org.springframework.web.bind.annotation.*;
import lombok.RequiredArgsConstructor;
+
import javax.annotation.Resource;
+
import lombok.extern.slf4j.Slf4j;
import org.springframework.http.HttpStatus;
import org.springframework.http.ResponseEntity;
@@ -34,22 +41,40 @@ public class EasOutInBillController {
private IeasOutInBillService easOutInBillService;
+ /**
+ * 审核单据
+ *
+ * @param ids 传入审核对象主键,例:{"id":"1"}
+ * @return 审核单据
+ */
+ @PostMapping("/audit")
+ @Log("审核")
+ //@SaCheckPermission("@el.check(EasOutInBill:edit')")
+ public CommonResult audit(@RequestBody Set ids) {
+ if (ids == null || ids.isEmpty()) {
+ return CommonResult.failed(ResultCode.FAILED);
+ }
+ return RestBusinessTemplate.execute(() -> easOutInBillService.audit(ids));
+ }
+
+
+
/**
* 首页显示出入库单据数量
*/
@PostMapping("/getBillsCount")
@Log("首页显示出入库单据数量")
public CommonResult> getBillsCount() {
- return RestBusinessTemplate.execute(() ->easOutInBillService.getBillsCount());
+ return RestBusinessTemplate.execute(() -> easOutInBillService.getBillsCount());
}
-
/**
- * 查询出入库单据
+ * 查询出入库单据
+ *
* @param params 传入分页条件或查询条件,例:{"page":"0","size":"10", "fuzzy":"熊一" }
*/
- @PostMapping( "/page")
+ @PostMapping("/page")
@Log("分页查询")
public ResponseEntity> page(@RequestBody EasOutInBillQuery params) {
return new ResponseEntity<>(easOutInBillService.page(params), HttpStatus.OK);
@@ -57,56 +82,70 @@ public class EasOutInBillController {
+ /**
+ * 获取单据列表
+ */
+ @PostMapping("/getEasBills")
+ @Log("获取单据列表")
+ public ResponseEntity> getEasBills() {
+ return new ResponseEntity<>(easOutInBillService.getEasBills(), HttpStatus.OK);
+ }
+
+
+
/**
* 条件查询
+ *
* @param params 传入查询条件,例:{"fuzzy":"熊一" }
*/
- @PostMapping( "/query")
+ @PostMapping("/query")
@Log("条件查询")
public CommonResult> query(@RequestBody EasOutInBillQuery params) {
- return RestBusinessTemplate.execute(() ->easOutInBillService.query(params));
+ return RestBusinessTemplate.execute(() -> easOutInBillService.query(params));
}
-
/**
* 新增单据
*
* @param entity 传入新增对象,例:{"name":"熊大", "age":"16" }
* @return 新增结果
*/
- @PostMapping( "/create")
+ @PostMapping("/create")
@Log("新增")
public CommonResult create(@RequestBody EasOutInBillQuery entity) {
return RestBusinessTemplate.execute(() -> easOutInBillService.create(entity));
}
-
/**
* 修改单据
*
* @param entity 传入修改对象包含主键,例:{"id":"1", "name":"熊二" }
* @return 修改结果
*/
- @PostMapping( "/update")
+ @PostMapping("/update")
@Log("修改")
//@SaCheckPermission("@el.check(EasOutInBill:edit')")
public CommonResult update(@RequestBody EasOutInBillQuery entity) {
- return RestBusinessTemplate.execute(() -> easOutInBillService.update(entity));
+ return RestBusinessTemplate.execute(() -> easOutInBillService.update(entity));
}
/**
* 删除单据
+ *
* @param ids 传入单个或多个主键Id,例:["1","2"]
* @return 删除结果
*/
@Log("删除")
//@SaCheckPermission("@el.check(EasOutInBill:del')")
- @PostMapping( "/delete")
+ @PostMapping("/delete")
public CommonResult delete(@RequestBody Set ids) {
- return RestBusinessTemplate.execute(() -> easOutInBillService.deleteAll(ids));
+ if (ids == null || ids.isEmpty()) {
+ return CommonResult.failed(ResultCode.FAILED);
+ }
+ return RestBusinessTemplate.execute(() -> easOutInBillService.deleteAll(ids));
}
diff --git a/lms/nladmin-system/nlsso-server/src/main/java/org/nl/wms/database/eas/controller/EasOutInBillDetailController.java b/lms/nladmin-system/nlsso-server/src/main/java/org/nl/wms/database/eas/controller/EasOutInBillDetailController.java
index 3a27ed4..b3cfd35 100644
--- a/lms/nladmin-system/nlsso-server/src/main/java/org/nl/wms/database/eas/controller/EasOutInBillDetailController.java
+++ b/lms/nladmin-system/nlsso-server/src/main/java/org/nl/wms/database/eas/controller/EasOutInBillDetailController.java
@@ -1,13 +1,18 @@
package org.nl.wms.database.eas.controller;
+
import java.util.List;
import java.util.Set;
+
import org.nl.common.base.CommonPage;
import org.nl.common.base.CommonResult;
import org.nl.common.base.RestBusinessTemplate;
+import org.nl.common.base.ResultCode;
import org.nl.wms.database.eas.dao.EasOutInBillDetail;
import org.springframework.web.bind.annotation.*;
import lombok.RequiredArgsConstructor;
+
import javax.annotation.Resource;
+
import lombok.extern.slf4j.Slf4j;
import org.springframework.http.HttpStatus;
import org.springframework.http.ResponseEntity;
@@ -29,6 +34,30 @@ public class EasOutInBillDetailController {
@Resource
private IeasOutInBillDetailService easOutInBillDetailService;
+ /**
+ * 查询库位
+ *
+ * @param params 传入选中的出入库单据明细行数据
+ */
+ @PostMapping("/queryInventoryInfo")
+ @Log("查询库位")
+ public ResponseEntity> queryInventoryInfo(@RequestBody List params) {
+ return new ResponseEntity<>(easOutInBillDetailService.queryInventoryInfo(params), HttpStatus.OK);
+ }
+
+ /**
+ * 修改库位
+ *
+ * @param entity 传入修改对象包含主键,例:{"id":"1", "name":"熊二" }
+ * @return 修改结果
+ */
+ @PostMapping("/update")
+ @Log("修改")
+ //@SaCheckPermission("@el.check(EasOutInBillDetail:edit')")
+ public CommonResult update(@RequestBody List entity) {
+ return RestBusinessTemplate.execute(() -> easOutInBillDetailService.update(entity));
+ }
+
/**
* 分页查询
@@ -41,16 +70,6 @@ public class EasOutInBillDetailController {
return new ResponseEntity<>(easOutInBillDetailService.page(params), HttpStatus.OK);
}
- /**
- * 查询库位
- * @param params 传入选中的出入库单据明细行数据
- */
- @PostMapping( "/queryInventoryInfo")
- @Log("查询库位")
- public ResponseEntity< List> queryInventoryInfo(@RequestBody EasOutInBillDetailVO params) {
- return new ResponseEntity<>(easOutInBillDetailService.queryInventoryInfo(params), HttpStatus.OK);
- }
-
/**
* 条件查询
@@ -64,7 +83,6 @@ public class EasOutInBillDetailController {
}
-
/**
* 新增数据
*
@@ -78,20 +96,6 @@ public class EasOutInBillDetailController {
}
- /**
- * 修改库位
- *
- * @param entity 传入修改对象包含主键,例:{"id":"1", "name":"熊二" }
- * @return 修改结果
- */
- @PostMapping("/update")
- @Log("修改")
- //@SaCheckPermission("@el.check(EasOutInBillDetail:edit')")
- public CommonResult update(@RequestBody EasOutInBillDetailVO entity) {
- return RestBusinessTemplate.execute(() -> easOutInBillDetailService.update(entity));
- }
-
-
/**
* 删除数据
*
diff --git a/lms/nladmin-system/nlsso-server/src/main/java/org/nl/wms/database/eas/controller/InventoryInfo.java b/lms/nladmin-system/nlsso-server/src/main/java/org/nl/wms/database/eas/controller/InventoryInfo.java
new file mode 100644
index 0000000..8e5aab6
--- /dev/null
+++ b/lms/nladmin-system/nlsso-server/src/main/java/org/nl/wms/database/eas/controller/InventoryInfo.java
@@ -0,0 +1,85 @@
+package org.nl.wms.database.eas.controller;
+
+import com.baomidou.mybatisplus.annotation.IdType;
+import com.baomidou.mybatisplus.annotation.TableId;
+import com.baomidou.mybatisplus.annotation.TableName;
+import com.baomidou.mybatisplus.extension.activerecord.Model;
+import lombok.Data;
+import lombok.EqualsAndHashCode;
+import lombok.ToString;
+
+import java.io.Serializable;
+
+
+/**
+ * {@code @Description:} (EasOutInBillDetail)实体类
+ * {@code @Author:} gbx
+ *
+ * @since 2024-02-22
+ */
+@Data
+@ToString
+@EqualsAndHashCode(callSuper = false)
+@SuppressWarnings("serial")
+@TableName("InventoryInfo")
+public class InventoryInfo extends Model {
+
+ private static final long serialVersionUID = -7739291296662381393L;
+ //@TableId(value = "id", type = IdType.NONE)
+
+ /**
+ * 主键id
+ */
+ @TableId(value = "id", type = IdType.NONE)
+ private String id;
+
+
+ /**
+ * 单据编号
+ */
+ private String djbh;
+
+
+ /**
+ * 物料编码
+ */
+ private String wlbm;
+
+
+ /**
+ * 物料名称
+ */
+ private String wlmc;
+
+
+ /**
+ * 库位编码
+ */
+ private String kwbm;
+
+
+ /**
+ * 库位名称
+ */
+ private String kwmc;
+
+
+ /**
+ * 库位类型
+ */
+ private String kwlx;
+
+
+ /**
+ * 数量
+ */
+ private String sl;
+
+
+
+
+
+}
+
+
+
diff --git a/lms/nladmin-system/nlsso-server/src/main/java/org/nl/wms/database/eas/dao/EasOutInBill.java b/lms/nladmin-system/nlsso-server/src/main/java/org/nl/wms/database/eas/dao/EasOutInBill.java
index 3f2dc96..18aa428 100644
--- a/lms/nladmin-system/nlsso-server/src/main/java/org/nl/wms/database/eas/dao/EasOutInBill.java
+++ b/lms/nladmin-system/nlsso-server/src/main/java/org/nl/wms/database/eas/dao/EasOutInBill.java
@@ -18,11 +18,7 @@ import com.baomidou.mybatisplus.extension.activerecord.Model;
* @since 2024-02-21
*/
@Data
-@Builder
-@NoArgsConstructor
-@AllArgsConstructor
-@EqualsAndHashCode(callSuper = false)
-@SuppressWarnings("serial")
+@EqualsAndHashCode(callSuper = true)
@TableName("eas_out_in_bill")
public class EasOutInBill extends Model {
@@ -33,7 +29,7 @@ public class EasOutInBill extends Model {
/**
* 主键id
*/
- @TableId(value = "id")
+ @TableId(value = "id", type = IdType.ASSIGN_UUID)
private String id;
@@ -133,6 +129,8 @@ public class EasOutInBill extends Model {
private String llr;
+
+
/**
* 获取主键值
*
diff --git a/lms/nladmin-system/nlsso-server/src/main/java/org/nl/wms/database/eas/dao/EasOutInBillDetail.java b/lms/nladmin-system/nlsso-server/src/main/java/org/nl/wms/database/eas/dao/EasOutInBillDetail.java
index 250480c..4248fc8 100644
--- a/lms/nladmin-system/nlsso-server/src/main/java/org/nl/wms/database/eas/dao/EasOutInBillDetail.java
+++ b/lms/nladmin-system/nlsso-server/src/main/java/org/nl/wms/database/eas/dao/EasOutInBillDetail.java
@@ -20,10 +20,7 @@ import com.baomidou.mybatisplus.extension.activerecord.Model;
* @since 2024-02-22
*/
@Data
-@Builder
@ToString
-@AllArgsConstructor
-@NoArgsConstructor
@EqualsAndHashCode(callSuper = false)
@SuppressWarnings("serial")
@TableName("eas_out_in_bill_detail")
@@ -36,7 +33,7 @@ public class EasOutInBillDetail extends Model {
/**
* 主键id
*/
- @TableId(value = "id", type = IdType.NONE)
+ @TableId(value = "id", type = IdType.ASSIGN_UUID)
private String id;
diff --git a/lms/nladmin-system/nlsso-server/src/main/java/org/nl/wms/database/eas/dao/HomeBillCounts.java b/lms/nladmin-system/nlsso-server/src/main/java/org/nl/wms/database/eas/dao/HomeBillCounts.java
index 94d9b66..aac6128 100644
--- a/lms/nladmin-system/nlsso-server/src/main/java/org/nl/wms/database/eas/dao/HomeBillCounts.java
+++ b/lms/nladmin-system/nlsso-server/src/main/java/org/nl/wms/database/eas/dao/HomeBillCounts.java
@@ -21,6 +21,17 @@ public class HomeBillCounts implements Serializable {
*/
private String djlx;
+ /**
+ * 单据类型
+ */
+ private String ywlx;
+
+
+ /**
+ * 单据类型名称
+ */
+ private String name;
+
/**
* 单据数量
diff --git a/lms/nladmin-system/nlsso-server/src/main/java/org/nl/wms/database/eas/dao/mapper/EasOutInBillDetailMapper.java b/lms/nladmin-system/nlsso-server/src/main/java/org/nl/wms/database/eas/dao/mapper/EasOutInBillDetailMapper.java
index 77fcf83..b8de59d 100644
--- a/lms/nladmin-system/nlsso-server/src/main/java/org/nl/wms/database/eas/dao/mapper/EasOutInBillDetailMapper.java
+++ b/lms/nladmin-system/nlsso-server/src/main/java/org/nl/wms/database/eas/dao/mapper/EasOutInBillDetailMapper.java
@@ -1,4 +1,5 @@
package org.nl.wms.database.eas.dao.mapper;
+import com.baomidou.dynamic.datasource.annotation.DS;
import io.lettuce.core.dynamic.annotation.Param;
import org.nl.wms.database.eas.dao.EasOutInBillDetail;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
@@ -18,4 +19,6 @@ public interface EasOutInBillDetailMapper extends BaseMapper
void insertBatch(List entities);
+ @DS("oracle")
+ List selectPageWithInventory();
}
diff --git a/lms/nladmin-system/nlsso-server/src/main/java/org/nl/wms/database/eas/dao/mapper/EasOutInBillMapper.java b/lms/nladmin-system/nlsso-server/src/main/java/org/nl/wms/database/eas/dao/mapper/EasOutInBillMapper.java
index 9b30acf..44663f7 100644
--- a/lms/nladmin-system/nlsso-server/src/main/java/org/nl/wms/database/eas/dao/mapper/EasOutInBillMapper.java
+++ b/lms/nladmin-system/nlsso-server/src/main/java/org/nl/wms/database/eas/dao/mapper/EasOutInBillMapper.java
@@ -2,6 +2,7 @@ package org.nl.wms.database.eas.dao.mapper;
import com.baomidou.dynamic.datasource.annotation.DS;
import org.nl.wms.database.eas.dao.EasOutInBill;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
+import org.nl.wms.database.eas.dao.EasOutInBillDetail;
import org.nl.wms.database.eas.dao.HomeBillCounts;
import java.util.List;
@@ -14,7 +15,7 @@ import java.util.List;
public interface EasOutInBillMapper extends BaseMapper {
@DS("oracle")
- List getEasBills();
+ List getEasBills();
//AND STR_TO_DATE( cjsj, '%Y-%m-%d' ) >= CURDATE() - INTERVAL 1 MONTH;
List queryExistBills();
diff --git a/lms/nladmin-system/nlsso-server/src/main/java/org/nl/wms/database/eas/dao/xml/EasOutInBillDetailMapper.xml b/lms/nladmin-system/nlsso-server/src/main/java/org/nl/wms/database/eas/dao/xml/EasOutInBillDetailMapper.xml
index a74b7d5..897ba44 100644
--- a/lms/nladmin-system/nlsso-server/src/main/java/org/nl/wms/database/eas/dao/xml/EasOutInBillDetailMapper.xml
+++ b/lms/nladmin-system/nlsso-server/src/main/java/org/nl/wms/database/eas/dao/xml/EasOutInBillDetailMapper.xml
@@ -1,17 +1,26 @@
+
-
- insert into eas_out_in_bill_detail(djid, djlx, ywlx, djbh, zzbm, zzmc, btbz, djzt, cjsj, ywrq, cjr, flid, flxh,
+
+ insert into eas_out_in_bill_detail(id,djid, djlx, ywlx, djbh, zzbm, zzmc, btbz, djzt, cjsj, ywrq, cjr, flid, flxh,
wlbm, wlmc, ggxh, pc, jldw, jbjldw, fzjldw, sl, jbsl, fzsl, ckbm, ckmc, kwbm, kwmc, flbz, ycsl, code, cksj, llr)
values
- (#{entity.djid}, #{entity.djlx}, #{entity.ywlx}, #{entity.djbh}, #{entity.zzbm}, #{entity.zzmc},
+ (#{entity.id},#{entity.djid}, #{entity.djlx}, #{entity.ywlx}, #{entity.djbh}, #{entity.zzbm}, #{entity.zzmc},
#{entity.btbz}, #{entity.djzt}, #{entity.cjsj}, #{entity.ywrq}, #{entity.cjr}, #{entity.flid},
#{entity.flxh}, #{entity.wlbm}, #{entity.wlmc}, #{entity.ggxh}, #{entity.pc}, #{entity.jldw},
#{entity.jbjldw}, #{entity.fzjldw}, #{entity.sl}, #{entity.jbsl}, #{entity.fzsl}, #{entity.ckbm},
diff --git a/lms/nladmin-system/nlsso-server/src/main/java/org/nl/wms/database/eas/dao/xml/EasOutInBillMapper.xml b/lms/nladmin-system/nlsso-server/src/main/java/org/nl/wms/database/eas/dao/xml/EasOutInBillMapper.xml
index 2cb1678..4c42a05 100644
--- a/lms/nladmin-system/nlsso-server/src/main/java/org/nl/wms/database/eas/dao/xml/EasOutInBillMapper.xml
+++ b/lms/nladmin-system/nlsso-server/src/main/java/org/nl/wms/database/eas/dao/xml/EasOutInBillMapper.xml
@@ -3,9 +3,9 @@
-