使用自定义Iservice和ServiceImpl

pro
wj 2 years ago
parent 4a38f13d7b
commit edb34d1f92

@ -1,6 +1,7 @@
package com.glxp.api.dao.sync;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.glxp.api.dao.BaseMapperPlus;
import com.glxp.api.entity.sync.BasicExportStatusTimeEntity;
import com.glxp.api.req.sync.BasicExportTimeRequest;
import org.apache.ibatis.annotations.Mapper;
@ -8,7 +9,7 @@ import org.apache.ibatis.annotations.Mapper;
import java.util.List;
@Mapper
public interface BasicExportTimeDao extends BaseMapper<BasicExportStatusTimeEntity> {
public interface BasicExportTimeDao extends BaseMapperPlus<BasicExportTimeDao, BasicExportStatusTimeEntity, BasicExportStatusTimeEntity> {
List<BasicExportStatusTimeEntity> filterExportStatus(BasicExportTimeRequest basicExportStatusRequest);

@ -1,13 +1,16 @@
package com.glxp.api.service.sync;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.service.IService;
import com.glxp.api.dao.BaseMapperPlus;
import com.glxp.api.entity.sync.BasicExportStatusTimeEntity;
import com.glxp.api.req.sync.BasicExportTimeRequest;
import com.glxp.api.service.CustomService;
import java.util.List;
public interface BasicExportTimeService extends IService<BasicExportStatusTimeEntity> {
public interface BasicExportTimeService extends CustomService<BasicExportStatusTimeEntity> {
BasicExportStatusTimeEntity findByType(String type);

@ -5,6 +5,7 @@ import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.glxp.api.dao.sync.BasicExportTimeDao;
import com.glxp.api.entity.sync.BasicExportStatusTimeEntity;
import com.glxp.api.req.sync.BasicExportTimeRequest;
import com.glxp.api.service.CustomServiceImpl;
import com.glxp.api.service.sync.BasicExportTimeService;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
@ -15,7 +16,7 @@ import java.util.List;
@Service
@Transactional(rollbackFor = Exception.class)
public class BasicExportTimeServiceImpl extends ServiceImpl<BasicExportTimeDao, BasicExportStatusTimeEntity> implements BasicExportTimeService {
public class BasicExportTimeServiceImpl extends CustomServiceImpl<BasicExportTimeDao, BasicExportStatusTimeEntity> implements BasicExportTimeService {
@Resource
BasicExportTimeDao basicExportTimeDao;

Loading…
Cancel
Save