Browse Source

[feat]基础信息:新增请购单生成请购单编号

dev
zhangsiqi 6 months ago
parent
commit
2c1fce1aea
  1. 2
      ruoyi-admin/src/main/java/com/ruoyi/system/service/IBaseRequisitioningOrderService.java
  2. 6
      ruoyi-admin/src/main/java/com/ruoyi/system/service/impl/BaseRequisitioningOrderServiceImpl.java

2
ruoyi-admin/src/main/java/com/ruoyi/system/service/IBaseRequisitioningOrderService.java

@ -77,4 +77,6 @@ public interface IBaseRequisitioningOrderService
List<BaseRequisitioningOrder> selectBaseRequisitioningOrderByIds(String ids); List<BaseRequisitioningOrder> selectBaseRequisitioningOrderByIds(String ids);
Object getId();
} }

6
ruoyi-admin/src/main/java/com/ruoyi/system/service/impl/BaseRequisitioningOrderServiceImpl.java

@ -2,7 +2,6 @@ package com.ruoyi.system.service.impl;
import java.math.BigDecimal; import java.math.BigDecimal;
import java.math.RoundingMode; import java.math.RoundingMode;
import java.util.ArrayList;
import java.util.List; import java.util.List;
import com.ruoyi.common.core.redis.RedisCache; import com.ruoyi.common.core.redis.RedisCache;
@ -10,7 +9,6 @@ import com.ruoyi.common.utils.DateUtils;
import com.ruoyi.common.utils.ShiroUtils; import com.ruoyi.common.utils.ShiroUtils;
import com.ruoyi.system.domain.BaseRequisitioningOrderChild; import com.ruoyi.system.domain.BaseRequisitioningOrderChild;
import com.ruoyi.system.mapper.BaseRequisitioningOrderChildMapper; import com.ruoyi.system.mapper.BaseRequisitioningOrderChildMapper;
import io.swagger.models.auth.In;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service; import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.BaseRequisitioningOrderMapper; import com.ruoyi.system.mapper.BaseRequisitioningOrderMapper;
@ -206,4 +204,8 @@ public class BaseRequisitioningOrderServiceImpl implements IBaseRequisitioningOr
public List<BaseRequisitioningOrder> selectBaseRequisitioningOrderByIds(String ids){ public List<BaseRequisitioningOrder> selectBaseRequisitioningOrderByIds(String ids){
return baseRequisitioningOrderMapper.selectBaseRequisitioningOrderByIds(Convert.toStrArray(ids)); return baseRequisitioningOrderMapper.selectBaseRequisitioningOrderByIds(Convert.toStrArray(ids));
} }
@Override
public Object getId(){
return redisCache.generateBillNo("QG");
}
} }

Loading…
Cancel
Save