Commit 2e61f738 authored by 赵啸非's avatar 赵啸非

添加事项分类相关信息

parent 737baf1f
package com.mortals.xhx.module.datum.dao;
import com.mortals.framework.dao.ICRUDDao;
import com.mortals.xhx.module.datum.model.DatumCategoryEntity;
import java.util.List;
/**
* 材料分类Dao
* 材料分类 DAO接口
*
* @author zxfei
* @date 2023-06-21
*/
public interface DatumCategoryDao extends ICRUDDao<DatumCategoryEntity,Long>{
}
package com.mortals.xhx.module.datum.dao.ibatis;
import org.springframework.stereotype.Repository;
import com.mortals.xhx.module.datum.dao.DatumCategoryDao;
import com.mortals.xhx.module.datum.model.DatumCategoryEntity;
import java.util.Date;
import com.mortals.framework.dao.ibatis.BaseCRUDDaoMybatis;
import java.util.List;
/**
* 材料分类DaoImpl DAO接口
*
* @author zxfei
* @date 2023-06-21
*/
@Repository("datumCategoryDao")
public class DatumCategoryDaoImpl extends BaseCRUDDaoMybatis<DatumCategoryEntity,Long> implements DatumCategoryDao {
}
package com.mortals.xhx.module.datum.model;
import java.util.List;
import java.util.ArrayList;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.mortals.framework.annotation.Excel;
import com.mortals.framework.model.BaseEntityLong;
import com.mortals.xhx.module.datum.model.vo.DatumCategoryVo;
import lombok.Data;
/**
* 材料分类实体对象
*
* @author zxfei
* @date 2023-06-21
*/
@Data
public class DatumCategoryEntity extends DatumCategoryVo {
private static final long serialVersionUID = 1L;
/**
* 分类id
*/
private Long categoryId;
/**
* 分类名称
*/
private String categoryName;
/**
* 材料Id
*/
private Long materialId;
/**
* 材料名称
*/
private String materialName;
/**
* 排序字段
*/
private Integer sort;
@Override
public int hashCode() {
return this.getId().hashCode();
}
@Override
public boolean equals(Object obj) {
if (obj == null) return false;
if (obj instanceof DatumCategoryEntity) {
DatumCategoryEntity tmp = (DatumCategoryEntity) obj;
if (this.getId() == tmp.getId()) {
return true;
}
}
return false;
}
public void initAttrValue(){
this.categoryId = -1L;
this.categoryName = "";
this.materialId = -1L;
this.materialName = "";
this.sort = 0;
}
}
\ No newline at end of file
package com.mortals.xhx.module.datum.model.vo;
import com.mortals.framework.model.BaseEntityLong;
import com.mortals.xhx.module.datum.model.DatumCategoryEntity;
import java.util.ArrayList;
import java.util.List;
import lombok.Data;
import com.mortals.framework.annotation.Excel;
import java.math.BigDecimal;
import java.util.Date;
/**
* 材料分类视图对象
*
* @author zxfei
* @date 2023-06-21
*/
@Data
public class DatumCategoryVo extends BaseEntityLong {
}
\ No newline at end of file
package com.mortals.xhx.module.datum.service;
import com.mortals.framework.service.ICRUDService;
import com.mortals.xhx.module.datum.model.DatumCategoryEntity;
import com.mortals.xhx.module.datum.dao.DatumCategoryDao;
/**
* DatumCategoryService
*
* 材料分类 service接口
*
* @author zxfei
* @date 2023-06-21
*/
public interface DatumCategoryService extends ICRUDService<DatumCategoryEntity,Long>{
DatumCategoryDao getDao();
}
\ No newline at end of file
package com.mortals.xhx.module.datum.service.impl;
import org.springframework.stereotype.Service;
import com.mortals.framework.service.impl.AbstractCRUDServiceImpl;
import com.mortals.framework.exception.AppException;
import com.mortals.framework.model.Context;
import com.mortals.xhx.module.datum.dao.DatumCategoryDao;
import com.mortals.xhx.module.datum.model.DatumCategoryEntity;
import com.mortals.xhx.module.datum.service.DatumCategoryService;
import lombok.extern.slf4j.Slf4j;
/**
* DatumCategoryService
* 材料分类 service实现
*
* @author zxfei
* @date 2023-06-21
*/
@Service("datumCategoryService")
@Slf4j
public class DatumCategoryServiceImpl extends AbstractCRUDServiceImpl<DatumCategoryDao, DatumCategoryEntity, Long> implements DatumCategoryService {
}
\ No newline at end of file
package com.mortals.xhx.module.datum.web;
import com.mortals.framework.web.BaseCRUDJsonBodyMappingController;
import com.mortals.xhx.base.system.param.service.ParamService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import org.springframework.web.bind.annotation.*;
import com.mortals.framework.model.Context;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import com.mortals.framework.web.BaseCRUDJsonBodyMappingController;
import com.mortals.xhx.module.datum.model.DatumCategoryEntity;
import com.mortals.xhx.module.datum.service.DatumCategoryService;
import org.apache.commons.lang3.ArrayUtils;
import com.mortals.framework.util.StringUtils;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.stream.Collectors;
import com.alibaba.fastjson.JSONObject;
import java.util.Arrays;
import org.springframework.web.bind.annotation.*;
import org.springframework.web.multipart.MultipartFile;
import static com.mortals.framework.ap.SysConstains.*;
/**
*
* 材料分类
*
* @author zxfei
* @date 2023-06-21
*/
@RestController
@RequestMapping("datum/category")
public class DatumCategoryController extends BaseCRUDJsonBodyMappingController<DatumCategoryService,DatumCategoryEntity,Long> {
@Autowired
private ParamService paramService;
public DatumCategoryController(){
super.setModuleDesc( "材料分类");
}
@Override
protected void init(Map<String, Object> model, Context context) {
super.init(model, context);
}
}
\ No newline at end of file
package com.mortals.xhx.module.matter.dao;
import com.mortals.framework.dao.ICRUDDao;
import com.mortals.xhx.module.matter.model.MatterCategoryEntity;
import java.util.List;
/**
* 事项材料分类Dao
* 事项材料分类 DAO接口
*
* @author zxfei
* @date 2023-06-21
*/
public interface MatterCategoryDao extends ICRUDDao<MatterCategoryEntity,Long>{
}
package com.mortals.xhx.module.matter.dao.ibatis;
import org.springframework.stereotype.Repository;
import com.mortals.xhx.module.matter.dao.MatterCategoryDao;
import com.mortals.xhx.module.matter.model.MatterCategoryEntity;
import java.util.Date;
import com.mortals.framework.dao.ibatis.BaseCRUDDaoMybatis;
import java.util.List;
/**
* 事项材料分类DaoImpl DAO接口
*
* @author zxfei
* @date 2023-06-21
*/
@Repository("matterCategoryDao")
public class MatterCategoryDaoImpl extends BaseCRUDDaoMybatis<MatterCategoryEntity,Long> implements MatterCategoryDao {
}
package com.mortals.xhx.module.matter.model;
import java.util.List;
import java.util.ArrayList;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.mortals.framework.annotation.Excel;
import com.mortals.framework.model.BaseEntityLong;
import com.mortals.xhx.module.matter.model.vo.MatterCategoryVo;
import lombok.Data;
/**
* 事项材料分类实体对象
*
* @author zxfei
* @date 2023-06-21
*/
@Data
public class MatterCategoryEntity extends MatterCategoryVo {
private static final long serialVersionUID = 1L;
/**
* 分类编码
*/
private String categoryCode;
/**
* 分类名称
*/
private String categoryName;
/**
* 事项Id
*/
private Long matterId;
/**
* 事项名称
*/
private String matterName;
/**
* 排序字段
*/
private Integer sort;
@Override
public int hashCode() {
return this.getId().hashCode();
}
@Override
public boolean equals(Object obj) {
if (obj == null) return false;
if (obj instanceof MatterCategoryEntity) {
MatterCategoryEntity tmp = (MatterCategoryEntity) obj;
if (this.getId() == tmp.getId()) {
return true;
}
}
return false;
}
public void initAttrValue(){
this.categoryCode = "";
this.categoryName = "";
this.matterId = -1L;
this.matterName = "";
this.sort = 0;
}
}
\ No newline at end of file
package com.mortals.xhx.module.matter.model.vo;
import com.mortals.framework.model.BaseEntityLong;
import com.mortals.xhx.module.matter.model.MatterCategoryEntity;
import java.util.ArrayList;
import java.util.List;
import lombok.Data;
import com.mortals.framework.annotation.Excel;
import java.math.BigDecimal;
import java.util.Date;
/**
* 事项材料分类视图对象
*
* @author zxfei
* @date 2023-06-21
*/
@Data
public class MatterCategoryVo extends BaseEntityLong {
}
\ No newline at end of file
package com.mortals.xhx.module.matter.service;
import com.mortals.framework.service.ICRUDService;
import com.mortals.xhx.module.matter.model.MatterCategoryEntity;
import com.mortals.xhx.module.matter.dao.MatterCategoryDao;
/**
* MatterCategoryService
*
* 事项材料分类 service接口
*
* @author zxfei
* @date 2023-06-21
*/
public interface MatterCategoryService extends ICRUDService<MatterCategoryEntity,Long>{
MatterCategoryDao getDao();
}
\ No newline at end of file
package com.mortals.xhx.module.matter.service.impl;
import org.springframework.stereotype.Service;
import com.mortals.framework.service.impl.AbstractCRUDServiceImpl;
import com.mortals.framework.exception.AppException;
import com.mortals.framework.model.Context;
import com.mortals.xhx.module.matter.dao.MatterCategoryDao;
import com.mortals.xhx.module.matter.model.MatterCategoryEntity;
import com.mortals.xhx.module.matter.service.MatterCategoryService;
import lombok.extern.slf4j.Slf4j;
/**
* MatterCategoryService
* 事项材料分类 service实现
*
* @author zxfei
* @date 2023-06-21
*/
@Service("matterCategoryService")
@Slf4j
public class MatterCategoryServiceImpl extends AbstractCRUDServiceImpl<MatterCategoryDao, MatterCategoryEntity, Long> implements MatterCategoryService {
}
\ No newline at end of file
package com.mortals.xhx.module.matter.web;
import com.mortals.framework.web.BaseCRUDJsonBodyMappingController;
import com.mortals.xhx.base.system.param.service.ParamService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import org.springframework.web.bind.annotation.*;
import com.mortals.framework.model.Context;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import com.mortals.framework.web.BaseCRUDJsonBodyMappingController;
import com.mortals.xhx.module.matter.model.MatterCategoryEntity;
import com.mortals.xhx.module.matter.service.MatterCategoryService;
import org.apache.commons.lang3.ArrayUtils;
import com.mortals.framework.util.StringUtils;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.stream.Collectors;
import com.alibaba.fastjson.JSONObject;
import java.util.Arrays;
import org.springframework.web.bind.annotation.*;
import org.springframework.web.multipart.MultipartFile;
import static com.mortals.framework.ap.SysConstains.*;
/**
*
* 事项材料分类
*
* @author zxfei
* @date 2023-06-21
*/
@RestController
@RequestMapping("matter/category")
public class MatterCategoryController extends BaseCRUDJsonBodyMappingController<MatterCategoryService,MatterCategoryEntity,Long> {
@Autowired
private ParamService paramService;
public MatterCategoryController(){
super.setModuleDesc( "事项材料分类");
}
@Override
protected void init(Map<String, Object> model, Context context) {
super.init(model, context);
}
}
\ No newline at end of file
package com.mortals.xhx.module.xhx.dao;
import com.mortals.framework.dao.ICRUDDao;
import com.mortals.xhx.module.xhx.model.XhxDatumCategoryEntity;
import java.util.List;
/**
* 材料分类Dao
* 材料分类 DAO接口
*
* @author zxfei
* @date 2023-06-21
*/
public interface XhxDatumCategoryDao extends ICRUDDao<XhxDatumCategoryEntity,Long>{
}
package com.mortals.xhx.module.xhx.dao;
import com.mortals.framework.dao.ICRUDDao;
import com.mortals.xhx.module.xhx.model.XhxMatterCategoryEntity;
import java.util.List;
/**
* 事项材料分类Dao
* 事项材料分类 DAO接口
*
* @author zxfei
* @date 2023-06-21
*/
public interface XhxMatterCategoryDao extends ICRUDDao<XhxMatterCategoryEntity,Long>{
}
package com.mortals.xhx.module.xhx.dao.ibatis;
import org.springframework.stereotype.Repository;
import com.mortals.xhx.module.xhx.dao.XhxDatumCategoryDao;
import com.mortals.xhx.module.xhx.model.XhxDatumCategoryEntity;
import java.util.Date;
import com.mortals.framework.dao.ibatis.BaseCRUDDaoMybatis;
import java.util.List;
/**
* 材料分类DaoImpl DAO接口
*
* @author zxfei
* @date 2023-06-21
*/
@Repository("xhxDatumCategoryDao")
public class XhxDatumCategoryDaoImpl extends BaseCRUDDaoMybatis<XhxDatumCategoryEntity,Long> implements XhxDatumCategoryDao {
}
package com.mortals.xhx.module.xhx.dao.ibatis;
import org.springframework.stereotype.Repository;
import com.mortals.xhx.module.xhx.dao.XhxMatterCategoryDao;
import com.mortals.xhx.module.xhx.model.XhxMatterCategoryEntity;
import java.util.Date;
import com.mortals.framework.dao.ibatis.BaseCRUDDaoMybatis;
import java.util.List;
/**
* 事项材料分类DaoImpl DAO接口
*
* @author zxfei
* @date 2023-06-21
*/
@Repository("xhxMatterCategoryDao")
public class XhxMatterCategoryDaoImpl extends BaseCRUDDaoMybatis<XhxMatterCategoryEntity,Long> implements XhxMatterCategoryDao {
}
package com.mortals.xhx.module.xhx.model;
import java.util.List;
import java.util.ArrayList;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.mortals.framework.annotation.Excel;
import com.mortals.framework.model.BaseEntityLong;
import com.mortals.xhx.module.xhx.model.vo.XhxDatumCategoryVo;
import lombok.Data;
/**
* 材料分类实体对象
*
* @author zxfei
* @date 2023-06-21
*/
@Data
public class XhxDatumCategoryEntity extends XhxDatumCategoryVo {
private static final long serialVersionUID = 1L;
/**
* 分类id
*/
private Long categoryId;
/**
* 分类名称
*/
private String categoryName;
/**
* 材料Id
*/
private Long materialId;
/**
* 材料名称
*/
private String materialName;
/**
* 排序字段
*/
private Integer sort;
@Override
public int hashCode() {
return this.getId().hashCode();
}
@Override
public boolean equals(Object obj) {
if (obj == null) return false;
if (obj instanceof XhxDatumCategoryEntity) {
XhxDatumCategoryEntity tmp = (XhxDatumCategoryEntity) obj;
if (this.getId() == tmp.getId()) {
return true;
}
}
return false;
}
public void initAttrValue(){
this.categoryId = -1L;
this.categoryName = "";
this.materialId = -1L;
this.materialName = "";
this.sort = 0;
}
}
\ No newline at end of file
package com.mortals.xhx.module.xhx.model;
import java.util.List;
import java.util.ArrayList;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.mortals.framework.annotation.Excel;
import com.mortals.framework.model.BaseEntityLong;
import com.mortals.xhx.module.xhx.model.vo.XhxMatterCategoryVo;
import lombok.Data;
/**
* 事项材料分类实体对象
*
* @author zxfei
* @date 2023-06-21
*/
@Data
public class XhxMatterCategoryEntity extends XhxMatterCategoryVo {
private static final long serialVersionUID = 1L;
/**
* 分类编码
*/
private String categoryCode;
/**
* 分类名称
*/
private String categoryName;
/**
* 事项Id
*/
private Long matterId;
/**
* 事项名称
*/
private String matterName;
/**
* 排序字段
*/
private Integer sort;
@Override
public int hashCode() {
return this.getId().hashCode();
}
@Override
public boolean equals(Object obj) {
if (obj == null) return false;
if (obj instanceof XhxMatterCategoryEntity) {
XhxMatterCategoryEntity tmp = (XhxMatterCategoryEntity) obj;
if (this.getId() == tmp.getId()) {
return true;
}
}
return false;
}
public void initAttrValue(){
this.categoryCode = "";
this.categoryName = "";
this.matterId = -1L;
this.matterName = "";
this.sort = 0;
}
}
\ No newline at end of file
package com.mortals.xhx.module.xhx.model.vo;
import com.mortals.framework.model.BaseEntityLong;
import com.mortals.xhx.module.xhx.model.XhxDatumCategoryEntity;
import java.util.ArrayList;
import java.util.List;
import lombok.Data;
import com.mortals.framework.annotation.Excel;
import java.math.BigDecimal;
import java.util.Date;
/**
* 材料分类视图对象
*
* @author zxfei
* @date 2023-06-21
*/
@Data
public class XhxDatumCategoryVo extends BaseEntityLong {
}
\ No newline at end of file
package com.mortals.xhx.module.xhx.model.vo;
import com.mortals.framework.model.BaseEntityLong;
import com.mortals.xhx.module.xhx.model.XhxMatterCategoryEntity;
import java.util.ArrayList;
import java.util.List;
import lombok.Data;
import com.mortals.framework.annotation.Excel;
import java.math.BigDecimal;
import java.util.Date;
/**
* 事项材料分类视图对象
*
* @author zxfei
* @date 2023-06-21
*/
@Data
public class XhxMatterCategoryVo extends BaseEntityLong {
}
\ No newline at end of file
package com.mortals.xhx.module.xhx.service;
import com.mortals.framework.service.ICRUDService;
import com.mortals.xhx.module.xhx.model.XhxMatterCategoryEntity;
import com.mortals.xhx.module.xhx.dao.XhxMatterCategoryDao;
/**
* XhxMatterCategoryService
*
* 事项材料分类 service接口
*
* @author zxfei
* @date 2023-06-21
*/
public interface XhxMatterCategoryService extends ICRUDService<XhxMatterCategoryEntity,Long>{
XhxMatterCategoryDao getDao();
}
\ No newline at end of file
package com.mortals.xhx.module.xhx.service.impl;
import org.springframework.stereotype.Service;
import com.mortals.framework.service.impl.AbstractCRUDServiceImpl;
import com.mortals.framework.exception.AppException;
import com.mortals.framework.model.Context;
import com.mortals.xhx.module.xhx.dao.XhxDatumCategoryDao;
import com.mortals.xhx.module.xhx.model.XhxDatumCategoryEntity;
import com.mortals.xhx.module.xhx.service.XhxDatumCategoryService;
import lombok.extern.slf4j.Slf4j;
/**
* XhxDatumCategoryService
* 材料分类 service实现
*
* @author zxfei
* @date 2023-06-21
*/
@Service("xhxDatumCategoryService")
@Slf4j
public class XhxDatumCategoryServiceImpl extends AbstractCRUDServiceImpl<XhxDatumCategoryDao, XhxDatumCategoryEntity, Long> implements XhxDatumCategoryService {
}
\ No newline at end of file
package com.mortals.xhx.module.xhx.service.impl;
import org.springframework.stereotype.Service;
import com.mortals.framework.service.impl.AbstractCRUDServiceImpl;
import com.mortals.framework.exception.AppException;
import com.mortals.framework.model.Context;
import com.mortals.xhx.module.xhx.dao.XhxMatterCategoryDao;
import com.mortals.xhx.module.xhx.model.XhxMatterCategoryEntity;
import com.mortals.xhx.module.xhx.service.XhxMatterCategoryService;
import lombok.extern.slf4j.Slf4j;
/**
* XhxMatterCategoryService
* 事项材料分类 service实现
*
* @author zxfei
* @date 2023-06-21
*/
@Service("xhxMatterCategoryService")
@Slf4j
public class XhxMatterCategoryServiceImpl extends AbstractCRUDServiceImpl<XhxMatterCategoryDao, XhxMatterCategoryEntity, Long> implements XhxMatterCategoryService {
}
\ No newline at end of file
package com.mortals.xhx.module.xhx.web;
import com.mortals.framework.web.BaseCRUDJsonBodyMappingController;
import com.mortals.xhx.base.system.param.service.ParamService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import org.springframework.web.bind.annotation.*;
import com.mortals.framework.model.Context;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import com.mortals.framework.web.BaseCRUDJsonBodyMappingController;
import com.mortals.xhx.module.xhx.model.XhxDatumCategoryEntity;
import com.mortals.xhx.module.xhx.service.XhxDatumCategoryService;
import org.apache.commons.lang3.ArrayUtils;
import com.mortals.framework.util.StringUtils;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.stream.Collectors;
import com.alibaba.fastjson.JSONObject;
import java.util.Arrays;
import org.springframework.web.bind.annotation.*;
import org.springframework.web.multipart.MultipartFile;
import static com.mortals.framework.ap.SysConstains.*;
/**
*
* 材料分类
*
* @author zxfei
* @date 2023-06-21
*/
@RestController
@RequestMapping("xhx/datum/category")
public class XhxDatumCategoryController extends BaseCRUDJsonBodyMappingController<XhxDatumCategoryService,XhxDatumCategoryEntity,Long> {
@Autowired
private ParamService paramService;
public XhxDatumCategoryController(){
super.setModuleDesc( "材料分类");
}
@Override
protected void init(Map<String, Object> model, Context context) {
super.init(model, context);
}
}
\ No newline at end of file
package com.mortals.xhx.module.xhx.web;
import com.mortals.framework.web.BaseCRUDJsonBodyMappingController;
import com.mortals.xhx.base.system.param.service.ParamService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import org.springframework.web.bind.annotation.*;
import com.mortals.framework.model.Context;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import com.mortals.framework.web.BaseCRUDJsonBodyMappingController;
import com.mortals.xhx.module.xhx.model.XhxMatterCategoryEntity;
import com.mortals.xhx.module.xhx.service.XhxMatterCategoryService;
import org.apache.commons.lang3.ArrayUtils;
import com.mortals.framework.util.StringUtils;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.stream.Collectors;
import com.alibaba.fastjson.JSONObject;
import java.util.Arrays;
import org.springframework.web.bind.annotation.*;
import org.springframework.web.multipart.MultipartFile;
import static com.mortals.framework.ap.SysConstains.*;
/**
*
* 事项材料分类
*
* @author zxfei
* @date 2023-06-21
*/
@RestController
@RequestMapping("xhx/matter/category")
public class XhxMatterCategoryController extends BaseCRUDJsonBodyMappingController<XhxMatterCategoryService,XhxMatterCategoryEntity,Long> {
@Autowired
private ParamService paramService;
public XhxMatterCategoryController(){
super.setModuleDesc( "事项材料分类");
}
@Override
protected void init(Map<String, Object> model, Context context) {
super.init(model, context);
}
}
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment