fix
This commit is contained in:
parent
a3901bed96
commit
53b4bfb153
33
src/main/java/com/lz/modules/sys/service/PrintService.java
Normal file
33
src/main/java/com/lz/modules/sys/service/PrintService.java
Normal file
@ -0,0 +1,33 @@
|
||||
package com.lz.modules.sys.service;
|
||||
|
||||
import com.baomidou.mybatisplus.extension.service.IService;
|
||||
import com.lz.modules.sys.entity.Print;
|
||||
|
||||
/**
|
||||
* <p>
|
||||
* 流转表 服务类
|
||||
* </p>
|
||||
*
|
||||
* @author quyixiao
|
||||
* @since 2020-12-04
|
||||
*/
|
||||
public interface PrintService extends IService<Print> {
|
||||
|
||||
|
||||
|
||||
Print selectPrintById(Long id);
|
||||
|
||||
|
||||
Long insertPrint(Print print);
|
||||
|
||||
|
||||
int updatePrintById(Print print);
|
||||
|
||||
|
||||
int updateCoverPrintById(Print print);
|
||||
|
||||
|
||||
int deletePrintById(Long id);
|
||||
|
||||
|
||||
}
|
||||
@ -0,0 +1,25 @@
|
||||
package com.lz.modules.sys.service;
|
||||
|
||||
import com.baomidou.mybatisplus.extension.service.IService;
|
||||
import com.lz.modules.sys.entity.Resource;
|
||||
|
||||
public interface ResourceService extends IService<Resource> {
|
||||
|
||||
|
||||
|
||||
Resource selectResourceById(Long id);
|
||||
|
||||
|
||||
Long insertResource(Resource resource);
|
||||
|
||||
|
||||
int updateResourceById(Resource resource);
|
||||
|
||||
|
||||
int updateCoverResourceById(Resource resource);
|
||||
|
||||
|
||||
int deleteResourceById(Long id);
|
||||
|
||||
|
||||
}
|
||||
@ -0,0 +1,55 @@
|
||||
package com.lz.modules.sys.service.impl;
|
||||
|
||||
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
||||
import com.lz.modules.sys.dao.PrintMapper;
|
||||
import com.lz.modules.sys.entity.Print;
|
||||
import com.lz.modules.sys.service.PrintService;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Service;
|
||||
|
||||
|
||||
@Service
|
||||
public class PrintServiceImpl extends ServiceImpl<PrintMapper, Print> implements PrintService {
|
||||
|
||||
|
||||
@Autowired
|
||||
private PrintMapper printMapper;
|
||||
|
||||
|
||||
|
||||
@Override
|
||||
public Print selectPrintById(Long id){
|
||||
return printMapper.selectPrintById(id);
|
||||
}
|
||||
|
||||
|
||||
|
||||
@Override
|
||||
public Long insertPrint(Print print){
|
||||
return printMapper.insertPrint(print);
|
||||
}
|
||||
|
||||
|
||||
|
||||
@Override
|
||||
public int updatePrintById(Print print){
|
||||
return printMapper.updatePrintById(print);
|
||||
}
|
||||
|
||||
|
||||
|
||||
@Override
|
||||
public int updateCoverPrintById(Print print){
|
||||
return printMapper.updateCoverPrintById(print);
|
||||
}
|
||||
|
||||
|
||||
|
||||
@Override
|
||||
public int deletePrintById(Long id){
|
||||
return printMapper.deletePrintById(id);
|
||||
}
|
||||
|
||||
|
||||
|
||||
}
|
||||
@ -0,0 +1,54 @@
|
||||
package com.lz.modules.sys.service.impl;
|
||||
|
||||
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
||||
import com.lz.modules.sys.dao.ResourceMapper;
|
||||
import com.lz.modules.sys.entity.Resource;
|
||||
import com.lz.modules.sys.service.ResourceService;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Service;
|
||||
|
||||
@Service
|
||||
public class ResourceServiceImpl extends ServiceImpl<ResourceMapper, Resource> implements ResourceService {
|
||||
|
||||
|
||||
@Autowired
|
||||
private ResourceMapper resourceMapper;
|
||||
|
||||
|
||||
|
||||
@Override
|
||||
public Resource selectResourceById(Long id){
|
||||
return resourceMapper.selectResourceById(id);
|
||||
}
|
||||
|
||||
|
||||
|
||||
@Override
|
||||
public Long insertResource(Resource resource){
|
||||
return resourceMapper.insertResource(resource);
|
||||
}
|
||||
|
||||
|
||||
|
||||
@Override
|
||||
public int updateResourceById(Resource resource){
|
||||
return resourceMapper.updateResourceById(resource);
|
||||
}
|
||||
|
||||
|
||||
|
||||
@Override
|
||||
public int updateCoverResourceById(Resource resource){
|
||||
return resourceMapper.updateCoverResourceById(resource);
|
||||
}
|
||||
|
||||
|
||||
|
||||
@Override
|
||||
public int deleteResourceById(Long id){
|
||||
return resourceMapper.deleteResourceById(id);
|
||||
}
|
||||
|
||||
|
||||
|
||||
}
|
||||
Loading…
x
Reference in New Issue
Block a user