52 changed files with 2595 additions and 467 deletions
@ -0,0 +1,40 @@ |
|||||||
|
//package jnpf.config;
|
||||||
|
//
|
||||||
|
//import org.redisson.Redisson;
|
||||||
|
//import org.redisson.config.Config;
|
||||||
|
//import org.springframework.beans.factory.annotation.Value;
|
||||||
|
//import org.springframework.cache.annotation.CachingConfigurerSupport;
|
||||||
|
//import org.springframework.cache.annotation.EnableCaching;
|
||||||
|
//import org.springframework.context.annotation.Bean;
|
||||||
|
//import org.springframework.context.annotation.Configuration;
|
||||||
|
//import org.springframework.data.redis.connection.RedisConnectionFactory;
|
||||||
|
//import org.springframework.data.redis.core.RedisTemplate;
|
||||||
|
//import org.springframework.data.redis.core.script.DefaultRedisScript;
|
||||||
|
//import org.springframework.data.redis.serializer.StringRedisSerializer;
|
||||||
|
//
|
||||||
|
///**
|
||||||
|
// * redis配置
|
||||||
|
// *
|
||||||
|
// */
|
||||||
|
//@Configuration
|
||||||
|
//@EnableCaching
|
||||||
|
//public class RedisConfig extends CachingConfigurerSupport {
|
||||||
|
// @Value("${spring.redis.host}")
|
||||||
|
// private String redisHost;
|
||||||
|
// @Value("${spring.redis.password}")
|
||||||
|
// private String redisPassword;
|
||||||
|
// @Value("${spring.redis.port}")
|
||||||
|
// private String redisPort;
|
||||||
|
//
|
||||||
|
// //redisson
|
||||||
|
// @Bean
|
||||||
|
// public Redisson redisson() {
|
||||||
|
// Config config = new Config();
|
||||||
|
// config.useSingleServer().setAddress("redis://"+redisHost+":"+redisPort).setPassword(redisPassword);
|
||||||
|
//// config.useSingleServer().setAddress("redis://localhost:6379").setPassword("root");
|
||||||
|
// //默认30 秒
|
||||||
|
// config.setLockWatchdogTimeout(60000L);
|
||||||
|
// // 创建 Redisson 客户端实例
|
||||||
|
// return (Redisson) Redisson.create(config);
|
||||||
|
// }
|
||||||
|
//}
|
||||||
@ -0,0 +1,18 @@ |
|||||||
|
package jnpf.mapper; |
||||||
|
|
||||||
|
import com.baomidou.mybatisplus.core.mapper.BaseMapper; |
||||||
|
import jnpf.entity.TBookInventory; |
||||||
|
import com.baomidou.mybatisplus.core.metadata.IPage; |
||||||
|
import org.apache.ibatis.annotations.Param; |
||||||
|
import java.util.Map; |
||||||
|
/** |
||||||
|
* 图书库存表(TBookInventory)表数据库访问层 |
||||||
|
* |
||||||
|
* @author common |
||||||
|
* @since 2024-10-29 15:59:26 |
||||||
|
*/ |
||||||
|
public interface TBookInventoryMapper extends BaseMapper<TBookInventory> { |
||||||
|
IPage<TBookInventory> selectPage(IPage<TBookInventory> iPage, @Param("params") Map<String, Object> params); |
||||||
|
|
||||||
|
} |
||||||
|
|
||||||
@ -0,0 +1,18 @@ |
|||||||
|
package jnpf.mapper; |
||||||
|
|
||||||
|
import com.baomidou.mybatisplus.core.mapper.BaseMapper; |
||||||
|
import jnpf.entity.TRemovalManagement; |
||||||
|
import com.baomidou.mybatisplus.core.metadata.IPage; |
||||||
|
import org.apache.ibatis.annotations.Param; |
||||||
|
import java.util.Map; |
||||||
|
/** |
||||||
|
* 下架管理表(TRemovalManagement)表数据库访问层 |
||||||
|
* |
||||||
|
* @author common |
||||||
|
* @since 2024-11-06 17:53:14 |
||||||
|
*/ |
||||||
|
public interface TRemovalManagementMapper extends BaseMapper<TRemovalManagement> { |
||||||
|
IPage<TRemovalManagement> selectPage(IPage<TRemovalManagement> iPage, @Param("params") Map<String, Object> params); |
||||||
|
|
||||||
|
} |
||||||
|
|
||||||
@ -0,0 +1,18 @@ |
|||||||
|
package jnpf.mapper; |
||||||
|
|
||||||
|
import com.baomidou.mybatisplus.core.mapper.BaseMapper; |
||||||
|
import jnpf.entity.TShelfOperation; |
||||||
|
import com.baomidou.mybatisplus.core.metadata.IPage; |
||||||
|
import org.apache.ibatis.annotations.Param; |
||||||
|
import java.util.Map; |
||||||
|
/** |
||||||
|
* 上下架操作表(TShelfOperation)表数据库访问层 |
||||||
|
* |
||||||
|
* @author common |
||||||
|
* @since 2024-10-29 16:00:29 |
||||||
|
*/ |
||||||
|
public interface TShelfOperationMapper extends BaseMapper<TShelfOperation> { |
||||||
|
IPage<TShelfOperation> selectPage(IPage<TShelfOperation> iPage, @Param("params") Map<String, Object> params); |
||||||
|
|
||||||
|
} |
||||||
|
|
||||||
@ -0,0 +1,16 @@ |
|||||||
|
package jnpf.service; |
||||||
|
|
||||||
|
import jnpf.entity.TBookInventory; |
||||||
|
import com.baomidou.mybatisplus.core.metadata.IPage; |
||||||
|
import com.baomidou.mybatisplus.extension.service.IService; |
||||||
|
import java.util.Map; |
||||||
|
/** |
||||||
|
* 图书库存表(TBookInventory)表服务接口 |
||||||
|
* |
||||||
|
* @author common |
||||||
|
* @since 2024-10-29 15:59:26 |
||||||
|
*/ |
||||||
|
public interface TBookInventoryService extends IService<TBookInventory> { |
||||||
|
IPage<TBookInventory> selectPage(IPage<TBookInventory> iPage, Map<String, Object> params); |
||||||
|
} |
||||||
|
|
||||||
@ -0,0 +1,16 @@ |
|||||||
|
package jnpf.service; |
||||||
|
|
||||||
|
import jnpf.entity.TRemovalManagement; |
||||||
|
import com.baomidou.mybatisplus.core.metadata.IPage; |
||||||
|
import com.baomidou.mybatisplus.extension.service.IService; |
||||||
|
import java.util.Map; |
||||||
|
/** |
||||||
|
* 下架管理表(TRemovalManagement)表服务接口 |
||||||
|
* |
||||||
|
* @author common |
||||||
|
* @since 2024-11-06 17:53:14 |
||||||
|
*/ |
||||||
|
public interface TRemovalManagementService extends IService<TRemovalManagement> { |
||||||
|
IPage<TRemovalManagement> selectPage(IPage<TRemovalManagement> iPage, Map<String, Object> params); |
||||||
|
} |
||||||
|
|
||||||
@ -0,0 +1,16 @@ |
|||||||
|
package jnpf.service; |
||||||
|
|
||||||
|
import jnpf.entity.TShelfOperation; |
||||||
|
import com.baomidou.mybatisplus.core.metadata.IPage; |
||||||
|
import com.baomidou.mybatisplus.extension.service.IService; |
||||||
|
import java.util.Map; |
||||||
|
/** |
||||||
|
* 上下架操作表(TShelfOperation)表服务接口 |
||||||
|
* |
||||||
|
* @author common |
||||||
|
* @since 2024-10-29 16:00:29 |
||||||
|
*/ |
||||||
|
public interface TShelfOperationService extends IService<TShelfOperation> { |
||||||
|
IPage<TShelfOperation> selectPage(IPage<TShelfOperation> iPage, Map<String, Object> params); |
||||||
|
} |
||||||
|
|
||||||
@ -0,0 +1,23 @@ |
|||||||
|
package jnpf.service.impl; |
||||||
|
|
||||||
|
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; |
||||||
|
import jnpf.mapper.TBookInventoryMapper; |
||||||
|
import jnpf.entity.TBookInventory; |
||||||
|
import jnpf.service.TBookInventoryService; |
||||||
|
import org.springframework.stereotype.Service; |
||||||
|
import com.baomidou.mybatisplus.core.metadata.IPage; |
||||||
|
import java.util.Map; |
||||||
|
/** |
||||||
|
* 图书库存表(TBookInventory)表服务实现类 |
||||||
|
* |
||||||
|
* @author common |
||||||
|
* @since 2024-10-29 15:59:26 |
||||||
|
*/ |
||||||
|
@Service("tBookInventoryService") |
||||||
|
public class TBookInventoryServiceImpl extends ServiceImpl<TBookInventoryMapper, TBookInventory> implements TBookInventoryService { |
||||||
|
@Override |
||||||
|
public IPage<TBookInventory> selectPage(IPage<TBookInventory> iPage, Map<String, Object> params){ |
||||||
|
return this.baseMapper.selectPage(iPage, params); |
||||||
|
} |
||||||
|
|
||||||
|
} |
||||||
@ -0,0 +1,23 @@ |
|||||||
|
package jnpf.service.impl; |
||||||
|
|
||||||
|
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; |
||||||
|
import jnpf.mapper.TRemovalManagementMapper; |
||||||
|
import jnpf.entity.TRemovalManagement; |
||||||
|
import jnpf.service.TRemovalManagementService; |
||||||
|
import org.springframework.stereotype.Service; |
||||||
|
import com.baomidou.mybatisplus.core.metadata.IPage; |
||||||
|
import java.util.Map; |
||||||
|
/** |
||||||
|
* 下架管理表(TRemovalManagement)表服务实现类 |
||||||
|
* |
||||||
|
* @author common |
||||||
|
* @since 2024-11-06 17:53:14 |
||||||
|
*/ |
||||||
|
@Service("tRemovalManagementService") |
||||||
|
public class TRemovalManagementServiceImpl extends ServiceImpl<TRemovalManagementMapper, TRemovalManagement> implements TRemovalManagementService { |
||||||
|
@Override |
||||||
|
public IPage<TRemovalManagement> selectPage(IPage<TRemovalManagement> iPage, Map<String, Object> params){ |
||||||
|
return this.baseMapper.selectPage(iPage, params); |
||||||
|
} |
||||||
|
|
||||||
|
} |
||||||
@ -0,0 +1,23 @@ |
|||||||
|
package jnpf.service.impl; |
||||||
|
|
||||||
|
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; |
||||||
|
import jnpf.mapper.TShelfOperationMapper; |
||||||
|
import jnpf.entity.TShelfOperation; |
||||||
|
import jnpf.service.TShelfOperationService; |
||||||
|
import org.springframework.stereotype.Service; |
||||||
|
import com.baomidou.mybatisplus.core.metadata.IPage; |
||||||
|
import java.util.Map; |
||||||
|
/** |
||||||
|
* 上下架操作表(TShelfOperation)表服务实现类 |
||||||
|
* |
||||||
|
* @author common |
||||||
|
* @since 2024-10-29 16:00:29 |
||||||
|
*/ |
||||||
|
@Service("tShelfOperationService") |
||||||
|
public class TShelfOperationServiceImpl extends ServiceImpl<TShelfOperationMapper, TShelfOperation> implements TShelfOperationService { |
||||||
|
@Override |
||||||
|
public IPage<TShelfOperation> selectPage(IPage<TShelfOperation> iPage, Map<String, Object> params){ |
||||||
|
return this.baseMapper.selectPage(iPage, params); |
||||||
|
} |
||||||
|
|
||||||
|
} |
||||||
@ -0,0 +1,69 @@ |
|||||||
|
package jnpf.task; |
||||||
|
|
||||||
|
|
||||||
|
import cn.hutool.core.bean.BeanUtil; |
||||||
|
import cn.hutool.core.collection.CollUtil; |
||||||
|
import jnpf.entity.TLibrary; |
||||||
|
import jnpf.entity.TReceiveGoodsMain; |
||||||
|
import jnpf.entity.TSelectionOrderingMain; |
||||||
|
import jnpf.enump.SelectionOrderingMainEnum; |
||||||
|
import jnpf.exception.DataException; |
||||||
|
import jnpf.model.dto.SelectionOrderingMainDto; |
||||||
|
import jnpf.service.ILibraryService; |
||||||
|
import jnpf.service.TReceiveGoodsBooksService; |
||||||
|
import jnpf.service.TReceiveGoodsMainService; |
||||||
|
import jnpf.service.TSelectionOrderingMainService; |
||||||
|
import jnpf.service.impl.TSelectionOrderingMainServiceImpl; |
||||||
|
import lombok.AllArgsConstructor; |
||||||
|
import lombok.extern.slf4j.Slf4j; |
||||||
|
import org.redisson.Redisson; |
||||||
|
import org.redisson.api.RLock; |
||||||
|
import org.springframework.scheduling.annotation.Scheduled; |
||||||
|
import org.springframework.stereotype.Component; |
||||||
|
|
||||||
|
import java.util.List; |
||||||
|
import java.util.concurrent.TimeUnit; |
||||||
|
|
||||||
|
@Component |
||||||
|
@AllArgsConstructor |
||||||
|
@Slf4j |
||||||
|
public class SybVersionLibraryTask { |
||||||
|
|
||||||
|
|
||||||
|
private final TSelectionOrderingMainService selectionOrderingMainService; |
||||||
|
private final ILibraryService libraryService; |
||||||
|
private final Redisson redisson; |
||||||
|
private final TReceiveGoodsMainService receiveGoodsMainService; |
||||||
|
private final TReceiveGoodsBooksService receiveGoodsBooksService; |
||||||
|
|
||||||
|
/** |
||||||
|
* 每月1号去同步最新图书数据 |
||||||
|
*/ |
||||||
|
// @Scheduled(initialDelay = 10000L,fixedDelay = 60*1000)
|
||||||
|
@Scheduled(cron = "0 0 1 1 * ?") |
||||||
|
public void synVersionLibraryData() { |
||||||
|
RLock lock = redisson.getLock("SYN_VERSION_LIBRARY_DATA_LOCK"); |
||||||
|
|
||||||
|
try { |
||||||
|
//3秒内获取不到锁返回false
|
||||||
|
boolean getLock = lock.tryLock(5L, TimeUnit.SECONDS); |
||||||
|
if (!getLock) return; |
||||||
|
List<SelectionOrderingMainDto.TLibraryParam> libraryList = BeanUtil.copyToList(libraryService.synVersionLibraryData(), SelectionOrderingMainDto.TLibraryParam.class); |
||||||
|
if (CollUtil.isEmpty(libraryList)) return; |
||||||
|
for (TLibrary library : libraryList) { |
||||||
|
library.setSelfReserved(1); |
||||||
|
} |
||||||
|
SelectionOrderingMainDto.SelectionOrderingParam param = new SelectionOrderingMainDto.SelectionOrderingParam(); |
||||||
|
param.setOrderType(SelectionOrderingMainEnum.OrderTypeEnum.VERSION_LIBRARY.getCode()); |
||||||
|
param.setSaveType("2"); |
||||||
|
param.setSelectionOrderingBooksList(libraryList); |
||||||
|
selectionOrderingMainService.selectionOrdering(param); |
||||||
|
} catch (Exception e) { |
||||||
|
log.error("同步图书执行失败:{}", e); |
||||||
|
} finally { |
||||||
|
if (lock.isHeldByCurrentThread()) { |
||||||
|
lock.unlock(); |
||||||
|
} |
||||||
|
} |
||||||
|
} |
||||||
|
} |
||||||
@ -0,0 +1,129 @@ |
|||||||
|
<?xml version="1.0" encoding="UTF-8"?> |
||||||
|
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> |
||||||
|
<mapper namespace="jnpf.mapper.TBookInventoryMapper"> |
||||||
|
|
||||||
|
<resultMap type="jnpf.entity.TBookInventory" id="TBookInventoryMap"> |
||||||
|
<result property="id" column="id" jdbcType="INTEGER"/> |
||||||
|
<result property="type" column="type" jdbcType="VARCHAR"/> |
||||||
|
<result property="bookNumber" column="book_number" jdbcType="VARCHAR"/> |
||||||
|
<result property="bookName" column="book_name" jdbcType="VARCHAR"/> |
||||||
|
<result property="author" column="author" jdbcType="VARCHAR"/> |
||||||
|
<result property="rackNumber" column="rack_number" jdbcType="VARCHAR"/> |
||||||
|
<result property="coverImage" column="cover_image" jdbcType="VARCHAR"/> |
||||||
|
<result property="price" column="price" jdbcType="VARCHAR"/> |
||||||
|
<result property="edition" column="edition" jdbcType="VARCHAR"/> |
||||||
|
<result property="impression" column="impression" jdbcType="VARCHAR"/> |
||||||
|
<result property="publicationTime" column="publication_time" jdbcType="VARCHAR"/> |
||||||
|
<result property="contentSummary" column="content_summary" jdbcType="VARCHAR"/> |
||||||
|
<result property="remark" column="remark" jdbcType="VARCHAR"/> |
||||||
|
<result property="quantity" column="quantity" jdbcType="INTEGER"/> |
||||||
|
<result property="varietyNumber" column="variety_number" jdbcType="VARCHAR"/> |
||||||
|
<result property="delFlag" column="del_flag" jdbcType="VARCHAR"/> |
||||||
|
<result property="createId" column="create_id" jdbcType="VARCHAR"/> |
||||||
|
<result property="createTime" column="create_time" jdbcType="TIMESTAMP"/> |
||||||
|
<result property="createName" column="create_name" jdbcType="VARCHAR"/> |
||||||
|
<result property="updateId" column="update_id" jdbcType="VARCHAR"/> |
||||||
|
<result property="updateTime" column="update_time" jdbcType="TIMESTAMP"/> |
||||||
|
<result property="updateName" column="update_name" jdbcType="VARCHAR"/> |
||||||
|
<result property="createCorpName" column="create_corp_name" jdbcType="VARCHAR"/> |
||||||
|
<result property="createCorpId" column="create_corp_id" jdbcType="VARCHAR"/> |
||||||
|
<result property="createDeptName" column="create_dept_name" jdbcType="VARCHAR"/> |
||||||
|
<result property="createDeptId" column="create_dept_id" jdbcType="VARCHAR"/> |
||||||
|
</resultMap> |
||||||
|
|
||||||
|
<sql id="Base_Column_List" > |
||||||
|
f_id as id, f_type as type, f_book_number as book_number, f_book_name as book_name, f_author as author, f_rack_number as rack_number, f_cover_image as cover_image, f_price as price, f_edition as edition, f_impression as impression, f_publication_time as publication_time, f_content_summary as content_summary, f_remark as remark, f_quantity as quantity, f_variety_number as variety_number, f_del_flag as del_flag, f_create_id as create_id, f_create_time as create_time, f_create_name as create_name, f_update_id as update_id, f_update_time as update_time, f_update_name as update_name, f_create_corp_name as create_corp_name, f_create_corp_id as create_corp_id, f_create_dept_name as create_dept_name, f_create_dept_id as create_dept_id </sql> |
||||||
|
<!--查询指定行数据--> |
||||||
|
<select id="selectPage" resultMap="TBookInventoryMap"> |
||||||
|
select |
||||||
|
f_id as id, f_type as type, f_book_number as book_number, f_book_name as book_name, f_author as author, f_rack_number as rack_number, f_cover_image as cover_image, f_price as price, f_edition as edition, f_impression as impression, f_publication_time as publication_time, f_content_summary as content_summary, f_remark as remark, f_quantity as quantity, f_variety_number as variety_number, f_del_flag as del_flag, f_create_id as create_id, f_create_time as create_time, f_create_name as create_name, f_update_id as update_id, f_update_time as update_time, f_update_name as update_name, f_create_corp_name as create_corp_name, f_create_corp_id as create_corp_id, f_create_dept_name as create_dept_name, f_create_dept_id as create_dept_id from t_book_inventory |
||||||
|
<where> |
||||||
|
<if test="params.id != null"> |
||||||
|
and f_id = #{params.id} |
||||||
|
</if> |
||||||
|
<if test="params.type != null and params.type != ''"> |
||||||
|
and f_type = #{params.type} |
||||||
|
</if> |
||||||
|
<if test="params.bookNumber != null and params.bookNumber != ''"> |
||||||
|
and f_book_number = #{params.bookNumber} |
||||||
|
</if> |
||||||
|
<if test="params.bookName != null and params.bookName != ''"> |
||||||
|
and f_book_name = #{params.bookName} |
||||||
|
</if> |
||||||
|
<if test="params.author != null and params.author != ''"> |
||||||
|
and f_author = #{params.author} |
||||||
|
</if> |
||||||
|
<if test="params.rackNumber != null and params.rackNumber != ''"> |
||||||
|
and f_rack_number = #{params.rackNumber} |
||||||
|
</if> |
||||||
|
<if test="params.coverImage != null and params.coverImage != ''"> |
||||||
|
and f_cover_image = #{params.coverImage} |
||||||
|
</if> |
||||||
|
<if test="params.price != null and params.price != ''"> |
||||||
|
and f_price = #{params.price} |
||||||
|
</if> |
||||||
|
<if test="params.edition != null and params.edition != ''"> |
||||||
|
and f_edition = #{params.edition} |
||||||
|
</if> |
||||||
|
<if test="params.impression != null and params.impression != ''"> |
||||||
|
and f_impression = #{params.impression} |
||||||
|
</if> |
||||||
|
<if test="params.publicationTime != null and params.publicationTime != ''"> |
||||||
|
and f_publication_time = #{params.publicationTime} |
||||||
|
</if> |
||||||
|
<if test="params.contentSummary != null and params.contentSummary != ''"> |
||||||
|
and f_content_summary = #{params.contentSummary} |
||||||
|
</if> |
||||||
|
<if test="params.remark != null and params.remark != ''"> |
||||||
|
and f_remark = #{params.remark} |
||||||
|
</if> |
||||||
|
<if test="params.quantity != null"> |
||||||
|
and f_quantity = #{params.quantity} |
||||||
|
</if> |
||||||
|
<if test="params.varietyNumber != null and params.varietyNumber != ''"> |
||||||
|
and f_variety_number = #{params.varietyNumber} |
||||||
|
</if> |
||||||
|
<if test="params.delFlag != null and params.delFlag != ''"> |
||||||
|
and f_del_flag = #{params.delFlag} |
||||||
|
</if> |
||||||
|
<if test="params.createId != null and params.createId != ''"> |
||||||
|
and f_create_id = #{params.createId} |
||||||
|
</if> |
||||||
|
<if test="params.createTime != null"> |
||||||
|
and f_create_time = #{params.createTime} |
||||||
|
</if> |
||||||
|
<if test="params.createName != null and params.createName != ''"> |
||||||
|
and f_create_name = #{params.createName} |
||||||
|
</if> |
||||||
|
<if test="params.updateId != null and params.updateId != ''"> |
||||||
|
and f_update_id = #{params.updateId} |
||||||
|
</if> |
||||||
|
<if test="params.updateTime != null"> |
||||||
|
and f_update_time = #{params.updateTime} |
||||||
|
</if> |
||||||
|
<if test="params.updateName != null and params.updateName != ''"> |
||||||
|
and f_update_name = #{params.updateName} |
||||||
|
</if> |
||||||
|
<if test="params.createCorpName != null and params.createCorpName != ''"> |
||||||
|
and f_create_corp_name = #{params.createCorpName} |
||||||
|
</if> |
||||||
|
<if test="params.createCorpId != null and params.createCorpId != ''"> |
||||||
|
and f_create_corp_id = #{params.createCorpId} |
||||||
|
</if> |
||||||
|
<if test="params.createDeptName != null and params.createDeptName != ''"> |
||||||
|
and f_create_dept_name = #{params.createDeptName} |
||||||
|
</if> |
||||||
|
<if test="params.createDeptId != null and params.createDeptId != ''"> |
||||||
|
and f_create_dept_id = #{params.createDeptId} |
||||||
|
</if> |
||||||
|
<if test="params.createTimes != null"> |
||||||
|
and f_create_time >= #{params.createTimes[0]} |
||||||
|
and f_create_time <= #{params.createTimes[1]} |
||||||
|
</if> |
||||||
|
<if test="params.updateTimes != null"> |
||||||
|
and f_update_time >= #{params.updateTimes[0]} |
||||||
|
and f_update_time <= #{params.updateTimes[1]} |
||||||
|
</if> |
||||||
|
</where> |
||||||
|
</select> |
||||||
|
</mapper> |
||||||
@ -0,0 +1,105 @@ |
|||||||
|
<?xml version="1.0" encoding="UTF-8"?> |
||||||
|
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> |
||||||
|
<mapper namespace="jnpf.mapper.TRemovalManagementMapper"> |
||||||
|
|
||||||
|
<resultMap type="jnpf.entity.TRemovalManagement" id="TRemovalManagementMap"> |
||||||
|
<result property="id" column="id" jdbcType="VARCHAR"/> |
||||||
|
<result property="saveType" column="save_type" jdbcType="VARCHAR"/> |
||||||
|
<result property="type" column="type" jdbcType="VARCHAR"/> |
||||||
|
<result property="mainStatus" column="main_status" jdbcType="VARCHAR"/> |
||||||
|
<result property="mainStatusName" column="main_status_name" jdbcType="VARCHAR"/> |
||||||
|
<result property="removeNumber" column="remove_number" jdbcType="INTEGER"/> |
||||||
|
<result property="delFlag" column="del_flag" jdbcType="VARCHAR"/> |
||||||
|
<result property="createId" column="create_id" jdbcType="VARCHAR"/> |
||||||
|
<result property="createTime" column="create_time" jdbcType="TIMESTAMP"/> |
||||||
|
<result property="createName" column="create_name" jdbcType="VARCHAR"/> |
||||||
|
<result property="updateId" column="update_id" jdbcType="VARCHAR"/> |
||||||
|
<result property="updateTime" column="update_time" jdbcType="TIMESTAMP"/> |
||||||
|
<result property="updateName" column="update_name" jdbcType="VARCHAR"/> |
||||||
|
<result property="bookRemovalTime" column="book_removal_time" jdbcType="TIMESTAMP"/> |
||||||
|
<result property="bookRemovalId" column="book_removal_id" jdbcType="VARCHAR"/> |
||||||
|
<result property="bookRemovalName" column="book_removal_name" jdbcType="VARCHAR"/> |
||||||
|
<result property="createCorpName" column="create_corp_name" jdbcType="VARCHAR"/> |
||||||
|
<result property="createCorpId" column="create_corp_id" jdbcType="VARCHAR"/> |
||||||
|
<result property="createDeptName" column="create_dept_name" jdbcType="VARCHAR"/> |
||||||
|
<result property="createDeptId" column="create_dept_id" jdbcType="VARCHAR"/> |
||||||
|
</resultMap> |
||||||
|
|
||||||
|
<sql id="Base_Column_List" > |
||||||
|
f_id as id, f_save_type as save_type, f_type as type, f_main_status as main_status, f_main_status_name as main_status_name, f_remove_number as remove_number, f_del_flag as del_flag, f_create_id as create_id, f_create_time as create_time, f_create_name as create_name, f_update_id as update_id, f_update_time as update_time, f_update_name as update_name, f_book_removal_time as book_removal_time, f_book_removal_id as book_removal_id, f_book_removal_name as book_removal_name, f_create_corp_name as create_corp_name, f_create_corp_id as create_corp_id, f_create_dept_name as create_dept_name, f_create_dept_id as create_dept_id </sql> |
||||||
|
<!--查询指定行数据--> |
||||||
|
<select id="selectPage" resultMap="TRemovalManagementMap"> |
||||||
|
select |
||||||
|
f_id as id, f_save_type as save_type, f_type as type, f_main_status as main_status, f_main_status_name as main_status_name, f_remove_number as remove_number, f_del_flag as del_flag, f_create_id as create_id, f_create_time as create_time, f_create_name as create_name, f_update_id as update_id, f_update_time as update_time, f_update_name as update_name, f_book_removal_time as book_removal_time, f_book_removal_id as book_removal_id, f_book_removal_name as book_removal_name, f_create_corp_name as create_corp_name, f_create_corp_id as create_corp_id, f_create_dept_name as create_dept_name, f_create_dept_id as create_dept_id from t_removal_management |
||||||
|
<where> |
||||||
|
<if test="params.id != null and params.id != ''"> |
||||||
|
and f_id = #{params.id} |
||||||
|
</if> |
||||||
|
<if test="params.saveType != null and params.saveType != ''"> |
||||||
|
and f_save_type = #{params.saveType} |
||||||
|
</if> |
||||||
|
<if test="params.type != null and params.type != ''"> |
||||||
|
and f_type = #{params.type} |
||||||
|
</if> |
||||||
|
<if test="params.mainStatus != null and params.mainStatus != ''"> |
||||||
|
and f_main_status = #{params.mainStatus} |
||||||
|
</if> |
||||||
|
<if test="params.mainStatusName != null and params.mainStatusName != ''"> |
||||||
|
and f_main_status_name = #{params.mainStatusName} |
||||||
|
</if> |
||||||
|
<if test="params.removeNumber != null"> |
||||||
|
and f_remove_number = #{params.removeNumber} |
||||||
|
</if> |
||||||
|
<if test="params.delFlag != null and params.delFlag != ''"> |
||||||
|
and f_del_flag = #{params.delFlag} |
||||||
|
</if> |
||||||
|
<if test="params.createId != null and params.createId != ''"> |
||||||
|
and f_create_id = #{params.createId} |
||||||
|
</if> |
||||||
|
<if test="params.createTime != null"> |
||||||
|
and f_create_time = #{params.createTime} |
||||||
|
</if> |
||||||
|
<if test="params.createName != null and params.createName != ''"> |
||||||
|
and f_create_name = #{params.createName} |
||||||
|
</if> |
||||||
|
<if test="params.updateId != null and params.updateId != ''"> |
||||||
|
and f_update_id = #{params.updateId} |
||||||
|
</if> |
||||||
|
<if test="params.updateTime != null"> |
||||||
|
and f_update_time = #{params.updateTime} |
||||||
|
</if> |
||||||
|
<if test="params.updateName != null and params.updateName != ''"> |
||||||
|
and f_update_name = #{params.updateName} |
||||||
|
</if> |
||||||
|
<if test="params.bookRemovalTime != null"> |
||||||
|
and f_book_removal_time = #{params.bookRemovalTime} |
||||||
|
</if> |
||||||
|
<if test="params.bookRemovalId != null and params.bookRemovalId != ''"> |
||||||
|
and f_book_removal_id = #{params.bookRemovalId} |
||||||
|
</if> |
||||||
|
<if test="params.bookRemovalName != null and params.bookRemovalName != ''"> |
||||||
|
and f_book_removal_name = #{params.bookRemovalName} |
||||||
|
</if> |
||||||
|
<if test="params.createCorpName != null and params.createCorpName != ''"> |
||||||
|
and f_create_corp_name = #{params.createCorpName} |
||||||
|
</if> |
||||||
|
<if test="params.createCorpId != null and params.createCorpId != ''"> |
||||||
|
and f_create_corp_id = #{params.createCorpId} |
||||||
|
</if> |
||||||
|
<if test="params.createDeptName != null and params.createDeptName != ''"> |
||||||
|
and f_create_dept_name = #{params.createDeptName} |
||||||
|
</if> |
||||||
|
<if test="params.createDeptId != null and params.createDeptId != ''"> |
||||||
|
and f_create_dept_id = #{params.createDeptId} |
||||||
|
</if> |
||||||
|
<if test="params.createTimes != null"> |
||||||
|
and f_create_time >= #{params.createTimes[0]} |
||||||
|
and f_create_time <= #{params.createTimes[1]} |
||||||
|
</if> |
||||||
|
<if test="params.updateTimes != null"> |
||||||
|
and f_update_time >= #{params.updateTimes[0]} |
||||||
|
and f_update_time <= #{params.updateTimes[1]} |
||||||
|
</if> |
||||||
|
</where> |
||||||
|
</select> |
||||||
|
</mapper> |
||||||
@ -0,0 +1,97 @@ |
|||||||
|
<?xml version="1.0" encoding="UTF-8"?> |
||||||
|
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> |
||||||
|
<mapper namespace="jnpf.mapper.TShelfOperationMapper"> |
||||||
|
|
||||||
|
<resultMap type="jnpf.entity.TShelfOperation" id="TShelfOperationMap"> |
||||||
|
<result property="id" column="id" jdbcType="INTEGER"/> |
||||||
|
<result property="type" column="type" jdbcType="VARCHAR"/> |
||||||
|
<result property="bookInventoryId" column="book_inventory_id" jdbcType="VARCHAR"/> |
||||||
|
<result property="operationType" column="operation_type" jdbcType="VARCHAR"/> |
||||||
|
<result property="operationTypeName" column="operation_type_name" jdbcType="VARCHAR"/> |
||||||
|
<result property="listingNumber" column="listing_number" jdbcType="INTEGER"/> |
||||||
|
<result property="removeNumber" column="remove_number" jdbcType="INTEGER"/> |
||||||
|
<result property="delFlag" column="del_flag" jdbcType="VARCHAR"/> |
||||||
|
<result property="createId" column="create_id" jdbcType="VARCHAR"/> |
||||||
|
<result property="createTime" column="create_time" jdbcType="TIMESTAMP"/> |
||||||
|
<result property="createName" column="create_name" jdbcType="VARCHAR"/> |
||||||
|
<result property="updateId" column="update_id" jdbcType="VARCHAR"/> |
||||||
|
<result property="updateTime" column="update_time" jdbcType="TIMESTAMP"/> |
||||||
|
<result property="updateName" column="update_name" jdbcType="VARCHAR"/> |
||||||
|
<result property="createCorpName" column="create_corp_name" jdbcType="VARCHAR"/> |
||||||
|
<result property="createCorpId" column="create_corp_id" jdbcType="VARCHAR"/> |
||||||
|
<result property="createDeptName" column="create_dept_name" jdbcType="VARCHAR"/> |
||||||
|
<result property="createDeptId" column="create_dept_id" jdbcType="VARCHAR"/> |
||||||
|
</resultMap> |
||||||
|
|
||||||
|
<sql id="Base_Column_List" > |
||||||
|
f_id as id, f_save_type as save_type, f_type as type, f_book_inventory_id as book_inventory_id, f_operation_type as operation_type, f_operation_type_name as operation_type_name, f_listing_number as listing_number, f_remove_number as remove_number, f_del_flag as del_flag, f_create_id as create_id, f_create_time as create_time, f_create_name as create_name, f_update_id as update_id, f_update_time as update_time, f_update_name as update_name, f_create_corp_name as create_corp_name, f_create_corp_id as create_corp_id, f_create_dept_name as create_dept_name, f_create_dept_id as create_dept_id</sql> |
||||||
|
<!--查询指定行数据--> |
||||||
|
<select id="selectPage" resultMap="TShelfOperationMap"> |
||||||
|
select |
||||||
|
f_id as id, f_save_type as save_type, f_type as type, f_book_inventory_id as book_inventory_id, f_operation_type as operation_type, f_operation_type_name as operation_type_name, f_listing_number as listing_number, f_remove_number as remove_number, f_del_flag as del_flag, f_create_id as create_id, f_create_time as create_time, f_create_name as create_name, f_update_id as update_id, f_update_time as update_time, f_update_name as update_name, f_create_corp_name as create_corp_name, f_create_corp_id as create_corp_id, f_create_dept_name as create_dept_name, f_create_dept_id as create_dept_id from t_shelf_operation |
||||||
|
<where> |
||||||
|
<if test="params.id != null"> |
||||||
|
and f_id = #{params.id} |
||||||
|
</if> |
||||||
|
<if test="params.type != null and params.type != ''"> |
||||||
|
and f_type = #{params.type} |
||||||
|
</if> |
||||||
|
<if test="params.bookInventoryId != null and params.bookInventoryId != ''"> |
||||||
|
and f_book_inventory_id = #{params.bookInventoryId} |
||||||
|
</if> |
||||||
|
<if test="params.operationType != null and params.operationType != ''"> |
||||||
|
and f_operation_type = #{params.operationType} |
||||||
|
</if> |
||||||
|
<if test="params.operationTypeName != null and params.operationTypeName != ''"> |
||||||
|
and f_operation_type_name = #{params.operationTypeName} |
||||||
|
</if> |
||||||
|
<if test="params.listingNumber != null"> |
||||||
|
and f_listing_number = #{params.listingNumber} |
||||||
|
</if> |
||||||
|
<if test="params.removeNumber != null"> |
||||||
|
and f_remove_number = #{params.removeNumber} |
||||||
|
</if> |
||||||
|
<if test="params.delFlag != null and params.delFlag != ''"> |
||||||
|
and f_del_flag = #{params.delFlag} |
||||||
|
</if> |
||||||
|
<if test="params.createId != null and params.createId != ''"> |
||||||
|
and f_create_id = #{params.createId} |
||||||
|
</if> |
||||||
|
<if test="params.createTime != null"> |
||||||
|
and f_create_time = #{params.createTime} |
||||||
|
</if> |
||||||
|
<if test="params.createName != null and params.createName != ''"> |
||||||
|
and f_create_name = #{params.createName} |
||||||
|
</if> |
||||||
|
<if test="params.updateId != null and params.updateId != ''"> |
||||||
|
and f_update_id = #{params.updateId} |
||||||
|
</if> |
||||||
|
<if test="params.updateTime != null"> |
||||||
|
and f_update_time = #{params.updateTime} |
||||||
|
</if> |
||||||
|
<if test="params.updateName != null and params.updateName != ''"> |
||||||
|
and f_update_name = #{params.updateName} |
||||||
|
</if> |
||||||
|
<if test="params.createCorpName != null and params.createCorpName != ''"> |
||||||
|
and f_create_corp_name = #{params.createCorpName} |
||||||
|
</if> |
||||||
|
<if test="params.createCorpId != null and params.createCorpId != ''"> |
||||||
|
and f_create_corp_id = #{params.createCorpId} |
||||||
|
</if> |
||||||
|
<if test="params.createDeptName != null and params.createDeptName != ''"> |
||||||
|
and f_create_dept_name = #{params.createDeptName} |
||||||
|
</if> |
||||||
|
<if test="params.createDeptId != null and params.createDeptId != ''"> |
||||||
|
and f_create_dept_id = #{params.createDeptId} |
||||||
|
</if> |
||||||
|
<if test="params.createTimes != null"> |
||||||
|
and f_create_time >= #{params.createTimes[0]} |
||||||
|
and f_create_time <= #{params.createTimes[1]} |
||||||
|
</if> |
||||||
|
<if test="params.updateTimes != null"> |
||||||
|
and f_update_time >= #{params.updateTimes[0]} |
||||||
|
and f_update_time <= #{params.updateTimes[1]} |
||||||
|
</if> |
||||||
|
</where> |
||||||
|
</select> |
||||||
|
</mapper> |
||||||
@ -0,0 +1,43 @@ |
|||||||
|
package jnpf.controller; |
||||||
|
|
||||||
|
|
||||||
|
import cn.hutool.core.util.StrUtil; |
||||||
|
import com.baomidou.mybatisplus.core.metadata.IPage; |
||||||
|
import io.swagger.annotations.Api; |
||||||
|
import io.swagger.annotations.ApiParam; |
||||||
|
import io.swagger.v3.oas.annotations.Operation; |
||||||
|
import io.swagger.v3.oas.annotations.tags.Tag; |
||||||
|
import jnpf.base.ActionResult; |
||||||
|
import jnpf.base.vo.DownloadVO; |
||||||
|
import jnpf.constant.MsgCode; |
||||||
|
import jnpf.exception.DataException; |
||||||
|
import jnpf.model.dto.ReceiveGoodsMainDto; |
||||||
|
import jnpf.service.ILibraryService; |
||||||
|
import jnpf.service.TReceiveGoodsMainService; |
||||||
|
import jnpf.service.TRemovalManagementService; |
||||||
|
import lombok.AllArgsConstructor; |
||||||
|
import org.springframework.web.bind.annotation.*; |
||||||
|
|
||||||
|
import java.util.List; |
||||||
|
|
||||||
|
@RestController |
||||||
|
@Api("下架管理") |
||||||
|
@Tag(name = "下架管理", description = "removalManagement") |
||||||
|
@RequestMapping("/removalManagement") |
||||||
|
@AllArgsConstructor |
||||||
|
public class RemovalManagementController { |
||||||
|
private final TRemovalManagementService tRemovalManagementService; |
||||||
|
|
||||||
|
|
||||||
|
// @Operation(summary = "下架单新建")
|
||||||
|
// @PostMapping("addRemoval")
|
||||||
|
// public ActionResult<String> addRemoval(@RequestBody ReceiveGoodsMainDto.NewReceiptParam param) {
|
||||||
|
// return ActionResult.success(MsgCode.SU000.get(),tReceiveGoodsMainService.newReceipt(param));
|
||||||
|
// }
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
} |
||||||
@ -0,0 +1,137 @@ |
|||||||
|
package jnpf.entity; |
||||||
|
|
||||||
|
|
||||||
|
import com.baomidou.mybatisplus.annotation.*; |
||||||
|
import com.fasterxml.jackson.annotation.JsonFormat; |
||||||
|
import io.swagger.annotations.ApiModelProperty; |
||||||
|
import org.springframework.format.annotation.DateTimeFormat; |
||||||
|
import lombok.Data; |
||||||
|
|
||||||
|
import java.io.Serializable; |
||||||
|
import java.util.Date; |
||||||
|
import java.time.LocalDateTime; |
||||||
|
|
||||||
|
/** |
||||||
|
* 图书库存表(TBookInventory) |
||||||
|
* |
||||||
|
* @author common |
||||||
|
* @since 2024-10-29 15:58:48 |
||||||
|
*/ |
||||||
|
@Data |
||||||
|
@TableName("t_book_inventory") |
||||||
|
public class TBookInventory implements Serializable { |
||||||
|
|
||||||
|
private static final long serialVersionUID = 284208972835688225L; |
||||||
|
|
||||||
|
@ApiModelProperty(value = "雪花id") |
||||||
|
@TableId(value = "f_id", type = IdType.ASSIGN_ID) |
||||||
|
private Long id; |
||||||
|
|
||||||
|
@ApiModelProperty(value = "类型:1-业务部 2-版本馆 3-样书室") |
||||||
|
@TableField(value = "f_type") |
||||||
|
private String type; |
||||||
|
|
||||||
|
@ApiModelProperty(value = "图书编号") |
||||||
|
@TableField(value = "f_book_number") |
||||||
|
private String bookNumber; |
||||||
|
|
||||||
|
@ApiModelProperty(value = "图书名称") |
||||||
|
@TableField(value = "f_book_name") |
||||||
|
private String bookName; |
||||||
|
|
||||||
|
@ApiModelProperty(value = "作者") |
||||||
|
@TableField(value = "f_author") |
||||||
|
private String author; |
||||||
|
|
||||||
|
@ApiModelProperty(value = "架位号") |
||||||
|
@TableField(value = "f_rack_number") |
||||||
|
private String rackNumber; |
||||||
|
|
||||||
|
@ApiModelProperty(value = "封面图链接") |
||||||
|
@TableField(value = "f_cover_image") |
||||||
|
private String coverImage; |
||||||
|
|
||||||
|
@ApiModelProperty(value = "定价") |
||||||
|
@TableField(value = "f_price") |
||||||
|
private String price; |
||||||
|
|
||||||
|
@ApiModelProperty(value = "版次") |
||||||
|
@TableField(value = "f_edition") |
||||||
|
private String edition; |
||||||
|
|
||||||
|
@ApiModelProperty(value = "印次") |
||||||
|
@TableField(value = "f_impression") |
||||||
|
private String impression; |
||||||
|
|
||||||
|
@ApiModelProperty(value = "出版时间") |
||||||
|
@TableField(value = "f_publication_time") |
||||||
|
private String publicationTime; |
||||||
|
|
||||||
|
@ApiModelProperty(value = "内容概要") |
||||||
|
@TableField(value = "f_content_summary") |
||||||
|
private String contentSummary; |
||||||
|
|
||||||
|
@ApiModelProperty(value = "备注") |
||||||
|
@TableField(value = "f_remark") |
||||||
|
private String remark; |
||||||
|
|
||||||
|
@ApiModelProperty(value = "图书数量(该架位库存)") |
||||||
|
@TableField(value = "f_quantity") |
||||||
|
private Integer quantity; |
||||||
|
|
||||||
|
@ApiModelProperty(value = "品种号") |
||||||
|
@TableField(value = "f_variety_number") |
||||||
|
private String varietyNumber; |
||||||
|
|
||||||
|
@ApiModelProperty(value = "删除标记 0-正常 1-删除") |
||||||
|
@TableField(value = "f_del_flag") |
||||||
|
@TableLogic |
||||||
|
private String delFlag; |
||||||
|
|
||||||
|
@ApiModelProperty(value = "创建人id") |
||||||
|
@TableField(value = "f_create_id") |
||||||
|
private String createId; |
||||||
|
|
||||||
|
@ApiModelProperty(value = "创建时间") |
||||||
|
@TableField(value = "f_create_time",fill = FieldFill.INSERT) |
||||||
|
@JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss") |
||||||
|
@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss") |
||||||
|
private LocalDateTime createTime; |
||||||
|
|
||||||
|
@ApiModelProperty(value = "创建人姓名") |
||||||
|
@TableField(value = "f_create_name") |
||||||
|
private String createName; |
||||||
|
|
||||||
|
@ApiModelProperty(value = "更新人id") |
||||||
|
@TableField(value = "f_update_id") |
||||||
|
private String updateId; |
||||||
|
|
||||||
|
@ApiModelProperty(value = "更新时间") |
||||||
|
@TableField(value = "f_update_time",fill = FieldFill.INSERT_UPDATE) |
||||||
|
@JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss") |
||||||
|
@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss") |
||||||
|
private LocalDateTime updateTime; |
||||||
|
|
||||||
|
@ApiModelProperty(value = "更新人名称") |
||||||
|
@TableField(value = "f_update_name") |
||||||
|
private String updateName; |
||||||
|
|
||||||
|
@ApiModelProperty(value = "创建人单位名称") |
||||||
|
@TableField(value = "f_create_corp_name") |
||||||
|
private String createCorpName; |
||||||
|
|
||||||
|
@ApiModelProperty(value = "创建人单位id") |
||||||
|
@TableField(value = "f_create_corp_id") |
||||||
|
private String createCorpId; |
||||||
|
|
||||||
|
@ApiModelProperty(value = "创建人部门名称") |
||||||
|
@TableField(value = "f_create_dept_name") |
||||||
|
private String createDeptName; |
||||||
|
|
||||||
|
@ApiModelProperty(value = "创建人部门id") |
||||||
|
@TableField(value = "f_create_dept_id") |
||||||
|
private String createDeptId; |
||||||
|
} |
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@ -0,0 +1,114 @@ |
|||||||
|
package jnpf.entity; |
||||||
|
|
||||||
|
|
||||||
|
import com.baomidou.mybatisplus.annotation.*; |
||||||
|
import com.fasterxml.jackson.annotation.JsonFormat; |
||||||
|
import io.swagger.annotations.ApiModelProperty; |
||||||
|
import org.springframework.format.annotation.DateTimeFormat; |
||||||
|
import lombok.Data; |
||||||
|
|
||||||
|
import java.io.Serializable; |
||||||
|
import java.time.LocalDateTime; |
||||||
|
|
||||||
|
/** |
||||||
|
* 下架管理表(TRemovalManagement) |
||||||
|
* |
||||||
|
* @author common |
||||||
|
* @since 2024-11-06 17:52:46 |
||||||
|
*/ |
||||||
|
@Data |
||||||
|
@TableName("t_removal_management") |
||||||
|
public class TRemovalManagement implements Serializable { |
||||||
|
|
||||||
|
private static final long serialVersionUID = -74824064073816987L; |
||||||
|
|
||||||
|
@ApiModelProperty(value = "下架单号") |
||||||
|
@TableId(value = "f_id", type = IdType.ASSIGN_ID) |
||||||
|
private String id; |
||||||
|
|
||||||
|
@ApiModelProperty(value = "类型:1-业务部 2-版本馆 3-样书室") |
||||||
|
@TableField(value = "f_save_type") |
||||||
|
private String saveType; |
||||||
|
|
||||||
|
@ApiModelProperty(value = "下架类型 0-领用下架 1-报损下架 2-重点书下架") |
||||||
|
@TableField(value = "f_type") |
||||||
|
private String type; |
||||||
|
|
||||||
|
@ApiModelProperty(value = "状态 0-待提交 1-待下架 2-下架中 3-已完成") |
||||||
|
@TableField(value = "f_main_status") |
||||||
|
private String mainStatus; |
||||||
|
|
||||||
|
@ApiModelProperty(value = "状态名称 0-待提交 1-待下架 2-下架中 3-已完成") |
||||||
|
@TableField(value = "f_main_status_name") |
||||||
|
private String mainStatusName; |
||||||
|
|
||||||
|
@ApiModelProperty(value = "下架册数") |
||||||
|
@TableField(value = "f_remove_number") |
||||||
|
private Integer removeNumber; |
||||||
|
|
||||||
|
@ApiModelProperty(value = "删除标记 0-正常 1-删除") |
||||||
|
@TableField(value = "f_del_flag") |
||||||
|
@TableLogic |
||||||
|
private String delFlag; |
||||||
|
|
||||||
|
@ApiModelProperty(value = "创建人id") |
||||||
|
@TableField(value = "f_create_id") |
||||||
|
private String createId; |
||||||
|
|
||||||
|
@ApiModelProperty(value = "创建时间") |
||||||
|
@TableField(value = "f_create_time",fill = FieldFill.INSERT) |
||||||
|
@JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss") |
||||||
|
@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss") |
||||||
|
private LocalDateTime createTime; |
||||||
|
|
||||||
|
@ApiModelProperty(value = "创建人姓名") |
||||||
|
@TableField(value = "f_create_name") |
||||||
|
private String createName; |
||||||
|
|
||||||
|
@ApiModelProperty(value = "更新人id") |
||||||
|
@TableField(value = "f_update_id") |
||||||
|
private String updateId; |
||||||
|
|
||||||
|
@ApiModelProperty(value = "更新时间") |
||||||
|
@TableField(value = "f_update_time",fill = FieldFill.INSERT_UPDATE) |
||||||
|
@JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss") |
||||||
|
@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss") |
||||||
|
private LocalDateTime updateTime; |
||||||
|
|
||||||
|
@ApiModelProperty(value = "更新人名称") |
||||||
|
@TableField(value = "f_update_name") |
||||||
|
private String updateName; |
||||||
|
|
||||||
|
@ApiModelProperty(value = "下架时间") |
||||||
|
@TableField(value = "f_book_removal_time") |
||||||
|
@JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss") |
||||||
|
@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss") |
||||||
|
private LocalDateTime bookRemovalTime; |
||||||
|
|
||||||
|
@ApiModelProperty(value = "下架人id") |
||||||
|
@TableField(value = "f_book_removal_id") |
||||||
|
private String bookRemovalId; |
||||||
|
|
||||||
|
@ApiModelProperty(value = "下架人名称") |
||||||
|
@TableField(value = "f_book_removal_name") |
||||||
|
private String bookRemovalName; |
||||||
|
|
||||||
|
@ApiModelProperty(value = "创建人单位名称") |
||||||
|
@TableField(value = "f_create_corp_name") |
||||||
|
private String createCorpName; |
||||||
|
|
||||||
|
@ApiModelProperty(value = "创建人单位id") |
||||||
|
@TableField(value = "f_create_corp_id") |
||||||
|
private String createCorpId; |
||||||
|
|
||||||
|
@ApiModelProperty(value = "创建人部门名称") |
||||||
|
@TableField(value = "f_create_dept_name") |
||||||
|
private String createDeptName; |
||||||
|
|
||||||
|
@ApiModelProperty(value = "创建人部门id") |
||||||
|
@TableField(value = "f_create_dept_id") |
||||||
|
private String createDeptId; |
||||||
|
} |
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@ -0,0 +1,110 @@ |
|||||||
|
package jnpf.entity; |
||||||
|
|
||||||
|
|
||||||
|
import com.baomidou.mybatisplus.annotation.*; |
||||||
|
import com.fasterxml.jackson.annotation.JsonFormat; |
||||||
|
import io.swagger.annotations.ApiModelProperty; |
||||||
|
import org.springframework.format.annotation.DateTimeFormat; |
||||||
|
import lombok.Data; |
||||||
|
|
||||||
|
import java.io.Serializable; |
||||||
|
import java.util.Date; |
||||||
|
import java.time.LocalDateTime; |
||||||
|
|
||||||
|
/** |
||||||
|
* 上下架操作表(TShelfOperation) |
||||||
|
* |
||||||
|
* @author common |
||||||
|
* @since 2024-10-29 15:58:48 |
||||||
|
*/ |
||||||
|
@Data |
||||||
|
@TableName("t_shelf_operation") |
||||||
|
public class TShelfOperation implements Serializable { |
||||||
|
|
||||||
|
private static final long serialVersionUID = 664988134602037702L; |
||||||
|
|
||||||
|
@ApiModelProperty(value = "雪花id") |
||||||
|
@TableId(value = "f_id", type = IdType.ASSIGN_ID) |
||||||
|
private Long id; |
||||||
|
|
||||||
|
@ApiModelProperty(value = "类型:1-业务部 2-版本馆 3-样书室") |
||||||
|
@TableField(value = "f_save_type") |
||||||
|
private String saveType; |
||||||
|
|
||||||
|
|
||||||
|
@ApiModelProperty(value = "类型 0-上架 1-下架") |
||||||
|
@TableField(value = "f_type") |
||||||
|
private String type; |
||||||
|
|
||||||
|
@ApiModelProperty(value = "库存id") |
||||||
|
@TableField(value = "f_book_inventory_id") |
||||||
|
private String bookInventoryId; |
||||||
|
|
||||||
|
@ApiModelProperty(value = "操作类型") |
||||||
|
@TableField(value = "f_operation_type") |
||||||
|
private String operationType; |
||||||
|
|
||||||
|
@ApiModelProperty(value = "操作类型名称") |
||||||
|
@TableField(value = "f_operation_type_name") |
||||||
|
private String operationTypeName; |
||||||
|
|
||||||
|
@ApiModelProperty(value = "上架册数") |
||||||
|
@TableField(value = "f_listing_number") |
||||||
|
private Integer listingNumber; |
||||||
|
|
||||||
|
@ApiModelProperty(value = "下架册数") |
||||||
|
@TableField(value = "f_remove_number") |
||||||
|
private Integer removeNumber; |
||||||
|
|
||||||
|
@ApiModelProperty(value = "删除标记 0-正常 1-删除") |
||||||
|
@TableField(value = "f_del_flag") |
||||||
|
@TableLogic |
||||||
|
private String delFlag; |
||||||
|
|
||||||
|
@ApiModelProperty(value = "创建人id") |
||||||
|
@TableField(value = "f_create_id") |
||||||
|
private String createId; |
||||||
|
|
||||||
|
@ApiModelProperty(value = "创建时间") |
||||||
|
@TableField(value = "f_create_time",fill = FieldFill.INSERT) |
||||||
|
@JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss") |
||||||
|
@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss") |
||||||
|
private LocalDateTime createTime; |
||||||
|
|
||||||
|
@ApiModelProperty(value = "创建人姓名") |
||||||
|
@TableField(value = "f_create_name") |
||||||
|
private String createName; |
||||||
|
|
||||||
|
@ApiModelProperty(value = "更新人id") |
||||||
|
@TableField(value = "f_update_id") |
||||||
|
private String updateId; |
||||||
|
|
||||||
|
@ApiModelProperty(value = "更新时间") |
||||||
|
@TableField(value = "f_update_time",fill = FieldFill.INSERT_UPDATE) |
||||||
|
@JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss") |
||||||
|
@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss") |
||||||
|
private LocalDateTime updateTime; |
||||||
|
|
||||||
|
@ApiModelProperty(value = "更新人名称") |
||||||
|
@TableField(value = "f_update_name") |
||||||
|
private String updateName; |
||||||
|
|
||||||
|
@ApiModelProperty(value = "创建人单位名称") |
||||||
|
@TableField(value = "f_create_corp_name") |
||||||
|
private String createCorpName; |
||||||
|
|
||||||
|
@ApiModelProperty(value = "创建人单位id") |
||||||
|
@TableField(value = "f_create_corp_id") |
||||||
|
private String createCorpId; |
||||||
|
|
||||||
|
@ApiModelProperty(value = "创建人部门名称") |
||||||
|
@TableField(value = "f_create_dept_name") |
||||||
|
private String createDeptName; |
||||||
|
|
||||||
|
@ApiModelProperty(value = "创建人部门id") |
||||||
|
@TableField(value = "f_create_dept_id") |
||||||
|
private String createDeptId; |
||||||
|
} |
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@ -0,0 +1,53 @@ |
|||||||
|
package jnpf.enump; |
||||||
|
|
||||||
|
import lombok.Getter; |
||||||
|
|
||||||
|
public class RemovalManagementEnum { |
||||||
|
|
||||||
|
|
||||||
|
// 1-待提交 2-已下单 3-样书室待下单
|
||||||
|
@Getter |
||||||
|
public enum MainStatusEnum { |
||||||
|
//公共
|
||||||
|
TO_BE_SUBMITTED("0", "待提交"), |
||||||
|
TO_BE_TAKEN_DOWN("1", "待下架"), |
||||||
|
TAKING_DOWN("2", "下架中"), |
||||||
|
COMPLETED("3", "已完成"), |
||||||
|
|
||||||
|
; |
||||||
|
|
||||||
|
private final String code; |
||||||
|
private final String describe; |
||||||
|
|
||||||
|
MainStatusEnum(String code, String describe) { |
||||||
|
this.code = code; |
||||||
|
this.describe = describe; |
||||||
|
} |
||||||
|
} |
||||||
|
|
||||||
|
//下单类型:1-业务部 2-版本馆 3-样书室 4-重点书
|
||||||
|
@Getter |
||||||
|
public enum TypeEnum { |
||||||
|
LY("0", "领用下架"), |
||||||
|
BS("1", "报损下架"), |
||||||
|
ZD("2", "重点书下架"), |
||||||
|
; |
||||||
|
|
||||||
|
private final String code; |
||||||
|
private final String describe; |
||||||
|
|
||||||
|
TypeEnum(String code, String describe) { |
||||||
|
this.code = code; |
||||||
|
this.describe = describe; |
||||||
|
} |
||||||
|
|
||||||
|
public static TypeEnum getEnumByCode(String code) { |
||||||
|
for (TypeEnum enm : TypeEnum.values()) { |
||||||
|
if (enm.getCode().equals(code)) { |
||||||
|
return enm; |
||||||
|
} |
||||||
|
} |
||||||
|
return null; |
||||||
|
} |
||||||
|
} |
||||||
|
} |
||||||
@ -0,0 +1,63 @@ |
|||||||
|
package jnpf.enump; |
||||||
|
|
||||||
|
import lombok.Getter; |
||||||
|
|
||||||
|
public class ShelfOperationEnum { |
||||||
|
|
||||||
|
|
||||||
|
@Getter |
||||||
|
public enum OperationTypeEnum { |
||||||
|
//公共
|
||||||
|
WAREHOUSE_ENTRY("1", "入库上架"), |
||||||
|
COLLECTING("2", "领用下架"), |
||||||
|
KEY_BOOKS("3", "重点书下架"), |
||||||
|
REPORT_LOSS("4", "报损下架"), |
||||||
|
FILL_THE_INVENTORY("5", "盘盈入库"), |
||||||
|
INVENTORY_LOSS_OUT("6", "盘亏出库"), |
||||||
|
|
||||||
|
; |
||||||
|
|
||||||
|
private final String code; |
||||||
|
private final String describe; |
||||||
|
|
||||||
|
OperationTypeEnum(String code, String describe) { |
||||||
|
this.code = code; |
||||||
|
this.describe = describe; |
||||||
|
} |
||||||
|
|
||||||
|
public static OperationTypeEnum getEnumByCode(String code) { |
||||||
|
for (OperationTypeEnum enm : OperationTypeEnum.values()) { |
||||||
|
if (enm.getCode().equals(code)) { |
||||||
|
return enm; |
||||||
|
} |
||||||
|
} |
||||||
|
return null; |
||||||
|
} |
||||||
|
} |
||||||
|
|
||||||
|
@Getter |
||||||
|
public enum TypeEnum { |
||||||
|
//公共
|
||||||
|
LISTING("0", "上架"), |
||||||
|
REMOVE_SHELVES("1", "下架"), |
||||||
|
|
||||||
|
; |
||||||
|
|
||||||
|
private final String code; |
||||||
|
private final String describe; |
||||||
|
|
||||||
|
TypeEnum(String code, String describe) { |
||||||
|
this.code = code; |
||||||
|
this.describe = describe; |
||||||
|
} |
||||||
|
|
||||||
|
public static TypeEnum getEnumByCode(String code) { |
||||||
|
for (TypeEnum enm : TypeEnum.values()) { |
||||||
|
if (enm.getCode().equals(code)) { |
||||||
|
return enm; |
||||||
|
} |
||||||
|
} |
||||||
|
return null; |
||||||
|
} |
||||||
|
} |
||||||
|
} |
||||||
@ -0,0 +1,48 @@ |
|||||||
|
package jnpf.model.dto; |
||||||
|
|
||||||
|
import com.fasterxml.jackson.annotation.JsonFormat; |
||||||
|
import com.fasterxml.jackson.annotation.JsonIgnore; |
||||||
|
import io.swagger.annotations.ApiModelProperty; |
||||||
|
import lombok.Data; |
||||||
|
import org.springframework.format.annotation.DateTimeFormat; |
||||||
|
|
||||||
|
import java.time.LocalDateTime; |
||||||
|
|
||||||
|
public class RemovalManagementEnum { |
||||||
|
@Data |
||||||
|
public static class AddRemovalParam { |
||||||
|
@ApiModelProperty("1-保存 2-验收") |
||||||
|
private String saveType; |
||||||
|
@ApiModelProperty("保存后提交时传入id") |
||||||
|
private String id; |
||||||
|
@ApiModelProperty("验收类型:1-业务部 2-版本馆 3-样书室") |
||||||
|
private String orderType; |
||||||
|
|
||||||
|
@ApiModelProperty(value = "包件情况-code") |
||||||
|
private String packageSituation; |
||||||
|
|
||||||
|
@ApiModelProperty(value = "包件数量") |
||||||
|
private Integer packageQuantity; |
||||||
|
|
||||||
|
@ApiModelProperty(value = "送货方") |
||||||
|
private String deliveryParty; |
||||||
|
|
||||||
|
|
||||||
|
@ApiModelProperty(value = "收货时间") |
||||||
|
@JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss") |
||||||
|
@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss") |
||||||
|
private LocalDateTime receiveTime; |
||||||
|
|
||||||
|
@ApiModelProperty("描述") |
||||||
|
private String remark; |
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
@ApiModelProperty("后端使用(新增版本馆/业务部收货单)") |
||||||
|
@JsonIgnore |
||||||
|
private String receiptNumber; |
||||||
|
|
||||||
|
} |
||||||
|
|
||||||
|
|
||||||
|
} |
||||||
Loading…
Reference in new issue