master:销售出库列表,导出勾选订单报错BUG修复;
parent
15ce809f9b
commit
acd3709baa
|
|
@ -6,9 +6,7 @@ import com.ruoyi.xkt.dto.storeSale.StoreSaleDownloadDTO;
|
|||
import com.ruoyi.xkt.dto.storeSale.StoreSaleExportDTO;
|
||||
import com.ruoyi.xkt.dto.storeSale.StoreSalePageDTO;
|
||||
import com.ruoyi.xkt.dto.storeSale.StoreSalePageResDTO;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
|
||||
import java.util.Date;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
|
|
@ -21,24 +19,25 @@ public interface StoreSaleMapper extends BaseMapper<StoreSale> {
|
|||
|
||||
/**
|
||||
* 分页
|
||||
*
|
||||
* @param pageDTO 入参
|
||||
* @return
|
||||
* @return List<StoreSalePageResDTO>
|
||||
*/
|
||||
List<StoreSalePageResDTO> selectPage(StoreSalePageDTO pageDTO);
|
||||
|
||||
/**
|
||||
* 导出指定id列表
|
||||
*
|
||||
* @param storeSaleIdList 导出入参
|
||||
* @param exportDTO 导出入参
|
||||
* @return List<StoreSaleDownloadDTO>
|
||||
*/
|
||||
List<StoreSaleDownloadDTO> selectExportList(@Param("storeSaleIdList") List<Long> storeSaleIdList);
|
||||
List<StoreSaleDownloadDTO> selectExportList(StoreSaleExportDTO exportDTO);
|
||||
|
||||
/**
|
||||
* 导出指定时间段内的数据
|
||||
*
|
||||
* @param exportDTO 导出入参
|
||||
* @return
|
||||
* @return List<StoreSaleDownloadDTO>
|
||||
*/
|
||||
List<StoreSaleDownloadDTO> selectExportListVoucherDateBetween(StoreSaleExportDTO exportDTO);
|
||||
|
||||
|
|
|
|||
|
|
@ -213,10 +213,10 @@ public class StoreSaleServiceImpl implements IStoreSaleService {
|
|||
if (!SecurityUtils.isAdmin() && !SecurityUtils.isStoreManagerOrSub(exportDTO.getStoreId())) {
|
||||
throw new ServiceException("当前用户非档口管理者或子账号,无权限操作!", HttpStatus.ERROR);
|
||||
}
|
||||
List<StoreSaleDownloadDTO> downloadList = new ArrayList<>();
|
||||
List<StoreSaleDownloadDTO> downloadList;
|
||||
// 导出指定销售出库单
|
||||
if (CollectionUtils.isNotEmpty(exportDTO.getStoreSaleIdList())) {
|
||||
downloadList = this.storeSaleMapper.selectExportList(exportDTO.getStoreSaleIdList());
|
||||
downloadList = this.storeSaleMapper.selectExportList(exportDTO);
|
||||
} else {
|
||||
// 没有传时间,则设置当前时间往前推半年
|
||||
if (ObjectUtils.isEmpty(exportDTO.getVoucherDateStart()) && ObjectUtils.isEmpty(exportDTO.getVoucherDateEnd())) {
|
||||
|
|
|
|||
|
|
@ -41,10 +41,12 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|||
WHERE
|
||||
ss.del_flag = 0
|
||||
AND ss.store_id = #{storeId}
|
||||
AND ss.id IN
|
||||
<foreach collection="storeSaleIdList" item="storeSaleId" open="(" separator="," close=")">
|
||||
#{storeSaleId}
|
||||
</foreach>
|
||||
<if test="storeSaleIdList != null and storeSaleIdList.size() > 0">
|
||||
AND ss.id IN
|
||||
<foreach collection="storeSaleIdList" item="storeSaleId" open="(" separator="," close=")">
|
||||
#{storeSaleId}
|
||||
</foreach>
|
||||
</if>
|
||||
ORDER BY
|
||||
ss.create_time DESC
|
||||
</select>
|
||||
|
|
|
|||
Loading…
Reference in New Issue