MISBoot快速开发平台

Service实现类

一、通过自动生成代码功能生成代码

把生成出来的ServiceImpl实现类复制到项目对应的文件夹下。

二、示例

示例
package cn.ewsd.mdata.service.impl;

    import org.springframework.beans.factory.annotation.Autowired;
    import org.springframework.stereotype.Service;

    import java.util.List;
    import java.util.Map;

    import cn.ewsd.common.utils.BaseUtils;
    import cn.ewsd.common.utils.easyui.PageParam;
    import cn.ewsd.common.utils.easyui.PageSet;
    import cn.ewsd.common.utils.easyui.PageUtils;
    import com.github.pagehelper.PageHelper;
    import com.github.pagehelper.PageInfo;

    import cn.ewsd.mdata.mapper.SysUserMapper;
    import cn.ewsd.mdata.model.SysUser;
    import cn.ewsd.mdata.service.SysUserService;
    import cn.ewsd.mdata.service.impl.MdataBaseServiceImpl;

    @Service("sysUserServiceImpl")
    public class SysUserServiceImpl extends MdataBaseServiceImplimplements SysUserService {
        @Autowired
        private SysUserMapper sysUserMapper;

        @Override
        public PageSetgetPageSet(PageParam pageParam, String filterSort) {
            PageHelper.startPage(pageParam.getPage(), pageParam.getRows());
            Listlist = sysUserMapper.getPageSet(filterSort);
            PageInfopageInfo = new PageInfo<>(list);
            return PageUtils.getPageSet(pageInfo);
        }

        @Override
        public SysUser queryObject(String uuid){
            return sysUserMapper.queryObject(uuid);
        }

        @Override
        public ListqueryList(Mapmap){
            return sysUserMapper.queryList(map);
        }

        @Override
        public int queryTotal(Mapmap){
            return sysUserMapper.queryTotal(map);
        }

        @Override
        public int executeSave(SysUser sysUser){
            return sysUserMapper.executeSave(sysUser);
        }

        @Override
        public int executeUpdate(SysUser sysUser){
            return sysUserMapper.executeUpdate(sysUser);
        }

        @Override
        public int executeDelete(String uuid){
            return sysUserMapper.executeDelete(uuid);
        }

        @Override
        public int executeDeleteBatch(String[] uuids){
            return sysUserMapper.executeDeleteBatch(uuids);
        }

    }
QQ在线咨询
客服 QQ
251122361
微信/手机
18973127736
办公电话
0731-89565588