admin管理员组文章数量:1026989
CRM
(CRM项目)
复制配置文件
创建包cn.wolfcode.config
cn.wolfcode.controller
cn.wolfcode.service
cn.wolfcode.service.impl
cn.wolfcode.qo
cn.wolfcode.util
在main路径下创建webapp/WEB-INF/web.xml和views包
cn.wolfcode.config里写MyFreemarkerConfig
MyFreemarkerConfig类
public class MyFreemarkerConfig extends FreeMarkerConfigurer {@Overridepublic void afterPropertiesSet() throws IOException, TemplateException {super.afterPropertiesSet();Configuration configuration = this.getConfiguration();configuration.setSharedVariable("shiro",new ShiroTags());}
}
PermissionMapper接口
public interface PermissionMapper {int deleteByPrimaryKey(Long id);int insert(Permission record);Permission selectByPrimaryKey(Long id);List<Permission> selectAll();int updateByPrimaryKey(Permission record);int count();List<Permission> list(QueryObject qo);List<String> selectExpressionByCurrentuserId(Long id);List<String> selectAllExpression();
}
IPermissionService类
public interface IPermissionService {int deleteByPrimaryKey(Long id);int insert(Permission record);Permission selectByPrimaryKey(Long id);List<Permission> selectAll();int updateByPrimaryKey(Permission record);PageInfo<Permission> list(QueryObject qo);List<String> selectExpressionByCurrentuserId(Long id);List<String> selectAllExpression();
}
PermissionServiceImpl类
@Service
public class PermissionServiceImpl implements IPermissionService {@Autowiredprivate PermissionMapper mapper;@Overridepublic int deleteByPrimaryKey(Long id) {return mapper.deleteByPrimaryKey(id);}@Overridepublic int insert(Permission record) {return
CRM
(CRM项目)
复制配置文件
创建包cn.wolfcode.config
cn.wolfcode.controller
cn.wolfcode.service
cn.wolfcode.service.impl
cn.wolfcode.qo
cn.wolfcode.util
在main路径下创建webapp/WEB-INF/web.xml和views包
cn.wolfcode.config里写MyFreemarkerConfig
MyFreemarkerConfig类
public class MyFreemarkerConfig extends FreeMarkerConfigurer {@Overridepublic void afterPropertiesSet() throws IOException, TemplateException {super.afterPropertiesSet();Configuration configuration = this.getConfiguration();configuration.setSharedVariable("shiro",new ShiroTags());}
}
PermissionMapper接口
public interface PermissionMapper {int deleteByPrimaryKey(Long id);int insert(Permission record);Permission selectByPrimaryKey(Long id);List<Permission> selectAll();int updateByPrimaryKey(Permission record);int count();List<Permission> list(QueryObject qo);List<String> selectExpressionByCurrentuserId(Long id);List<String> selectAllExpression();
}
IPermissionService类
public interface IPermissionService {int deleteByPrimaryKey(Long id);int insert(Permission record);Permission selectByPrimaryKey(Long id);List<Permission> selectAll();int updateByPrimaryKey(Permission record);PageInfo<Permission> list(QueryObject qo);List<String> selectExpressionByCurrentuserId(Long id);List<String> selectAllExpression();
}
PermissionServiceImpl类
@Service
public class PermissionServiceImpl implements IPermissionService {@Autowiredprivate PermissionMapper mapper;@Overridepublic int deleteByPrimaryKey(Long id) {return mapper.deleteByPrimaryKey(id);}@Overridepublic int insert(Permission record) {return
本文标签: CRM
版权声明:本文标题:CRM 内容由热心网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://it.en369.cn/jiaocheng/1730939958a1028669.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论