main
bx 6 days ago
parent d2874fe239
commit 0987676b66

@ -11,9 +11,11 @@ import java.util.List;
/**
* @Description :
* @Author : system
* @CreateDate : 2024-01-01
*/
* @Reference :
* @Author : bin pei
* @CreateDate : 2025-08-07
* @Modify:
**/
@Data
@ApiModel("分页结果")
public class PageResult<T> implements Serializable {

@ -8,9 +8,11 @@ import java.io.Serializable;
/**
* @Description :
* @Author : system
* @CreateDate : 2024-01-01
*/
* @Reference :
* @Author : bin pei
* @CreateDate : 2025-08-07
* @Modify:
**/
@Data
@ApiModel("统一返回结果")
public class ResultBean<T> implements Serializable {

@ -12,9 +12,11 @@ import java.time.LocalDateTime;
/**
* @Description : DTO
* @Author : system
* @CreateDate : 2024-01-01
*/
* @Reference :
* @Author : bin pei
* @CreateDate : 2025-08-07
* @Modify:
**/
@Data
@ApiModel("生产报工详情表DTO")
public class WmsProductionReportDetailDto {

@ -14,9 +14,11 @@ import java.util.List;
/**
* @Description : DTO
* @Author : system
* @CreateDate : 2024-01-01
*/
* @Reference :
* @Author : bin pei
* @CreateDate : 2025-08-07
* @Modify:
**/
@Data
@ApiModel("生产报工主表DTO")
public class WmsProductionReportMasterDto {

@ -9,9 +9,11 @@ import java.time.LocalDate;
/**
* @Description : DTO
* @Author : system
* @CreateDate : 2024-01-01
*/
* @Reference :
* @Author : bin pei
* @CreateDate : 2025-08-07
* @Modify:
**/
@Data
@ApiModel("生产报工查询条件DTO")
public class WmsProductionReportQueryDto {

@ -17,9 +17,11 @@ import java.time.LocalDateTime;
/**
* @Description : -
* @Author : system
* @CreateDate : 2024-01-01
*/
* @Reference :
* @Author : bin pei
* @CreateDate : 2025-08-07
* @Modify:
**/
@Data
@Entity
@DynamicInsert

@ -19,9 +19,11 @@ import java.util.List;
/**
* @Description : -
* @Author : system
* @CreateDate : 2024-01-01
*/
* @Reference :
* @Author : bin pei
* @CreateDate : 2025-08-07
* @Modify:
**/
@Data
@Entity
@DynamicInsert

@ -11,9 +11,11 @@ import java.util.List;
/**
* @Description : Repository
* @Author : system
* @CreateDate : 2024-01-01
*/
* @Reference :
* @Author : bin pei
* @CreateDate : 2025-08-07
* @Modify:
**/
@NoRepositoryBean
public interface BaseRepository<T, ID extends Serializable> extends JpaRepository<T, ID>, JpaSpecificationExecutor<T> {

@ -11,9 +11,11 @@ import java.util.List;
/**
* @Description : 访
* @Author : system
* @CreateDate : 2024-01-01
*/
* @Reference :
* @Author : bin pei
* @CreateDate : 2025-08-07
* @Modify:
**/
@Repository
public interface WmsProductionReportDetailRepository extends BaseRepository<WmsProductionReportDetail, Long> {

@ -13,9 +13,11 @@ import java.util.Optional;
/**
* @Description : 访
* @Author : system
* @CreateDate : 2024-01-01
*/
* @Reference :
* @Author : bin pei
* @CreateDate : 2025-08-07
* @Modify:
**/
@Repository
public interface WmsProductionReportMasterRepository extends BaseRepository<WmsProductionReportMaster, Long> {

@ -7,9 +7,11 @@ import org.springframework.data.jpa.repository.config.EnableJpaRepositories;
/**
* @Description : WMS
* @Author : system
* @CreateDate : 2024-01-01
*/
* @Reference :
* @Author : bin pei
* @CreateDate : 2025-08-07
* @Modify:
**/
@SpringBootApplication(scanBasePackages = "com.wms.production.report")
@EnableJpaRepositories(basePackages = "com.wms.production.report.pojo.repository")
@EntityScan(basePackages = "com.wms.production.report.pojo.entity")

@ -10,9 +10,11 @@ import org.springframework.web.servlet.config.annotation.WebMvcConfigurer;
/**
* @Description : CORS
* @Author : system
* @CreateDate : 2024-01-01
*/
* @Reference :
* @Author : bin pei
* @CreateDate : 2025-08-07
* @Modify:
**/
@Configuration
public class CorsConfig implements WebMvcConfigurer {

@ -8,9 +8,11 @@ import org.springframework.transaction.annotation.EnableTransactionManagement;
/**
* @Description :
* @Author : system
* @CreateDate : 2024-01-01
*/
* @Reference :
* @Author : bin pei
* @CreateDate : 2025-08-07
* @Modify:
**/
@Configuration
@EnableJpaRepositories(basePackages = "com.wms.production.report.pojo.repository")
@EntityScan(basePackages = "com.wms.production.report.pojo.entity")

@ -13,9 +13,11 @@ import springfox.documentation.swagger2.annotations.EnableSwagger2;
/**
* @Description : SwaggerKnife4j UI
* @Author : system
* @CreateDate : 2024-01-01
*/
* @Reference :
* @Author : bin pei
* @CreateDate : 2025-08-07
* @Modify:
**/
@Configuration
@EnableSwagger2
public class SwaggerConfig {

@ -22,9 +22,11 @@ import java.util.List;
/**
* @Description :
* @Author : system
* @CreateDate : 2024-01-01
*/
* @Reference :
* @Author : bin pei
* @CreateDate : 2025-08-07
* @Modify:
**/
@Slf4j
@RestController
@RequestMapping("/api/wms/production-report")

@ -9,9 +9,11 @@ import java.util.List;
/**
* @Description :
* @Author : system
* @CreateDate : 2024-01-01
*/
* @Reference :
* @Author : bin pei
* @CreateDate : 2025-08-07
* @Modify:
**/
public interface IWmsProductionReportService {
/**

@ -29,9 +29,11 @@ import java.util.Optional;
/**
* @Description :
* @Author : system
* @CreateDate : 2024-01-01
*/
* @Reference :
* @Author : bin pei
* @CreateDate : 2025-08-07
* @Modify:
**/
@Slf4j
@Service
@Transactional

@ -12,9 +12,11 @@ import java.util.stream.Collectors;
/**
* @Description : Bean
* @Author : system
* @CreateDate : 2024-01-01
*/
* @Reference :
* @Author : bin pei
* @CreateDate : 2025-08-07
* @Modify:
**/
public class BeanConverter {
/**

@ -6,9 +6,11 @@ import java.util.concurrent.atomic.AtomicLong;
/**
* @Description : ID
* @Author : system
* @CreateDate : 2024-01-01
*/
* @Reference :
* @Author : bin pei
* @CreateDate : 2025-08-07
* @Modify:
**/
public class IdGenerator {
private static final AtomicLong SEQUENCE = new AtomicLong(1);

@ -20,9 +20,11 @@ import static org.junit.Assert.*;
/**
* @Description :
* @Author : system
* @CreateDate : 2024-01-01
*/
* @Reference :
* @Author : bin pei
* @CreateDate : 2025-08-07
* @Modify:
**/
@RunWith(SpringRunner.class)
@SpringBootTest
@Transactional

Loading…
Cancel
Save