| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455 |
- package com.dk.mdm.service.ivt;
- import com.dk.common.infrastructure.annotaiton.Pagination;
- import com.dk.common.model.pojo.PageList;
- import com.dk.common.response.ResponseResultVO;
- import com.dk.mdm.model.pojo.ivt.Inbound;
- import com.dk.mdm.mapper.ivt.InboundMapper;
- import com.dk.common.service.BaseService;
- import com.dk.common.mapper.BaseMapper;
- import com.dk.mdm.model.query.ivt.InboundQuery;
- import com.dk.mdm.model.query.pur.PurchaseQuery;
- import com.dk.mdm.model.response.ivt.InboundResponse;
- import com.dk.mdm.model.response.pur.PurchaseResponse;
- import org.springframework.stereotype.Service;
- import org.springframework.beans.factory.annotation.Autowired;
- import org.springframework.transaction.annotation.Transactional;
- @Service
- @Transactional
- public class InboundService extends BaseService<Inbound> {
- @Override
- public BaseMapper<Inbound> getRepository() {
- return inboundMapper;
- }
- @Autowired
- private InboundMapper inboundMapper;
- /**
- * @desc : 条件查询 (采购入库用)
- * @author : 王英杰
- * @date : 2024/3/8 10:58
- */
- @Pagination
- public ResponseResultVO<PageList<PurchaseResponse>> selectByCond(InboundQuery inboundQuery) {
- return super.mergeListWithCount(inboundQuery, inboundMapper.selectByCond(inboundQuery), inboundMapper.countByCond(inboundQuery));
- }
- /**
- * @desc : 查看来源单据,总单加明细 采购退货用
- * @author : 于继渤
- * @date : 2024/3/6 10:36
- */
- @Pagination
- public ResponseResultVO<PageList<InboundResponse>> selectInboundAndItem(InboundQuery inboundQuery) {
- return super.mergeListWithCount(inboundQuery, inboundMapper.selectInboundAndItem(inboundQuery),
- inboundMapper.selectInboundAndItemCountByCond(inboundQuery));
- }
- }
|