parent
4908940577
commit
e69954942c
@ -0,0 +1,70 @@
|
||||
######################################################################
|
||||
# Build Tools
|
||||
|
||||
.gradle
|
||||
/build/
|
||||
!gradle/wrapper/gradle-wrapper.jar
|
||||
|
||||
ecerp-api/target/
|
||||
framework/**/target
|
||||
!.mvn/wrapper/maven-wrapper.jar
|
||||
|
||||
######################################################################
|
||||
# IDE
|
||||
|
||||
### STS ###
|
||||
.apt_generated
|
||||
.classpath
|
||||
.factorypath
|
||||
.project
|
||||
.settings
|
||||
.springBeans
|
||||
|
||||
### IntelliJ IDEA ###
|
||||
.idea
|
||||
*.iws
|
||||
*.iml
|
||||
*.ipr
|
||||
.vscode
|
||||
|
||||
### JRebel ###
|
||||
rebel.xml
|
||||
|
||||
### NetBeans ###
|
||||
nbproject/private/
|
||||
build/*
|
||||
nbbuild/
|
||||
dist/
|
||||
nbdist/
|
||||
.nb-gradle/
|
||||
|
||||
######################################################################
|
||||
# Others
|
||||
*.log
|
||||
*.xml.versionsBackup
|
||||
*.swp
|
||||
|
||||
!*/build/*.java
|
||||
!*/build/*.html
|
||||
!*/build/*.xml
|
||||
=======
|
||||
# Build and Release Folders
|
||||
bin-debug/
|
||||
bin-release/
|
||||
[Oo]bj/
|
||||
#[Bb]in/
|
||||
logs
|
||||
|
||||
# Other files and folders
|
||||
.settings/
|
||||
|
||||
# Executables
|
||||
*.swf
|
||||
*.air
|
||||
*.ipa
|
||||
*.apk
|
||||
|
||||
# Project files, i.e. `.project`, `.actionScriptProperties` and `.flexProperties`
|
||||
# should NOT be excluded as they contain compiler settings and other important
|
||||
# information for Eclipse / Flash Builder.
|
||||
bak/
|
@ -0,0 +1,21 @@
|
||||
MIT License
|
||||
|
||||
Copyright (c) 2023 启航
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
of this software and associated documentation files (the "Software"), to deal
|
||||
in the Software without restriction, including without limitation the rights
|
||||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||
copies of the Software, and to permit persons to whom the Software is
|
||||
furnished to do so, subject to the following conditions:
|
||||
|
||||
The above copyright notice and this permission notice shall be included in all
|
||||
copies or substantial portions of the Software.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
||||
SOFTWARE.
|
@ -0,0 +1,38 @@
|
||||
target/
|
||||
!.mvn/wrapper/maven-wrapper.jar
|
||||
!**/src/main/**/target/
|
||||
!**/src/test/**/target/
|
||||
|
||||
### IntelliJ IDEA ###
|
||||
.idea/modules.xml
|
||||
.idea/jarRepositories.xml
|
||||
.idea/compiler.xml
|
||||
.idea/libraries/
|
||||
*.iws
|
||||
*.iml
|
||||
*.ipr
|
||||
|
||||
### Eclipse ###
|
||||
.apt_generated
|
||||
.classpath
|
||||
.factorypath
|
||||
.project
|
||||
.settings
|
||||
.springBeans
|
||||
.sts4-cache
|
||||
|
||||
### NetBeans ###
|
||||
/nbproject/private/
|
||||
/nbbuild/
|
||||
/dist/
|
||||
/nbdist/
|
||||
/.nb-gradle/
|
||||
build/
|
||||
!**/src/main/**/build/
|
||||
!**/src/test/**/build/
|
||||
|
||||
### VS Code ###
|
||||
.vscode/
|
||||
|
||||
### Mac OS ###
|
||||
.DS_Store
|
@ -0,0 +1,7 @@
|
||||
FROM openjdk:17-jdk-slim
|
||||
|
||||
WORKDIR /app
|
||||
|
||||
COPY ecerp-api-0.2.0.jar .
|
||||
|
||||
CMD ["java", "-jar", "ecerp-api-0.2.0.jar"]
|
@ -0,0 +1,193 @@
|
||||
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
<parent>
|
||||
<groupId>cn.qihangerp</groupId>
|
||||
<artifactId>qihangerp</artifactId>
|
||||
<version>2.0.1</version>
|
||||
</parent>
|
||||
<artifactId>api</artifactId>
|
||||
<packaging>jar</packaging>
|
||||
<version>2.0.1</version>
|
||||
|
||||
<name>api</name>
|
||||
<url>http://maven.apache.org</url>
|
||||
|
||||
<properties>
|
||||
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
|
||||
</properties>
|
||||
|
||||
<dependencies>
|
||||
<dependency>
|
||||
<groupId>org.springframework.boot</groupId>
|
||||
<artifactId>spring-boot-starter-web</artifactId>
|
||||
<exclusions>
|
||||
<exclusion>
|
||||
<groupId>org.springframework.boot</groupId>
|
||||
<artifactId>spring-boot-starter-tomcat</artifactId>
|
||||
</exclusion>
|
||||
</exclusions>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.springframework.boot</groupId>
|
||||
<artifactId>spring-boot-starter-undertow</artifactId>
|
||||
</dependency>
|
||||
<!-- spring security 安全认证 -->
|
||||
<dependency>
|
||||
<groupId>org.springframework.boot</groupId>
|
||||
<artifactId>spring-boot-starter-security</artifactId>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>com.baomidou</groupId>
|
||||
<artifactId>mybatis-plus-boot-starter</artifactId>
|
||||
<version>3.5.3.1</version>
|
||||
</dependency>
|
||||
<!-- <dependency>-->
|
||||
<!-- <groupId>com.h2database</groupId>-->
|
||||
<!-- <artifactId>h2</artifactId>-->
|
||||
<!-- </dependency>-->
|
||||
<!-- <dependency>-->
|
||||
<!-- <groupId>org.postgresql</groupId>-->
|
||||
<!-- <artifactId>postgresql</artifactId>-->
|
||||
<!-- <version>42.7.3</version>-->
|
||||
<!-- </dependency>-->
|
||||
|
||||
<dependency>
|
||||
<groupId>mysql</groupId>
|
||||
<artifactId>mysql-connector-java</artifactId>
|
||||
<version>${mysql.version}</version>
|
||||
</dependency>
|
||||
<!-- nacos配置中心-->
|
||||
<dependency>
|
||||
<groupId>com.alibaba.boot</groupId>
|
||||
<artifactId>nacos-config-spring-boot-starter</artifactId>
|
||||
<version>0.2.12</version>
|
||||
</dependency>
|
||||
|
||||
<dependency>
|
||||
<groupId>io.minio</groupId>
|
||||
<artifactId>minio</artifactId>
|
||||
<version>8.5.7</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.projectlombok</groupId>
|
||||
<artifactId>lombok</artifactId>
|
||||
<version>1.18.30</version>
|
||||
<scope>provided</scope>
|
||||
</dependency>
|
||||
<!-- <dependency>-->
|
||||
<!-- <groupId>log4j</groupId>-->
|
||||
<!-- <artifactId>log4j</artifactId>-->
|
||||
<!-- <version>1.2.17</version>-->
|
||||
<!-- </dependency>-->
|
||||
<!-- <dependency>-->
|
||||
<!-- <groupId>org.slf4j</groupId>-->
|
||||
<!-- <artifactId>slf4j-api</artifactId>-->
|
||||
<!-- <version>1.7.25</version>-->
|
||||
<!-- </dependency>-->
|
||||
<!-- <dependency>-->
|
||||
<!-- <groupId>org.slf4j</groupId>-->
|
||||
<!-- <artifactId>slf4j-log4j12</artifactId>-->
|
||||
<!-- <version>1.7.25</version>-->
|
||||
<!-- <scope>test</scope>-->
|
||||
<!-- </dependency>-->
|
||||
|
||||
|
||||
<!-- <dependency>-->
|
||||
<!-- <groupId>org.apache.poi</groupId>-->
|
||||
<!-- <artifactId>poi</artifactId>-->
|
||||
<!-- <version>5.2.5</version>-->
|
||||
<!-- </dependency>-->
|
||||
|
||||
<!-- <dependency>-->
|
||||
<!-- <groupId>org.apache.poi</groupId>-->
|
||||
<!-- <artifactId>poi-ooxml</artifactId>-->
|
||||
<!-- <version>5.2.5</version>-->
|
||||
<!-- </dependency>-->
|
||||
|
||||
<dependency>
|
||||
<groupId>org.aspectj</groupId>
|
||||
<artifactId>aspectjweaver</artifactId>
|
||||
<version>1.9.20</version>
|
||||
<scope>runtime</scope>
|
||||
</dependency>
|
||||
<!-- <!– https://mvnrepository.com/artifact/us.codecraft/webmagic-core –>-->
|
||||
<!-- <dependency>-->
|
||||
<!-- <groupId>us.codecraft</groupId>-->
|
||||
<!-- <artifactId>webmagic-core</artifactId>-->
|
||||
<!-- <version>0.10.0</version>-->
|
||||
<!-- </dependency>-->
|
||||
|
||||
<dependency>
|
||||
<groupId>io.netty</groupId>
|
||||
<artifactId>netty-all</artifactId>
|
||||
<version>4.1.109.Final</version>
|
||||
</dependency>
|
||||
|
||||
<!-- 引入框架 -->
|
||||
<dependency>
|
||||
<groupId>cn.qihangerp</groupId>
|
||||
<artifactId>system</artifactId>
|
||||
<version>2.0.1</version>
|
||||
</dependency>
|
||||
|
||||
<dependency>
|
||||
<groupId>cn.qihangerp.api</groupId>
|
||||
<artifactId>tao-api</artifactId>
|
||||
<version>2.0.1</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>cn.qihangerp.api</groupId>
|
||||
<artifactId>jd-api</artifactId>
|
||||
<version>2.0.2</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>cn.qihangerp.api</groupId>
|
||||
<artifactId>pdd-api</artifactId>
|
||||
<version>2.0.2</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>cn.qihangerp.api</groupId>
|
||||
<artifactId>dou-api</artifactId>
|
||||
<version>2.0.2</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>cn.qihangerp.api</groupId>
|
||||
<artifactId>wei-api</artifactId>
|
||||
<version>2.0.2</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>cn.qihangerp.api</groupId>
|
||||
<artifactId>kwai-api</artifactId>
|
||||
<version>0.4.28</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>cn.qihangerp.api</groupId>
|
||||
<artifactId>xhs-api</artifactId>
|
||||
<version>2.0.2</version>
|
||||
</dependency>
|
||||
|
||||
</dependencies>
|
||||
|
||||
<build>
|
||||
<plugins>
|
||||
<plugin>
|
||||
<groupId>org.springframework.boot</groupId>
|
||||
<artifactId>spring-boot-maven-plugin</artifactId>
|
||||
<configuration>
|
||||
<mainClass>cn.qihangerp.api.ApiApplication</mainClass>
|
||||
<includeSystemScope>true</includeSystemScope>
|
||||
</configuration>
|
||||
<executions>
|
||||
<execution>
|
||||
<goals>
|
||||
<goal>repackage</goal>
|
||||
</goals>
|
||||
</execution>
|
||||
</executions>
|
||||
</plugin>
|
||||
</plugins>
|
||||
</build>
|
||||
|
||||
|
||||
</project>
|
@ -0,0 +1,61 @@
|
||||
package cn.qihangerp.api;
|
||||
|
||||
|
||||
//import com.alibaba.nacos.spring.context.annotation.config.NacosPropertySource;
|
||||
import lombok.extern.java.Log;
|
||||
import lombok.extern.slf4j.Slf4j;
|
||||
import org.springframework.boot.SpringApplication;
|
||||
import org.springframework.boot.autoconfigure.SpringBootApplication;
|
||||
import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;
|
||||
import org.springframework.boot.builder.SpringApplicationBuilder;
|
||||
import org.springframework.boot.web.servlet.support.SpringBootServletInitializer;
|
||||
import org.springframework.context.annotation.ComponentScan;
|
||||
import org.springframework.transaction.annotation.EnableTransactionManagement;
|
||||
|
||||
/**
|
||||
* 启动程序
|
||||
*
|
||||
* @author qihang
|
||||
*/
|
||||
// @ComponentScan("com.zhijian")
|
||||
@Log
|
||||
//@NacosPropertySource(dataId = "ecerp-dev.yaml", autoRefreshed = true)
|
||||
//@EnableTransactionManagement
|
||||
//@SpringBootApplication(exclude = { DataSourceAutoConfiguration.class })
|
||||
@ComponentScan("cn.qihangerp")
|
||||
@SpringBootApplication
|
||||
public class ApiApplication {
|
||||
public static void main(String[] args) {
|
||||
// System.setProperty("spring.devtools.restart.enabled", "false");
|
||||
SpringApplication.run(ApiApplication.class, args);
|
||||
|
||||
log.info("启航电商ERP系统启动成功 \n" +
|
||||
" ____ _____ _ _ _ _ _____ ______ _____ _____ \n" +
|
||||
" / __ \\ |_ _|| | | | /\\ | \\ | | / ____|| ____|| __ \\ | __ \\ \n" +
|
||||
" | | | | | | | |__| | / \\ | \\| || | __ | |__ | |__) || |__) |\n" +
|
||||
" | | | | | | | __ | / /\\ \\ | . ` || | |_ || __| | _ / | ___/ \n" +
|
||||
" | |__| | _| |_ | | | | / ____ \\ | |\\ || |__| || |____ | | \\ \\ | | \n" +
|
||||
" \\___\\_\\|_____||_| |_|/_/ \\_\\|_| \\_| \\_____||______||_| \\_\\|_| \n");
|
||||
// System.out.println("启航电商ERP系统启动成功 \n" +
|
||||
// " ____ _____ _ _ _ _ _____ ______ _____ _____ \n" +
|
||||
// " / __ \\ |_ _|| | | | /\\ | \\ | | / ____|| ____|| __ \\ | __ \\ \n" +
|
||||
// " | | | | | | | |__| | / \\ | \\| || | __ | |__ | |__) || |__) |\n" +
|
||||
// " | | | | | | | __ | / /\\ \\ | . ` || | |_ || __| | _ / | ___/ \n" +
|
||||
// " | |__| | _| |_ | | | | / ____ \\ | |\\ || |__| || |____ | | \\ \\ | | \n" +
|
||||
// " \\___\\_\\|_____||_| |_|/_/ \\_\\|_| \\_| \\_____||______||_| \\_\\|_|
|
||||
// \n");
|
||||
|
||||
// System.out.println("(♥◠‿◠)ノ゙ 启航电商ERP系统启动成功 ლ(´ڡ`ლ)゙ \n" +
|
||||
// " .-------. ____ __ \n" +
|
||||
// " | _ _ \\ \\ \\ / / \n" +
|
||||
// " | ( ' ) | \\ _. / ' \n" +
|
||||
// " |(_ o _) / _( )_ .' \n" +
|
||||
// " | (_,_).' __ ___(_ o _)' \n" +
|
||||
// " | |\\ \\ | || |(_,_)' \n" +
|
||||
// " | | \\ `' /| `-' / \n" +
|
||||
// " | | \\ / \\ / \n" +
|
||||
// " ''-' `'-' `-..-' ");
|
||||
}
|
||||
|
||||
|
||||
}
|
@ -0,0 +1,27 @@
|
||||
//package cn.qihangerp.api;
|
||||
//
|
||||
//import org.springframework.context.annotation.Bean;
|
||||
//import org.springframework.context.annotation.Configuration;
|
||||
//import org.springframework.jdbc.datasource.DataSourceTransactionManager;
|
||||
//import org.springframework.transaction.PlatformTransactionManager;
|
||||
//import org.springframework.transaction.annotation.EnableTransactionManagement;
|
||||
//
|
||||
//import javax.sql.DataSource;
|
||||
//
|
||||
//@Configuration
|
||||
//@EnableTransactionManagement
|
||||
//public class MyBatisConfig {
|
||||
//
|
||||
// private final DataSource dataSource;
|
||||
//
|
||||
// public MyBatisConfig(DataSource dataSource) {
|
||||
// this.dataSource = dataSource;
|
||||
// }
|
||||
//
|
||||
// @Bean
|
||||
// public PlatformTransactionManager transactionManager() {
|
||||
// return new DataSourceTransactionManager(dataSource);
|
||||
// }
|
||||
//}
|
||||
//
|
||||
//
|
@ -0,0 +1,19 @@
|
||||
package cn.qihangerp.api;
|
||||
|
||||
import com.baomidou.mybatisplus.annotation.DbType;
|
||||
import com.baomidou.mybatisplus.extension.plugins.MybatisPlusInterceptor;
|
||||
import com.baomidou.mybatisplus.extension.plugins.inner.PaginationInnerInterceptor;
|
||||
import org.mybatis.spring.annotation.MapperScan;
|
||||
import org.springframework.context.annotation.Bean;
|
||||
import org.springframework.context.annotation.Configuration;
|
||||
|
||||
@MapperScan(basePackages = {"cn.qihangerp.api.mapper","cn.qihangerp.system.mapper", "cn.qihangerp.open.tao.mapper","cn.qihangerp.api.pdd.mapper","cn.qihangerp.api.dou.mapper","cn.qihangerp.api.xhs.mapper","cn.qihangerp.api.wei.mapper","cn.qihangerp.api.jd.mapper"})
|
||||
@Configuration
|
||||
public class MybatisPlusConfig {
|
||||
@Bean
|
||||
public MybatisPlusInterceptor mybatisPlusInterceptor() {
|
||||
MybatisPlusInterceptor interceptor = new MybatisPlusInterceptor();
|
||||
interceptor.addInnerInterceptor(new PaginationInnerInterceptor(DbType.MYSQL));
|
||||
return interceptor;
|
||||
}
|
||||
}
|
@ -0,0 +1,63 @@
|
||||
//package cn.qihangerp.api.common;
|
||||
///**
|
||||
// * 描述:
|
||||
// * 结果枚举
|
||||
// *
|
||||
// * @author qlp
|
||||
// * @date 2019-04-10 10:31
|
||||
// */
|
||||
//public enum EnumResultVo {
|
||||
// SUCCESS("成功", 0),
|
||||
// NotFound("NotFound", 404),//没有找到
|
||||
// Unable("Unable", 403),//无法处理
|
||||
// NotLogin("未登录", 400),//未登录
|
||||
// Cancelled("Cancelled", 401),//已经取消的
|
||||
// StateError("StateError", 402),//状态错误
|
||||
// Locking("Locking", 405),//锁定,不能操作
|
||||
// NumberLess("数量不足", 406),
|
||||
// StatusError("状态不正确", 407),
|
||||
// DataError("DataError", 500),//数据错误,不能操作
|
||||
// DataExist("DataExist", 800),//数据已存在,不能操作
|
||||
// ParamsError("参数错误", 505),//参数错误
|
||||
// HasAssociatedData("存在关联数据", 501),//存在关联数据
|
||||
// Exist("已存在相同的数据", 502),//已存在相同的数据
|
||||
// SystemException("系统异常", 505),//系统异常
|
||||
// TokenFail("token过期", 1401),//ali token过期
|
||||
// Fail("失败", 1000);
|
||||
//
|
||||
// private String name;
|
||||
// private int index;
|
||||
//
|
||||
// // 构造方法
|
||||
// private EnumResultVo(String name, int index) {
|
||||
// this.name = name;
|
||||
// this.index = index;
|
||||
// }
|
||||
//
|
||||
// // 普通方法
|
||||
// public static String getName(int index) {
|
||||
// for (EnumResultVo c : EnumResultVo.values()) {
|
||||
// if (c.getIndex() == index) {
|
||||
// return c.name;
|
||||
// }
|
||||
// }
|
||||
// return null;
|
||||
// }
|
||||
//
|
||||
// // get set 方法
|
||||
// public String getName() {
|
||||
// return name;
|
||||
// }
|
||||
//
|
||||
// public void setName(String name) {
|
||||
// this.name = name;
|
||||
// }
|
||||
//
|
||||
// public int getIndex() {
|
||||
// return index;
|
||||
// }
|
||||
//
|
||||
// public void setIndex(int index) {
|
||||
// this.index = index;
|
||||
// }
|
||||
//}
|
@ -0,0 +1,9 @@
|
||||
package cn.qihangerp.api.common;
|
||||
|
||||
import lombok.Data;
|
||||
|
||||
@Data
|
||||
public class PageReq {
|
||||
private Integer currentPage;
|
||||
private Integer pageSize;
|
||||
}
|
@ -0,0 +1,91 @@
|
||||
package cn.qihangerp.api.controller;
|
||||
|
||||
import cn.qihangerp.api.domain.ErpSaleAfterInfo;
|
||||
import cn.qihangerp.api.service.ErpSaleAfterInfoService;
|
||||
import cn.qihangerp.common.PageQuery;
|
||||
import cn.qihangerp.common.PageResult;
|
||||
import cn.qihangerp.core.controller.BaseController;
|
||||
import cn.qihangerp.domain.AjaxResult;
|
||||
import cn.qihangerp.core.page.TableDataInfo;
|
||||
import lombok.AllArgsConstructor;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
|
||||
import java.util.Date;
|
||||
|
||||
@AllArgsConstructor
|
||||
@RestController
|
||||
@RequestMapping("/afterSale")
|
||||
public class AfterSaleController extends BaseController {
|
||||
private final ErpSaleAfterInfoService afterInfoService;
|
||||
/**
|
||||
* 查询列表
|
||||
*/
|
||||
@GetMapping("/ship_again_list")
|
||||
public TableDataInfo ship_again_list(ErpSaleAfterInfo bo, PageQuery pageQuery)
|
||||
{
|
||||
bo.setType(80);
|
||||
PageResult<ErpSaleAfterInfo> result = afterInfoService.queryPageList(bo, pageQuery);
|
||||
return getDataTable(result);
|
||||
}
|
||||
|
||||
@PostMapping("/shipAgain")
|
||||
public AjaxResult shipAgainAdd(@RequestBody ErpSaleAfterInfo addBo)
|
||||
{
|
||||
addBo.setType(80);
|
||||
addBo.setCreateTime(new Date());
|
||||
addBo.setCreateBy("手动添加");
|
||||
addBo.setStatus(1);
|
||||
var result = afterInfoService.save(addBo);
|
||||
return toAjax(result);
|
||||
}
|
||||
|
||||
@PutMapping("/shipAgain/complete/{id}")
|
||||
public AjaxResult completeShipAgain(@PathVariable Long id)
|
||||
{
|
||||
ErpSaleAfterInfo complete = new ErpSaleAfterInfo();
|
||||
complete.setId(id.toString());
|
||||
complete.setStatus(2);
|
||||
complete.setUpdateTime(new Date());
|
||||
complete.setUpdateBy("手动完成");
|
||||
afterInfoService.updateById(complete);
|
||||
return toAjax(1);
|
||||
}
|
||||
|
||||
|
||||
@GetMapping("/returned_list")
|
||||
public TableDataInfo returned_list(ErpSaleAfterInfo bo, PageQuery pageQuery)
|
||||
{
|
||||
bo.setType(10);
|
||||
PageResult<ErpSaleAfterInfo> result = afterInfoService.queryPageList(bo, pageQuery);
|
||||
return getDataTable(result);
|
||||
}
|
||||
|
||||
@GetMapping("/exchange_list")
|
||||
public TableDataInfo exchange_list(ErpSaleAfterInfo bo, PageQuery pageQuery)
|
||||
{
|
||||
bo.setType(20);
|
||||
PageResult<ErpSaleAfterInfo> result = afterInfoService.queryPageList(bo, pageQuery);
|
||||
return getDataTable(result);
|
||||
}
|
||||
|
||||
@PostMapping("/exchange")
|
||||
public AjaxResult exchangeAdd(@RequestBody ErpSaleAfterInfo addBo)
|
||||
{
|
||||
addBo.setType(20);
|
||||
addBo.setCreateTime(new Date());
|
||||
addBo.setCreateBy("手动添加");
|
||||
addBo.setStatus(1);
|
||||
var result = afterInfoService.save(addBo);
|
||||
return toAjax(result);
|
||||
}
|
||||
|
||||
@GetMapping("/intercept_list")
|
||||
public TableDataInfo intercept_list(ErpSaleAfterInfo bo, PageQuery pageQuery)
|
||||
{
|
||||
bo.setType(99);
|
||||
PageResult<ErpSaleAfterInfo> result = afterInfoService.queryPageList(bo, pageQuery);
|
||||
return getDataTable(result);
|
||||
}
|
||||
|
||||
|
||||
}
|
@ -0,0 +1,104 @@
|
||||
package cn.qihangerp.api.controller;
|
||||
|
||||
import java.util.List;
|
||||
import jakarta.servlet.http.HttpServletResponse;
|
||||
import org.springframework.security.access.prepost.PreAuthorize;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.web.bind.annotation.GetMapping;
|
||||
import org.springframework.web.bind.annotation.PostMapping;
|
||||
import org.springframework.web.bind.annotation.PutMapping;
|
||||
import org.springframework.web.bind.annotation.DeleteMapping;
|
||||
import org.springframework.web.bind.annotation.PathVariable;
|
||||
import org.springframework.web.bind.annotation.RequestBody;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.bind.annotation.RestController;
|
||||
import cn.qihangerp.common.annotation.Log;
|
||||
import cn.qihangerp.core.controller.BaseController;
|
||||
import cn.qihangerp.domain.AjaxResult;
|
||||
import cn.qihangerp.common.enums.BusinessType;
|
||||
import cn.qihangerp.api.domain.ErpGoodsBrand;
|
||||
import cn.qihangerp.api.service.IErpGoodsBrandService;
|
||||
import cn.qihangerp.common.utils.poi.ExcelUtil;
|
||||
import cn.qihangerp.core.page.TableDataInfo;
|
||||
|
||||
/**
|
||||
* 商品品牌Controller
|
||||
*
|
||||
* @author qihang
|
||||
* @date 2023-12-29
|
||||
*/
|
||||
@RestController
|
||||
@RequestMapping("/goods/brand")
|
||||
public class ErpGoodsBrandController extends BaseController
|
||||
{
|
||||
@Autowired
|
||||
private IErpGoodsBrandService erpGoodsBrandService;
|
||||
|
||||
/**
|
||||
* 查询商品品牌列表
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('goods:brand:list')")
|
||||
@GetMapping("/list")
|
||||
public TableDataInfo list(ErpGoodsBrand erpGoodsBrand)
|
||||
{
|
||||
startPage();
|
||||
List<ErpGoodsBrand> list = erpGoodsBrandService.selectErpGoodsBrandList(erpGoodsBrand);
|
||||
return getDataTable(list);
|
||||
}
|
||||
|
||||
/**
|
||||
* 导出商品品牌列表
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('goods:brand:export')")
|
||||
@Log(title = "商品品牌", businessType = BusinessType.EXPORT)
|
||||
@PostMapping("/export")
|
||||
public void export(HttpServletResponse response, ErpGoodsBrand erpGoodsBrand)
|
||||
{
|
||||
List<ErpGoodsBrand> list = erpGoodsBrandService.selectErpGoodsBrandList(erpGoodsBrand);
|
||||
ExcelUtil<ErpGoodsBrand> util = new ExcelUtil<ErpGoodsBrand>(ErpGoodsBrand.class);
|
||||
util.exportExcel(response, list, "商品品牌数据");
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取商品品牌详细信息
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('goods:brand:query')")
|
||||
@GetMapping(value = "/{id}")
|
||||
public AjaxResult getInfo(@PathVariable("id") Long id)
|
||||
{
|
||||
return success(erpGoodsBrandService.selectErpGoodsBrandById(id));
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增商品品牌
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('goods:brand:add')")
|
||||
@Log(title = "商品品牌", businessType = BusinessType.INSERT)
|
||||
@PostMapping
|
||||
public AjaxResult add(@RequestBody ErpGoodsBrand erpGoodsBrand)
|
||||
{
|
||||
return toAjax(erpGoodsBrandService.insertErpGoodsBrand(erpGoodsBrand));
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改商品品牌
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('goods:brand:edit')")
|
||||
@Log(title = "商品品牌", businessType = BusinessType.UPDATE)
|
||||
@PutMapping
|
||||
public AjaxResult edit(@RequestBody ErpGoodsBrand erpGoodsBrand)
|
||||
{
|
||||
return toAjax(erpGoodsBrandService.updateErpGoodsBrand(erpGoodsBrand));
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除商品品牌
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('goods:brand:remove')")
|
||||
@Log(title = "商品品牌", businessType = BusinessType.DELETE)
|
||||
@DeleteMapping("/{ids}")
|
||||
public AjaxResult remove(@PathVariable Long[] ids)
|
||||
{
|
||||
return toAjax(erpGoodsBrandService.deleteErpGoodsBrandByIds(ids));
|
||||
}
|
||||
}
|
@ -0,0 +1,104 @@
|
||||
package cn.qihangerp.api.controller;
|
||||
|
||||
import java.util.List;
|
||||
import jakarta.servlet.http.HttpServletResponse;
|
||||
import org.springframework.security.access.prepost.PreAuthorize;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.web.bind.annotation.GetMapping;
|
||||
import org.springframework.web.bind.annotation.PostMapping;
|
||||
import org.springframework.web.bind.annotation.PutMapping;
|
||||
import org.springframework.web.bind.annotation.DeleteMapping;
|
||||
import org.springframework.web.bind.annotation.PathVariable;
|
||||
import org.springframework.web.bind.annotation.RequestBody;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.bind.annotation.RestController;
|
||||
import cn.qihangerp.common.annotation.Log;
|
||||
import cn.qihangerp.core.controller.BaseController;
|
||||
import cn.qihangerp.domain.AjaxResult;
|
||||
import cn.qihangerp.common.enums.BusinessType;
|
||||
import cn.qihangerp.api.domain.ErpGoodsCategoryAttribute;
|
||||
import cn.qihangerp.api.service.IErpGoodsCategoryAttributeService;
|
||||
import cn.qihangerp.common.utils.poi.ExcelUtil;
|
||||
import cn.qihangerp.core.page.TableDataInfo;
|
||||
|
||||
/**
|
||||
* 商品分类属性Controller
|
||||
*
|
||||
* @author qihang
|
||||
* @date 2023-12-29
|
||||
*/
|
||||
@RestController
|
||||
@RequestMapping("/goods/categoryAttribute")
|
||||
public class ErpGoodsCategoryAttributeController extends BaseController
|
||||
{
|
||||
@Autowired
|
||||
private IErpGoodsCategoryAttributeService erpGoodsCategoryAttributeService;
|
||||
|
||||
/**
|
||||
* 查询商品分类属性列表
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('goods:categoryAttribute:list')")
|
||||
@GetMapping("/list")
|
||||
public TableDataInfo list(ErpGoodsCategoryAttribute erpGoodsCategoryAttribute)
|
||||
{
|
||||
startPage();
|
||||
List<ErpGoodsCategoryAttribute> list = erpGoodsCategoryAttributeService.selectErpGoodsCategoryAttributeList(erpGoodsCategoryAttribute);
|
||||
return getDataTable(list);
|
||||
}
|
||||
|
||||
/**
|
||||
* 导出商品分类属性列表
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('goods:categoryAttribute:export')")
|
||||
@Log(title = "商品分类属性", businessType = BusinessType.EXPORT)
|
||||
@PostMapping("/export")
|
||||
public void export(HttpServletResponse response, ErpGoodsCategoryAttribute erpGoodsCategoryAttribute)
|
||||
{
|
||||
List<ErpGoodsCategoryAttribute> list = erpGoodsCategoryAttributeService.selectErpGoodsCategoryAttributeList(erpGoodsCategoryAttribute);
|
||||
ExcelUtil<ErpGoodsCategoryAttribute> util = new ExcelUtil<ErpGoodsCategoryAttribute>(ErpGoodsCategoryAttribute.class);
|
||||
util.exportExcel(response, list, "商品分类属性数据");
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取商品分类属性详细信息
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('goods:categoryAttribute:query')")
|
||||
@GetMapping(value = "/{id}")
|
||||
public AjaxResult getInfo(@PathVariable("id") Long id)
|
||||
{
|
||||
return success(erpGoodsCategoryAttributeService.selectErpGoodsCategoryAttributeById(id));
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增商品分类属性
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('goods:categoryAttribute:add')")
|
||||
@Log(title = "商品分类属性", businessType = BusinessType.INSERT)
|
||||
@PostMapping
|
||||
public AjaxResult add(@RequestBody ErpGoodsCategoryAttribute erpGoodsCategoryAttribute)
|
||||
{
|
||||
return toAjax(erpGoodsCategoryAttributeService.insertErpGoodsCategoryAttribute(erpGoodsCategoryAttribute));
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改商品分类属性
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('goods:categoryAttribute:edit')")
|
||||
@Log(title = "商品分类属性", businessType = BusinessType.UPDATE)
|
||||
@PutMapping
|
||||
public AjaxResult edit(@RequestBody ErpGoodsCategoryAttribute erpGoodsCategoryAttribute)
|
||||
{
|
||||
return toAjax(erpGoodsCategoryAttributeService.updateErpGoodsCategoryAttribute(erpGoodsCategoryAttribute));
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除商品分类属性
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('goods:categoryAttribute:remove')")
|
||||
@Log(title = "商品分类属性", businessType = BusinessType.DELETE)
|
||||
@DeleteMapping("/{ids}")
|
||||
public AjaxResult remove(@PathVariable Long[] ids)
|
||||
{
|
||||
return toAjax(erpGoodsCategoryAttributeService.deleteErpGoodsCategoryAttributeByIds(ids));
|
||||
}
|
||||
}
|
@ -0,0 +1,104 @@
|
||||
package cn.qihangerp.api.controller;
|
||||
|
||||
import java.util.List;
|
||||
import jakarta.servlet.http.HttpServletResponse;
|
||||
import org.springframework.security.access.prepost.PreAuthorize;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.web.bind.annotation.GetMapping;
|
||||
import org.springframework.web.bind.annotation.PostMapping;
|
||||
import org.springframework.web.bind.annotation.PutMapping;
|
||||
import org.springframework.web.bind.annotation.DeleteMapping;
|
||||
import org.springframework.web.bind.annotation.PathVariable;
|
||||
import org.springframework.web.bind.annotation.RequestBody;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.bind.annotation.RestController;
|
||||
import cn.qihangerp.common.annotation.Log;
|
||||
import cn.qihangerp.core.controller.BaseController;
|
||||
import cn.qihangerp.domain.AjaxResult;
|
||||
import cn.qihangerp.common.enums.BusinessType;
|
||||
import cn.qihangerp.api.domain.ErpGoodsCategoryAttributeValue;
|
||||
import cn.qihangerp.api.service.IErpGoodsCategoryAttributeValueService;
|
||||
import cn.qihangerp.common.utils.poi.ExcelUtil;
|
||||
import cn.qihangerp.core.page.TableDataInfo;
|
||||
|
||||
/**
|
||||
* 商品分类属性值Controller
|
||||
*
|
||||
* @author qihang
|
||||
* @date 2023-12-29
|
||||
*/
|
||||
@RestController
|
||||
@RequestMapping("/goods/categoryAttributeValue")
|
||||
public class ErpGoodsCategoryAttributeValueController extends BaseController
|
||||
{
|
||||
@Autowired
|
||||
private IErpGoodsCategoryAttributeValueService erpGoodsCategoryAttributeValueService;
|
||||
|
||||
/**
|
||||
* 查询商品分类属性值列表
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('goods:categoryAttributeValue:list')")
|
||||
@GetMapping("/list")
|
||||
public TableDataInfo list(ErpGoodsCategoryAttributeValue erpGoodsCategoryAttributeValue)
|
||||
{
|
||||
startPage();
|
||||
List<ErpGoodsCategoryAttributeValue> list = erpGoodsCategoryAttributeValueService.selectErpGoodsCategoryAttributeValueList(erpGoodsCategoryAttributeValue);
|
||||
return getDataTable(list);
|
||||
}
|
||||
|
||||
/**
|
||||
* 导出商品分类属性值列表
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('goods:categoryAttributeValue:export')")
|
||||
@Log(title = "商品分类属性值", businessType = BusinessType.EXPORT)
|
||||
@PostMapping("/export")
|
||||
public void export(HttpServletResponse response, ErpGoodsCategoryAttributeValue erpGoodsCategoryAttributeValue)
|
||||
{
|
||||
List<ErpGoodsCategoryAttributeValue> list = erpGoodsCategoryAttributeValueService.selectErpGoodsCategoryAttributeValueList(erpGoodsCategoryAttributeValue);
|
||||
ExcelUtil<ErpGoodsCategoryAttributeValue> util = new ExcelUtil<ErpGoodsCategoryAttributeValue>(ErpGoodsCategoryAttributeValue.class);
|
||||
util.exportExcel(response, list, "商品分类属性值数据");
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取商品分类属性值详细信息
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('goods:categoryAttributeValue:query')")
|
||||
@GetMapping(value = "/{id}")
|
||||
public AjaxResult getInfo(@PathVariable("id") Long id)
|
||||
{
|
||||
return success(erpGoodsCategoryAttributeValueService.selectErpGoodsCategoryAttributeValueById(id));
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增商品分类属性值
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('goods:categoryAttributeValue:add')")
|
||||
@Log(title = "商品分类属性值", businessType = BusinessType.INSERT)
|
||||
@PostMapping
|
||||
public AjaxResult add(@RequestBody ErpGoodsCategoryAttributeValue erpGoodsCategoryAttributeValue)
|
||||
{
|
||||
return toAjax(erpGoodsCategoryAttributeValueService.insertErpGoodsCategoryAttributeValue(erpGoodsCategoryAttributeValue));
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改商品分类属性值
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('goods:categoryAttributeValue:edit')")
|
||||
@Log(title = "商品分类属性值", businessType = BusinessType.UPDATE)
|
||||
@PutMapping
|
||||
public AjaxResult edit(@RequestBody ErpGoodsCategoryAttributeValue erpGoodsCategoryAttributeValue)
|
||||
{
|
||||
return toAjax(erpGoodsCategoryAttributeValueService.updateErpGoodsCategoryAttributeValue(erpGoodsCategoryAttributeValue));
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除商品分类属性值
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('goods:categoryAttributeValue:remove')")
|
||||
@Log(title = "商品分类属性值", businessType = BusinessType.DELETE)
|
||||
@DeleteMapping("/{ids}")
|
||||
public AjaxResult remove(@PathVariable Long[] ids)
|
||||
{
|
||||
return toAjax(erpGoodsCategoryAttributeValueService.deleteErpGoodsCategoryAttributeValueByIds(ids));
|
||||
}
|
||||
}
|
@ -0,0 +1,104 @@
|
||||
package cn.qihangerp.api.controller;
|
||||
|
||||
import java.util.List;
|
||||
import jakarta.servlet.http.HttpServletResponse;
|
||||
import org.springframework.security.access.prepost.PreAuthorize;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.web.bind.annotation.GetMapping;
|
||||
import org.springframework.web.bind.annotation.PostMapping;
|
||||
import org.springframework.web.bind.annotation.PutMapping;
|
||||
import org.springframework.web.bind.annotation.DeleteMapping;
|
||||
import org.springframework.web.bind.annotation.PathVariable;
|
||||
import org.springframework.web.bind.annotation.RequestBody;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.bind.annotation.RestController;
|
||||
import cn.qihangerp.common.annotation.Log;
|
||||
import cn.qihangerp.core.controller.BaseController;
|
||||
import cn.qihangerp.domain.AjaxResult;
|
||||
import cn.qihangerp.common.enums.BusinessType;
|
||||
import cn.qihangerp.api.domain.ErpGoodsCategory;
|
||||
import cn.qihangerp.api.service.IErpGoodsCategoryService;
|
||||
import cn.qihangerp.common.utils.poi.ExcelUtil;
|
||||
import cn.qihangerp.core.page.TableDataInfo;
|
||||
|
||||
/**
|
||||
* 商品分类Controller
|
||||
*
|
||||
* @author qihang
|
||||
* @date 2023-12-29
|
||||
*/
|
||||
@RestController
|
||||
@RequestMapping("/goods/category")
|
||||
public class ErpGoodsCategoryController extends BaseController
|
||||
{
|
||||
@Autowired
|
||||
private IErpGoodsCategoryService erpGoodsCategoryService;
|
||||
|
||||
/**
|
||||
* 查询商品分类列表
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('goods:category:list')")
|
||||
@GetMapping("/list")
|
||||
public TableDataInfo list(ErpGoodsCategory erpGoodsCategory)
|
||||
{
|
||||
// startPage();
|
||||
List<ErpGoodsCategory> list = erpGoodsCategoryService.selectErpGoodsCategoryList(erpGoodsCategory);
|
||||
return getDataTable(list);
|
||||
}
|
||||
|
||||
/**
|
||||
* 导出商品分类列表
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('goods:category:export')")
|
||||
@Log(title = "商品分类", businessType = BusinessType.EXPORT)
|
||||
@PostMapping("/export")
|
||||
public void export(HttpServletResponse response, ErpGoodsCategory erpGoodsCategory)
|
||||
{
|
||||
List<ErpGoodsCategory> list = erpGoodsCategoryService.selectErpGoodsCategoryList(erpGoodsCategory);
|
||||
ExcelUtil<ErpGoodsCategory> util = new ExcelUtil<ErpGoodsCategory>(ErpGoodsCategory.class);
|
||||
util.exportExcel(response, list, "商品分类数据");
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取商品分类详细信息
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('goods:category:query')")
|
||||
@GetMapping(value = "/{id}")
|
||||
public AjaxResult getInfo(@PathVariable("id") Long id)
|
||||
{
|
||||
return success(erpGoodsCategoryService.selectErpGoodsCategoryById(id));
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增商品分类
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('goods:category:add')")
|
||||
@Log(title = "商品分类", businessType = BusinessType.INSERT)
|
||||
@PostMapping
|
||||
public AjaxResult add(@RequestBody ErpGoodsCategory erpGoodsCategory)
|
||||
{
|
||||
return toAjax(erpGoodsCategoryService.insertErpGoodsCategory(erpGoodsCategory));
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改商品分类
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('goods:category:edit')")
|
||||
@Log(title = "商品分类", businessType = BusinessType.UPDATE)
|
||||
@PutMapping
|
||||
public AjaxResult edit(@RequestBody ErpGoodsCategory erpGoodsCategory)
|
||||
{
|
||||
return toAjax(erpGoodsCategoryService.updateErpGoodsCategory(erpGoodsCategory));
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除商品分类
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('goods:category:remove')")
|
||||
@Log(title = "商品分类", businessType = BusinessType.DELETE)
|
||||
@DeleteMapping("/{ids}")
|
||||
public AjaxResult remove(@PathVariable Long[] ids)
|
||||
{
|
||||
return toAjax(erpGoodsCategoryService.deleteErpGoodsCategoryByIds(ids));
|
||||
}
|
||||
}
|
@ -0,0 +1,101 @@
|
||||
package cn.qihangerp.api.controller;
|
||||
|
||||
import java.util.List;
|
||||
import jakarta.servlet.http.HttpServletResponse;
|
||||
import org.springframework.security.access.prepost.PreAuthorize;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.web.bind.annotation.GetMapping;
|
||||
import org.springframework.web.bind.annotation.PostMapping;
|
||||
import org.springframework.web.bind.annotation.PathVariable;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.bind.annotation.RestController;
|
||||
import cn.qihangerp.common.annotation.Log;
|
||||
import cn.qihangerp.core.controller.BaseController;
|
||||
import cn.qihangerp.domain.AjaxResult;
|
||||
import cn.qihangerp.common.enums.BusinessType;
|
||||
import cn.qihangerp.api.domain.ErpGoodsInventory;
|
||||
import cn.qihangerp.api.service.IErpGoodsInventoryService;
|
||||
import cn.qihangerp.common.utils.poi.ExcelUtil;
|
||||
import cn.qihangerp.core.page.TableDataInfo;
|
||||
|
||||
/**
|
||||
* 商品库存Controller
|
||||
*
|
||||
* @author qihang
|
||||
* @date 2024-01-09
|
||||
*/
|
||||
@RestController
|
||||
@RequestMapping("/api/goodsInventory")
|
||||
public class ErpGoodsInventoryController extends BaseController
|
||||
{
|
||||
@Autowired
|
||||
private IErpGoodsInventoryService erpGoodsInventoryService;
|
||||
|
||||
/**
|
||||
* 查询商品库存列表
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('api:goodsInventory:list')")
|
||||
@GetMapping("/list")
|
||||
public TableDataInfo list(ErpGoodsInventory erpGoodsInventory)
|
||||
{
|
||||
startPage();
|
||||
List<ErpGoodsInventory> list = erpGoodsInventoryService.selectErpGoodsInventoryList(erpGoodsInventory);
|
||||
return getDataTable(list);
|
||||
}
|
||||
|
||||
/**
|
||||
* 导出商品库存列表
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('api:goodsInventory:export')")
|
||||
@Log(title = "商品库存", businessType = BusinessType.EXPORT)
|
||||
@PostMapping("/export")
|
||||
public void export(HttpServletResponse response, ErpGoodsInventory erpGoodsInventory)
|
||||
{
|
||||
List<ErpGoodsInventory> list = erpGoodsInventoryService.selectErpGoodsInventoryList(erpGoodsInventory);
|
||||
ExcelUtil<ErpGoodsInventory> util = new ExcelUtil<ErpGoodsInventory>(ErpGoodsInventory.class);
|
||||
util.exportExcel(response, list, "商品库存数据");
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取商品库存详细信息
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('api:goodsInventory:query')")
|
||||
@GetMapping(value = "/{id}")
|
||||
public AjaxResult getInfo(@PathVariable("id") Long id)
|
||||
{
|
||||
return success(erpGoodsInventoryService.selectErpGoodsInventoryById(id));
|
||||
}
|
||||
|
||||
// /**
|
||||
// * 新增商品库存
|
||||
// */
|
||||
// @PreAuthorize("@ss.hasPermi('api:goodsInventory:add')")
|
||||
// @Log(title = "商品库存", businessType = BusinessType.INSERT)
|
||||
// @PostMapping
|
||||
// public AjaxResult add(@RequestBody ErpGoodsInventory erpGoodsInventory)
|
||||
// {
|
||||
// return toAjax(erpGoodsInventoryService.insertErpGoodsInventory(erpGoodsInventory));
|
||||
// }
|
||||
//
|
||||
// /**
|
||||
// * 修改商品库存
|
||||
// */
|
||||
// @PreAuthorize("@ss.hasPermi('api:goodsInventory:edit')")
|
||||
// @Log(title = "商品库存", businessType = BusinessType.UPDATE)
|
||||
// @PutMapping
|
||||
// public AjaxResult edit(@RequestBody ErpGoodsInventory erpGoodsInventory)
|
||||
// {
|
||||
// return toAjax(erpGoodsInventoryService.updateErpGoodsInventory(erpGoodsInventory));
|
||||
// }
|
||||
|
||||
// /**
|
||||
// * 删除商品库存
|
||||
// */
|
||||
// @PreAuthorize("@ss.hasPermi('api:goodsInventory:remove')")
|
||||
// @Log(title = "商品库存", businessType = BusinessType.DELETE)
|
||||
// @DeleteMapping("/{ids}")
|
||||
// public AjaxResult remove(@PathVariable Long[] ids)
|
||||
// {
|
||||
// return toAjax(erpGoodsInventoryService.deleteErpGoodsInventoryByIds(ids));
|
||||
// }
|
||||
}
|
@ -0,0 +1,105 @@
|
||||
package cn.qihangerp.api.controller;
|
||||
|
||||
import java.util.List;
|
||||
import jakarta.servlet.http.HttpServletResponse;
|
||||
|
||||
import cn.qihangerp.domain.ErpOrder;
|
||||
import cn.qihangerp.api.service.IErpOrderService;
|
||||
import org.springframework.security.access.prepost.PreAuthorize;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.web.bind.annotation.GetMapping;
|
||||
import org.springframework.web.bind.annotation.PostMapping;
|
||||
import org.springframework.web.bind.annotation.PathVariable;
|
||||
import org.springframework.web.bind.annotation.RequestBody;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.bind.annotation.RestController;
|
||||
import cn.qihangerp.common.annotation.Log;
|
||||
import cn.qihangerp.core.controller.BaseController;
|
||||
import cn.qihangerp.domain.AjaxResult;
|
||||
import cn.qihangerp.common.enums.BusinessType;
|
||||
import cn.qihangerp.common.utils.poi.ExcelUtil;
|
||||
import cn.qihangerp.core.page.TableDataInfo;
|
||||
|
||||
/**
|
||||
* 店铺订单Controller
|
||||
*
|
||||
* @author qihang
|
||||
* @date 2023-12-31
|
||||
*/
|
||||
@RestController
|
||||
@RequestMapping("/api/order")
|
||||
public class ErpOrderController extends BaseController
|
||||
{
|
||||
@Autowired
|
||||
private IErpOrderService orderService;
|
||||
|
||||
/**
|
||||
* 查询店铺订单列表
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('shop:order:list')")
|
||||
@GetMapping("/list")
|
||||
public TableDataInfo list(ErpOrder order)
|
||||
{
|
||||
startPage();
|
||||
List<ErpOrder> list = orderService.selectErpOrderList(order);
|
||||
return getDataTable(list);
|
||||
}
|
||||
|
||||
/**
|
||||
* 导出店铺订单列表
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('shop:order:export')")
|
||||
@Log(title = "店铺订单", businessType = BusinessType.EXPORT)
|
||||
@PostMapping("/export")
|
||||
public void export(HttpServletResponse response, ErpOrder order)
|
||||
{
|
||||
List<ErpOrder> list = orderService.selectErpOrderList(order);
|
||||
ExcelUtil<ErpOrder> util = new ExcelUtil<ErpOrder>(ErpOrder.class);
|
||||
util.exportExcel(response, list, "店铺订单数据");
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取店铺订单详细信息
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('shop:order:query')")
|
||||
@GetMapping(value = "/{id}")
|
||||
public AjaxResult getInfo(@PathVariable("id") Long id)
|
||||
{
|
||||
return success(orderService.selectErpOrderById(id));
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增店铺订单
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('shop:order:add')")
|
||||
@Log(title = "店铺订单", businessType = BusinessType.INSERT)
|
||||
@PostMapping
|
||||
public AjaxResult add(@RequestBody ErpOrder order)
|
||||
{
|
||||
if(order.getGoodsAmount()==null)return new AjaxResult(1503,"请填写商品价格!");
|
||||
order.setCreateBy(getUsername());
|
||||
int result = orderService.insertErpOrder(order);
|
||||
if(result == -1) return new AjaxResult(501,"订单号已存在!");
|
||||
if(result == -2) return new AjaxResult(502,"请添加订单商品!");
|
||||
if(result == -3) return new AjaxResult(503,"请选择订单商品规格!");
|
||||
return toAjax(result);
|
||||
}
|
||||
|
||||
/**
|
||||
* 订单发货(发货操作移到erpShipOrder中)
|
||||
* @param order
|
||||
* @return
|
||||
*/
|
||||
// @Log(title = "店铺订单", businessType = BusinessType.UPDATE)
|
||||
// @PostMapping("/ship")
|
||||
// public AjaxResult ship(@RequestBody ErpOrder order)
|
||||
// {
|
||||
// order.setUpdateBy(getUsername());
|
||||
// int result = orderService.shipErpOrder(order);
|
||||
// if(result == -1) return new AjaxResult(501,"订单不存在!");
|
||||
// else if(result == -2) return new AjaxResult(502,"订单状态不对!无法发货!");
|
||||
// else if(result == -3) return new AjaxResult(502,"订单发货状态不对!无法发货!");
|
||||
// return toAjax(result);
|
||||
// }
|
||||
|
||||
}
|
@ -0,0 +1,26 @@
|
||||
package cn.qihangerp.api.controller;
|
||||
|
||||
import cn.qihangerp.api.domain.bo.RefundBo;
|
||||
import cn.qihangerp.api.service.ErpSaleAfterRefundService;
|
||||
import cn.qihangerp.common.PageQuery;
|
||||
import cn.qihangerp.common.PageResult;
|
||||
import cn.qihangerp.core.controller.BaseController;
|
||||
import cn.qihangerp.core.page.TableDataInfo;
|
||||
import cn.qihangerp.domain.ErpSaleAfterRefund;
|
||||
import lombok.AllArgsConstructor;
|
||||
import org.springframework.web.bind.annotation.GetMapping;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.bind.annotation.RestController;
|
||||
|
||||
import java.io.IOException;
|
||||
@AllArgsConstructor
|
||||
@RestController
|
||||
@RequestMapping("/api/refund")
|
||||
public class ErpOrderRefundController extends BaseController {
|
||||
private final ErpSaleAfterRefundService refundService;
|
||||
@GetMapping("/list")
|
||||
public TableDataInfo list(RefundBo bo, PageQuery pageQuery) throws IOException, InterruptedException {
|
||||
PageResult<ErpSaleAfterRefund> result = refundService.queryPageList(bo, pageQuery);
|
||||
return getDataTable(result);
|
||||
}
|
||||
}
|
@ -0,0 +1,104 @@
|
||||
package cn.qihangerp.api.controller;
|
||||
|
||||
import java.util.List;
|
||||
import jakarta.servlet.http.HttpServletResponse;
|
||||
import org.springframework.security.access.prepost.PreAuthorize;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.web.bind.annotation.GetMapping;
|
||||
import org.springframework.web.bind.annotation.PostMapping;
|
||||
import org.springframework.web.bind.annotation.PutMapping;
|
||||
import org.springframework.web.bind.annotation.DeleteMapping;
|
||||
import org.springframework.web.bind.annotation.PathVariable;
|
||||
import org.springframework.web.bind.annotation.RequestBody;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.bind.annotation.RestController;
|
||||
import cn.qihangerp.common.annotation.Log;
|
||||
import cn.qihangerp.core.controller.BaseController;
|
||||
import cn.qihangerp.domain.AjaxResult;
|
||||
import cn.qihangerp.common.enums.BusinessType;
|
||||
import cn.qihangerp.api.domain.ErpShipLogistics;
|
||||
import cn.qihangerp.api.service.ErpShipLogisticsService;
|
||||
import cn.qihangerp.common.utils.poi.ExcelUtil;
|
||||
import cn.qihangerp.core.page.TableDataInfo;
|
||||
|
||||
/**
|
||||
* 物流公司Controller
|
||||
*
|
||||
* @author qihang
|
||||
* @date 2024-01-12
|
||||
*/
|
||||
@RestController
|
||||
@RequestMapping("/api/logistics")
|
||||
public class ErpShipLogisticsController extends BaseController
|
||||
{
|
||||
@Autowired
|
||||
private ErpShipLogisticsService bLogisticsCompanyService;
|
||||
|
||||
/**
|
||||
* 查询物流公司列表
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('api:logistics:list')")
|
||||
@GetMapping("/list")
|
||||
public TableDataInfo list(ErpShipLogistics bLogisticsCompany)
|
||||
{
|
||||
startPage();
|
||||
List<ErpShipLogistics> list = bLogisticsCompanyService.selectBLogisticsCompanyList(bLogisticsCompany);
|
||||
return getDataTable(list);
|
||||
}
|
||||
|
||||
/**
|
||||
* 导出物流公司列表
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('api:logistics:export')")
|
||||
@Log(title = "物流公司", businessType = BusinessType.EXPORT)
|
||||
@PostMapping("/export")
|
||||
public void export(HttpServletResponse response, ErpShipLogistics bLogisticsCompany)
|
||||
{
|
||||
List<ErpShipLogistics> list = bLogisticsCompanyService.selectBLogisticsCompanyList(bLogisticsCompany);
|
||||
ExcelUtil<ErpShipLogistics> util = new ExcelUtil<ErpShipLogistics>(ErpShipLogistics.class);
|
||||
util.exportExcel(response, list, "物流公司数据");
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取物流公司详细信息
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('api:logistics:query')")
|
||||
@GetMapping(value = "/{id}")
|
||||
public AjaxResult getInfo(@PathVariable("id") Long id)
|
||||
{
|
||||
return success(bLogisticsCompanyService.selectBLogisticsCompanyById(id));
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增物流公司
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('api:logistics:add')")
|
||||
@Log(title = "物流公司", businessType = BusinessType.INSERT)
|
||||
@PostMapping
|
||||
public AjaxResult add(@RequestBody ErpShipLogistics bLogisticsCompany)
|
||||
{
|
||||
return toAjax(bLogisticsCompanyService.insertBLogisticsCompany(bLogisticsCompany));
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改物流公司
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('api:logistics:edit')")
|
||||
@Log(title = "物流公司", businessType = BusinessType.UPDATE)
|
||||
@PutMapping
|
||||
public AjaxResult edit(@RequestBody ErpShipLogistics bLogisticsCompany)
|
||||
{
|
||||
return toAjax(bLogisticsCompanyService.updateBLogisticsCompany(bLogisticsCompany));
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除物流公司
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('api:logistics:remove')")
|
||||
@Log(title = "物流公司", businessType = BusinessType.DELETE)
|
||||
@DeleteMapping("/{ids}")
|
||||
public AjaxResult remove(@PathVariable Long[] ids)
|
||||
{
|
||||
return toAjax(bLogisticsCompanyService.deleteBLogisticsCompanyByIds(ids));
|
||||
}
|
||||
}
|
@ -0,0 +1,104 @@
|
||||
//package cn.qihangerp.api.controller;
|
||||
//
|
||||
//import java.util.List;
|
||||
//import javax.servlet.http.HttpServletResponse;
|
||||
//import org.springframework.security.access.prepost.PreAuthorize;
|
||||
//import org.springframework.beans.factory.annotation.Autowired;
|
||||
//import org.springframework.web.bind.annotation.GetMapping;
|
||||
//import org.springframework.web.bind.annotation.PostMapping;
|
||||
//import org.springframework.web.bind.annotation.PutMapping;
|
||||
//import org.springframework.web.bind.annotation.DeleteMapping;
|
||||
//import org.springframework.web.bind.annotation.PathVariable;
|
||||
//import org.springframework.web.bind.annotation.RequestBody;
|
||||
//import org.springframework.web.bind.annotation.RequestMapping;
|
||||
//import org.springframework.web.bind.annotation.RestController;
|
||||
//import com.qihang.common.annotation.Log;
|
||||
//import com.qihang.core.controller.BaseController;
|
||||
//import com.qihang.core.domain.AjaxResult;
|
||||
//import com.qihang.common.enums.BusinessType;
|
||||
//import cn.qihangerp.api.domain.FmsInventoryReport;
|
||||
//import cn.qihangerp.api.service.IFmsInventoryReportService;
|
||||
//import com.qihang.common.utils.poi.ExcelUtil;
|
||||
//import com.qihang.core.page.TableDataInfo;
|
||||
//
|
||||
///**
|
||||
// * 库存存货报Controller
|
||||
// *
|
||||
// * @author qihang
|
||||
// * @date 2024-01-28
|
||||
// */
|
||||
//@RestController
|
||||
//@RequestMapping("/fms/inventoryReport")
|
||||
//public class FmsInventoryReportController extends BaseController
|
||||
//{
|
||||
// @Autowired
|
||||
// private IFmsInventoryReportService fmsInventoryReportService;
|
||||
//
|
||||
// /**
|
||||
// * 查询库存存货报列表
|
||||
// */
|
||||
// @PreAuthorize("@ss.hasPermi('fms:inventoryReport:list')")
|
||||
// @GetMapping("/list")
|
||||
// public TableDataInfo list(FmsInventoryReport fmsInventoryReport)
|
||||
// {
|
||||
// startPage();
|
||||
// List<FmsInventoryReport> list = fmsInventoryReportService.selectFmsInventoryReportList(fmsInventoryReport);
|
||||
// return getDataTable(list);
|
||||
// }
|
||||
//
|
||||
// /**
|
||||
// * 导出库存存货报列表
|
||||
// */
|
||||
// @PreAuthorize("@ss.hasPermi('fms:inventoryReport:export')")
|
||||
// @Log(title = "库存存货报", businessType = BusinessType.EXPORT)
|
||||
// @PostMapping("/export")
|
||||
// public void export(HttpServletResponse response, FmsInventoryReport fmsInventoryReport)
|
||||
// {
|
||||
// List<FmsInventoryReport> list = fmsInventoryReportService.selectFmsInventoryReportList(fmsInventoryReport);
|
||||
// ExcelUtil<FmsInventoryReport> util = new ExcelUtil<FmsInventoryReport>(FmsInventoryReport.class);
|
||||
// util.exportExcel(response, list, "库存存货报数据");
|
||||
// }
|
||||
//
|
||||
// /**
|
||||
// * 获取库存存货报详细信息
|
||||
// */
|
||||
// @PreAuthorize("@ss.hasPermi('fms:inventoryReport:query')")
|
||||
// @GetMapping(value = "/{id}")
|
||||
// public AjaxResult getInfo(@PathVariable("id") Long id)
|
||||
// {
|
||||
// return success(fmsInventoryReportService.selectFmsInventoryReportById(id));
|
||||
// }
|
||||
//
|
||||
// /**
|
||||
// * 新增库存存货报
|
||||
// */
|
||||
// @PreAuthorize("@ss.hasPermi('fms:inventoryReport:add')")
|
||||
// @Log(title = "库存存货报", businessType = BusinessType.INSERT)
|
||||
// @PostMapping
|
||||
// public AjaxResult add(@RequestBody FmsInventoryReport fmsInventoryReport)
|
||||
// {
|
||||
// return toAjax(fmsInventoryReportService.insertFmsInventoryReport(fmsInventoryReport));
|
||||
// }
|
||||
//
|
||||
// /**
|
||||
// * 修改库存存货报
|
||||
// */
|
||||
// @PreAuthorize("@ss.hasPermi('fms:inventoryReport:edit')")
|
||||
// @Log(title = "库存存货报", businessType = BusinessType.UPDATE)
|
||||
// @PutMapping
|
||||
// public AjaxResult edit(@RequestBody FmsInventoryReport fmsInventoryReport)
|
||||
// {
|
||||
// return toAjax(fmsInventoryReportService.updateFmsInventoryReport(fmsInventoryReport));
|
||||
// }
|
||||
//
|
||||
// /**
|
||||
// * 删除库存存货报
|
||||
// */
|
||||
// @PreAuthorize("@ss.hasPermi('fms:inventoryReport:remove')")
|
||||
// @Log(title = "库存存货报", businessType = BusinessType.DELETE)
|
||||
// @DeleteMapping("/{ids}")
|
||||
// public AjaxResult remove(@PathVariable Long[] ids)
|
||||
// {
|
||||
// return toAjax(fmsInventoryReportService.deleteFmsInventoryReportByIds(ids));
|
||||
// }
|
||||
//}
|
@ -0,0 +1,103 @@
|
||||
package cn.qihangerp.api.controller;
|
||||
|
||||
import java.util.List;
|
||||
import jakarta.servlet.http.HttpServletResponse;
|
||||
import org.springframework.security.access.prepost.PreAuthorize;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.web.bind.annotation.GetMapping;
|
||||
import org.springframework.web.bind.annotation.PostMapping;
|
||||
import org.springframework.web.bind.annotation.PutMapping;
|
||||
import org.springframework.web.bind.annotation.PathVariable;
|
||||
import org.springframework.web.bind.annotation.RequestBody;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.bind.annotation.RestController;
|
||||
import cn.qihangerp.common.annotation.Log;
|
||||
import cn.qihangerp.core.controller.BaseController;
|
||||
import cn.qihangerp.domain.AjaxResult;
|
||||
import cn.qihangerp.common.enums.BusinessType;
|
||||
import cn.qihangerp.api.domain.ScmPurchaseOrderPayable;
|
||||
import cn.qihangerp.api.service.IScmPurchaseOrderPayableService;
|
||||
import cn.qihangerp.common.utils.poi.ExcelUtil;
|
||||
import cn.qihangerp.core.page.TableDataInfo;
|
||||
|
||||
/**
|
||||
* 财务管理-应付款-采购货款Controller
|
||||
*
|
||||
* @author qihang
|
||||
* @date 2024-01-28
|
||||
*/
|
||||
@RestController
|
||||
@RequestMapping("/fms/payablePurchase")
|
||||
public class FmsPayablePurchaseController extends BaseController
|
||||
{
|
||||
@Autowired
|
||||
private IScmPurchaseOrderPayableService fmsPayablePurchaseService;
|
||||
|
||||
/**
|
||||
* 查询财务管理-应付款-采购货款列表
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('fms:payablePurchase:list')")
|
||||
@GetMapping("/list")
|
||||
public TableDataInfo list(ScmPurchaseOrderPayable fmsPayablePurchase)
|
||||
{
|
||||
startPage();
|
||||
List<ScmPurchaseOrderPayable> list = fmsPayablePurchaseService.selectFmsPayablePurchaseList(fmsPayablePurchase);
|
||||
return getDataTable(list);
|
||||
}
|
||||
|
||||
/**
|
||||
* 导出财务管理-应付款-采购货款列表
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('fms:payablePurchase:export')")
|
||||
@Log(title = "财务管理-应付款-采购货款", businessType = BusinessType.EXPORT)
|
||||
@PostMapping("/export")
|
||||
public void export(HttpServletResponse response, ScmPurchaseOrderPayable fmsPayablePurchase)
|
||||
{
|
||||
List<ScmPurchaseOrderPayable> list = fmsPayablePurchaseService.selectFmsPayablePurchaseList(fmsPayablePurchase);
|
||||
ExcelUtil<ScmPurchaseOrderPayable> util = new ExcelUtil<ScmPurchaseOrderPayable>(ScmPurchaseOrderPayable.class);
|
||||
util.exportExcel(response, list, "财务管理-应付款-采购货款数据");
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取财务管理-应付款-采购货款详细信息
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('fms:payablePurchase:query')")
|
||||
@GetMapping(value = "/{id}")
|
||||
public AjaxResult getInfo(@PathVariable("id") Long id)
|
||||
{
|
||||
return success(fmsPayablePurchaseService.selectFmsPayablePurchaseById(id));
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增财务管理-应付款-采购货款
|
||||
*/
|
||||
// @PreAuthorize("@ss.hasPermi('fms:payablePurchase:add')")
|
||||
// @Log(title = "财务管理-应付款-采购货款", businessType = BusinessType.INSERT)
|
||||
// @PostMapping
|
||||
// public AjaxResult add(@RequestBody FmsPayablePurchase fmsPayablePurchase)
|
||||
// {
|
||||
// return toAjax(fmsPayablePurchaseService.insertFmsPayablePurchase(fmsPayablePurchase));
|
||||
// }
|
||||
|
||||
/**
|
||||
* 修改财务管理-应付款-采购货款
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('fms:payablePurchase:edit')")
|
||||
@Log(title = "财务管理-应付款-采购货款", businessType = BusinessType.UPDATE)
|
||||
@PutMapping
|
||||
public AjaxResult edit(@RequestBody ScmPurchaseOrderPayable fmsPayablePurchase)
|
||||
{
|
||||
return toAjax(fmsPayablePurchaseService.updateFmsPayablePurchase(fmsPayablePurchase));
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除财务管理-应付款-采购货款
|
||||
*/
|
||||
// @PreAuthorize("@ss.hasPermi('fms:payablePurchase:remove')")
|
||||
// @Log(title = "财务管理-应付款-采购货款", businessType = BusinessType.DELETE)
|
||||
// @DeleteMapping("/{ids}")
|
||||
// public AjaxResult remove(@PathVariable Long[] ids)
|
||||
// {
|
||||
// return toAjax(fmsPayablePurchaseService.deleteFmsPayablePurchaseByIds(ids));
|
||||
// }
|
||||
}
|
@ -0,0 +1,104 @@
|
||||
//package cn.qihangerp.api.controller;
|
||||
//
|
||||
//import java.util.List;
|
||||
//import javax.servlet.http.HttpServletResponse;
|
||||
//import org.springframework.security.access.prepost.PreAuthorize;
|
||||
//import org.springframework.beans.factory.annotation.Autowired;
|
||||
//import org.springframework.web.bind.annotation.GetMapping;
|
||||
//import org.springframework.web.bind.annotation.PostMapping;
|
||||
//import org.springframework.web.bind.annotation.PutMapping;
|
||||
//import org.springframework.web.bind.annotation.DeleteMapping;
|
||||
//import org.springframework.web.bind.annotation.PathVariable;
|
||||
//import org.springframework.web.bind.annotation.RequestBody;
|
||||
//import org.springframework.web.bind.annotation.RequestMapping;
|
||||
//import org.springframework.web.bind.annotation.RestController;
|
||||
//import com.qihang.common.annotation.Log;
|
||||
//import com.qihang.core.controller.BaseController;
|
||||
//import com.qihang.core.domain.AjaxResult;
|
||||
//import com.qihang.common.enums.BusinessType;
|
||||
//import cn.qihangerp.api.domain.FmsReceivableOrder;
|
||||
//import cn.qihangerp.api.service.IFmsReceivableOrderService;
|
||||
//import com.qihang.common.utils.poi.ExcelUtil;
|
||||
//import com.qihang.core.page.TableDataInfo;
|
||||
//
|
||||
///**
|
||||
// * 财务管理-应收款-订单收入Controller
|
||||
// *
|
||||
// * @author qihang
|
||||
// * @date 2024-01-28
|
||||
// */
|
||||
//@RestController
|
||||
//@RequestMapping("/fms/receivableOrder")
|
||||
//public class FmsReceivableOrderController extends BaseController
|
||||
//{
|
||||
// @Autowired
|
||||
// private IFmsReceivableOrderService fmsReceivableOrderService;
|
||||
//
|
||||
// /**
|
||||
// * 查询财务管理-应收款-订单收入列表
|
||||
// */
|
||||
// @PreAuthorize("@ss.hasPermi('fms:receivableOrder:list')")
|
||||
// @GetMapping("/list")
|
||||
// public TableDataInfo list(FmsReceivableOrder fmsReceivableOrder)
|
||||
// {
|
||||
// startPage();
|
||||
// List<FmsReceivableOrder> list = fmsReceivableOrderService.selectFmsReceivableOrderList(fmsReceivableOrder);
|
||||
// return getDataTable(list);
|
||||
// }
|
||||
//
|
||||
// /**
|
||||
// * 导出财务管理-应收款-订单收入列表
|
||||
// */
|
||||
// @PreAuthorize("@ss.hasPermi('fms:receivableOrder:export')")
|
||||
// @Log(title = "财务管理-应收款-订单收入", businessType = BusinessType.EXPORT)
|
||||
// @PostMapping("/export")
|
||||
// public void export(HttpServletResponse response, FmsReceivableOrder fmsReceivableOrder)
|
||||
// {
|
||||
// List<FmsReceivableOrder> list = fmsReceivableOrderService.selectFmsReceivableOrderList(fmsReceivableOrder);
|
||||
// ExcelUtil<FmsReceivableOrder> util = new ExcelUtil<FmsReceivableOrder>(FmsReceivableOrder.class);
|
||||
// util.exportExcel(response, list, "财务管理-应收款-订单收入数据");
|
||||
// }
|
||||
//
|
||||
// /**
|
||||
// * 获取财务管理-应收款-订单收入详细信息
|
||||
// */
|
||||
// @PreAuthorize("@ss.hasPermi('fms:receivableOrder:query')")
|
||||
// @GetMapping(value = "/{id}")
|
||||
// public AjaxResult getInfo(@PathVariable("id") Long id)
|
||||
// {
|
||||
// return success(fmsReceivableOrderService.selectFmsReceivableOrderById(id));
|
||||
// }
|
||||
//
|
||||
// /**
|
||||
// * 新增财务管理-应收款-订单收入
|
||||
// */
|
||||
// @PreAuthorize("@ss.hasPermi('fms:receivableOrder:add')")
|
||||
// @Log(title = "财务管理-应收款-订单收入", businessType = BusinessType.INSERT)
|
||||
// @PostMapping
|
||||
// public AjaxResult add(@RequestBody FmsReceivableOrder fmsReceivableOrder)
|
||||
// {
|
||||
// return toAjax(fmsReceivableOrderService.insertFmsReceivableOrder(fmsReceivableOrder));
|
||||
// }
|
||||
//
|
||||
// /**
|
||||
// * 修改财务管理-应收款-订单收入
|
||||
// */
|
||||
// @PreAuthorize("@ss.hasPermi('fms:receivableOrder:edit')")
|
||||
// @Log(title = "财务管理-应收款-订单收入", businessType = BusinessType.UPDATE)
|
||||
// @PutMapping
|
||||
// public AjaxResult edit(@RequestBody FmsReceivableOrder fmsReceivableOrder)
|
||||
// {
|
||||
// return toAjax(fmsReceivableOrderService.updateFmsReceivableOrder(fmsReceivableOrder));
|
||||
// }
|
||||
//
|
||||
// /**
|
||||
// * 删除财务管理-应收款-订单收入
|
||||
// */
|
||||
// @PreAuthorize("@ss.hasPermi('fms:receivableOrder:remove')")
|
||||
// @Log(title = "财务管理-应收款-订单收入", businessType = BusinessType.DELETE)
|
||||
// @DeleteMapping("/{ids}")
|
||||
// public AjaxResult remove(@PathVariable Long[] ids)
|
||||
// {
|
||||
// return toAjax(fmsReceivableOrderService.deleteFmsReceivableOrderByIds(ids));
|
||||
// }
|
||||
//}
|
@ -0,0 +1,104 @@
|
||||
package cn.qihangerp.api.controller;
|
||||
|
||||
import java.util.List;
|
||||
import jakarta.servlet.http.HttpServletResponse;
|
||||
import org.springframework.security.access.prepost.PreAuthorize;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.web.bind.annotation.GetMapping;
|
||||
import org.springframework.web.bind.annotation.PostMapping;
|
||||
import org.springframework.web.bind.annotation.PutMapping;
|
||||
import org.springframework.web.bind.annotation.DeleteMapping;
|
||||
import org.springframework.web.bind.annotation.PathVariable;
|
||||
import org.springframework.web.bind.annotation.RequestBody;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.bind.annotation.RestController;
|
||||
import cn.qihangerp.common.annotation.Log;
|
||||
import cn.qihangerp.core.controller.BaseController;
|
||||
import cn.qihangerp.domain.AjaxResult;
|
||||
import cn.qihangerp.common.enums.BusinessType;
|
||||
import cn.qihangerp.api.domain.GoodsAttributeConfig;
|
||||
import cn.qihangerp.api.service.IGoodsAttributeConfigService;
|
||||
import cn.qihangerp.common.utils.poi.ExcelUtil;
|
||||
import cn.qihangerp.core.page.TableDataInfo;
|
||||
|
||||
/**
|
||||
* 商品属性配置Controller
|
||||
*
|
||||
* @author qihang
|
||||
* @date 2023-12-29
|
||||
*/
|
||||
@RestController
|
||||
@RequestMapping("/goods/goodsAttributeConfig")
|
||||
public class GoodsAttributeConfigController extends BaseController
|
||||
{
|
||||
@Autowired
|
||||
private IGoodsAttributeConfigService goodsAttributeConfigService;
|
||||
|
||||
/**
|
||||
* 查询商品属性配置列表
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('goods:goodsAttributeConfig:list')")
|
||||
@GetMapping("/list")
|
||||
public TableDataInfo list(GoodsAttributeConfig goodsAttributeConfig)
|
||||
{
|
||||
startPage();
|
||||
List<GoodsAttributeConfig> list = goodsAttributeConfigService.selectGoodsAttributeConfigList(goodsAttributeConfig);
|
||||
return getDataTable(list);
|
||||
}
|
||||
|
||||
/**
|
||||
* 导出商品属性配置列表
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('goods:goodsAttributeConfig:export')")
|
||||
@Log(title = "商品属性配置", businessType = BusinessType.EXPORT)
|
||||
@PostMapping("/export")
|
||||
public void export(HttpServletResponse response, GoodsAttributeConfig goodsAttributeConfig)
|
||||
{
|
||||
List<GoodsAttributeConfig> list = goodsAttributeConfigService.selectGoodsAttributeConfigList(goodsAttributeConfig);
|
||||
ExcelUtil<GoodsAttributeConfig> util = new ExcelUtil<GoodsAttributeConfig>(GoodsAttributeConfig.class);
|
||||
util.exportExcel(response, list, "商品属性配置数据");
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取商品属性配置详细信息
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('goods:goodsAttributeConfig:query')")
|
||||
@GetMapping(value = "/{id}")
|
||||
public AjaxResult getInfo(@PathVariable("id") Long id)
|
||||
{
|
||||
return success(goodsAttributeConfigService.selectGoodsAttributeConfigById(id));
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增商品属性配置
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('goods:goodsAttributeConfig:add')")
|
||||
@Log(title = "商品属性配置", businessType = BusinessType.INSERT)
|
||||
@PostMapping
|
||||
public AjaxResult add(@RequestBody GoodsAttributeConfig goodsAttributeConfig)
|
||||
{
|
||||
return toAjax(goodsAttributeConfigService.insertGoodsAttributeConfig(goodsAttributeConfig));
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改商品属性配置
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('goods:goodsAttributeConfig:edit')")
|
||||
@Log(title = "商品属性配置", businessType = BusinessType.UPDATE)
|
||||
@PutMapping
|
||||
public AjaxResult edit(@RequestBody GoodsAttributeConfig goodsAttributeConfig)
|
||||
{
|
||||
return toAjax(goodsAttributeConfigService.updateGoodsAttributeConfig(goodsAttributeConfig));
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除商品属性配置
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('goods:goodsAttributeConfig:remove')")
|
||||
@Log(title = "商品属性配置", businessType = BusinessType.DELETE)
|
||||
@DeleteMapping("/{ids}")
|
||||
public AjaxResult remove(@PathVariable Long[] ids)
|
||||
{
|
||||
return toAjax(goodsAttributeConfigService.deleteGoodsAttributeConfigByIds(ids));
|
||||
}
|
||||
}
|
@ -0,0 +1,104 @@
|
||||
package cn.qihangerp.api.controller;
|
||||
|
||||
import java.util.List;
|
||||
import jakarta.servlet.http.HttpServletResponse;
|
||||
import org.springframework.security.access.prepost.PreAuthorize;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.web.bind.annotation.GetMapping;
|
||||
import org.springframework.web.bind.annotation.PostMapping;
|
||||
import org.springframework.web.bind.annotation.PutMapping;
|
||||
import org.springframework.web.bind.annotation.DeleteMapping;
|
||||
import org.springframework.web.bind.annotation.PathVariable;
|
||||
import org.springframework.web.bind.annotation.RequestBody;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.bind.annotation.RestController;
|
||||
import cn.qihangerp.common.annotation.Log;
|
||||
import cn.qihangerp.core.controller.BaseController;
|
||||
import cn.qihangerp.domain.AjaxResult;
|
||||
import cn.qihangerp.common.enums.BusinessType;
|
||||
import cn.qihangerp.api.domain.GoodsAttribute;
|
||||
import cn.qihangerp.api.service.IGoodsAttributeService;
|
||||
import cn.qihangerp.common.utils.poi.ExcelUtil;
|
||||
import cn.qihangerp.core.page.TableDataInfo;
|
||||
|
||||
/**
|
||||
* 商品属性Controller
|
||||
*
|
||||
* @author qihang
|
||||
* @date 2023-12-29
|
||||
*/
|
||||
@RestController
|
||||
@RequestMapping("/goods/goodsAttribute")
|
||||
public class GoodsAttributeController extends BaseController
|
||||
{
|
||||
@Autowired
|
||||
private IGoodsAttributeService goodsAttributeService;
|
||||
|
||||
/**
|
||||
* 查询商品属性列表
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('goods:goodsAttribute:list')")
|
||||
@GetMapping("/list")
|
||||
public TableDataInfo list(GoodsAttribute goodsAttribute)
|
||||
{
|
||||
startPage();
|
||||
List<GoodsAttribute> list = goodsAttributeService.selectGoodsAttributeList(goodsAttribute);
|
||||
return getDataTable(list);
|
||||
}
|
||||
|
||||
/**
|
||||
* 导出商品属性列表
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('goods:goodsAttribute:export')")
|
||||
@Log(title = "商品属性", businessType = BusinessType.EXPORT)
|
||||
@PostMapping("/export")
|
||||
public void export(HttpServletResponse response, GoodsAttribute goodsAttribute)
|
||||
{
|
||||
List<GoodsAttribute> list = goodsAttributeService.selectGoodsAttributeList(goodsAttribute);
|
||||
ExcelUtil<GoodsAttribute> util = new ExcelUtil<GoodsAttribute>(GoodsAttribute.class);
|
||||
util.exportExcel(response, list, "商品属性数据");
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取商品属性详细信息
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('goods:goodsAttribute:query')")
|
||||
@GetMapping(value = "/{id}")
|
||||
public AjaxResult getInfo(@PathVariable("id") Long id)
|
||||
{
|
||||
return success(goodsAttributeService.selectGoodsAttributeById(id));
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增商品属性
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('goods:goodsAttribute:add')")
|
||||
@Log(title = "商品属性", businessType = BusinessType.INSERT)
|
||||
@PostMapping
|
||||
public AjaxResult add(@RequestBody GoodsAttribute goodsAttribute)
|
||||
{
|
||||
return toAjax(goodsAttributeService.insertGoodsAttribute(goodsAttribute));
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改商品属性
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('goods:goodsAttribute:edit')")
|
||||
@Log(title = "商品属性", businessType = BusinessType.UPDATE)
|
||||
@PutMapping
|
||||
public AjaxResult edit(@RequestBody GoodsAttribute goodsAttribute)
|
||||
{
|
||||
return toAjax(goodsAttributeService.updateGoodsAttribute(goodsAttribute));
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除商品属性
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('goods:goodsAttribute:remove')")
|
||||
@Log(title = "商品属性", businessType = BusinessType.DELETE)
|
||||
@DeleteMapping("/{ids}")
|
||||
public AjaxResult remove(@PathVariable Long[] ids)
|
||||
{
|
||||
return toAjax(goodsAttributeService.deleteGoodsAttributeByIds(ids));
|
||||
}
|
||||
}
|
@ -0,0 +1,104 @@
|
||||
package cn.qihangerp.api.controller;
|
||||
|
||||
import java.util.List;
|
||||
import jakarta.servlet.http.HttpServletResponse;
|
||||
import org.springframework.security.access.prepost.PreAuthorize;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.web.bind.annotation.GetMapping;
|
||||
import org.springframework.web.bind.annotation.PostMapping;
|
||||
import org.springframework.web.bind.annotation.PutMapping;
|
||||
import org.springframework.web.bind.annotation.DeleteMapping;
|
||||
import org.springframework.web.bind.annotation.PathVariable;
|
||||
import org.springframework.web.bind.annotation.RequestBody;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.bind.annotation.RestController;
|
||||
import cn.qihangerp.common.annotation.Log;
|
||||
import cn.qihangerp.core.controller.BaseController;
|
||||
import cn.qihangerp.domain.AjaxResult;
|
||||
import cn.qihangerp.common.enums.BusinessType;
|
||||
import cn.qihangerp.api.domain.GoodsImg;
|
||||
import cn.qihangerp.api.service.IGoodsImgService;
|
||||
import cn.qihangerp.common.utils.poi.ExcelUtil;
|
||||
import cn.qihangerp.core.page.TableDataInfo;
|
||||
|
||||
/**
|
||||
* 商品图片Controller
|
||||
*
|
||||
* @author qihang
|
||||
* @date 2023-12-29
|
||||
*/
|
||||
@RestController
|
||||
@RequestMapping("/goods/goodsImg")
|
||||
public class GoodsImgController extends BaseController
|
||||
{
|
||||
@Autowired
|
||||
private IGoodsImgService goodsImgService;
|
||||
|
||||
/**
|
||||
* 查询商品图片列表
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('goods:goodsImg:list')")
|
||||
@GetMapping("/list")
|
||||
public TableDataInfo list(GoodsImg goodsImg)
|
||||
{
|
||||
startPage();
|
||||
List<GoodsImg> list = goodsImgService.selectGoodsImgList(goodsImg);
|
||||
return getDataTable(list);
|
||||
}
|
||||
|
||||
/**
|
||||
* 导出商品图片列表
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('goods:goodsImg:export')")
|
||||
@Log(title = "商品图片", businessType = BusinessType.EXPORT)
|
||||
@PostMapping("/export")
|
||||
public void export(HttpServletResponse response, GoodsImg goodsImg)
|
||||
{
|
||||
List<GoodsImg> list = goodsImgService.selectGoodsImgList(goodsImg);
|
||||
ExcelUtil<GoodsImg> util = new ExcelUtil<GoodsImg>(GoodsImg.class);
|
||||
util.exportExcel(response, list, "商品图片数据");
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取商品图片详细信息
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('goods:goodsImg:query')")
|
||||
@GetMapping(value = "/{id}")
|
||||
public AjaxResult getInfo(@PathVariable("id") Long id)
|
||||
{
|
||||
return success(goodsImgService.selectGoodsImgById(id));
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增商品图片
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('goods:goodsImg:add')")
|
||||
@Log(title = "商品图片", businessType = BusinessType.INSERT)
|
||||
@PostMapping
|
||||
public AjaxResult add(@RequestBody GoodsImg goodsImg)
|
||||
{
|
||||
return toAjax(goodsImgService.insertGoodsImg(goodsImg));
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改商品图片
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('goods:goodsImg:edit')")
|
||||
@Log(title = "商品图片", businessType = BusinessType.UPDATE)
|
||||
@PutMapping
|
||||
public AjaxResult edit(@RequestBody GoodsImg goodsImg)
|
||||
{
|
||||
return toAjax(goodsImgService.updateGoodsImg(goodsImg));
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除商品图片
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('goods:goodsImg:remove')")
|
||||
@Log(title = "商品图片", businessType = BusinessType.DELETE)
|
||||
@DeleteMapping("/{ids}")
|
||||
public AjaxResult remove(@PathVariable Long[] ids)
|
||||
{
|
||||
return toAjax(goodsImgService.deleteGoodsImgByIds(ids));
|
||||
}
|
||||
}
|
@ -0,0 +1,104 @@
|
||||
package cn.qihangerp.api.controller;
|
||||
|
||||
import java.util.List;
|
||||
import jakarta.servlet.http.HttpServletResponse;
|
||||
import org.springframework.security.access.prepost.PreAuthorize;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.web.bind.annotation.GetMapping;
|
||||
import org.springframework.web.bind.annotation.PostMapping;
|
||||
import org.springframework.web.bind.annotation.PutMapping;
|
||||
import org.springframework.web.bind.annotation.DeleteMapping;
|
||||
import org.springframework.web.bind.annotation.PathVariable;
|
||||
import org.springframework.web.bind.annotation.RequestBody;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.bind.annotation.RestController;
|
||||
import cn.qihangerp.common.annotation.Log;
|
||||
import cn.qihangerp.core.controller.BaseController;
|
||||
import cn.qihangerp.domain.AjaxResult;
|
||||
import cn.qihangerp.common.enums.BusinessType;
|
||||
import cn.qihangerp.api.domain.GoodsSpecAttr;
|
||||
import cn.qihangerp.api.service.IGoodsSpecAttrService;
|
||||
import cn.qihangerp.common.utils.poi.ExcelUtil;
|
||||
import cn.qihangerp.core.page.TableDataInfo;
|
||||
|
||||
/**
|
||||
* 商品规格属性Controller
|
||||
*
|
||||
* @author qihang
|
||||
* @date 2023-12-29
|
||||
*/
|
||||
@RestController
|
||||
@RequestMapping("/goods/goodsSpecAttr")
|
||||
public class GoodsSpecAttrController extends BaseController
|
||||
{
|
||||
@Autowired
|
||||
private IGoodsSpecAttrService goodsSpecAttrService;
|
||||
|
||||
/**
|
||||
* 查询商品规格属性列表
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('goods:goodsSpecAttr:list')")
|
||||
@GetMapping("/list")
|
||||
public TableDataInfo list(GoodsSpecAttr goodsSpecAttr)
|
||||
{
|
||||
startPage();
|
||||
List<GoodsSpecAttr> list = goodsSpecAttrService.selectGoodsSpecAttrList(goodsSpecAttr);
|
||||
return getDataTable(list);
|
||||
}
|
||||
|
||||
/**
|
||||
* 导出商品规格属性列表
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('goods:goodsSpecAttr:export')")
|
||||
@Log(title = "商品规格属性", businessType = BusinessType.EXPORT)
|
||||
@PostMapping("/export")
|
||||
public void export(HttpServletResponse response, GoodsSpecAttr goodsSpecAttr)
|
||||
{
|
||||
List<GoodsSpecAttr> list = goodsSpecAttrService.selectGoodsSpecAttrList(goodsSpecAttr);
|
||||
ExcelUtil<GoodsSpecAttr> util = new ExcelUtil<GoodsSpecAttr>(GoodsSpecAttr.class);
|
||||
util.exportExcel(response, list, "商品规格属性数据");
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取商品规格属性详细信息
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('goods:goodsSpecAttr:query')")
|
||||
@GetMapping(value = "/{id}")
|
||||
public AjaxResult getInfo(@PathVariable("id") Long id)
|
||||
{
|
||||
return success(goodsSpecAttrService.selectGoodsSpecAttrById(id));
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增商品规格属性
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('goods:goodsSpecAttr:add')")
|
||||
@Log(title = "商品规格属性", businessType = BusinessType.INSERT)
|
||||
@PostMapping
|
||||
public AjaxResult add(@RequestBody GoodsSpecAttr goodsSpecAttr)
|
||||
{
|
||||
return toAjax(goodsSpecAttrService.insertGoodsSpecAttr(goodsSpecAttr));
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改商品规格属性
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('goods:goodsSpecAttr:edit')")
|
||||
@Log(title = "商品规格属性", businessType = BusinessType.UPDATE)
|
||||
@PutMapping
|
||||
public AjaxResult edit(@RequestBody GoodsSpecAttr goodsSpecAttr)
|
||||
{
|
||||
return toAjax(goodsSpecAttrService.updateGoodsSpecAttr(goodsSpecAttr));
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除商品规格属性
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('goods:goodsSpecAttr:remove')")
|
||||
@Log(title = "商品规格属性", businessType = BusinessType.DELETE)
|
||||
@DeleteMapping("/{ids}")
|
||||
public AjaxResult remove(@PathVariable Long[] ids)
|
||||
{
|
||||
return toAjax(goodsSpecAttrService.deleteGoodsSpecAttrByIds(ids));
|
||||
}
|
||||
}
|
@ -0,0 +1,101 @@
|
||||
package cn.qihangerp.api.controller;
|
||||
|
||||
import java.util.List;
|
||||
import jakarta.servlet.http.HttpServletResponse;
|
||||
import org.springframework.security.access.prepost.PreAuthorize;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.web.bind.annotation.GetMapping;
|
||||
import org.springframework.web.bind.annotation.PostMapping;
|
||||
import org.springframework.web.bind.annotation.PathVariable;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.bind.annotation.RestController;
|
||||
import cn.qihangerp.common.annotation.Log;
|
||||
import cn.qihangerp.core.controller.BaseController;
|
||||
import cn.qihangerp.domain.AjaxResult;
|
||||
import cn.qihangerp.common.enums.BusinessType;
|
||||
import cn.qihangerp.api.domain.GoodsSpec;
|
||||
import cn.qihangerp.api.service.IGoodsSpecService;
|
||||
import cn.qihangerp.common.utils.poi.ExcelUtil;
|
||||
import cn.qihangerp.core.page.TableDataInfo;
|
||||
|
||||
/**
|
||||
* 商品规格Controller
|
||||
*
|
||||
* @author qihang
|
||||
* @date 2023-12-29
|
||||
*/
|
||||
@RestController
|
||||
@RequestMapping("/goods/goodsSpec")
|
||||
public class GoodsSpecController extends BaseController
|
||||
{
|
||||
@Autowired
|
||||
private IGoodsSpecService goodsSpecService;
|
||||
|
||||
/**
|
||||
* 查询商品规格列表
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('goods:goodsSpec:list')")
|
||||
@GetMapping("/list")
|
||||
public TableDataInfo list(GoodsSpec goodsSpec)
|
||||
{
|
||||
startPage();
|
||||
List<GoodsSpec> list = goodsSpecService.selectGoodsSpecList(goodsSpec);
|
||||
return getDataTable(list);
|
||||
}
|
||||
|
||||
/**
|
||||
* 导出商品规格列表
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('goods:goodsSpec:export')")
|
||||
@Log(title = "商品规格", businessType = BusinessType.EXPORT)
|
||||
@PostMapping("/export")
|
||||
public void export(HttpServletResponse response, GoodsSpec goodsSpec)
|
||||
{
|
||||
List<GoodsSpec> list = goodsSpecService.selectGoodsSpecList(goodsSpec);
|
||||
ExcelUtil<GoodsSpec> util = new ExcelUtil<GoodsSpec>(GoodsSpec.class);
|
||||
util.exportExcel(response, list, "商品规格数据");
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取商品规格详细信息
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('goods:goodsSpec:query')")
|
||||
@GetMapping(value = "/{id}")
|
||||
public AjaxResult getInfo(@PathVariable("id") Long id)
|
||||
{
|
||||
return success(goodsSpecService.selectGoodsSpecById(id));
|
||||
}
|
||||
|
||||
// /**
|
||||
// * 新增商品规格
|
||||
// */
|
||||
// @PreAuthorize("@ss.hasPermi('goods:goodsSpec:add')")
|
||||
// @Log(title = "商品规格", businessType = BusinessType.INSERT)
|
||||
// @PostMapping
|
||||
// public AjaxResult add(@RequestBody GoodsSpec goodsSpec)
|
||||
// {
|
||||
// return toAjax(goodsSpecService.insertGoodsSpec(goodsSpec));
|
||||
// }
|
||||
//
|
||||
// /**
|
||||
// * 修改商品规格
|
||||
// */
|
||||
// @PreAuthorize("@ss.hasPermi('goods:goodsSpec:edit')")
|
||||
// @Log(title = "商品规格", businessType = BusinessType.UPDATE)
|
||||
// @PutMapping
|
||||
// public AjaxResult edit(@RequestBody GoodsSpec goodsSpec)
|
||||
// {
|
||||
// return toAjax(goodsSpecService.updateGoodsSpec(goodsSpec));
|
||||
// }
|
||||
//
|
||||
// /**
|
||||
// * 删除商品规格
|
||||
// */
|
||||
// @PreAuthorize("@ss.hasPermi('goods:goodsSpec:remove')")
|
||||
// @Log(title = "商品规格", businessType = BusinessType.DELETE)
|
||||
// @DeleteMapping("/{ids}")
|
||||
// public AjaxResult remove(@PathVariable Long[] ids)
|
||||
// {
|
||||
// return toAjax(goodsSpecService.deleteGoodsSpecByIds(ids));
|
||||
// }
|
||||
}
|
@ -0,0 +1,29 @@
|
||||
package cn.qihangerp.api.controller;
|
||||
|
||||
//import com.alibaba.nacos.api.config.annotation.NacosValue;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.beans.factory.annotation.Value;
|
||||
import org.springframework.stereotype.Controller;
|
||||
import org.springframework.web.bind.annotation.GetMapping;
|
||||
import org.springframework.web.bind.annotation.RestController;
|
||||
|
||||
@RestController
|
||||
public class HomeController {
|
||||
// @Autowired
|
||||
// private MySpiderController spiderController;
|
||||
|
||||
// @GetMapping("/test/22")
|
||||
// public String home(){
|
||||
// spiderController.startSpider();
|
||||
// return "hello world";
|
||||
// }
|
||||
|
||||
@Value(value = "${zhijian.name:1}")
|
||||
private String serverName;
|
||||
|
||||
@GetMapping(value = "/test/na")
|
||||
public String get() {
|
||||
return serverName;
|
||||
}
|
||||
|
||||
}
|
@ -0,0 +1,63 @@
|
||||
package cn.qihangerp.api.controller;
|
||||
|
||||
import cn.qihangerp.api.req.KeyWordListReq;
|
||||
import cn.qihangerp.common.ApiResult;
|
||||
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
||||
import cn.qihangerp.api.domain.Keyword;
|
||||
|
||||
import cn.qihangerp.api.service.IKeywordService;
|
||||
import cn.qihangerp.common.annotation.Log;
|
||||
import cn.qihangerp.common.annotation.RepeatSubmit;
|
||||
import cn.qihangerp.common.enums.BusinessType;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
|
||||
@RestController
|
||||
@RequestMapping("/keyword")
|
||||
public class KeywordController {
|
||||
private final IKeywordService keywordService;
|
||||
|
||||
public KeywordController(IKeywordService keywordService) {
|
||||
this.keywordService = keywordService;
|
||||
}
|
||||
|
||||
@GetMapping("/list")
|
||||
public Page<Keyword> list(KeyWordListReq req){
|
||||
System.out.println(req);
|
||||
Page<Keyword> listAll = keywordService.getPageList(req);
|
||||
System.out.println(listAll);
|
||||
return listAll;
|
||||
}
|
||||
|
||||
@Log(title="市场洞察-热搜词",businessType = BusinessType.INSERT)
|
||||
@RepeatSubmit
|
||||
@PostMapping("/save")
|
||||
public ApiResult<String> save(@RequestBody Keyword keyword){
|
||||
System.out.println(keyword);
|
||||
if(keyword.getCreateTime() == null){
|
||||
keyword.setCreateTime(null);
|
||||
}
|
||||
// if(StringUtils.isNotEmpty(keyword.getDate()) && keyword.getDate().length()>10){
|
||||
// keyword.setDate(keyword.getDate().substring(0,10));
|
||||
// }
|
||||
keywordService.add(keyword);
|
||||
return ApiResult.ok();
|
||||
}
|
||||
|
||||
@DeleteMapping("/del/{id}")
|
||||
public ApiResult<String> del(@PathVariable ("id") String id){
|
||||
System.out.println(id);
|
||||
keywordService.delById(id);
|
||||
return ApiResult.ok();
|
||||
}
|
||||
|
||||
@PutMapping("/edit")
|
||||
public ApiResult<String> edit(@RequestBody Keyword keyword)
|
||||
{
|
||||
// if(StringUtils.isNotEmpty(keyword.getDate()) && keyword.getDate().length()>10){
|
||||
// keyword.setDate(keyword.getDate().substring(0,10));
|
||||
// }
|
||||
System.out.println(keyword);
|
||||
keywordService.editById(keyword);
|
||||
return ApiResult.ok();
|
||||
}
|
||||
}
|
@ -0,0 +1,30 @@
|
||||
//package cn.qihangerp.api.controller;
|
||||
//
|
||||
//
|
||||
//import lombok.extern.java.Log;
|
||||
//import us.codecraft.webmagic.Page;
|
||||
//import us.codecraft.webmagic.Site;
|
||||
//import us.codecraft.webmagic.processor.PageProcessor;
|
||||
//import us.codecraft.webmagic.selector.Selectable;
|
||||
//
|
||||
//@Log
|
||||
//public class MyPageProcessor implements PageProcessor {
|
||||
// private Site site = Site.me().setRetryTimes(3).setSleepTime(1000);
|
||||
// @Override
|
||||
// public void process(Page page) {
|
||||
// String url = page.getUrl().toString();
|
||||
// log.info("开始抓取网页内容"+url);
|
||||
// // 处理抓取到的网页内容的逻辑
|
||||
//
|
||||
//// Selectable xpath = page.getHtml().xpath("//td/text()");
|
||||
// Selectable xpath = page.getHtml().xpath("//div[@class='hotword-container']/a/text()");
|
||||
// System.out.println(xpath);
|
||||
// log.info("完成");
|
||||
// }
|
||||
//
|
||||
// @Override
|
||||
// public Site getSite() {
|
||||
//// return PageProcessor.super.getSite();
|
||||
// return site;
|
||||
// }
|
||||
//}
|
@ -0,0 +1,116 @@
|
||||
package cn.qihangerp.api.controller;
|
||||
|
||||
import java.util.List;
|
||||
import jakarta.servlet.http.HttpServletResponse;
|
||||
|
||||
import cn.qihangerp.api.domain.bo.PurchaseOrderAddBo;
|
||||
import cn.qihangerp.api.domain.bo.PurchaseOrderOptionBo;
|
||||
import org.springframework.security.access.prepost.PreAuthorize;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.web.bind.annotation.GetMapping;
|
||||
import org.springframework.web.bind.annotation.PostMapping;
|
||||
import org.springframework.web.bind.annotation.PutMapping;
|
||||
import org.springframework.web.bind.annotation.DeleteMapping;
|
||||
import org.springframework.web.bind.annotation.PathVariable;
|
||||
import org.springframework.web.bind.annotation.RequestBody;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.bind.annotation.RestController;
|
||||
import cn.qihangerp.common.annotation.Log;
|
||||
import cn.qihangerp.core.controller.BaseController;
|
||||
import cn.qihangerp.domain.AjaxResult;
|
||||
import cn.qihangerp.common.enums.BusinessType;
|
||||
import cn.qihangerp.api.domain.ScmPurchaseOrder;
|
||||
import cn.qihangerp.api.service.IScmPurchaseOrderService;
|
||||
import cn.qihangerp.common.utils.poi.ExcelUtil;
|
||||
import cn.qihangerp.core.page.TableDataInfo;
|
||||
|
||||
/**
|
||||
* 采购订单Controller
|
||||
*
|
||||
* @author qihang
|
||||
* @date 2023-12-29
|
||||
*/
|
||||
@RestController
|
||||
@RequestMapping("/purchase/purchaseOrder")
|
||||
public class ScmPurchaseOrderController extends BaseController
|
||||
{
|
||||
@Autowired
|
||||
private IScmPurchaseOrderService scmPurchaseOrderService;
|
||||
|
||||
/**
|
||||
* 查询采购订单列表
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('purchase:purchaseOrder:list')")
|
||||
@GetMapping("/list")
|
||||
public TableDataInfo list(ScmPurchaseOrder scmPurchaseOrder)
|
||||
{
|
||||
startPage();
|
||||
List<ScmPurchaseOrder> list = scmPurchaseOrderService.selectScmPurchaseOrderList(scmPurchaseOrder);
|
||||
return getDataTable(list);
|
||||
}
|
||||
|
||||
/**
|
||||
* 导出采购订单列表
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('purchase:purchaseOrder:export')")
|
||||
@Log(title = "采购订单", businessType = BusinessType.EXPORT)
|
||||
@PostMapping("/export")
|
||||
public void export(HttpServletResponse response, ScmPurchaseOrder scmPurchaseOrder)
|
||||
{
|
||||
List<ScmPurchaseOrder> list = scmPurchaseOrderService.selectScmPurchaseOrderList(scmPurchaseOrder);
|
||||
ExcelUtil<ScmPurchaseOrder> util = new ExcelUtil<ScmPurchaseOrder>(ScmPurchaseOrder.class);
|
||||
util.exportExcel(response, list, "采购订单数据");
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取采购订单详细信息
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('purchase:purchaseOrder:query')")
|
||||
@GetMapping(value = "/{id}")
|
||||
public AjaxResult getInfo(@PathVariable("id") Long id)
|
||||
{
|
||||
ScmPurchaseOrder order = scmPurchaseOrderService.selectScmPurchaseOrderById(id);
|
||||
return success(order);
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增采购订单
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('purchase:purchaseOrder:add')")
|
||||
@Log(title = "采购订单", businessType = BusinessType.INSERT)
|
||||
@PostMapping
|
||||
public AjaxResult add(@RequestBody PurchaseOrderAddBo addBo)
|
||||
{
|
||||
addBo.setCreateBy(getUsername());
|
||||
return toAjax(scmPurchaseOrderService.insertScmPurchaseOrder(addBo));
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改采购订单
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('purchase:purchaseOrder:edit')")
|
||||
@Log(title = "采购订单", businessType = BusinessType.UPDATE)
|
||||
@PutMapping
|
||||
public AjaxResult edit(@RequestBody PurchaseOrderOptionBo scmPurchaseOrder)
|
||||
{
|
||||
scmPurchaseOrder.setUpdateBy(getUsername());
|
||||
int result = scmPurchaseOrderService.updateScmPurchaseOrder(scmPurchaseOrder);
|
||||
if(result == -1){
|
||||
return new AjaxResult(0,"状态不正确");
|
||||
}else{
|
||||
return toAjax(result);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除采购订单
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('purchase:purchaseOrder:remove')")
|
||||
@Log(title = "采购订单", businessType = BusinessType.DELETE)
|
||||
@DeleteMapping("/{ids}")
|
||||
public AjaxResult remove(@PathVariable Long[] ids)
|
||||
{
|
||||
return toAjax(scmPurchaseOrderService.deleteScmPurchaseOrderByIds(ids));
|
||||
}
|
||||
}
|
@ -0,0 +1,86 @@
|
||||
package cn.qihangerp.api.controller;
|
||||
|
||||
import java.util.List;
|
||||
import jakarta.servlet.http.HttpServletResponse;
|
||||
import org.springframework.security.access.prepost.PreAuthorize;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.web.bind.annotation.GetMapping;
|
||||
import org.springframework.web.bind.annotation.PostMapping;
|
||||
import org.springframework.web.bind.annotation.PutMapping;
|
||||
import org.springframework.web.bind.annotation.PathVariable;
|
||||
import org.springframework.web.bind.annotation.RequestBody;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.bind.annotation.RestController;
|
||||
import cn.qihangerp.common.annotation.Log;
|
||||
import cn.qihangerp.core.controller.BaseController;
|
||||
import cn.qihangerp.domain.AjaxResult;
|
||||
import cn.qihangerp.common.enums.BusinessType;
|
||||
import cn.qihangerp.api.domain.ScmPurchaseOrderCost;
|
||||
import cn.qihangerp.api.service.IScmPurchaseOrderCostService;
|
||||
import cn.qihangerp.common.utils.poi.ExcelUtil;
|
||||
import cn.qihangerp.core.page.TableDataInfo;
|
||||
|
||||
/**
|
||||
* 采购订单费用确认Controller
|
||||
*
|
||||
* @author qihang
|
||||
* @date 2023-12-30
|
||||
*/
|
||||
@RestController
|
||||
@RequestMapping("/purchase/purchaseOrderCost")
|
||||
public class ScmPurchaseOrderCostController extends BaseController
|
||||
{
|
||||
@Autowired
|
||||
private IScmPurchaseOrderCostService scmPurchaseOrderCostService;
|
||||
|
||||
/**
|
||||
* 查询采购订单费用确认列表
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('purchase:purchaseOrderCost:list')")
|
||||
@GetMapping("/list")
|
||||
public TableDataInfo list(ScmPurchaseOrderCost scmPurchaseOrderCost)
|
||||
{
|
||||
startPage();
|
||||
List<ScmPurchaseOrderCost> list = scmPurchaseOrderCostService.selectScmPurchaseOrderCostList(scmPurchaseOrderCost);
|
||||
return getDataTable(list);
|
||||
}
|
||||
|
||||
/**
|
||||
* 导出采购订单费用确认列表
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('purchase:purchaseOrderCost:export')")
|
||||
@Log(title = "采购订单费用确认", businessType = BusinessType.EXPORT)
|
||||
@PostMapping("/export")
|
||||
public void export(HttpServletResponse response, ScmPurchaseOrderCost scmPurchaseOrderCost)
|
||||
{
|
||||
List<ScmPurchaseOrderCost> list = scmPurchaseOrderCostService.selectScmPurchaseOrderCostList(scmPurchaseOrderCost);
|
||||
ExcelUtil<ScmPurchaseOrderCost> util = new ExcelUtil<ScmPurchaseOrderCost>(ScmPurchaseOrderCost.class);
|
||||
util.exportExcel(response, list, "采购订单费用确认数据");
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取采购订单费用确认详细信息
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('purchase:purchaseOrderCost:query')")
|
||||
@GetMapping(value = "/{id}")
|
||||
public AjaxResult getInfo(@PathVariable("id") Long id)
|
||||
{
|
||||
return success(scmPurchaseOrderCostService.selectScmPurchaseOrderCostById(id));
|
||||
}
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* 修改采购订单费用确认
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('purchase:purchaseOrderCost:edit')")
|
||||
@Log(title = "采购订单费用确认", businessType = BusinessType.UPDATE)
|
||||
@PutMapping
|
||||
public AjaxResult edit(@RequestBody ScmPurchaseOrderCost scmPurchaseOrderCost)
|
||||
{
|
||||
scmPurchaseOrderCost.setUpdateBy(getUsername());
|
||||
return toAjax(scmPurchaseOrderCostService.updateScmPurchaseOrderCost(scmPurchaseOrderCost));
|
||||
}
|
||||
|
||||
|
||||
}
|
@ -0,0 +1,41 @@
|
||||
package cn.qihangerp.api.controller;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import org.springframework.security.access.prepost.PreAuthorize;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.web.bind.annotation.GetMapping;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.bind.annotation.RestController;
|
||||
import cn.qihangerp.core.controller.BaseController;
|
||||
import cn.qihangerp.api.domain.ScmPurchaseOrderItem;
|
||||
import cn.qihangerp.api.service.IScmPurchaseOrderItemService;
|
||||
import cn.qihangerp.core.page.TableDataInfo;
|
||||
|
||||
/**
|
||||
* 采购订单明细Controller
|
||||
*
|
||||
* @author qihang
|
||||
* @date 2023-12-29
|
||||
*/
|
||||
@RestController
|
||||
@RequestMapping("/purchase/purchaseOrderItem")
|
||||
public class ScmPurchaseOrderItemController extends BaseController
|
||||
{
|
||||
@Autowired
|
||||
private IScmPurchaseOrderItemService scmPurchaseOrderItemService;
|
||||
|
||||
/**
|
||||
* 查询采购订单明细列表
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('purchase:purchaseOrderItem:list')")
|
||||
@GetMapping("/list")
|
||||
public TableDataInfo list(ScmPurchaseOrderItem scmPurchaseOrderItem)
|
||||
{
|
||||
startPage();
|
||||
List<ScmPurchaseOrderItem> list = scmPurchaseOrderItemService.selectScmPurchaseOrderItemList(scmPurchaseOrderItem);
|
||||
return getDataTable(list);
|
||||
}
|
||||
|
||||
|
||||
}
|
@ -0,0 +1,103 @@
|
||||
package cn.qihangerp.api.controller;
|
||||
|
||||
import java.util.List;
|
||||
import jakarta.servlet.http.HttpServletResponse;
|
||||
|
||||
import cn.qihangerp.api.domain.bo.PurchaseOrderStockInBo;
|
||||
import org.springframework.security.access.prepost.PreAuthorize;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.web.bind.annotation.GetMapping;
|
||||
import org.springframework.web.bind.annotation.PostMapping;
|
||||
import org.springframework.web.bind.annotation.PutMapping;
|
||||
import org.springframework.web.bind.annotation.PathVariable;
|
||||
import org.springframework.web.bind.annotation.RequestBody;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.bind.annotation.RestController;
|
||||
import cn.qihangerp.common.annotation.Log;
|
||||
import cn.qihangerp.core.controller.BaseController;
|
||||
import cn.qihangerp.domain.AjaxResult;
|
||||
import cn.qihangerp.common.enums.BusinessType;
|
||||
import cn.qihangerp.api.domain.ScmPurchaseOrderShip;
|
||||
import cn.qihangerp.api.service.IScmPurchaseOrderShipService;
|
||||
import cn.qihangerp.common.utils.poi.ExcelUtil;
|
||||
import cn.qihangerp.core.page.TableDataInfo;
|
||||
|
||||
/**
|
||||
* 采购订单物流Controller
|
||||
*
|
||||
* @author qihang
|
||||
* @date 2023-12-30
|
||||
*/
|
||||
@RestController
|
||||
@RequestMapping("/purchase/PurchaseOrderShip")
|
||||
public class ScmPurchaseOrderShipController extends BaseController
|
||||
{
|
||||
@Autowired
|
||||
private IScmPurchaseOrderShipService scmPurchaseOrderShipService;
|
||||
|
||||
/**
|
||||
* 查询采购订单物流列表
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('purchase:PurchaseOrderShip:list')")
|
||||
@GetMapping("/list")
|
||||
public TableDataInfo list(ScmPurchaseOrderShip scmPurchaseOrderShip)
|
||||
{
|
||||
startPage();
|
||||
List<ScmPurchaseOrderShip> list = scmPurchaseOrderShipService.selectScmPurchaseOrderShipList(scmPurchaseOrderShip);
|
||||
return getDataTable(list);
|
||||
}
|
||||
|
||||
/**
|
||||
* 导出采购订单物流列表
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('purchase:PurchaseOrderShip:export')")
|
||||
@Log(title = "采购订单物流", businessType = BusinessType.EXPORT)
|
||||
@PostMapping("/export")
|
||||
public void export(HttpServletResponse response, ScmPurchaseOrderShip scmPurchaseOrderShip)
|
||||
{
|
||||
List<ScmPurchaseOrderShip> list = scmPurchaseOrderShipService.selectScmPurchaseOrderShipList(scmPurchaseOrderShip);
|
||||
ExcelUtil<ScmPurchaseOrderShip> util = new ExcelUtil<ScmPurchaseOrderShip>(ScmPurchaseOrderShip.class);
|
||||
util.exportExcel(response, list, "采购订单物流数据");
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取采购订单物流详细信息
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('purchase:PurchaseOrderShip:query')")
|
||||
@GetMapping(value = "/{id}")
|
||||
public AjaxResult getInfo(@PathVariable("id") Long id)
|
||||
{
|
||||
return success(scmPurchaseOrderShipService.selectScmPurchaseOrderShipById(id));
|
||||
}
|
||||
|
||||
/**
|
||||
* 确认收货
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('purchase:PurchaseOrderShip:edit')")
|
||||
@Log(title = "采购订单物流", businessType = BusinessType.UPDATE)
|
||||
@PutMapping
|
||||
public AjaxResult confirmReceipt(@RequestBody ScmPurchaseOrderShip scmPurchaseOrderShip)
|
||||
{
|
||||
scmPurchaseOrderShip.setUpdateBy(getUsername());
|
||||
return toAjax(scmPurchaseOrderShipService.updateScmPurchaseOrderShip(scmPurchaseOrderShip));
|
||||
}
|
||||
|
||||
@Log(title = "采购订单物流", businessType = BusinessType.UPDATE)
|
||||
@PostMapping("/createStockInEntry")
|
||||
public AjaxResult createStockInEntry(@RequestBody PurchaseOrderStockInBo bo)
|
||||
{
|
||||
bo.setCreateBy(getUsername());
|
||||
int result = scmPurchaseOrderShipService.createStockInEntry(bo);
|
||||
if(result == -1) return new AjaxResult(404,"采购物流不存在");
|
||||
else if (result == -2) return new AjaxResult(501,"未确认收货不允许操作");
|
||||
else if (result == -3) {
|
||||
return new AjaxResult(502,"已处理过了请勿重复操作");
|
||||
} else if (result == -4) {
|
||||
return new AjaxResult(503,"状态不正确不能操作");
|
||||
} else if (result == 1) {
|
||||
return toAjax(1);
|
||||
}else return toAjax(result);
|
||||
}
|
||||
|
||||
|
||||
}
|
@ -0,0 +1,104 @@
|
||||
package cn.qihangerp.api.controller;
|
||||
|
||||
import java.util.List;
|
||||
import jakarta.servlet.http.HttpServletResponse;
|
||||
import org.springframework.security.access.prepost.PreAuthorize;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.web.bind.annotation.GetMapping;
|
||||
import org.springframework.web.bind.annotation.PostMapping;
|
||||
import org.springframework.web.bind.annotation.PutMapping;
|
||||
import org.springframework.web.bind.annotation.DeleteMapping;
|
||||
import org.springframework.web.bind.annotation.PathVariable;
|
||||
import org.springframework.web.bind.annotation.RequestBody;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.bind.annotation.RestController;
|
||||
import cn.qihangerp.common.annotation.Log;
|
||||
import cn.qihangerp.core.controller.BaseController;
|
||||
import cn.qihangerp.domain.AjaxResult;
|
||||
import cn.qihangerp.common.enums.BusinessType;
|
||||
import cn.qihangerp.api.domain.ScmSupplier;
|
||||
import cn.qihangerp.api.service.IScmSupplierService;
|
||||
import cn.qihangerp.common.utils.poi.ExcelUtil;
|
||||
import cn.qihangerp.core.page.TableDataInfo;
|
||||
|
||||
/**
|
||||
* 【请填写功能名称】Controller
|
||||
*
|
||||
* @author qihang
|
||||
* @date 2023-12-29
|
||||
*/
|
||||
@RestController
|
||||
@RequestMapping("/scm/supplier")
|
||||
public class ScmSupplierController extends BaseController
|
||||
{
|
||||
@Autowired
|
||||
private IScmSupplierService scmSupplierService;
|
||||
|
||||
/**
|
||||
* 查询【请填写功能名称】列表
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('scm:supplier:list')")
|
||||
@GetMapping("/list")
|
||||
public TableDataInfo list(ScmSupplier scmSupplier)
|
||||
{
|
||||
startPage();
|
||||
List<ScmSupplier> list = scmSupplierService.selectScmSupplierList(scmSupplier);
|
||||
return getDataTable(list);
|
||||
}
|
||||
|
||||
/**
|
||||
* 导出【请填写功能名称】列表
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('api:supplier:export')")
|
||||
@Log(title = "【请填写功能名称】", businessType = BusinessType.EXPORT)
|
||||
@PostMapping("/export")
|
||||
public void export(HttpServletResponse response, ScmSupplier scmSupplier)
|
||||
{
|
||||
List<ScmSupplier> list = scmSupplierService.selectScmSupplierList(scmSupplier);
|
||||
ExcelUtil<ScmSupplier> util = new ExcelUtil<ScmSupplier>(ScmSupplier.class);
|
||||
util.exportExcel(response, list, "【请填写功能名称】数据");
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取【请填写功能名称】详细信息
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('api:supplier:query')")
|
||||
@GetMapping(value = "/{id}")
|
||||
public AjaxResult getInfo(@PathVariable("id") Long id)
|
||||
{
|
||||
return success(scmSupplierService.selectScmSupplierById(id));
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增【请填写功能名称】
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('api:supplier:add')")
|
||||
@Log(title = "【请填写功能名称】", businessType = BusinessType.INSERT)
|
||||
@PostMapping
|
||||
public AjaxResult add(@RequestBody ScmSupplier scmSupplier)
|
||||
{
|
||||
return toAjax(scmSupplierService.insertScmSupplier(scmSupplier));
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改【请填写功能名称】
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('api:supplier:edit')")
|
||||
@Log(title = "【请填写功能名称】", businessType = BusinessType.UPDATE)
|
||||
@PutMapping
|
||||
public AjaxResult edit(@RequestBody ScmSupplier scmSupplier)
|
||||
{
|
||||
return toAjax(scmSupplierService.updateScmSupplier(scmSupplier));
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除【请填写功能名称】
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('api:supplier:remove')")
|
||||
@Log(title = "【请填写功能名称】", businessType = BusinessType.DELETE)
|
||||
@DeleteMapping("/{ids}")
|
||||
public AjaxResult remove(@PathVariable Long[] ids)
|
||||
{
|
||||
return toAjax(scmSupplierService.deleteScmSupplierByIds(ids));
|
||||
}
|
||||
}
|
@ -0,0 +1,61 @@
|
||||
package cn.qihangerp.api.controller;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import cn.qihangerp.api.domain.ErpShipOrderAgentFee;
|
||||
import cn.qihangerp.api.service.ErpShipOrderAgentFeeService;
|
||||
import cn.qihangerp.common.PageQuery;
|
||||
import cn.qihangerp.common.PageResult;
|
||||
import jakarta.servlet.http.HttpServletResponse;
|
||||
import org.springframework.security.access.prepost.PreAuthorize;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.web.bind.annotation.GetMapping;
|
||||
import org.springframework.web.bind.annotation.PostMapping;
|
||||
import org.springframework.web.bind.annotation.PathVariable;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.bind.annotation.RestController;
|
||||
import cn.qihangerp.common.annotation.Log;
|
||||
import cn.qihangerp.core.controller.BaseController;
|
||||
import cn.qihangerp.domain.AjaxResult;
|
||||
import cn.qihangerp.common.enums.BusinessType;
|
||||
import cn.qihangerp.common.utils.poi.ExcelUtil;
|
||||
import cn.qihangerp.core.page.TableDataInfo;
|
||||
|
||||
/**
|
||||
* 财务管理-应付款-代发账单Controller
|
||||
*
|
||||
* @author qihang
|
||||
* @date 2024-01-28
|
||||
*/
|
||||
@RestController
|
||||
@RequestMapping("/fms/agentShip")
|
||||
public class ShipOrderAgentFeeController extends BaseController
|
||||
{
|
||||
@Autowired
|
||||
private ErpShipOrderAgentFeeService agentFeeService;
|
||||
|
||||
/**
|
||||
* 查询财务管理-应付款-代发账单列表
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('fms:agentShip:list')")
|
||||
@GetMapping("/list")
|
||||
public TableDataInfo list(ErpShipOrderAgentFee bo, PageQuery pageQuery)
|
||||
{
|
||||
PageResult<ErpShipOrderAgentFee> pageResult = agentFeeService.queryPageList(bo, pageQuery);
|
||||
return getDataTable(pageResult);
|
||||
}
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* 获取财务管理-应付款-代发账单详细信息
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('fms:agentShip:query')")
|
||||
@GetMapping(value = "/{id}")
|
||||
public AjaxResult getInfo(@PathVariable("id") Long id)
|
||||
{
|
||||
return success(agentFeeService.getById(id));
|
||||
}
|
||||
|
||||
|
||||
}
|
@ -0,0 +1,56 @@
|
||||
package cn.qihangerp.api.controller;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import cn.qihangerp.api.domain.ErpShipOrderFee;
|
||||
import cn.qihangerp.api.service.ErpShipOrderFeeService;
|
||||
import cn.qihangerp.common.PageQuery;
|
||||
import cn.qihangerp.common.PageResult;
|
||||
import org.springframework.security.access.prepost.PreAuthorize;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.web.bind.annotation.GetMapping;
|
||||
import org.springframework.web.bind.annotation.PathVariable;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.bind.annotation.RestController;
|
||||
import cn.qihangerp.core.controller.BaseController;
|
||||
import cn.qihangerp.domain.AjaxResult;
|
||||
import cn.qihangerp.core.page.TableDataInfo;
|
||||
|
||||
/**
|
||||
* 财务管理-应付款-物流费用Controller
|
||||
*
|
||||
* @author qihang
|
||||
* @date 2024-01-28
|
||||
*/
|
||||
@RestController
|
||||
@RequestMapping("/fms/shipFee")
|
||||
public class ShipOrderFeeController extends BaseController
|
||||
{
|
||||
@Autowired
|
||||
private ErpShipOrderFeeService feeService;
|
||||
|
||||
/**
|
||||
* 查询财务管理-应付款-物流费用列表
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('fms:shipFee:list')")
|
||||
@GetMapping("/list")
|
||||
public TableDataInfo list(ErpShipOrderFee bo, PageQuery pageQuery)
|
||||
{
|
||||
PageResult<ErpShipOrderFee> pageResult = feeService.queryPageList(bo, pageQuery);
|
||||
return getDataTable(pageResult);
|
||||
}
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* 获取财务管理-应付款-物流费用详细信息
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('fms:shipFee:query')")
|
||||
@GetMapping(value = "/{id}")
|
||||
public AjaxResult getInfo(@PathVariable("id") Long id)
|
||||
{
|
||||
return success(feeService.getById(id));
|
||||
}
|
||||
|
||||
|
||||
}
|
@ -0,0 +1,57 @@
|
||||
package cn.qihangerp.api.controller;
|
||||
|
||||
import cn.qihangerp.api.domain.WmsStockOutEntry;
|
||||
import cn.qihangerp.api.domain.WmsStockOutEntryItem;
|
||||
import cn.qihangerp.api.domain.bo.StockOutEntryGenerateBo;
|
||||
import cn.qihangerp.api.service.ErpOrderItemService;
|
||||
import cn.qihangerp.api.service.WmsStockOutEntryItemService;
|
||||
import cn.qihangerp.api.service.WmsStockOutEntryService;
|
||||
import cn.qihangerp.common.PageQuery;
|
||||
import cn.qihangerp.common.PageResult;
|
||||
import cn.qihangerp.common.enums.ErpOrderStatusEnum;
|
||||
import cn.qihangerp.core.controller.BaseController;
|
||||
import cn.qihangerp.core.page.TableDataInfo;
|
||||
import cn.qihangerp.domain.AjaxResult;
|
||||
import cn.qihangerp.domain.ErpOrderItem;
|
||||
import lombok.AllArgsConstructor;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
|
||||
@AllArgsConstructor
|
||||
@RestController
|
||||
@RequestMapping("/shipping")
|
||||
public class ShipStockOutController extends BaseController {
|
||||
private final ErpOrderItemService erpOrderItemService;
|
||||
private final WmsStockOutEntryService stockOutEntryService;
|
||||
private final WmsStockOutEntryItemService stockOutEntryItemService;
|
||||
|
||||
|
||||
/**
|
||||
* 订单待出库出库单list
|
||||
* @param bo
|
||||
* @param pageQuery
|
||||
* @return
|
||||
*/
|
||||
@GetMapping("/order_stock_out_entry_list")
|
||||
public TableDataInfo stockOutEntryList(WmsStockOutEntry bo, PageQuery pageQuery)
|
||||
{
|
||||
bo.setStockOutType(1);
|
||||
bo.setStatus(0);
|
||||
PageResult<WmsStockOutEntry> list = stockOutEntryService.queryPageList(bo, pageQuery);
|
||||
return getDataTable(list);
|
||||
}
|
||||
|
||||
/**
|
||||
* 订单待出库明细list
|
||||
* @param bo
|
||||
* @param pageQuery
|
||||
* @return
|
||||
*/
|
||||
@GetMapping("/order_stock_out_entry_item_list")
|
||||
public TableDataInfo stockOutEntryItemList(WmsStockOutEntryItem bo, PageQuery pageQuery)
|
||||
{
|
||||
bo.setStockOutType(1);
|
||||
bo.setStatus(0);
|
||||
PageResult<WmsStockOutEntryItem> list = stockOutEntryItemService.queryPageList(bo, pageQuery);
|
||||
return getDataTable(list);
|
||||
}
|
||||
}
|
@ -0,0 +1,130 @@
|
||||
package cn.qihangerp.api.controller;
|
||||
|
||||
import java.util.List;
|
||||
import jakarta.servlet.http.HttpServletResponse;
|
||||
|
||||
import cn.qihangerp.domain.ShopSetting;
|
||||
import cn.qihangerp.api.service.IShopSettingService;
|
||||
import org.springframework.security.access.prepost.PreAuthorize;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.web.bind.annotation.GetMapping;
|
||||
import org.springframework.web.bind.annotation.PostMapping;
|
||||
import org.springframework.web.bind.annotation.PutMapping;
|
||||
import org.springframework.web.bind.annotation.DeleteMapping;
|
||||
import org.springframework.web.bind.annotation.PathVariable;
|
||||
import org.springframework.web.bind.annotation.RequestBody;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.bind.annotation.RestController;
|
||||
import cn.qihangerp.common.annotation.Log;
|
||||
import cn.qihangerp.core.controller.BaseController;
|
||||
import cn.qihangerp.domain.AjaxResult;
|
||||
import cn.qihangerp.common.enums.BusinessType;
|
||||
import cn.qihangerp.domain.Shop;
|
||||
import cn.qihangerp.api.service.IShopService;
|
||||
import cn.qihangerp.common.utils.poi.ExcelUtil;
|
||||
import cn.qihangerp.core.page.TableDataInfo;
|
||||
|
||||
/**
|
||||
* 店铺Controller
|
||||
*
|
||||
* @author qihang
|
||||
* @date 2023-12-31
|
||||
*/
|
||||
@RestController
|
||||
@RequestMapping("/shop/shop")
|
||||
public class ShopController extends BaseController
|
||||
{
|
||||
@Autowired
|
||||
private IShopService shopService;
|
||||
@Autowired
|
||||
private IShopSettingService shopSettingService;
|
||||
|
||||
/**
|
||||
* 查询店铺列表
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('shop:shop:list')")
|
||||
@GetMapping("/list")
|
||||
public TableDataInfo list(Shop shop)
|
||||
{
|
||||
startPage();
|
||||
List<Shop> list = shopService.selectShopList(shop);
|
||||
return getDataTable(list);
|
||||
}
|
||||
|
||||
/**
|
||||
* 导出店铺列表
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('shop:shop:export')")
|
||||
@Log(title = "店铺", businessType = BusinessType.EXPORT)
|
||||
@PostMapping("/export")
|
||||
public void export(HttpServletResponse response, Shop shop)
|
||||
{
|
||||
List<Shop> list = shopService.selectShopList(shop);
|
||||
ExcelUtil<Shop> util = new ExcelUtil<Shop>(Shop.class);
|
||||
util.exportExcel(response, list, "店铺数据");
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取店铺详细信息
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('shop:shop:query')")
|
||||
@GetMapping(value = "/{id}")
|
||||
public AjaxResult getInfo(@PathVariable("id") Long id)
|
||||
{
|
||||
return success(shopService.selectShopById(id));
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增店铺
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('shop:shop:add')")
|
||||
@Log(title = "店铺", businessType = BusinessType.INSERT)
|
||||
@PostMapping
|
||||
public AjaxResult add(@RequestBody Shop shop)
|
||||
{
|
||||
shop.setModifyOn(System.currentTimeMillis()/1000);
|
||||
return toAjax(shopService.insertShop(shop));
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改店铺
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('shop:shop:edit')")
|
||||
@Log(title = "店铺", businessType = BusinessType.UPDATE)
|
||||
@PutMapping
|
||||
public AjaxResult edit(@RequestBody Shop shop)
|
||||
{
|
||||
return toAjax(shopService.updateShop(shop));
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除店铺
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('shop:shop:remove')")
|
||||
@Log(title = "店铺", businessType = BusinessType.DELETE)
|
||||
@DeleteMapping("/{ids}")
|
||||
public AjaxResult remove(@PathVariable Long[] ids)
|
||||
{
|
||||
return toAjax(shopService.deleteShopByIds(ids));
|
||||
}
|
||||
|
||||
|
||||
@GetMapping("/platformList")
|
||||
public TableDataInfo platformList( ShopSetting bo)
|
||||
{
|
||||
List<ShopSetting> list = shopSettingService.selectShopSettingList(bo);
|
||||
return getDataTable(list);
|
||||
}
|
||||
|
||||
@GetMapping(value = "/platform/{id}")
|
||||
public AjaxResult getPlatform(@PathVariable("id") Long id)
|
||||
{
|
||||
return success(shopSettingService.selectShopSettingById(id));
|
||||
}
|
||||
|
||||
@PutMapping("/platform")
|
||||
public AjaxResult edit(@RequestBody ShopSetting bo)
|
||||
{
|
||||
return toAjax(shopSettingService.updateShopSetting(bo));
|
||||
}
|
||||
}
|
@ -0,0 +1,26 @@
|
||||
package cn.qihangerp.api.controller;
|
||||
|
||||
|
||||
import cn.qihangerp.common.PageQuery;
|
||||
import cn.qihangerp.core.controller.BaseController;
|
||||
import cn.qihangerp.core.page.TableDataInfo;
|
||||
import cn.qihangerp.api.domain.SShopPullLogs;
|
||||
import cn.qihangerp.api.service.SShopPullLogsService;
|
||||
import lombok.AllArgsConstructor;
|
||||
import org.springframework.web.bind.annotation.GetMapping;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.bind.annotation.RestController;
|
||||
|
||||
@AllArgsConstructor
|
||||
@RestController
|
||||
@RequestMapping("/shop")
|
||||
public class ShopPullLogsController extends BaseController {
|
||||
private final SShopPullLogsService pullLogsService;
|
||||
|
||||
@GetMapping("/pull_logs_list")
|
||||
public TableDataInfo list(SShopPullLogs logs, PageQuery pageQuery)
|
||||
{
|
||||
var pageList = pullLogsService.queryPageList(logs,pageQuery);
|
||||
return getDataTable(pageList);
|
||||
}
|
||||
}
|
@ -0,0 +1,112 @@
|
||||
package cn.qihangerp.api.controller;
|
||||
|
||||
import cn.qihangerp.common.PageQuery;
|
||||
import cn.qihangerp.api.service.WmsStockInEntryService;
|
||||
import org.springframework.security.access.prepost.PreAuthorize;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.web.bind.annotation.GetMapping;
|
||||
import org.springframework.web.bind.annotation.PostMapping;
|
||||
import org.springframework.web.bind.annotation.PathVariable;
|
||||
import org.springframework.web.bind.annotation.RequestBody;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.bind.annotation.RestController;
|
||||
import cn.qihangerp.common.annotation.Log;
|
||||
import cn.qihangerp.core.controller.BaseController;
|
||||
import cn.qihangerp.domain.AjaxResult;
|
||||
import cn.qihangerp.common.enums.BusinessType;
|
||||
import cn.qihangerp.api.domain.WmsStockInEntry;
|
||||
import cn.qihangerp.core.page.TableDataInfo;
|
||||
|
||||
/**
|
||||
* 入库单Controller
|
||||
*
|
||||
* @author qihang
|
||||
* @date 2023-12-31
|
||||
*/
|
||||
@RestController
|
||||
@RequestMapping("/wms/WmsStockInEntry")
|
||||
public class WmsStockInEntryController extends BaseController
|
||||
{
|
||||
@Autowired
|
||||
private WmsStockInEntryService wmsStockInEntryService;
|
||||
|
||||
/**
|
||||
* 查询入库单列表
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('wms:WmsStockInEntry:list')")
|
||||
@GetMapping("/list")
|
||||
public TableDataInfo list(WmsStockInEntry bo, PageQuery pageQuery) {
|
||||
var list = wmsStockInEntryService.queryPageList(bo, pageQuery);
|
||||
return getDataTable(list);
|
||||
}
|
||||
|
||||
/**
|
||||
* 导出入库单列表
|
||||
*/
|
||||
// @PreAuthorize("@ss.hasPermi('wms:WmsStockInEntry:export')")
|
||||
// @Log(title = "入库单", businessType = BusinessType.EXPORT)
|
||||
// @PostMapping("/export")
|
||||
// public void export(HttpServletResponse response, WmsStockInEntry wmsStockInEntry)
|
||||
// {
|
||||
// List<WmsStockInEntry> list = wmsStockInEntryService.selectWmsStockInEntryList(wmsStockInEntry);
|
||||
// ExcelUtil<WmsStockInEntry> util = new ExcelUtil<WmsStockInEntry>(WmsStockInEntry.class);
|
||||
// util.exportExcel(response, list, "入库单数据");
|
||||
// }
|
||||
|
||||
/**
|
||||
* 获取入库单详细信息
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('wms:WmsStockInEntry:query')")
|
||||
@GetMapping(value = "/{id}")
|
||||
public AjaxResult getInfo(@PathVariable("id") Long id)
|
||||
{
|
||||
return success(wmsStockInEntryService.getById(id));
|
||||
}
|
||||
|
||||
|
||||
|
||||
// /**
|
||||
// * 新增入库单
|
||||
// */
|
||||
// @PreAuthorize("@ss.hasPermi('wms:WmsStockInEntry:add')")
|
||||
// @Log(title = "入库单", businessType = BusinessType.INSERT)
|
||||
// @PostMapping
|
||||
// public AjaxResult add(@RequestBody WmsStockInEntry wmsStockInEntry)
|
||||
// {
|
||||
// return toAjax(wmsStockInEntryService.insertWmsStockInEntry(wmsStockInEntry));
|
||||
// }
|
||||
//
|
||||
/**
|
||||
* 修改入库单
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('wms:WmsStockInEntry:edit')")
|
||||
@Log(title = "入库单", businessType = BusinessType.UPDATE)
|
||||
@PostMapping("/stockIn")
|
||||
public AjaxResult stockIn(@RequestBody WmsStockInEntry wmsStockInEntry)
|
||||
{
|
||||
wmsStockInEntry.setUpdateBy(getUsername());
|
||||
wmsStockInEntry.setStockInOperatorId(getUserId());
|
||||
int result = wmsStockInEntryService.stockIn(wmsStockInEntry);
|
||||
if(result == -1) return new AjaxResult(505,"入库单不存在");
|
||||
else if(result == -2) return new AjaxResult(506,"请填写入库数据");
|
||||
else if(result == -3) return new AjaxResult(507,"商品数据错误");
|
||||
else if(result == -9) return new AjaxResult(509,"入库单已全部入库!无法操作!");
|
||||
return toAjax(result);
|
||||
}
|
||||
@GetMapping("/complete/{id}")
|
||||
public AjaxResult complete(@PathVariable Long id)
|
||||
{
|
||||
return toAjax(wmsStockInEntryService.complete(id,getUsername()));
|
||||
}
|
||||
|
||||
// /**
|
||||
// * 删除入库单
|
||||
// */
|
||||
// @PreAuthorize("@ss.hasPermi('wms:WmsStockInEntry:remove')")
|
||||
// @Log(title = "入库单", businessType = BusinessType.DELETE)
|
||||
// @DeleteMapping("/{ids}")
|
||||
// public AjaxResult remove(@PathVariable Long[] ids)
|
||||
// {
|
||||
// return toAjax(wmsStockInEntryService.deleteWmsStockInEntryByIds(ids));
|
||||
// }
|
||||
}
|
@ -0,0 +1,111 @@
|
||||
package cn.qihangerp.api.controller;
|
||||
|
||||
import java.util.List;
|
||||
import jakarta.servlet.http.HttpServletResponse;
|
||||
|
||||
import org.springframework.security.access.prepost.PreAuthorize;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.web.bind.annotation.GetMapping;
|
||||
import org.springframework.web.bind.annotation.PostMapping;
|
||||
import org.springframework.web.bind.annotation.PutMapping;
|
||||
import org.springframework.web.bind.annotation.PathVariable;
|
||||
import org.springframework.web.bind.annotation.RequestBody;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.bind.annotation.RestController;
|
||||
import cn.qihangerp.common.annotation.Log;
|
||||
import cn.qihangerp.core.controller.BaseController;
|
||||
import cn.qihangerp.domain.AjaxResult;
|
||||
import cn.qihangerp.common.enums.BusinessType;
|
||||
import cn.qihangerp.api.domain.WmsStockLocation;
|
||||
import cn.qihangerp.api.service.IWmsStockLocationService;
|
||||
import cn.qihangerp.common.utils.poi.ExcelUtil;
|
||||
import cn.qihangerp.core.page.TableDataInfo;
|
||||
|
||||
/**
|
||||
* 仓库货架Controller
|
||||
*
|
||||
* @author qihang
|
||||
* @date 2024-01-09
|
||||
*/
|
||||
@RestController
|
||||
@RequestMapping("/wms/location")
|
||||
public class WmsStockLocationController extends BaseController
|
||||
{
|
||||
@Autowired
|
||||
private IWmsStockLocationService wmsStockLocationService;
|
||||
|
||||
/**
|
||||
* 查询仓库货架列表
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('wms:location:list')")
|
||||
@GetMapping("/list")
|
||||
public TableDataInfo list(WmsStockLocation wmsStockLocation)
|
||||
{
|
||||
startPage();
|
||||
List<WmsStockLocation> list = wmsStockLocationService.selectWmsStockLocationList(wmsStockLocation);
|
||||
return getDataTable(list);
|
||||
}
|
||||
|
||||
/**
|
||||
* 导出仓库货架列表
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('wms:location:export')")
|
||||
@Log(title = "仓库货架", businessType = BusinessType.EXPORT)
|
||||
@PostMapping("/export")
|
||||
public void export(HttpServletResponse response, WmsStockLocation wmsStockLocation)
|
||||
{
|
||||
List<WmsStockLocation> list = wmsStockLocationService.selectWmsStockLocationList(wmsStockLocation);
|
||||
ExcelUtil<WmsStockLocation> util = new ExcelUtil<WmsStockLocation>(WmsStockLocation.class);
|
||||
util.exportExcel(response, list, "仓库货架数据");
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取仓库货架详细信息
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('wms:location:query')")
|
||||
@GetMapping(value = "/{id}")
|
||||
public AjaxResult getInfo(@PathVariable("id") Long id)
|
||||
{
|
||||
return success(wmsStockLocationService.selectWmsStockLocationById(id));
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增仓库货架
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('wms:location:add')")
|
||||
@Log(title = "仓库货架", businessType = BusinessType.INSERT)
|
||||
@PostMapping
|
||||
public AjaxResult add(@RequestBody WmsStockLocation wmsStockLocation)
|
||||
{
|
||||
return toAjax(wmsStockLocationService.insertWmsStockLocation(wmsStockLocation));
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改仓库货架
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('wms:location:edit')")
|
||||
@Log(title = "仓库货架", businessType = BusinessType.UPDATE)
|
||||
@PutMapping
|
||||
public AjaxResult edit(@RequestBody WmsStockLocation wmsStockLocation)
|
||||
{
|
||||
return toAjax(wmsStockLocationService.updateWmsStockLocation(wmsStockLocation));
|
||||
}
|
||||
|
||||
@GetMapping("/search")
|
||||
public TableDataInfo searchBy(String number)
|
||||
{
|
||||
startPage();
|
||||
List<WmsStockLocation> list = wmsStockLocationService.search(number);
|
||||
return getDataTable(list);
|
||||
}
|
||||
/**
|
||||
* 删除仓库货架
|
||||
*/
|
||||
// @PreAuthorize("@ss.hasPermi('wms:location:remove')")
|
||||
// @Log(title = "仓库货架", businessType = BusinessType.DELETE)
|
||||
// @DeleteMapping("/{ids}")
|
||||
// public AjaxResult remove(@PathVariable Long[] ids)
|
||||
// {
|
||||
// return toAjax(wmsStockLocationService.deleteWmsStockLocationByIds(ids));
|
||||
// }
|
||||
}
|
@ -0,0 +1,137 @@
|
||||
package cn.qihangerp.api.controller;
|
||||
|
||||
import cn.qihangerp.api.domain.WmsStockOutEntryItem;
|
||||
import cn.qihangerp.api.service.WmsStockOutEntryItemService;
|
||||
import cn.qihangerp.common.PageQuery;
|
||||
import cn.qihangerp.api.domain.bo.StockOutBo;
|
||||
import cn.qihangerp.api.service.WmsStockOutEntryService;
|
||||
import org.springframework.security.access.prepost.PreAuthorize;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.web.bind.annotation.GetMapping;
|
||||
import org.springframework.web.bind.annotation.PostMapping;
|
||||
import org.springframework.web.bind.annotation.PathVariable;
|
||||
import org.springframework.web.bind.annotation.RequestBody;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.bind.annotation.RestController;
|
||||
import cn.qihangerp.common.annotation.Log;
|
||||
import cn.qihangerp.core.controller.BaseController;
|
||||
import cn.qihangerp.domain.AjaxResult;
|
||||
import cn.qihangerp.common.enums.BusinessType;
|
||||
import cn.qihangerp.api.domain.WmsStockOutEntry;
|
||||
//import cn.qihangerp.api.service.IWmsStockOutEntryService;
|
||||
import cn.qihangerp.core.page.TableDataInfo;
|
||||
|
||||
/**
|
||||
* 出库单Controller
|
||||
*
|
||||
* @author qihang
|
||||
* @date 2024-01-10
|
||||
*/
|
||||
@RestController
|
||||
@RequestMapping("/wms/stockOutEntry")
|
||||
public class WmsStockOutEntryController extends BaseController
|
||||
{
|
||||
@Autowired
|
||||
private WmsStockOutEntryService wmsStockOutEntryService;
|
||||
@Autowired
|
||||
private WmsStockOutEntryItemService wmsStockOutEntryItemService;
|
||||
|
||||
/**
|
||||
* 查询出库单列表
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('wms:stockOutEntry:list')")
|
||||
@GetMapping("/list")
|
||||
public TableDataInfo list(WmsStockOutEntry bo, PageQuery pageQuery)
|
||||
{
|
||||
var list = wmsStockOutEntryService.queryPageList(bo, pageQuery);
|
||||
return getDataTable(list);
|
||||
}
|
||||
|
||||
/**
|
||||
* 导出出库单列表
|
||||
*/
|
||||
// @PreAuthorize("@ss.hasPermi('wms:stockOutEntry:export')")
|
||||
// @Log(title = "出库单", businessType = BusinessType.EXPORT)
|
||||
// @PostMapping("/export")
|
||||
// public void export(HttpServletResponse response, WmsStockOutEntry wmsStockOutEntry)
|
||||
// {
|
||||
// List<WmsStockOutEntry> list = wmsStockOutEntryService.selectWmsStockOutEntryList(wmsStockOutEntry);
|
||||
// ExcelUtil<WmsStockOutEntry> util = new ExcelUtil<WmsStockOutEntry>(WmsStockOutEntry.class);
|
||||
// util.exportExcel(response, list, "出库单数据");
|
||||
// }
|
||||
|
||||
/**
|
||||
* 获取出库单详细信息
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('wms:stockOutEntry:query')")
|
||||
@GetMapping(value = "/{id}")
|
||||
public AjaxResult getInfo(@PathVariable("id") Long id)
|
||||
{
|
||||
// WmsStockOutEntry entry = wmsStockOutEntryService.selectById(id);
|
||||
|
||||
return success(wmsStockOutEntryService.selectOutEntryItemInventoryDetailsByEntryId(id));
|
||||
}
|
||||
/**
|
||||
* 获取出库明细详情详细信息
|
||||
*/
|
||||
|
||||
@GetMapping(value = "/item/{id}")
|
||||
public AjaxResult getItemInfo(@PathVariable("id") Long id)
|
||||
{
|
||||
return success(wmsStockOutEntryItemService.getById(id));
|
||||
}
|
||||
/**
|
||||
* 出库操作
|
||||
* @param bo
|
||||
* @return
|
||||
*/
|
||||
@Log(title = "出库单", businessType = BusinessType.INSERT)
|
||||
@PostMapping("/stockOut")
|
||||
public AjaxResult stockOut(@RequestBody StockOutBo bo)
|
||||
{
|
||||
bo.setOperatorId(getUserId());
|
||||
bo.setOperatorName(getUsername());
|
||||
int result = wmsStockOutEntryService.stockOut(bo);
|
||||
if(result == -5) return new AjaxResult(500,"参数错误!请填写出库数量!");
|
||||
else if(result == -1) return new AjaxResult(501,"数据错误!");
|
||||
else if(result == -2) return new AjaxResult(502,"状态错误!");
|
||||
else if(result == -3) return new AjaxResult(503,"已全部出库!");
|
||||
else if(result == -4) return new AjaxResult(504,"出库数量超出!");
|
||||
else if(result == -11) return new AjaxResult(511,"库存数据不存在!");
|
||||
else if(result == -12) return new AjaxResult(512,"仓位库存不足!");
|
||||
return toAjax(1);
|
||||
}
|
||||
|
||||
// /**
|
||||
// * 新增出库单
|
||||
// */
|
||||
// @PreAuthorize("@ss.hasPermi('wms:stockOutEntry:add')")
|
||||
// @Log(title = "出库单", businessType = BusinessType.INSERT)
|
||||
// @PostMapping
|
||||
// public AjaxResult add(@RequestBody WmsStockOutEntry wmsStockOutEntry)
|
||||
// {
|
||||
// return toAjax(wmsStockOutEntryService.insertWmsStockOutEntry(wmsStockOutEntry));
|
||||
// }
|
||||
|
||||
// /**
|
||||
// * 修改出库单
|
||||
// */
|
||||
// @PreAuthorize("@ss.hasPermi('wms:stockOutEntry:edit')")
|
||||
// @Log(title = "出库单", businessType = BusinessType.UPDATE)
|
||||
// @PutMapping
|
||||
// public AjaxResult edit(@RequestBody WmsStockOutEntry wmsStockOutEntry)
|
||||
// {
|
||||
// return toAjax(wmsStockOutEntryService.updateWmsStockOutEntry(wmsStockOutEntry));
|
||||
// }
|
||||
|
||||
// /**
|
||||
// * 删除出库单
|
||||
// */
|
||||
// @PreAuthorize("@ss.hasPermi('wms:stockOutEntry:remove')")
|
||||
// @Log(title = "出库单", businessType = BusinessType.DELETE)
|
||||
// @DeleteMapping("/{ids}")
|
||||
// public AjaxResult remove(@PathVariable Long[] ids)
|
||||
// {
|
||||
// return toAjax(wmsStockOutEntryService.deleteWmsStockOutEntryByIds(ids));
|
||||
// }
|
||||
}
|
@ -0,0 +1,104 @@
|
||||
//package cn.qihangerp.api.controller;
|
||||
//
|
||||
//import java.util.List;
|
||||
//import javax.servlet.http.HttpServletResponse;
|
||||
//import org.springframework.security.access.prepost.PreAuthorize;
|
||||
//import org.springframework.beans.factory.annotation.Autowired;
|
||||
//import org.springframework.web.bind.annotation.GetMapping;
|
||||
//import org.springframework.web.bind.annotation.PostMapping;
|
||||
//import org.springframework.web.bind.annotation.PutMapping;
|
||||
//import org.springframework.web.bind.annotation.DeleteMapping;
|
||||
//import org.springframework.web.bind.annotation.PathVariable;
|
||||
//import org.springframework.web.bind.annotation.RequestBody;
|
||||
//import org.springframework.web.bind.annotation.RequestMapping;
|
||||
//import org.springframework.web.bind.annotation.RestController;
|
||||
//import com.qihang.common.annotation.Log;
|
||||
//import com.qihang.core.controller.BaseController;
|
||||
//import com.qihang.core.domain.AjaxResult;
|
||||
//import com.qihang.common.enums.BusinessType;
|
||||
//import cn.qihangerp.api.domain.WmsStockOutEntryItemDetail;
|
||||
//import cn.qihangerp.api.service.IWmsStockOutEntryItemDetailService;
|
||||
//import com.qihang.common.utils.poi.ExcelUtil;
|
||||
//import com.qihang.core.page.TableDataInfo;
|
||||
//
|
||||
///**
|
||||
// * 出库明细详情Controller
|
||||
// *
|
||||
// * @author qihang
|
||||
// * @date 2024-01-10
|
||||
// */
|
||||
//@RestController
|
||||
//@RequestMapping("/wms/stockOutEntryItemDetail")
|
||||
//public class WmsStockOutEntryItemDetailController extends BaseController
|
||||
//{
|
||||
// @Autowired
|
||||
// private IWmsStockOutEntryItemDetailService wmsStockOutEntryItemDetailService;
|
||||
//
|
||||
// /**
|
||||
// * 查询出库明细详情列表
|
||||
// */
|
||||
// @PreAuthorize("@ss.hasPermi('wms:stockOutEntryItemDetail:list')")
|
||||
// @GetMapping("/list")
|
||||
// public TableDataInfo list(WmsStockOutEntryItemDetail wmsStockOutEntryItemDetail)
|
||||
// {
|
||||
// startPage();
|
||||
// List<WmsStockOutEntryItemDetail> list = wmsStockOutEntryItemDetailService.selectWmsStockOutEntryItemDetailList(wmsStockOutEntryItemDetail);
|
||||
// return getDataTable(list);
|
||||
// }
|
||||
//
|
||||
// /**
|
||||
// * 导出出库明细详情列表
|
||||
// */
|
||||
// @PreAuthorize("@ss.hasPermi('wms:stockOutEntryItemDetail:export')")
|
||||
// @Log(title = "出库明细详情", businessType = BusinessType.EXPORT)
|
||||
// @PostMapping("/export")
|
||||
// public void export(HttpServletResponse response, WmsStockOutEntryItemDetail wmsStockOutEntryItemDetail)
|
||||
// {
|
||||
// List<WmsStockOutEntryItemDetail> list = wmsStockOutEntryItemDetailService.selectWmsStockOutEntryItemDetailList(wmsStockOutEntryItemDetail);
|
||||
// ExcelUtil<WmsStockOutEntryItemDetail> util = new ExcelUtil<WmsStockOutEntryItemDetail>(WmsStockOutEntryItemDetail.class);
|
||||
// util.exportExcel(response, list, "出库明细详情数据");
|
||||
// }
|
||||
//
|
||||
// /**
|
||||
// * 获取出库明细详情详细信息
|
||||
// */
|
||||
// @PreAuthorize("@ss.hasPermi('wms:stockOutEntryItemDetail:query')")
|
||||
// @GetMapping(value = "/{id}")
|
||||
// public AjaxResult getInfo(@PathVariable("id") Long id)
|
||||
// {
|
||||
// return success(wmsStockOutEntryItemDetailService.selectWmsStockOutEntryItemDetailById(id));
|
||||
// }
|
||||
//
|
||||
// /**
|
||||
// * 新增出库明细详情
|
||||
// */
|
||||
// @PreAuthorize("@ss.hasPermi('wms:stockOutEntryItemDetail:add')")
|
||||
// @Log(title = "出库明细详情", businessType = BusinessType.INSERT)
|
||||
// @PostMapping
|
||||
// public AjaxResult add(@RequestBody WmsStockOutEntryItemDetail wmsStockOutEntryItemDetail)
|
||||
// {
|
||||
// return toAjax(wmsStockOutEntryItemDetailService.insertWmsStockOutEntryItemDetail(wmsStockOutEntryItemDetail));
|
||||
// }
|
||||
//
|
||||
// /**
|
||||
// * 修改出库明细详情
|
||||
// */
|
||||
// @PreAuthorize("@ss.hasPermi('wms:stockOutEntryItemDetail:edit')")
|
||||
// @Log(title = "出库明细详情", businessType = BusinessType.UPDATE)
|
||||
// @PutMapping
|
||||
// public AjaxResult edit(@RequestBody WmsStockOutEntryItemDetail wmsStockOutEntryItemDetail)
|
||||
// {
|
||||
// return toAjax(wmsStockOutEntryItemDetailService.updateWmsStockOutEntryItemDetail(wmsStockOutEntryItemDetail));
|
||||
// }
|
||||
//
|
||||
// /**
|
||||
// * 删除出库明细详情
|
||||
// */
|
||||
// @PreAuthorize("@ss.hasPermi('wms:stockOutEntryItemDetail:remove')")
|
||||
// @Log(title = "出库明细详情", businessType = BusinessType.DELETE)
|
||||
// @DeleteMapping("/{ids}")
|
||||
// public AjaxResult remove(@PathVariable Long[] ids)
|
||||
// {
|
||||
// return toAjax(wmsStockOutEntryItemDetailService.deleteWmsStockOutEntryItemDetailByIds(ids));
|
||||
// }
|
||||
//}
|
@ -0,0 +1,55 @@
|
||||
package cn.qihangerp.api.domain;
|
||||
|
||||
import cn.qihangerp.common.annotation.Excel;
|
||||
import cn.qihangerp.domain.BaseEntity;
|
||||
|
||||
/**
|
||||
* 商品品牌对象 erp_goods_brand
|
||||
*
|
||||
* @author qihang
|
||||
* @date 2023-12-29
|
||||
*/
|
||||
public class ErpGoodsBrand extends BaseEntity
|
||||
{
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/** 主键ID */
|
||||
private Long id;
|
||||
|
||||
/** 品牌名 */
|
||||
@Excel(name = "品牌名")
|
||||
private String name;
|
||||
|
||||
/** 状态 */
|
||||
@Excel(name = "状态")
|
||||
private Long status;
|
||||
|
||||
public void setId(Long id)
|
||||
{
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
public Long getId()
|
||||
{
|
||||
return id;
|
||||
}
|
||||
public void setName(String name)
|
||||
{
|
||||
this.name = name;
|
||||
}
|
||||
|
||||
public String getName()
|
||||
{
|
||||
return name;
|
||||
}
|
||||
public void setStatus(Long status)
|
||||
{
|
||||
this.status = status;
|
||||
}
|
||||
|
||||
public Long getStatus()
|
||||
{
|
||||
return status;
|
||||
}
|
||||
|
||||
}
|
@ -0,0 +1,120 @@
|
||||
package cn.qihangerp.api.domain;
|
||||
|
||||
import cn.qihangerp.common.annotation.Excel;
|
||||
import cn.qihangerp.domain.BaseEntity;
|
||||
|
||||
/**
|
||||
* 商品分类对象 erp_goods_category
|
||||
*
|
||||
* @author qihang
|
||||
* @date 2023-12-29
|
||||
*/
|
||||
public class ErpGoodsCategory extends BaseEntity
|
||||
{
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/** $column.columnComment */
|
||||
private Long id;
|
||||
|
||||
/** 分类编码 */
|
||||
@Excel(name = "分类编码")
|
||||
private String number;
|
||||
|
||||
/** 分类名称 */
|
||||
@Excel(name = "分类名称")
|
||||
private String name;
|
||||
|
||||
/** 上架分类id */
|
||||
@Excel(name = "上架分类id")
|
||||
private Long parentId;
|
||||
|
||||
/** 分类路径 */
|
||||
@Excel(name = "分类路径")
|
||||
private String path;
|
||||
|
||||
/** 排序值 */
|
||||
@Excel(name = "排序值")
|
||||
private Long sort;
|
||||
|
||||
/** 图片 */
|
||||
@Excel(name = "图片")
|
||||
private String image;
|
||||
|
||||
/** 0正常 1删除 */
|
||||
@Excel(name = "0正常 1删除")
|
||||
private Integer isDelete;
|
||||
|
||||
public void setId(Long id)
|
||||
{
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
public Long getId()
|
||||
{
|
||||
return id;
|
||||
}
|
||||
public void setNumber(String number)
|
||||
{
|
||||
this.number = number;
|
||||
}
|
||||
|
||||
public String getNumber()
|
||||
{
|
||||
return number;
|
||||
}
|
||||
public void setName(String name)
|
||||
{
|
||||
this.name = name;
|
||||
}
|
||||
|
||||
public String getName()
|
||||
{
|
||||
return name;
|
||||
}
|
||||
public void setParentId(Long parentId)
|
||||
{
|
||||
this.parentId = parentId;
|
||||
}
|
||||
|
||||
public Long getParentId()
|
||||
{
|
||||
return parentId;
|
||||
}
|
||||
public void setPath(String path)
|
||||
{
|
||||
this.path = path;
|
||||
}
|
||||
|
||||
public String getPath()
|
||||
{
|
||||
return path;
|
||||
}
|
||||
public void setSort(Long sort)
|
||||
{
|
||||
this.sort = sort;
|
||||
}
|
||||
|
||||
public Long getSort()
|
||||
{
|
||||
return sort;
|
||||
}
|
||||
public void setImage(String image)
|
||||
{
|
||||
this.image = image;
|
||||
}
|
||||
|
||||
public String getImage()
|
||||
{
|
||||
return image;
|
||||
}
|
||||
public void setIsDelete(Integer isDelete)
|
||||
{
|
||||
this.isDelete = isDelete;
|
||||
}
|
||||
|
||||
public Integer getIsDelete()
|
||||
{
|
||||
return isDelete;
|
||||
}
|
||||
|
||||
}
|
@ -0,0 +1,134 @@
|
||||
package cn.qihangerp.api.domain;
|
||||
|
||||
import java.util.List;
|
||||
import cn.qihangerp.common.annotation.Excel;
|
||||
import cn.qihangerp.domain.BaseEntity;
|
||||
|
||||
/**
|
||||
* 商品库存对象 erp_goods_inventory
|
||||
*
|
||||
* @author qihang
|
||||
* @date 2024-01-09
|
||||
*/
|
||||
public class ErpGoodsInventory extends BaseEntity
|
||||
{
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/** 主键ID */
|
||||
private Long id;
|
||||
|
||||
/** 商品id */
|
||||
@Excel(name = "商品id")
|
||||
private Long goodsId;
|
||||
|
||||
/** 商品编码 */
|
||||
@Excel(name = "商品编码")
|
||||
private String goodsNumber;
|
||||
|
||||
/** 商品规格id */
|
||||
@Excel(name = "商品规格id")
|
||||
private Long specId;
|
||||
|
||||
/** 规格编码(唯一) */
|
||||
@Excel(name = "规格编码", readConverterExp = "唯=一")
|
||||
private String specNumber;
|
||||
|
||||
/** 当前库存 */
|
||||
@Excel(name = "当前库存")
|
||||
private Long currentQty;
|
||||
|
||||
/** 锁定库存 */
|
||||
@Excel(name = "锁定库存")
|
||||
private Long lockedQty;
|
||||
|
||||
/** 0正常 1删除 */
|
||||
@Excel(name = "0正常 1删除")
|
||||
private Integer isDelete;
|
||||
|
||||
/** 商品库存明细信息 */
|
||||
private List<ErpGoodsInventoryDetail> erpGoodsInventoryDetailList;
|
||||
|
||||
public void setId(Long id)
|
||||
{
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
public Long getId()
|
||||
{
|
||||
return id;
|
||||
}
|
||||
public void setGoodsId(Long goodsId)
|
||||
{
|
||||
this.goodsId = goodsId;
|
||||
}
|
||||
|
||||
public Long getGoodsId()
|
||||
{
|
||||
return goodsId;
|
||||
}
|
||||
public void setGoodsNumber(String goodsNumber)
|
||||
{
|
||||
this.goodsNumber = goodsNumber;
|
||||
}
|
||||
|
||||
public String getGoodsNumber()
|
||||
{
|
||||
return goodsNumber;
|
||||
}
|
||||
public void setSpecId(Long specId)
|
||||
{
|
||||
this.specId = specId;
|
||||
}
|
||||
|
||||
public Long getSpecId()
|
||||
{
|
||||
return specId;
|
||||
}
|
||||
public void setSpecNumber(String specNumber)
|
||||
{
|
||||
this.specNumber = specNumber;
|
||||
}
|
||||
|
||||
public String getSpecNumber()
|
||||
{
|
||||
return specNumber;
|
||||
}
|
||||
public void setCurrentQty(Long currentQty)
|
||||
{
|
||||
this.currentQty = currentQty;
|
||||
}
|
||||
|
||||
public Long getCurrentQty()
|
||||
{
|
||||
return currentQty;
|
||||
}
|
||||
public void setLockedQty(Long lockedQty)
|
||||
{
|
||||
this.lockedQty = lockedQty;
|
||||
}
|
||||
|
||||
public Long getLockedQty()
|
||||
{
|
||||
return lockedQty;
|
||||
}
|
||||
public void setIsDelete(Integer isDelete)
|
||||
{
|
||||
this.isDelete = isDelete;
|
||||
}
|
||||
|
||||
public Integer getIsDelete()
|
||||
{
|
||||
return isDelete;
|
||||
}
|
||||
|
||||
public List<ErpGoodsInventoryDetail> getErpGoodsInventoryDetailList()
|
||||
{
|
||||
return erpGoodsInventoryDetailList;
|
||||
}
|
||||
|
||||
public void setErpGoodsInventoryDetailList(List<ErpGoodsInventoryDetail> erpGoodsInventoryDetailList)
|
||||
{
|
||||
this.erpGoodsInventoryDetailList = erpGoodsInventoryDetailList;
|
||||
}
|
||||
|
||||
}
|
@ -0,0 +1,169 @@
|
||||
package cn.qihangerp.api.domain;
|
||||
|
||||
import cn.qihangerp.common.annotation.Excel;
|
||||
import cn.qihangerp.domain.BaseEntity;
|
||||
|
||||
/**
|
||||
* 商品库存明细对象 erp_goods_inventory_detail
|
||||
*
|
||||
* @author qihang
|
||||
* @date 2024-01-09
|
||||
*/
|
||||
public class ErpGoodsInventoryDetail extends BaseEntity
|
||||
{
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/** 主键ID */
|
||||
private Long id;
|
||||
|
||||
/** 商品库存id */
|
||||
@Excel(name = "商品库存id")
|
||||
private Long inventoryId;
|
||||
|
||||
/** 入库数量 */
|
||||
@Excel(name = "入库数量")
|
||||
private Long inQty;
|
||||
|
||||
/** 入库前数量 */
|
||||
@Excel(name = "入库前数量")
|
||||
private Long originQty;
|
||||
|
||||
/** 当前库存数量 */
|
||||
@Excel(name = "当前库存数量")
|
||||
private Long currentQty;
|
||||
|
||||
/** 采购价 */
|
||||
@Excel(name = "采购价")
|
||||
private Long purPrice;
|
||||
|
||||
/** 入库单id */
|
||||
@Excel(name = "入库单id")
|
||||
private Long entryId;
|
||||
|
||||
/** 入库单itemId */
|
||||
@Excel(name = "入库单itemId")
|
||||
private Long entryItemId;
|
||||
|
||||
/** 规格id */
|
||||
@Excel(name = "规格id")
|
||||
private Long specId;
|
||||
|
||||
/** 商品id */
|
||||
@Excel(name = "商品id")
|
||||
private Long goodsId;
|
||||
|
||||
/** 入库仓位id */
|
||||
@Excel(name = "入库仓位id")
|
||||
private Long inLocation;
|
||||
private String locationNum;
|
||||
|
||||
public String getLocationNum() {
|
||||
return locationNum;
|
||||
}
|
||||
|
||||
public void setLocationNum(String locationNum) {
|
||||
this.locationNum = locationNum;
|
||||
}
|
||||
|
||||
public void setId(Long id)
|
||||
{
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
public Long getId()
|
||||
{
|
||||
return id;
|
||||
}
|
||||
public void setInventoryId(Long inventoryId)
|
||||
{
|
||||
this.inventoryId = inventoryId;
|
||||
}
|
||||
|
||||
public Long getInventoryId()
|
||||
{
|
||||
return inventoryId;
|
||||
}
|
||||
public void setInQty(Long inQty)
|
||||
{
|
||||
this.inQty = inQty;
|
||||
}
|
||||
|
||||
public Long getInQty()
|
||||
{
|
||||
return inQty;
|
||||
}
|
||||
public void setOriginQty(Long originQty)
|
||||
{
|
||||
this.originQty = originQty;
|
||||
}
|
||||
|
||||
public Long getOriginQty()
|
||||
{
|
||||
return originQty;
|
||||
}
|
||||
public void setCurrentQty(Long currentQty)
|
||||
{
|
||||
this.currentQty = currentQty;
|
||||
}
|
||||
|
||||
public Long getCurrentQty()
|
||||
{
|
||||
return currentQty;
|
||||
}
|
||||
public void setPurPrice(Long purPrice)
|
||||
{
|
||||
this.purPrice = purPrice;
|
||||
}
|
||||
|
||||
public Long getPurPrice()
|
||||
{
|
||||
return purPrice;
|
||||
}
|
||||
public void setEntryId(Long entryId)
|
||||
{
|
||||
this.entryId = entryId;
|
||||
}
|
||||
|
||||
public Long getEntryId()
|
||||
{
|
||||
return entryId;
|
||||
}
|
||||
public void setEntryItemId(Long entryItemId)
|
||||
{
|
||||
this.entryItemId = entryItemId;
|
||||
}
|
||||
|
||||
public Long getEntryItemId()
|
||||
{
|
||||
return entryItemId;
|
||||
}
|
||||
public void setSpecId(Long specId)
|
||||
{
|
||||
this.specId = specId;
|
||||
}
|
||||
|
||||
public Long getSpecId()
|
||||
{
|
||||
return specId;
|
||||
}
|
||||
public void setGoodsId(Long goodsId)
|
||||
{
|
||||
this.goodsId = goodsId;
|
||||
}
|
||||
|
||||
public Long getGoodsId()
|
||||
{
|
||||
return goodsId;
|
||||
}
|
||||
public void setInLocation(Long inLocation)
|
||||
{
|
||||
this.inLocation = inLocation;
|
||||
}
|
||||
|
||||
public Long getInLocation()
|
||||
{
|
||||
return inLocation;
|
||||
}
|
||||
|
||||
|
||||
}
|
@ -0,0 +1,77 @@
|
||||
package cn.qihangerp.api.domain;
|
||||
|
||||
import com.baomidou.mybatisplus.annotation.TableName;
|
||||
import cn.qihangerp.common.annotation.Excel;
|
||||
import cn.qihangerp.domain.BaseEntity;
|
||||
|
||||
/**
|
||||
* 物流公司对象 b_logistics_company
|
||||
*
|
||||
* @author qihang
|
||||
* @date 2024-01-12
|
||||
*/
|
||||
@TableName("erp_ship_logistics")
|
||||
public class ErpShipLogistics extends BaseEntity
|
||||
{
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/** $column.columnComment */
|
||||
private Long id;
|
||||
|
||||
/** 快递公司 */
|
||||
@Excel(name = "快递公司")
|
||||
private String name;
|
||||
|
||||
/** 快递公司编码 */
|
||||
@Excel(name = "快递公司编码")
|
||||
private String number;
|
||||
private String remark;
|
||||
|
||||
private Integer status;
|
||||
|
||||
public void setId(Long id)
|
||||
{
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
public Long getId()
|
||||
{
|
||||
return id;
|
||||
}
|
||||
public void setName(String name)
|
||||
{
|
||||
this.name = name;
|
||||
}
|
||||
|
||||
public String getName()
|
||||
{
|
||||
return name;
|
||||
}
|
||||
public void setNumber(String number)
|
||||
{
|
||||
this.number = number;
|
||||
}
|
||||
|
||||
public String getNumber()
|
||||
{
|
||||
return number;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getRemark() {
|
||||
return remark;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void setRemark(String remark) {
|
||||
this.remark = remark;
|
||||
}
|
||||
|
||||
public Integer getStatus() {
|
||||
return status;
|
||||
}
|
||||
|
||||
public void setStatus(Integer status) {
|
||||
this.status = status;
|
||||
}
|
||||
}
|
@ -0,0 +1,112 @@
|
||||
//package cn.qihangerp.api.domain;
|
||||
//
|
||||
//import java.math.BigDecimal;
|
||||
//import java.util.List;
|
||||
//import java.util.Date;
|
||||
//import com.fasterxml.jackson.annotation.JsonFormat;
|
||||
//import com.qihang.common.annotation.Excel;
|
||||
//import com.qihang.core.domain.BaseEntity;
|
||||
//
|
||||
///**
|
||||
// * 库存存货报对象 fms_inventory_report
|
||||
// *
|
||||
// * @author qihang
|
||||
// * @date 2024-01-28
|
||||
// */
|
||||
//public class FmsInventoryReport extends BaseEntity
|
||||
//{
|
||||
// private static final long serialVersionUID = 1L;
|
||||
//
|
||||
// /** $column.columnComment */
|
||||
// private Long id;
|
||||
//
|
||||
// /** 日期 */
|
||||
// @JsonFormat(pattern = "yyyy-MM-dd")
|
||||
// @Excel(name = "日期", width = 30, dateFormat = "yyyy-MM-dd")
|
||||
// private Date date;
|
||||
//
|
||||
// /** 库存总数量 */
|
||||
// @Excel(name = "库存总数量")
|
||||
// private Long total;
|
||||
//
|
||||
// /** 商品总数 */
|
||||
// @Excel(name = "商品总数")
|
||||
// private Long goodsCount;
|
||||
//
|
||||
// /** SKU总数 */
|
||||
// @Excel(name = "SKU总数")
|
||||
// private Long skuCount;
|
||||
//
|
||||
// /** 总货值 */
|
||||
// @Excel(name = "总货值")
|
||||
// private BigDecimal amount;
|
||||
//
|
||||
// /** 库存存货报明细信息 */
|
||||
// private List<FmsInventoryReportDetail> fmsInventoryReportDetailList;
|
||||
//
|
||||
// public void setId(Long id)
|
||||
// {
|
||||
// this.id = id;
|
||||
// }
|
||||
//
|
||||
// public Long getId()
|
||||
// {
|
||||
// return id;
|
||||
// }
|
||||
// public void setDate(Date date)
|
||||
// {
|
||||
// this.date = date;
|
||||
// }
|
||||
//
|
||||
// public Date getDate()
|
||||
// {
|
||||
// return date;
|
||||
// }
|
||||
// public void setTotal(Long total)
|
||||
// {
|
||||
// this.total = total;
|
||||
// }
|
||||
//
|
||||
// public Long getTotal()
|
||||
// {
|
||||
// return total;
|
||||
// }
|
||||
// public void setGoodsCount(Long goodsCount)
|
||||
// {
|
||||
// this.goodsCount = goodsCount;
|
||||
// }
|
||||
//
|
||||
// public Long getGoodsCount()
|
||||
// {
|
||||
// return goodsCount;
|
||||
// }
|
||||
// public void setSkuCount(Long skuCount)
|
||||
// {
|
||||
// this.skuCount = skuCount;
|
||||
// }
|
||||
//
|
||||
// public Long getSkuCount()
|
||||
// {
|
||||
// return skuCount;
|
||||
// }
|
||||
// public void setAmount(BigDecimal amount)
|
||||
// {
|
||||
// this.amount = amount;
|
||||
// }
|
||||
//
|
||||
// public BigDecimal getAmount()
|
||||
// {
|
||||
// return amount;
|
||||
// }
|
||||
//
|
||||
// public List<FmsInventoryReportDetail> getFmsInventoryReportDetailList()
|
||||
// {
|
||||
// return fmsInventoryReportDetailList;
|
||||
// }
|
||||
//
|
||||
// public void setFmsInventoryReportDetailList(List<FmsInventoryReportDetail> fmsInventoryReportDetailList)
|
||||
// {
|
||||
// this.fmsInventoryReportDetailList = fmsInventoryReportDetailList;
|
||||
// }
|
||||
//
|
||||
//}
|
@ -0,0 +1,124 @@
|
||||
package cn.qihangerp.api.domain;
|
||||
|
||||
import java.math.BigDecimal;
|
||||
import java.util.Date;
|
||||
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||
import cn.qihangerp.common.annotation.Excel;
|
||||
import cn.qihangerp.domain.BaseEntity;
|
||||
|
||||
/**
|
||||
* 库存存货报明细对象 fms_inventory_report_detail
|
||||
*
|
||||
* @author qihang
|
||||
* @date 2024-01-28
|
||||
*/
|
||||
public class FmsInventoryReportDetail extends BaseEntity
|
||||
{
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/** $column.columnComment */
|
||||
private Long id;
|
||||
|
||||
/** Report外键ID */
|
||||
@Excel(name = "Report外键ID")
|
||||
private Long reportId;
|
||||
|
||||
/** 日期 */
|
||||
@JsonFormat(pattern = "yyyy-MM-dd")
|
||||
@Excel(name = "日期", width = 30, dateFormat = "yyyy-MM-dd")
|
||||
private Date date;
|
||||
|
||||
/** 商品id */
|
||||
@Excel(name = "商品id")
|
||||
private Long goodsId;
|
||||
|
||||
/** 商品规格ID */
|
||||
@Excel(name = "商品规格ID")
|
||||
private Long specId;
|
||||
|
||||
/** 总数量 */
|
||||
@Excel(name = "总数量")
|
||||
private Long total;
|
||||
|
||||
/** 总货值 */
|
||||
@Excel(name = "总货值")
|
||||
private BigDecimal amount;
|
||||
|
||||
/** 库存分布 */
|
||||
@Excel(name = "库存分布")
|
||||
private String inventoryDist;
|
||||
|
||||
public void setId(Long id)
|
||||
{
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
public Long getId()
|
||||
{
|
||||
return id;
|
||||
}
|
||||
public void setReportId(Long reportId)
|
||||
{
|
||||
this.reportId = reportId;
|
||||
}
|
||||
|
||||
public Long getReportId()
|
||||
{
|
||||
return reportId;
|
||||
}
|
||||
public void setDate(Date date)
|
||||
{
|
||||
this.date = date;
|
||||
}
|
||||
|
||||
public Date getDate()
|
||||
{
|
||||
return date;
|
||||
}
|
||||
public void setGoodsId(Long goodsId)
|
||||
{
|
||||
this.goodsId = goodsId;
|
||||
}
|
||||
|
||||
public Long getGoodsId()
|
||||
{
|
||||
return goodsId;
|
||||
}
|
||||
public void setSpecId(Long specId)
|
||||
{
|
||||
this.specId = specId;
|
||||
}
|
||||
|
||||
public Long getSpecId()
|
||||
{
|
||||
return specId;
|
||||
}
|
||||
public void setTotal(Long total)
|
||||
{
|
||||
this.total = total;
|
||||
}
|
||||
|
||||
public Long getTotal()
|
||||
{
|
||||
return total;
|
||||
}
|
||||
public void setAmount(BigDecimal amount)
|
||||
{
|
||||
this.amount = amount;
|
||||
}
|
||||
|
||||
public BigDecimal getAmount()
|
||||
{
|
||||
return amount;
|
||||
}
|
||||
public void setInventoryDist(String inventoryDist)
|
||||
{
|
||||
this.inventoryDist = inventoryDist;
|
||||
}
|
||||
|
||||
public String getInventoryDist()
|
||||
{
|
||||
return inventoryDist;
|
||||
}
|
||||
|
||||
}
|
@ -0,0 +1,81 @@
|
||||
package cn.qihangerp.api.domain;
|
||||
|
||||
import cn.qihangerp.common.annotation.Excel;
|
||||
import cn.qihangerp.domain.BaseEntity;
|
||||
|
||||
/**
|
||||
* 商品属性对象 erp_goods_attribute
|
||||
*
|
||||
* @author qihang
|
||||
* @date 2023-12-29
|
||||
*/
|
||||
public class GoodsAttribute extends BaseEntity
|
||||
{
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/** 主键id */
|
||||
private Long id;
|
||||
|
||||
/** 商品id */
|
||||
@Excel(name = "商品id")
|
||||
private Long goodsId;
|
||||
|
||||
/** 属性id */
|
||||
@Excel(name = "属性id")
|
||||
private Long attributeId;
|
||||
|
||||
/** 属性名 */
|
||||
@Excel(name = "属性名")
|
||||
private String name;
|
||||
|
||||
/** 属性值 */
|
||||
@Excel(name = "属性值")
|
||||
private String value;
|
||||
|
||||
public void setId(Long id)
|
||||
{
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
public Long getId()
|
||||
{
|
||||
return id;
|
||||
}
|
||||
public void setGoodsId(Long goodsId)
|
||||
{
|
||||
this.goodsId = goodsId;
|
||||
}
|
||||
|
||||
public Long getGoodsId()
|
||||
{
|
||||
return goodsId;
|
||||
}
|
||||
public void setAttributeId(Long attributeId)
|
||||
{
|
||||
this.attributeId = attributeId;
|
||||
}
|
||||
|
||||
public Long getAttributeId()
|
||||
{
|
||||
return attributeId;
|
||||
}
|
||||
public void setName(String name)
|
||||
{
|
||||
this.name = name;
|
||||
}
|
||||
|
||||
public String getName()
|
||||
{
|
||||
return name;
|
||||
}
|
||||
public void setValue(String value)
|
||||
{
|
||||
this.value = value;
|
||||
}
|
||||
|
||||
public String getValue()
|
||||
{
|
||||
return value;
|
||||
}
|
||||
|
||||
}
|
@ -0,0 +1,81 @@
|
||||
package cn.qihangerp.api.domain;
|
||||
|
||||
import cn.qihangerp.common.annotation.Excel;
|
||||
import cn.qihangerp.domain.BaseEntity;
|
||||
|
||||
/**
|
||||
* 商品图片对象 erp_goods_img
|
||||
*
|
||||
* @author qihang
|
||||
* @date 2023-12-29
|
||||
*/
|
||||
public class GoodsImg extends BaseEntity
|
||||
{
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/** $column.columnComment */
|
||||
private Long id;
|
||||
|
||||
/** 商品Id */
|
||||
@Excel(name = "商品Id")
|
||||
private Long goodsId;
|
||||
|
||||
/** 类型 */
|
||||
@Excel(name = "类型")
|
||||
private String type;
|
||||
|
||||
/** 图片url */
|
||||
@Excel(name = "图片url")
|
||||
private String url;
|
||||
|
||||
/** 排序 */
|
||||
@Excel(name = "排序")
|
||||
private Long sort;
|
||||
|
||||
public void setId(Long id)
|
||||
{
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
public Long getId()
|
||||
{
|
||||
return id;
|
||||
}
|
||||
public void setGoodsId(Long goodsId)
|
||||
{
|
||||
this.goodsId = goodsId;
|
||||
}
|
||||
|
||||
public Long getGoodsId()
|
||||
{
|
||||
return goodsId;
|
||||
}
|
||||
public void setType(String type)
|
||||
{
|
||||
this.type = type;
|
||||
}
|
||||
|
||||
public String getType()
|
||||
{
|
||||
return type;
|
||||
}
|
||||
public void setUrl(String url)
|
||||
{
|
||||
this.url = url;
|
||||
}
|
||||
|
||||
public String getUrl()
|
||||
{
|
||||
return url;
|
||||
}
|
||||
public void setSort(Long sort)
|
||||
{
|
||||
this.sort = sort;
|
||||
}
|
||||
|
||||
public Long getSort()
|
||||
{
|
||||
return sort;
|
||||
}
|
||||
|
||||
}
|
@ -0,0 +1,277 @@
|
||||
package cn.qihangerp.api.domain;
|
||||
|
||||
import java.math.BigDecimal;
|
||||
import cn.qihangerp.common.annotation.Excel;
|
||||
import cn.qihangerp.domain.BaseEntity;
|
||||
|
||||
/**
|
||||
* 商品规格对象 erp_goods_spec
|
||||
*
|
||||
* @author qihang
|
||||
* @date 2023-12-29
|
||||
*/
|
||||
public class GoodsSpec extends BaseEntity
|
||||
{
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/** 主键id */
|
||||
private Long id;
|
||||
|
||||
/** 商品id */
|
||||
@Excel(name = "商品id")
|
||||
private Long goodsId;
|
||||
|
||||
/** 规格名 */
|
||||
@Excel(name = "规格名")
|
||||
private String specName;
|
||||
|
||||
/** 规格编码 */
|
||||
@Excel(name = "规格编码")
|
||||
private String specNum;
|
||||
|
||||
/** 颜色id */
|
||||
@Excel(name = "颜色id")
|
||||
private Long colorId;
|
||||
|
||||
/** 颜色值 */
|
||||
@Excel(name = "颜色值")
|
||||
private String colorValue;
|
||||
|
||||
/** 颜色图片 */
|
||||
@Excel(name = "颜色图片")
|
||||
private String colorImage;
|
||||
|
||||
/** 尺码id */
|
||||
@Excel(name = "尺码id")
|
||||
private Long sizeId;
|
||||
|
||||
/** 尺码值 */
|
||||
@Excel(name = "尺码值")
|
||||
private String sizeValue;
|
||||
|
||||
/** 款式id */
|
||||
@Excel(name = "款式id")
|
||||
private Long styleId;
|
||||
|
||||
/** 款式值 */
|
||||
@Excel(name = "款式值")
|
||||
private String styleValue;
|
||||
|
||||
/** 库存条形码 */
|
||||
@Excel(name = "库存条形码")
|
||||
private String barCode;
|
||||
|
||||
/** 预计采购价 */
|
||||
@Excel(name = "预计采购价")
|
||||
private BigDecimal purPrice;
|
||||
|
||||
/** 建议批发价 */
|
||||
@Excel(name = "建议批发价")
|
||||
private BigDecimal wholePrice;
|
||||
|
||||
/** 建议零售价 */
|
||||
@Excel(name = "建议零售价")
|
||||
private BigDecimal retailPrice;
|
||||
|
||||
/** 单位成本 */
|
||||
@Excel(name = "单位成本")
|
||||
private BigDecimal unitCost;
|
||||
|
||||
/** 状态 */
|
||||
@Excel(name = "状态")
|
||||
private Integer status;
|
||||
|
||||
/** 最低库存(预警) */
|
||||
@Excel(name = "最低库存", readConverterExp = "预=警")
|
||||
private Long lowQty;
|
||||
|
||||
/** 最高库存(预警) */
|
||||
@Excel(name = "最高库存", readConverterExp = "预=警")
|
||||
private Long highQty;
|
||||
|
||||
/** 0启用 1禁用 */
|
||||
@Excel(name = "0启用 1禁用")
|
||||
private Integer disable;
|
||||
|
||||
public void setId(Long id)
|
||||
{
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
public Long getId()
|
||||
{
|
||||
return id;
|
||||
}
|
||||
public void setGoodsId(Long goodsId)
|
||||
{
|
||||
this.goodsId = goodsId;
|
||||
}
|
||||
|
||||
public Long getGoodsId()
|
||||
{
|
||||
return goodsId;
|
||||
}
|
||||
public void setSpecName(String specName)
|
||||
{
|
||||
this.specName = specName;
|
||||
}
|
||||
|
||||
public String getSpecName()
|
||||
{
|
||||
return specName;
|
||||
}
|
||||
public void setSpecNum(String specNum)
|
||||
{
|
||||
this.specNum = specNum;
|
||||
}
|
||||
|
||||
public String getSpecNum()
|
||||
{
|
||||
return specNum;
|
||||
}
|
||||
public void setColorId(Long colorId)
|
||||
{
|
||||
this.colorId = colorId;
|
||||
}
|
||||
|
||||
public Long getColorId()
|
||||
{
|
||||
return colorId;
|
||||
}
|
||||
public void setColorValue(String colorValue)
|
||||
{
|
||||
this.colorValue = colorValue;
|
||||
}
|
||||
|
||||
public String getColorValue()
|
||||
{
|
||||
return colorValue;
|
||||
}
|
||||
public void setColorImage(String colorImage)
|
||||
{
|
||||
this.colorImage = colorImage;
|
||||
}
|
||||
|
||||
public String getColorImage()
|
||||
{
|
||||
return colorImage;
|
||||
}
|
||||
public void setSizeId(Long sizeId)
|
||||
{
|
||||
this.sizeId = sizeId;
|
||||
}
|
||||
|
||||
public Long getSizeId()
|
||||
{
|
||||
return sizeId;
|
||||
}
|
||||
public void setSizeValue(String sizeValue)
|
||||
{
|
||||
this.sizeValue = sizeValue;
|
||||
}
|
||||
|
||||
public String getSizeValue()
|
||||
{
|
||||
return sizeValue;
|
||||
}
|
||||
public void setStyleId(Long styleId)
|
||||
{
|
||||
this.styleId = styleId;
|
||||
}
|
||||
|
||||
public Long getStyleId()
|
||||
{
|
||||
return styleId;
|
||||
}
|
||||
public void setStyleValue(String styleValue)
|
||||
{
|
||||
this.styleValue = styleValue;
|
||||
}
|
||||
|
||||
public String getStyleValue()
|
||||
{
|
||||
return styleValue;
|
||||
}
|
||||
public void setBarCode(String barCode)
|
||||
{
|
||||
this.barCode = barCode;
|
||||
}
|
||||
|
||||
public String getBarCode()
|
||||
{
|
||||
return barCode;
|
||||
}
|
||||
public void setPurPrice(BigDecimal purPrice)
|
||||
{
|
||||
this.purPrice = purPrice;
|
||||
}
|
||||
|
||||
public BigDecimal getPurPrice()
|
||||
{
|
||||
return purPrice;
|
||||
}
|
||||
public void setWholePrice(BigDecimal wholePrice)
|
||||
{
|
||||
this.wholePrice = wholePrice;
|
||||
}
|
||||
|
||||
public BigDecimal getWholePrice()
|
||||
{
|
||||
return wholePrice;
|
||||
}
|
||||
public void setRetailPrice(BigDecimal retailPrice)
|
||||
{
|
||||
this.retailPrice = retailPrice;
|
||||
}
|
||||
|
||||
public BigDecimal getRetailPrice()
|
||||
{
|
||||
return retailPrice;
|
||||
}
|
||||
public void setUnitCost(BigDecimal unitCost)
|
||||
{
|
||||
this.unitCost = unitCost;
|
||||
}
|
||||
|
||||
public BigDecimal getUnitCost()
|
||||
{
|
||||
return unitCost;
|
||||
}
|
||||
public void setStatus(Integer status)
|
||||
{
|
||||
this.status = status;
|
||||
}
|
||||
|
||||
public Integer getStatus()
|
||||
{
|
||||
return status;
|
||||
}
|
||||
public void setLowQty(Long lowQty)
|
||||
{
|
||||
this.lowQty = lowQty;
|
||||
}
|
||||
|
||||
public Long getLowQty()
|
||||
{
|
||||
return lowQty;
|
||||
}
|
||||
public void setHighQty(Long highQty)
|
||||
{
|
||||
this.highQty = highQty;
|
||||
}
|
||||
|
||||
public Long getHighQty()
|
||||
{
|
||||
return highQty;
|
||||
}
|
||||
public void setDisable(Integer disable)
|
||||
{
|
||||
this.disable = disable;
|
||||
}
|
||||
|
||||
public Integer getDisable()
|
||||
{
|
||||
return disable;
|
||||
}
|
||||
|
||||
}
|
@ -0,0 +1,120 @@
|
||||
package cn.qihangerp.api.domain;
|
||||
|
||||
import cn.qihangerp.common.annotation.Excel;
|
||||
import cn.qihangerp.domain.BaseEntity;
|
||||
|
||||
/**
|
||||
* 商品规格属性对象 erp_goods_spec_attr
|
||||
*
|
||||
* @author qihang
|
||||
* @date 2023-12-29
|
||||
*/
|
||||
public class GoodsSpecAttr extends BaseEntity
|
||||
{
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/** $column.columnComment */
|
||||
private Long id;
|
||||
|
||||
/** $column.columnComment */
|
||||
@Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()")
|
||||
private Long goodsId;
|
||||
|
||||
/** $column.columnComment */
|
||||
@Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()")
|
||||
private String type;
|
||||
|
||||
/** $column.columnComment */
|
||||
@Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()")
|
||||
private String k;
|
||||
|
||||
/** $column.columnComment */
|
||||
@Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()")
|
||||
private Long kid;
|
||||
|
||||
/** $column.columnComment */
|
||||
@Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()")
|
||||
private Long vid;
|
||||
|
||||
/** $column.columnComment */
|
||||
@Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()")
|
||||
private String v;
|
||||
|
||||
/** $column.columnComment */
|
||||
@Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()")
|
||||
private String img;
|
||||
|
||||
public void setId(Long id)
|
||||
{
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
public Long getId()
|
||||
{
|
||||
return id;
|
||||
}
|
||||
public void setGoodsId(Long goodsId)
|
||||
{
|
||||
this.goodsId = goodsId;
|
||||
}
|
||||
|
||||
public Long getGoodsId()
|
||||
{
|
||||
return goodsId;
|
||||
}
|
||||
public void setType(String type)
|
||||
{
|
||||
this.type = type;
|
||||
}
|
||||
|
||||
public String getType()
|
||||
{
|
||||
return type;
|
||||
}
|
||||
public void setK(String k)
|
||||
{
|
||||
this.k = k;
|
||||
}
|
||||
|
||||
public String getK()
|
||||
{
|
||||
return k;
|
||||
}
|
||||
public void setKid(Long kid)
|
||||
{
|
||||
this.kid = kid;
|
||||
}
|
||||
|
||||
public Long getKid()
|
||||
{
|
||||
return kid;
|
||||
}
|
||||
public void setVid(Long vid)
|
||||
{
|
||||
this.vid = vid;
|
||||
}
|
||||
|
||||
public Long getVid()
|
||||
{
|
||||
return vid;
|
||||
}
|
||||
public void setV(String v)
|
||||
{
|
||||
this.v = v;
|
||||
}
|
||||
|
||||
public String getV()
|
||||
{
|
||||
return v;
|
||||
}
|
||||
public void setImg(String img)
|
||||
{
|
||||
this.img = img;
|
||||
}
|
||||
|
||||
public String getImg()
|
||||
{
|
||||
return img;
|
||||
}
|
||||
|
||||
}
|
@ -0,0 +1,17 @@
|
||||
package cn.qihangerp.api.domain;
|
||||
|
||||
import com.baomidou.mybatisplus.annotation.TableName;
|
||||
import lombok.Data;
|
||||
|
||||
import java.util.Date;
|
||||
|
||||
@Data
|
||||
@TableName("d_keyword")
|
||||
public class Keyword {
|
||||
private String id;
|
||||
private String source;
|
||||
private String word;
|
||||
private String remark;
|
||||
private Date date;
|
||||
private Date createTime;
|
||||
}
|
@ -0,0 +1,214 @@
|
||||
package cn.qihangerp.api.domain;
|
||||
|
||||
import java.math.BigDecimal;
|
||||
import java.util.Date;
|
||||
|
||||
import com.baomidou.mybatisplus.annotation.TableField;
|
||||
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||
import cn.qihangerp.common.annotation.Excel;
|
||||
import cn.qihangerp.domain.BaseEntity;
|
||||
|
||||
/**
|
||||
* 采购订单对象 scm_purchase_order
|
||||
*
|
||||
* @author qihang
|
||||
* @date 2023-12-29
|
||||
*/
|
||||
public class ScmPurchaseOrder extends BaseEntity
|
||||
{
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/** $column.columnComment */
|
||||
private Long id;
|
||||
|
||||
/** 供应商id */
|
||||
@Excel(name = "供应商id")
|
||||
private Long contactId;
|
||||
@TableField(exist = false)
|
||||
private String supplier;
|
||||
|
||||
/** 订单编号 */
|
||||
@Excel(name = "订单编号")
|
||||
private String orderNo;
|
||||
|
||||
/** 订单日期 */
|
||||
@JsonFormat(pattern = "yyyy-MM-dd")
|
||||
@Excel(name = "订单日期", width = 30, dateFormat = "yyyy-MM-dd")
|
||||
private Date orderDate;
|
||||
|
||||
/** 订单创建时间 */
|
||||
@Excel(name = "订单创建时间")
|
||||
private Long orderTime;
|
||||
|
||||
/** 订单总金额 */
|
||||
@Excel(name = "订单总金额")
|
||||
private BigDecimal orderAmount;
|
||||
private BigDecimal shipAmount;
|
||||
|
||||
/** 订单状态 0待审核1已审核101供应商已确认102供应商已发货200已入库 */
|
||||
@Excel(name = "订单状态 0待审核1已审核101供应商已确认102供应商已发货200已入库")
|
||||
private Integer status;
|
||||
|
||||
/** 采购单审核人 */
|
||||
@Excel(name = "采购单审核人")
|
||||
private String auditUser;
|
||||
|
||||
/** 审核时间 */
|
||||
@Excel(name = "审核时间")
|
||||
private Long auditTime;
|
||||
|
||||
/** 供应商确认时间 */
|
||||
@JsonFormat(pattern = "yyyy-MM-dd")
|
||||
@Excel(name = "供应商确认时间", width = 30, dateFormat = "yyyy-MM-dd")
|
||||
private Date supplierConfirmTime;
|
||||
|
||||
/** 供应商发货时间 */
|
||||
@JsonFormat(pattern = "yyyy-MM-dd")
|
||||
@Excel(name = "供应商发货时间", width = 30, dateFormat = "yyyy-MM-dd")
|
||||
private Date supplierDeliveryTime;
|
||||
|
||||
/** 收货时间 */
|
||||
@JsonFormat(pattern = "yyyy-MM-dd")
|
||||
@Excel(name = "收货时间", width = 30, dateFormat = "yyyy-MM-dd")
|
||||
private Date receivedTime;
|
||||
|
||||
/** 入库时间 */
|
||||
@JsonFormat(pattern = "yyyy-MM-dd")
|
||||
@Excel(name = "入库时间", width = 30, dateFormat = "yyyy-MM-dd")
|
||||
private Date stockInTime;
|
||||
|
||||
public String getSupplier() {
|
||||
return supplier;
|
||||
}
|
||||
|
||||
public void setSupplier(String supplier) {
|
||||
this.supplier = supplier;
|
||||
}
|
||||
|
||||
public BigDecimal getShipAmount() {
|
||||
return shipAmount;
|
||||
}
|
||||
|
||||
public void setShipAmount(BigDecimal shipAmount) {
|
||||
this.shipAmount = shipAmount;
|
||||
}
|
||||
|
||||
public void setId(Long id)
|
||||
{
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
public Long getId()
|
||||
{
|
||||
return id;
|
||||
}
|
||||
public void setContactId(Long contactId)
|
||||
{
|
||||
this.contactId = contactId;
|
||||
}
|
||||
|
||||
public Long getContactId()
|
||||
{
|
||||
return contactId;
|
||||
}
|
||||
public void setOrderNo(String orderNo)
|
||||
{
|
||||
this.orderNo = orderNo;
|
||||
}
|
||||
|
||||
public String getOrderNo()
|
||||
{
|
||||
return orderNo;
|
||||
}
|
||||
public void setOrderDate(Date orderDate)
|
||||
{
|
||||
this.orderDate = orderDate;
|
||||
}
|
||||
|
||||
public Date getOrderDate()
|
||||
{
|
||||
return orderDate;
|
||||
}
|
||||
public void setOrderTime(Long orderTime)
|
||||
{
|
||||
this.orderTime = orderTime;
|
||||
}
|
||||
|
||||
public Long getOrderTime()
|
||||
{
|
||||
return orderTime;
|
||||
}
|
||||
public void setOrderAmount(BigDecimal orderAmount)
|
||||
{
|
||||
this.orderAmount = orderAmount;
|
||||
}
|
||||
|
||||
public BigDecimal getOrderAmount()
|
||||
{
|
||||
return orderAmount;
|
||||
}
|
||||
public void setStatus(Integer status)
|
||||
{
|
||||
this.status = status;
|
||||
}
|
||||
|
||||
public Integer getStatus()
|
||||
{
|
||||
return status;
|
||||
}
|
||||
public void setAuditUser(String auditUser)
|
||||
{
|
||||
this.auditUser = auditUser;
|
||||
}
|
||||
|
||||
public String getAuditUser()
|
||||
{
|
||||
return auditUser;
|
||||
}
|
||||
public void setAuditTime(Long auditTime)
|
||||
{
|
||||
this.auditTime = auditTime;
|
||||
}
|
||||
|
||||
public Long getAuditTime()
|
||||
{
|
||||
return auditTime;
|
||||
}
|
||||
public void setSupplierConfirmTime(Date supplierConfirmTime)
|
||||
{
|
||||
this.supplierConfirmTime = supplierConfirmTime;
|
||||
}
|
||||
|
||||
public Date getSupplierConfirmTime()
|
||||
{
|
||||
return supplierConfirmTime;
|
||||
}
|
||||
public void setSupplierDeliveryTime(Date supplierDeliveryTime)
|
||||
{
|
||||
this.supplierDeliveryTime = supplierDeliveryTime;
|
||||
}
|
||||
|
||||
public Date getSupplierDeliveryTime()
|
||||
{
|
||||
return supplierDeliveryTime;
|
||||
}
|
||||
public void setReceivedTime(Date receivedTime)
|
||||
{
|
||||
this.receivedTime = receivedTime;
|
||||
}
|
||||
|
||||
public Date getReceivedTime()
|
||||
{
|
||||
return receivedTime;
|
||||
}
|
||||
public void setStockInTime(Date stockInTime)
|
||||
{
|
||||
this.stockInTime = stockInTime;
|
||||
}
|
||||
|
||||
public Date getStockInTime()
|
||||
{
|
||||
return stockInTime;
|
||||
}
|
||||
|
||||
}
|
@ -0,0 +1,266 @@
|
||||
package cn.qihangerp.api.domain;
|
||||
|
||||
import java.util.Date;
|
||||
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||
import cn.qihangerp.common.annotation.Excel;
|
||||
import cn.qihangerp.domain.BaseEntity;
|
||||
|
||||
/**
|
||||
* 【请填写功能名称】对象 scm_supplier
|
||||
*
|
||||
* @author qihang
|
||||
* @date 2023-12-29
|
||||
*/
|
||||
public class ScmSupplier extends BaseEntity
|
||||
{
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/** $column.columnComment */
|
||||
private Long id;
|
||||
|
||||
/** 供应商名称 */
|
||||
@Excel(name = "供应商名称")
|
||||
private String name;
|
||||
|
||||
/** 供应商编码 */
|
||||
@Excel(name = "供应商编码")
|
||||
private String number;
|
||||
|
||||
/** 税率 */
|
||||
@Excel(name = "税率")
|
||||
private Long taxRate;
|
||||
|
||||
/** 期初应付款 */
|
||||
@Excel(name = "期初应付款")
|
||||
private Long amount;
|
||||
|
||||
/** 期初预付款 */
|
||||
@Excel(name = "期初预付款")
|
||||
private Long periodMoney;
|
||||
|
||||
/** 初期往来余额 */
|
||||
@Excel(name = "初期往来余额")
|
||||
private Long difMoney;
|
||||
|
||||
/** 余额日期 */
|
||||
@JsonFormat(pattern = "yyyy-MM-dd")
|
||||
@Excel(name = "余额日期", width = 30, dateFormat = "yyyy-MM-dd")
|
||||
private Date beginDate;
|
||||
|
||||
/** 职位 */
|
||||
@Excel(name = "职位")
|
||||
private String place;
|
||||
|
||||
/** 联系人 */
|
||||
@Excel(name = "联系人")
|
||||
private String linkMan;
|
||||
|
||||
/** 联系方式 */
|
||||
@Excel(name = "联系方式")
|
||||
private String contact;
|
||||
|
||||
/** 省 */
|
||||
@Excel(name = "省")
|
||||
private String province;
|
||||
|
||||
/** 市 */
|
||||
@Excel(name = "市")
|
||||
private String city;
|
||||
|
||||
/** 区县 */
|
||||
@Excel(name = "区县")
|
||||
private String county;
|
||||
|
||||
/** 收货地址详情 */
|
||||
@Excel(name = "收货地址详情")
|
||||
private String address;
|
||||
|
||||
/** $column.columnComment */
|
||||
@Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()")
|
||||
private String pinYin;
|
||||
|
||||
/** 0启用 1禁用 */
|
||||
@Excel(name = "0启用 1禁用")
|
||||
private Integer disable;
|
||||
|
||||
/** 0正常 1删除 */
|
||||
@Excel(name = "0正常 1删除")
|
||||
private Integer isDelete;
|
||||
|
||||
/** 分管采购员 */
|
||||
@Excel(name = "分管采购员")
|
||||
private String purchaserName;
|
||||
|
||||
public void setId(Long id)
|
||||
{
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
public Long getId()
|
||||
{
|
||||
return id;
|
||||
}
|
||||
public void setName(String name)
|
||||
{
|
||||
this.name = name;
|
||||
}
|
||||
|
||||
public String getName()
|
||||
{
|
||||
return name;
|
||||
}
|
||||
public void setNumber(String number)
|
||||
{
|
||||
this.number = number;
|
||||
}
|
||||
|
||||
public String getNumber()
|
||||
{
|
||||
return number;
|
||||
}
|
||||
public void setTaxRate(Long taxRate)
|
||||
{
|
||||
this.taxRate = taxRate;
|
||||
}
|
||||
|
||||
public Long getTaxRate()
|
||||
{
|
||||
return taxRate;
|
||||
}
|
||||
public void setAmount(Long amount)
|
||||
{
|
||||
this.amount = amount;
|
||||
}
|
||||
|
||||
public Long getAmount()
|
||||
{
|
||||
return amount;
|
||||
}
|
||||
public void setPeriodMoney(Long periodMoney)
|
||||
{
|
||||
this.periodMoney = periodMoney;
|
||||
}
|
||||
|
||||
public Long getPeriodMoney()
|
||||
{
|
||||
return periodMoney;
|
||||
}
|
||||
public void setDifMoney(Long difMoney)
|
||||
{
|
||||
this.difMoney = difMoney;
|
||||
}
|
||||
|
||||
public Long getDifMoney()
|
||||
{
|
||||
return difMoney;
|
||||
}
|
||||
public void setBeginDate(Date beginDate)
|
||||
{
|
||||
this.beginDate = beginDate;
|
||||
}
|
||||
|
||||
public Date getBeginDate()
|
||||
{
|
||||
return beginDate;
|
||||
}
|
||||
public void setPlace(String place)
|
||||
{
|
||||
this.place = place;
|
||||
}
|
||||
|
||||
public String getPlace()
|
||||
{
|
||||
return place;
|
||||
}
|
||||
public void setLinkMan(String linkMan)
|
||||
{
|
||||
this.linkMan = linkMan;
|
||||
}
|
||||
|
||||
public String getLinkMan()
|
||||
{
|
||||
return linkMan;
|
||||
}
|
||||
public void setContact(String contact)
|
||||
{
|
||||
this.contact = contact;
|
||||
}
|
||||
|
||||
public String getContact()
|
||||
{
|
||||
return contact;
|
||||
}
|
||||
public void setProvince(String province)
|
||||
{
|
||||
this.province = province;
|
||||
}
|
||||
|
||||
public String getProvince()
|
||||
{
|
||||
return province;
|
||||
}
|
||||
public void setCity(String city)
|
||||
{
|
||||
this.city = city;
|
||||
}
|
||||
|
||||
public String getCity()
|
||||
{
|
||||
return city;
|
||||
}
|
||||
public void setCounty(String county)
|
||||
{
|
||||
this.county = county;
|
||||
}
|
||||
|
||||
public String getCounty()
|
||||
{
|
||||
return county;
|
||||
}
|
||||
public void setAddress(String address)
|
||||
{
|
||||
this.address = address;
|
||||
}
|
||||
|
||||
public String getAddress()
|
||||
{
|
||||
return address;
|
||||
}
|
||||
public void setPinYin(String pinYin)
|
||||
{
|
||||
this.pinYin = pinYin;
|
||||
}
|
||||
|
||||
public String getPinYin()
|
||||
{
|
||||
return pinYin;
|
||||
}
|
||||
public void setDisable(Integer disable)
|
||||
{
|
||||
this.disable = disable;
|
||||
}
|
||||
|
||||
public Integer getDisable()
|
||||
{
|
||||
return disable;
|
||||
}
|
||||
public void setIsDelete(Integer isDelete)
|
||||
{
|
||||
this.isDelete = isDelete;
|
||||
}
|
||||
|
||||
public Integer getIsDelete()
|
||||
{
|
||||
return isDelete;
|
||||
}
|
||||
public void setPurchaserName(String purchaserName)
|
||||
{
|
||||
this.purchaserName = purchaserName;
|
||||
}
|
||||
|
||||
public String getPurchaserName()
|
||||
{
|
||||
return purchaserName;
|
||||
}
|
||||
|
||||
}
|
@ -0,0 +1,133 @@
|
||||
package cn.qihangerp.api.domain;
|
||||
|
||||
import cn.qihangerp.common.annotation.Excel;
|
||||
import cn.qihangerp.domain.BaseEntity;
|
||||
|
||||
/**
|
||||
* 仓库货架对象 wms_stock_location
|
||||
*
|
||||
* @author qihang
|
||||
* @date 2024-01-09
|
||||
*/
|
||||
public class WmsStockLocation extends BaseEntity
|
||||
{
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/** 主键ID */
|
||||
private Long id;
|
||||
|
||||
/** 货架编号 */
|
||||
@Excel(name = "货架编号")
|
||||
private String number;
|
||||
|
||||
/** 货架名称 */
|
||||
@Excel(name = "货架名称")
|
||||
private String name;
|
||||
|
||||
/** 上级id */
|
||||
@Excel(name = "上级id")
|
||||
private Long parentId;
|
||||
|
||||
/** 层级深度1级2级3级 */
|
||||
@Excel(name = "层级深度1级2级3级")
|
||||
private Long depth;
|
||||
|
||||
/** 一级类目id */
|
||||
@Excel(name = "一级类目id")
|
||||
private Long parentId1;
|
||||
|
||||
/** 二级类目id */
|
||||
@Excel(name = "二级类目id")
|
||||
private Long parentId2;
|
||||
|
||||
/** 地址 */
|
||||
@Excel(name = "地址")
|
||||
private String address;
|
||||
|
||||
/** 0正常 1删除 */
|
||||
@Excel(name = "0正常 1删除")
|
||||
private Long isDelete;
|
||||
|
||||
public void setId(Long id)
|
||||
{
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
public Long getId()
|
||||
{
|
||||
return id;
|
||||
}
|
||||
public void setNumber(String number)
|
||||
{
|
||||
this.number = number;
|
||||
}
|
||||
|
||||
public String getNumber()
|
||||
{
|
||||
return number;
|
||||
}
|
||||
public void setName(String name)
|
||||
{
|
||||
this.name = name;
|
||||
}
|
||||
|
||||
public String getName()
|
||||
{
|
||||
return name;
|
||||
}
|
||||
public void setParentId(Long parentId)
|
||||
{
|
||||
this.parentId = parentId;
|
||||
}
|
||||
|
||||
public Long getParentId()
|
||||
{
|
||||
return parentId;
|
||||
}
|
||||
public void setDepth(Long depth)
|
||||
{
|
||||
this.depth = depth;
|
||||
}
|
||||
|
||||
public Long getDepth()
|
||||
{
|
||||
return depth;
|
||||
}
|
||||
public void setParentId1(Long parentId1)
|
||||
{
|
||||
this.parentId1 = parentId1;
|
||||
}
|
||||
|
||||
public Long getParentId1()
|
||||
{
|
||||
return parentId1;
|
||||
}
|
||||
public void setParentId2(Long parentId2)
|
||||
{
|
||||
this.parentId2 = parentId2;
|
||||
}
|
||||
|
||||
public Long getParentId2()
|
||||
{
|
||||
return parentId2;
|
||||
}
|
||||
public void setAddress(String address)
|
||||
{
|
||||
this.address = address;
|
||||
}
|
||||
|
||||
public String getAddress()
|
||||
{
|
||||
return address;
|
||||
}
|
||||
public void setIsDelete(Long isDelete)
|
||||
{
|
||||
this.isDelete = isDelete;
|
||||
}
|
||||
|
||||
public Long getIsDelete()
|
||||
{
|
||||
return isDelete;
|
||||
}
|
||||
|
||||
}
|
@ -0,0 +1,64 @@
|
||||
package cn.qihangerp.api.domain;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.util.Date;
|
||||
import lombok.Data;
|
||||
|
||||
/**
|
||||
* 出库明细详情
|
||||
* @TableName wms_stock_out_entry_item_detail
|
||||
*/
|
||||
@Data
|
||||
public class WmsStockOutEntryItemDetail implements Serializable {
|
||||
/**
|
||||
* 主键ID
|
||||
*/
|
||||
private Long id;
|
||||
|
||||
/**
|
||||
* 出库单ID
|
||||
*/
|
||||
private Long entryId;
|
||||
|
||||
/**
|
||||
* 出库单ItemID
|
||||
*/
|
||||
private Long entryItemId;
|
||||
|
||||
/**
|
||||
* 库存ID
|
||||
*/
|
||||
private Long goodsInventoryId;
|
||||
|
||||
/**
|
||||
* 库存详情ID
|
||||
*/
|
||||
private Long goodsInventoryDetailId;
|
||||
|
||||
/**
|
||||
* 出库数量
|
||||
*/
|
||||
private Integer quantity;
|
||||
|
||||
/**
|
||||
* 出库仓位ID
|
||||
*/
|
||||
private Integer locationId;
|
||||
|
||||
/**
|
||||
* 出库操作人userid
|
||||
*/
|
||||
private Long operatorId;
|
||||
|
||||
/**
|
||||
* 出库操作人
|
||||
*/
|
||||
private String operatorName;
|
||||
|
||||
/**
|
||||
* 出库时间
|
||||
*/
|
||||
private Date outTime;
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
}
|
@ -0,0 +1,80 @@
|
||||
package cn.qihangerp.api.domain.bo;
|
||||
|
||||
import java.math.BigDecimal;
|
||||
|
||||
public class GoodsSpecAddBo {
|
||||
private Long colorId;
|
||||
private String colorValue;
|
||||
private Long sizeId;
|
||||
private String sizeValue;
|
||||
private Long styleId;
|
||||
private String styleValue;
|
||||
|
||||
private String specNum;
|
||||
|
||||
private BigDecimal purPrice;
|
||||
|
||||
public Long getColorId() {
|
||||
return colorId;
|
||||
}
|
||||
|
||||
public void setColorId(Long colorId) {
|
||||
this.colorId = colorId;
|
||||
}
|
||||
|
||||
public String getColorValue() {
|
||||
return colorValue;
|
||||
}
|
||||
|
||||
public void setColorValue(String colorValue) {
|
||||
this.colorValue = colorValue;
|
||||
}
|
||||
|
||||
public Long getSizeId() {
|
||||
return sizeId;
|
||||
}
|
||||
|
||||
public void setSizeId(Long sizeId) {
|
||||
this.sizeId = sizeId;
|
||||
}
|
||||
|
||||
public String getSizeValue() {
|
||||
return sizeValue;
|
||||
}
|
||||
|
||||
public void setSizeValue(String sizeValue) {
|
||||
this.sizeValue = sizeValue;
|
||||
}
|
||||
|
||||
public Long getStyleId() {
|
||||
return styleId;
|
||||
}
|
||||
|
||||
public void setStyleId(Long styleId) {
|
||||
this.styleId = styleId;
|
||||
}
|
||||
|
||||
public String getStyleValue() {
|
||||
return styleValue;
|
||||
}
|
||||
|
||||
public void setStyleValue(String styleValue) {
|
||||
this.styleValue = styleValue;
|
||||
}
|
||||
|
||||
public String getSpecNum() {
|
||||
return specNum;
|
||||
}
|
||||
|
||||
public void setSpecNum(String specNum) {
|
||||
this.specNum = specNum;
|
||||
}
|
||||
|
||||
public BigDecimal getPurPrice() {
|
||||
return purPrice;
|
||||
}
|
||||
|
||||
public void setPurPrice(BigDecimal purPrice) {
|
||||
this.purPrice = purPrice;
|
||||
}
|
||||
}
|
@ -0,0 +1,9 @@
|
||||
package cn.qihangerp.api.domain.bo;
|
||||
|
||||
import lombok.Data;
|
||||
|
||||
@Data
|
||||
public class OrderItemSpecIdUpdateBo {
|
||||
private Long orderItemId;
|
||||
private Long erpGoodsSpecId;
|
||||
}
|
@ -0,0 +1,80 @@
|
||||
package cn.qihangerp.api.domain.bo;
|
||||
|
||||
import cn.qihangerp.domain.BaseEntity;
|
||||
|
||||
import java.math.BigDecimal;
|
||||
import java.util.Date;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 采购订单对象 scm_purchase_order
|
||||
*
|
||||
* @author qihang
|
||||
* @date 2023-12-29
|
||||
*/
|
||||
public class PurchaseOrderAddBo extends BaseEntity
|
||||
{
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
|
||||
/** 供应商id */
|
||||
private Long contactId;
|
||||
|
||||
/** 订单编号 */
|
||||
private String orderNo;
|
||||
|
||||
/** 订单日期 */
|
||||
private Date orderDate;
|
||||
|
||||
|
||||
/** 订单总金额 */
|
||||
private BigDecimal orderAmount;
|
||||
|
||||
private List<PurchaseOrderAddItemBo> goodsList;
|
||||
|
||||
public List<PurchaseOrderAddItemBo> getGoodsList() {
|
||||
return goodsList;
|
||||
}
|
||||
|
||||
public void setGoodsList(List<PurchaseOrderAddItemBo> goodsList) {
|
||||
this.goodsList = goodsList;
|
||||
}
|
||||
|
||||
public void setContactId(Long contactId)
|
||||
{
|
||||
this.contactId = contactId;
|
||||
}
|
||||
|
||||
public Long getContactId()
|
||||
{
|
||||
return contactId;
|
||||
}
|
||||
public void setOrderNo(String orderNo)
|
||||
{
|
||||
this.orderNo = orderNo;
|
||||
}
|
||||
|
||||
public String getOrderNo()
|
||||
{
|
||||
return orderNo;
|
||||
}
|
||||
public void setOrderDate(Date orderDate)
|
||||
{
|
||||
this.orderDate = orderDate;
|
||||
}
|
||||
|
||||
public Date getOrderDate()
|
||||
{
|
||||
return orderDate;
|
||||
}
|
||||
public void setOrderAmount(BigDecimal orderAmount)
|
||||
{
|
||||
this.orderAmount = orderAmount;
|
||||
}
|
||||
|
||||
public BigDecimal getOrderAmount()
|
||||
{
|
||||
return orderAmount;
|
||||
}
|
||||
|
||||
}
|
@ -0,0 +1,124 @@
|
||||
package cn.qihangerp.api.domain.bo;
|
||||
|
||||
import java.math.BigDecimal;
|
||||
import java.util.Date;
|
||||
|
||||
/**
|
||||
* 采购订单对象 scm_purchase_order
|
||||
*
|
||||
* @author qihang
|
||||
* @date 2023-12-29
|
||||
*/
|
||||
public class PurchaseOrderAddItemBo {
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
|
||||
private Long id;
|
||||
private String colorImage;
|
||||
private String name;
|
||||
private BigDecimal purPrice;
|
||||
private Long qty;
|
||||
private BigDecimal amount;
|
||||
private Long goodsId;
|
||||
private String colorValue;
|
||||
private String number;
|
||||
private String sizeValue;
|
||||
private String specNum;
|
||||
private String styleValue;
|
||||
|
||||
public Long getId() {
|
||||
return id;
|
||||
}
|
||||
|
||||
public void setId(Long id) {
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
public String getColorImage() {
|
||||
return colorImage;
|
||||
}
|
||||
|
||||
public void setColorImage(String colorImage) {
|
||||
this.colorImage = colorImage;
|
||||
}
|
||||
|
||||
public String getName() {
|
||||
return name;
|
||||
}
|
||||
|
||||
public void setName(String name) {
|
||||
this.name = name;
|
||||
}
|
||||
|
||||
public BigDecimal getPurPrice() {
|
||||
return purPrice;
|
||||
}
|
||||
|
||||
public void setPurPrice(BigDecimal purPrice) {
|
||||
this.purPrice = purPrice;
|
||||
}
|
||||
|
||||
public Long getQty() {
|
||||
return qty;
|
||||
}
|
||||
|
||||
public void setQty(Long qty) {
|
||||
this.qty = qty;
|
||||
}
|
||||
|
||||
public BigDecimal getAmount() {
|
||||
return amount;
|
||||
}
|
||||
|
||||
public void setAmount(BigDecimal amount) {
|
||||
this.amount = amount;
|
||||
}
|
||||
|
||||
public Long getGoodsId() {
|
||||
return goodsId;
|
||||
}
|
||||
|
||||
public void setGoodsId(Long goodsId) {
|
||||
this.goodsId = goodsId;
|
||||
}
|
||||
|
||||
public String getColorValue() {
|
||||
return colorValue;
|
||||
}
|
||||
|
||||
public void setColorValue(String colorValue) {
|
||||
this.colorValue = colorValue;
|
||||
}
|
||||
|
||||
public String getNumber() {
|
||||
return number;
|
||||
}
|
||||
|
||||
public void setNumber(String number) {
|
||||
this.number = number;
|
||||
}
|
||||
|
||||
public String getSizeValue() {
|
||||
return sizeValue;
|
||||
}
|
||||
|
||||
public void setSizeValue(String sizeValue) {
|
||||
this.sizeValue = sizeValue;
|
||||
}
|
||||
|
||||
public String getSpecNum() {
|
||||
return specNum;
|
||||
}
|
||||
|
||||
public void setSpecNum(String specNum) {
|
||||
this.specNum = specNum;
|
||||
}
|
||||
|
||||
public String getStyleValue() {
|
||||
return styleValue;
|
||||
}
|
||||
|
||||
public void setStyleValue(String styleValue) {
|
||||
this.styleValue = styleValue;
|
||||
}
|
||||
}
|
@ -0,0 +1,37 @@
|
||||
package cn.qihangerp.api.domain.bo;
|
||||
|
||||
import cn.qihangerp.domain.BaseEntity;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 采购订单对象 scm_purchase_order
|
||||
*
|
||||
* @author qihang
|
||||
* @date 2023-12-29
|
||||
*/
|
||||
public class PurchaseOrderStockInBo extends BaseEntity
|
||||
{
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
private Long id;//采购单id
|
||||
|
||||
public Long getId() {
|
||||
return id;
|
||||
}
|
||||
|
||||
public void setId(Long id) {
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
private List<PurchaseOrderStockInItemBo> goodsList;
|
||||
|
||||
public List<PurchaseOrderStockInItemBo> getGoodsList() {
|
||||
return goodsList;
|
||||
}
|
||||
|
||||
public void setGoodsList(List<PurchaseOrderStockInItemBo> goodsList) {
|
||||
this.goodsList = goodsList;
|
||||
}
|
||||
|
||||
}
|
@ -0,0 +1,131 @@
|
||||
package cn.qihangerp.api.domain.bo;
|
||||
|
||||
import cn.qihangerp.domain.BaseEntity;
|
||||
|
||||
/**
|
||||
* 采购订单对象 scm_purchase_order
|
||||
*
|
||||
* @author qihang
|
||||
* @date 2023-12-29
|
||||
*/
|
||||
public class PurchaseOrderStockInItemBo extends BaseEntity {
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
private Long id;
|
||||
private Long orderId;
|
||||
private Long goodsId;
|
||||
private String goodsNum;
|
||||
private Long specId;
|
||||
private String specNum;
|
||||
private String goodsName;
|
||||
private String colorValue;
|
||||
private String colorImage;
|
||||
private String sizeValue;
|
||||
private String styleValue;
|
||||
private Long quantity;
|
||||
private Long inQty;
|
||||
|
||||
public Long getId() {
|
||||
return id;
|
||||
}
|
||||
|
||||
public void setId(Long id) {
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
public Long getOrderId() {
|
||||
return orderId;
|
||||
}
|
||||
|
||||
public void setOrderId(Long orderId) {
|
||||
this.orderId = orderId;
|
||||
}
|
||||
|
||||
public Long getGoodsId() {
|
||||
return goodsId;
|
||||
}
|
||||
|
||||
public void setGoodsId(Long goodsId) {
|
||||
this.goodsId = goodsId;
|
||||
}
|
||||
|
||||
public String getGoodsNum() {
|
||||
return goodsNum;
|
||||
}
|
||||
|
||||
public void setGoodsNum(String goodsNum) {
|
||||
this.goodsNum = goodsNum;
|
||||
}
|
||||
|
||||
public Long getSpecId() {
|
||||
return specId;
|
||||
}
|
||||
|
||||
public void setSpecId(Long specId) {
|
||||
this.specId = specId;
|
||||
}
|
||||
|
||||
public String getSpecNum() {
|
||||
return specNum;
|
||||
}
|
||||
|
||||
public void setSpecNum(String specNum) {
|
||||
this.specNum = specNum;
|
||||
}
|
||||
|
||||
public String getGoodsName() {
|
||||
return goodsName;
|
||||
}
|
||||
|
||||
public void setGoodsName(String goodsName) {
|
||||
this.goodsName = goodsName;
|
||||
}
|
||||
|
||||
public String getColorValue() {
|
||||
return colorValue;
|
||||
}
|
||||
|
||||
public void setColorValue(String colorValue) {
|
||||
this.colorValue = colorValue;
|
||||
}
|
||||
|
||||
public String getColorImage() {
|
||||
return colorImage;
|
||||
}
|
||||
|
||||
public void setColorImage(String colorImage) {
|
||||
this.colorImage = colorImage;
|
||||
}
|
||||
|
||||
public String getSizeValue() {
|
||||
return sizeValue;
|
||||
}
|
||||
|
||||
public void setSizeValue(String sizeValue) {
|
||||
this.sizeValue = sizeValue;
|
||||
}
|
||||
|
||||
public String getStyleValue() {
|
||||
return styleValue;
|
||||
}
|
||||
|
||||
public void setStyleValue(String styleValue) {
|
||||
this.styleValue = styleValue;
|
||||
}
|
||||
|
||||
public Long getQuantity() {
|
||||
return quantity;
|
||||
}
|
||||
|
||||
public void setQuantity(Long quantity) {
|
||||
this.quantity = quantity;
|
||||
}
|
||||
|
||||
public Long getInQty() {
|
||||
return inQty;
|
||||
}
|
||||
|
||||
public void setInQty(Long inQty) {
|
||||
this.inQty = inQty;
|
||||
}
|
||||
}
|
@ -0,0 +1,10 @@
|
||||
package cn.qihangerp.api.domain.bo;
|
||||
|
||||
import lombok.Data;
|
||||
|
||||
@Data
|
||||
public class RefundBo {
|
||||
private Long shopId;
|
||||
private String originalOrderId;
|
||||
private Integer status;
|
||||
}
|
@ -0,0 +1,16 @@
|
||||
package cn.qihangerp.api.domain.bo;
|
||||
|
||||
import lombok.Data;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
@Data
|
||||
public class ShipOrderSupplierShipBo {
|
||||
private Long erpOrderId;
|
||||
private String logisticsCompany;
|
||||
private String logisticsCode;
|
||||
private Float logisticsFee;
|
||||
private String shipTime;
|
||||
private String remark;
|
||||
private List<ShipOrderSupplierShipItemBo> itemList;
|
||||
}
|
@ -0,0 +1,9 @@
|
||||
package cn.qihangerp.api.domain.bo;
|
||||
|
||||
import lombok.Data;
|
||||
|
||||
@Data
|
||||
public class ShipOrderSupplierShipItemBo {
|
||||
private Long id;
|
||||
private Float purAmount;
|
||||
}
|
@ -0,0 +1,74 @@
|
||||
package cn.qihangerp.api.domain.bo;
|
||||
|
||||
public class StockOutBo {
|
||||
/** entry_item 主键ID */
|
||||
private Long entryItemId;
|
||||
|
||||
/** 出库单id */
|
||||
private Long entryId;
|
||||
/** 商品规格id */
|
||||
private Long specId;
|
||||
/** 库存详情id**/
|
||||
private Long inventoryDetailId;
|
||||
private Integer outQty;
|
||||
|
||||
private Long operatorId;
|
||||
private String operatorName;
|
||||
|
||||
public Long getOperatorId() {
|
||||
return operatorId;
|
||||
}
|
||||
|
||||
public void setOperatorId(Long operatorId) {
|
||||
this.operatorId = operatorId;
|
||||
}
|
||||
|
||||
public String getOperatorName() {
|
||||
return operatorName;
|
||||
}
|
||||
|
||||
public void setOperatorName(String operatorName) {
|
||||
this.operatorName = operatorName;
|
||||
}
|
||||
|
||||
public Long getEntryItemId() {
|
||||
return entryItemId;
|
||||
}
|
||||
|
||||
public Long getInventoryDetailId() {
|
||||
return inventoryDetailId;
|
||||
}
|
||||
|
||||
public void setInventoryDetailId(Long inventoryDetailId) {
|
||||
this.inventoryDetailId = inventoryDetailId;
|
||||
}
|
||||
|
||||
public void setEntryItemId(Long entryItemId) {
|
||||
this.entryItemId = entryItemId;
|
||||
}
|
||||
|
||||
public Long getEntryId() {
|
||||
return entryId;
|
||||
}
|
||||
|
||||
public void setEntryId(Long entryId) {
|
||||
this.entryId = entryId;
|
||||
}
|
||||
|
||||
public Long getSpecId() {
|
||||
return specId;
|
||||
}
|
||||
|
||||
public void setSpecId(Long specId) {
|
||||
this.specId = specId;
|
||||
}
|
||||
|
||||
|
||||
public Integer getOutQty() {
|
||||
return outQty;
|
||||
}
|
||||
|
||||
public void setOutQty(Integer outQty) {
|
||||
this.outQty = outQty;
|
||||
}
|
||||
}
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in new issue