Commit 3e46a91d authored by 廖旭伟's avatar 廖旭伟

达州一窗服务知识库系统

parent 3e87e036
package com.mortals.xhx.module.window.dao;
import com.mortals.framework.dao.ICRUDDao;
import com.mortals.xhx.module.window.model.WindowBusinessEntity;
/**
* 窗口业务Dao
* 窗口业务 DAO接口
*
* @author zxfei
* @date 2022-01-12
*/
public interface WindowBusinessDao extends ICRUDDao<WindowBusinessEntity,Long>{
}
package com.mortals.xhx.module.window.dao;
import com.mortals.framework.dao.ICRUDDao;
import com.mortals.xhx.module.window.model.WindowEntity;
/**
* 站点部门窗口Dao
* 站点部门窗口 DAO接口
*
* @author zxfei
* @date 2022-01-12
*/
public interface WindowDao extends ICRUDDao<WindowEntity,Long>{
}
package com.mortals.xhx.module.window.dao;
import com.mortals.framework.dao.ICRUDDao;
import com.mortals.xhx.module.window.model.WindowMatterEntity;
/**
* 窗口事项Dao
* 窗口事项 DAO接口
*
* @author zxfei
* @date 2022-01-12
*/
public interface WindowMatterDao extends ICRUDDao<WindowMatterEntity,Long>{
}
package com.mortals.xhx.module.window.dao.ibatis;
import com.mortals.framework.dao.ibatis.BaseCRUDDaoMybatis;
import com.mortals.xhx.module.window.dao.WindowBusinessDao;
import com.mortals.xhx.module.window.model.WindowBusinessEntity;
import org.springframework.stereotype.Repository;
/**
* 窗口业务DaoImpl DAO接口
*
* @author zxfei
* @date 2022-01-12
*/
@Repository("windowBusinessDao")
public class WindowBusinessDaoImpl extends BaseCRUDDaoMybatis<WindowBusinessEntity,Long> implements WindowBusinessDao {
}
package com.mortals.xhx.module.window.dao.ibatis;
import com.mortals.framework.dao.ibatis.BaseCRUDDaoMybatis;
import com.mortals.xhx.module.window.dao.WindowDao;
import com.mortals.xhx.module.window.model.WindowEntity;
import org.springframework.stereotype.Repository;
/**
* 站点部门窗口DaoImpl DAO接口
*
* @author zxfei
* @date 2022-01-12
*/
@Repository("windowDao")
public class WindowDaoImpl extends BaseCRUDDaoMybatis<WindowEntity,Long> implements WindowDao {
}
package com.mortals.xhx.module.window.dao.ibatis;
import com.mortals.framework.dao.ibatis.BaseCRUDDaoMybatis;
import com.mortals.xhx.module.window.dao.WindowMatterDao;
import com.mortals.xhx.module.window.model.WindowMatterEntity;
import org.springframework.stereotype.Repository;
/**
* 窗口事项DaoImpl DAO接口
*
* @author zxfei
* @date 2022-01-12
*/
@Repository("windowMatterDao")
public class WindowMatterDaoImpl extends BaseCRUDDaoMybatis<WindowMatterEntity,Long> implements WindowMatterDao {
}
package com.mortals.xhx.module.window.model;
import com.mortals.framework.annotation.Excel;
import com.mortals.xhx.module.window.model.vo.WindowBusinessVo;
/**
* 窗口业务实体对象
*
* @author zxfei
* @date 2022-01-20
*/
public class WindowBusinessEntity extends WindowBusinessVo {
private static final long serialVersionUID = 1L;
/**
* 窗口id
*/
private Long windowId;
/**
* 窗口名称
*/
@Excel(name = "窗口名称")
private String windowName;
/**
* 站点业务ID
*/
private Long siteBusinessId;
/**
* 业务名称
*/
@Excel(name = "业务名称")
private String businessName;
public WindowBusinessEntity(){}
/**
* 获取 窗口id
* @return Long
*/
public Long getWindowId(){
return windowId;
}
/**
* 设置 窗口id
* @param windowId
*/
public void setWindowId(Long windowId){
this.windowId = windowId;
}
/**
* 获取 窗口名称
* @return String
*/
public String getWindowName(){
return windowName;
}
/**
* 设置 窗口名称
* @param windowName
*/
public void setWindowName(String windowName){
this.windowName = windowName;
}
/**
* 获取 站点业务ID
* @return Long
*/
public Long getSiteBusinessId(){
return siteBusinessId;
}
/**
* 设置 站点业务ID
* @param siteBusinessId
*/
public void setSiteBusinessId(Long siteBusinessId){
this.siteBusinessId = siteBusinessId;
}
/**
* 获取 业务名称
* @return String
*/
public String getBusinessName(){
return businessName;
}
/**
* 设置 业务名称
* @param businessName
*/
public void setBusinessName(String businessName){
this.businessName = businessName;
}
@Override
public int hashCode() {
return this.getId().hashCode();
}
@Override
public boolean equals(Object obj) {
if (obj == null) return false;
if (obj instanceof WindowBusinessEntity) {
WindowBusinessEntity tmp = (WindowBusinessEntity) obj;
if (this.getId() == tmp.getId()) {
return true;
}
}
return false;
}
public String toString(){
StringBuilder sb = new StringBuilder("");
sb.append(",windowId:").append(getWindowId());
sb.append(",windowName:").append(getWindowName());
sb.append(",siteBusinessId:").append(getSiteBusinessId());
sb.append(",businessName:").append(getBusinessName());
return sb.toString();
}
public void initAttrValue(){
this.windowId = null;
this.windowName = null;
this.siteBusinessId = null;
this.businessName = null;
}
}
\ No newline at end of file
package com.mortals.xhx.module.window.model;
import com.mortals.xhx.module.window.model.vo.WindowVo;
/**
* 站点部门窗口实体对象
*
* @author zxfei
* @date 2023-02-21
*/
public class WindowEntity extends WindowVo {
private static final long serialVersionUID = 1L;
/**
* 站点ID
*/
private Long siteId;
/**
* 站点名称
*/
private String siteName;
/**
* 部门ID
*/
private Long deptId;
/**
* 部门名称
*/
private String deptName;
/**
* 窗口名称
*/
private String name;
/**
* 英语窗口名
*/
private String englishName;
/**
* 区域
*/
private String region;
/**
* 英语区域
*/
private String englishRegion;
/**
* 窗口编号
*/
private String fromnum;
/**
* 红旗窗口 (1.是,0.否)
*/
private Integer hongqi;
/**
* 无人值守(1.是,)
*/
private Integer duty;
/**
* 显示内容
*/
private String dutyContent;
/**
* 显示英文
*/
private String dutyEnglish;
/**
* 备注
*/
private String summary;
/**
* 楼栋
*/
private Integer building;
/**
* 楼层
*/
private Integer level;
public WindowEntity() {
}
/**
* 获取 站点ID
*
* @return Long
*/
public Long getSiteId() {
return siteId;
}
/**
* 设置 站点ID
*
* @param siteId
*/
public void setSiteId(Long siteId) {
this.siteId = siteId;
}
/**
* 获取 站点名称
*
* @return String
*/
public String getSiteName() {
return siteName;
}
/**
* 设置 站点名称
*
* @param siteName
*/
public void setSiteName(String siteName) {
this.siteName = siteName;
}
/**
* 获取 部门ID
*
* @return Long
*/
public Long getDeptId() {
return deptId;
}
/**
* 设置 部门ID
*
* @param deptId
*/
public void setDeptId(Long deptId) {
this.deptId = deptId;
}
/**
* 获取 部门名称
*
* @return String
*/
public String getDeptName() {
return deptName;
}
/**
* 设置 部门名称
*
* @param deptName
*/
public void setDeptName(String deptName) {
this.deptName = deptName;
}
/**
* 获取 窗口名称
*
* @return String
*/
public String getName() {
return name;
}
/**
* 设置 窗口名称
*
* @param name
*/
public void setName(String name) {
this.name = name;
}
/**
* 获取 英语窗口名
*
* @return String
*/
public String getEnglishName() {
return englishName;
}
/**
* 设置 英语窗口名
*
* @param englishName
*/
public void setEnglishName(String englishName) {
this.englishName = englishName;
}
/**
* 获取 区域
*
* @return String
*/
public String getRegion() {
return region;
}
/**
* 设置 区域
*
* @param region
*/
public void setRegion(String region) {
this.region = region;
}
/**
* 获取 英语区域
*
* @return String
*/
public String getEnglishRegion() {
return englishRegion;
}
/**
* 设置 英语区域
*
* @param englishRegion
*/
public void setEnglishRegion(String englishRegion) {
this.englishRegion = englishRegion;
}
/**
* 获取 窗口编号
*
* @return String
*/
public String getFromnum() {
return fromnum;
}
/**
* 设置 窗口编号
*
* @param fromnum
*/
public void setFromnum(String fromnum) {
this.fromnum = fromnum;
}
/**
* 获取 红旗窗口 (1.是,0.否)
*
* @return Integer
*/
public Integer getHongqi() {
return hongqi;
}
/**
* 设置 红旗窗口 (1.是,0.否)
*
* @param hongqi
*/
public void setHongqi(Integer hongqi) {
this.hongqi = hongqi;
}
/**
* 获取 无人值守(1.是,)
*
* @return Integer
*/
public Integer getDuty() {
return duty;
}
/**
* 设置 无人值守(1.是,)
*
* @param duty
*/
public void setDuty(Integer duty) {
this.duty = duty;
}
/**
* 获取 显示内容
*
* @return String
*/
public String getDutyContent() {
return dutyContent;
}
/**
* 设置 显示内容
*
* @param dutyContent
*/
public void setDutyContent(String dutyContent) {
this.dutyContent = dutyContent;
}
/**
* 获取 显示英文
*
* @return String
*/
public String getDutyEnglish() {
return dutyEnglish;
}
/**
* 设置 显示英文
*
* @param dutyEnglish
*/
public void setDutyEnglish(String dutyEnglish) {
this.dutyEnglish = dutyEnglish;
}
/**
* 获取 备注
*
* @return String
*/
public String getSummary() {
return summary;
}
/**
* 设置 备注
*
* @param summary
*/
public void setSummary(String summary) {
this.summary = summary;
}
/**
* 获取 楼栋
*
* @return Integer
*/
public Integer getBuilding() {
return building;
}
/**
* 设置 楼栋
*
* @param building
*/
public void setBuilding(Integer building) {
this.building = building;
}
/**
* 获取 楼层
*
* @return Integer
*/
public Integer getLevel() {
return level;
}
/**
* 设置 楼层
*
* @param level
*/
public void setLevel(Integer level) {
this.level = level;
}
@Override
public int hashCode() {
return this.getId().hashCode();
}
@Override
public boolean equals(Object obj) {
if (obj == null) return false;
if (obj instanceof WindowEntity) {
WindowEntity tmp = (WindowEntity) obj;
if (this.getId() == tmp.getId()) {
return true;
}
}
return false;
}
public String toString() {
StringBuilder sb = new StringBuilder("");
sb.append(",siteId:").append(getSiteId());
sb.append(",siteName:").append(getSiteName());
sb.append(",deptId:").append(getDeptId());
sb.append(",deptName:").append(getDeptName());
sb.append(",name:").append(getName());
sb.append(",englishName:").append(getEnglishName());
sb.append(",region:").append(getRegion());
sb.append(",englishRegion:").append(getEnglishRegion());
sb.append(",fromnum:").append(getFromnum());
sb.append(",hongqi:").append(getHongqi());
sb.append(",duty:").append(getDuty());
sb.append(",dutyContent:").append(getDutyContent());
sb.append(",dutyEnglish:").append(getDutyEnglish());
sb.append(",summary:").append(getSummary());
sb.append(",building:").append(getBuilding());
sb.append(",level:").append(getLevel());
return sb.toString();
}
public void initAttrValue() {
this.siteId = 0L;
this.siteName = "";
this.deptId = null;
this.deptName = "";
this.name = "";
this.englishName = "";
this.region = "";
this.englishRegion = "";
this.fromnum = "";
this.hongqi = 1;
this.duty = 0;
this.dutyContent = "";
this.dutyEnglish = "";
this.summary = "";
this.building = 1;
this.level = 1;
}
}
\ No newline at end of file
package com.mortals.xhx.module.window.model;
import com.mortals.xhx.module.window.model.vo.WindowMatterVo;
/**
* 窗口事项实体对象
*
* @author zxfei
* @date 2022-11-23
*/
public class WindowMatterEntity extends WindowMatterVo {
private static final long serialVersionUID = 1L;
/**
* 窗口ID
*/
private Long windowId;
/**
* 窗口名称
*/
private String windowName;
/**
* 站点事项ID
*/
private Long siteMatterId;
/**
* 事项名称
*/
private String matterName;
/**
* 部门ID
*/
private Long deptId;
/**
* 部门编码
*/
private String deptCode;
/**
* 部门名称
*/
private String deptName;
/**
* 是否显示 (1.是,0.否)
*/
private Integer isShow;
/**
* 排序
*/
private Integer sort;
public WindowMatterEntity(){}
/**
* 获取 窗口ID
* @return Long
*/
public Long getWindowId(){
return windowId;
}
/**
* 设置 窗口ID
* @param windowId
*/
public void setWindowId(Long windowId){
this.windowId = windowId;
}
/**
* 获取 窗口名称
* @return String
*/
public String getWindowName(){
return windowName;
}
/**
* 设置 窗口名称
* @param windowName
*/
public void setWindowName(String windowName){
this.windowName = windowName;
}
/**
* 获取 站点事项ID
* @return Long
*/
public Long getSiteMatterId(){
return siteMatterId;
}
/**
* 设置 站点事项ID
* @param siteMatterId
*/
public void setSiteMatterId(Long siteMatterId){
this.siteMatterId = siteMatterId;
}
/**
* 获取 事项名称
* @return String
*/
public String getMatterName(){
return matterName;
}
/**
* 设置 事项名称
* @param matterName
*/
public void setMatterName(String matterName){
this.matterName = matterName;
}
/**
* 获取 部门ID
* @return Long
*/
public Long getDeptId(){
return deptId;
}
/**
* 设置 部门ID
* @param deptId
*/
public void setDeptId(Long deptId){
this.deptId = deptId;
}
/**
* 获取 部门编码
* @return String
*/
public String getDeptCode(){
return deptCode;
}
/**
* 设置 部门编码
* @param deptCode
*/
public void setDeptCode(String deptCode){
this.deptCode = deptCode;
}
/**
* 获取 部门名称
* @return String
*/
public String getDeptName(){
return deptName;
}
/**
* 设置 部门名称
* @param deptName
*/
public void setDeptName(String deptName){
this.deptName = deptName;
}
/**
* 获取 是否显示 (1.是,0.否)
* @return Integer
*/
public Integer getIsShow(){
return isShow;
}
/**
* 设置 是否显示 (1.是,0.否)
* @param isShow
*/
public void setIsShow(Integer isShow){
this.isShow = isShow;
}
/**
* 获取 排序
* @return Integer
*/
public Integer getSort(){
return sort;
}
/**
* 设置 排序
* @param sort
*/
public void setSort(Integer sort){
this.sort = sort;
}
@Override
public int hashCode() {
return this.getId().hashCode();
}
@Override
public boolean equals(Object obj) {
if (obj == null) return false;
if (obj instanceof WindowMatterEntity) {
WindowMatterEntity tmp = (WindowMatterEntity) obj;
if (this.getId() == tmp.getId()) {
return true;
}
}
return false;
}
public String toString(){
StringBuilder sb = new StringBuilder("");
sb.append(",windowId:").append(getWindowId());
sb.append(",windowName:").append(getWindowName());
sb.append(",siteMatterId:").append(getSiteMatterId());
sb.append(",matterName:").append(getMatterName());
sb.append(",deptId:").append(getDeptId());
sb.append(",deptCode:").append(getDeptCode());
sb.append(",deptName:").append(getDeptName());
sb.append(",isShow:").append(getIsShow());
sb.append(",sort:").append(getSort());
return sb.toString();
}
public void initAttrValue(){
this.windowId = null;
this.windowName = "";
this.siteMatterId = null;
this.matterName = "";
this.deptId = null;
this.deptCode = "";
this.deptName = "";
this.isShow = 1;
this.sort = 0;
}
}
\ No newline at end of file
package com.mortals.xhx.module.window.model.vo;
import com.mortals.framework.model.BaseEntityLong;
import lombok.Data;
import java.util.List;
/**
* 窗口业务视图对象
*
* @author zxfei
* @date 2022-01-12
*/
@Data
public class WindowBusinessVo extends BaseEntityLong {
/**
* 站点业务IDs
*/
private String siteBusinessIds;
/**
* 窗口编号
*/
private String fromnum;
/** 窗口id列表 */
private List <Long> windowIdList;
}
\ No newline at end of file
package com.mortals.xhx.module.window.model.vo;
import com.mortals.framework.model.BaseEntityLong;
import lombok.Data;
/**
* 窗口事项视图对象
*
* @author zxfei
* @date 2022-01-12
*/
@Data
public class WindowMatterVo extends BaseEntityLong {
}
\ No newline at end of file
package com.mortals.xhx.module.window.model.vo;
import com.mortals.framework.model.BaseEntityLong;
import com.mortals.xhx.module.window.model.WindowBusinessEntity;
import com.mortals.xhx.module.window.model.WindowMatterEntity;
import com.mortals.xhx.module.workman.model.WorkmanEntity;
import lombok.Data;
import java.util.List;
/**
* 站点部门窗口视图对象
*
* @author zxfei
* @date 2022-01-12
*/
@Data
public class WindowVo extends BaseEntityLong {
private List <Long> idList;
private List<WorkmanEntity> workmanList;
private List<WindowBusinessEntity> windowBusinessList;
private List<WindowMatterEntity> windowMatterList;
}
\ No newline at end of file
package com.mortals.xhx.module.window.service;
import com.mortals.framework.service.ICRUDService;
import com.mortals.xhx.module.window.model.WindowBusinessEntity;
/**
* WindowBusinessService
*
* 窗口业务 service接口
*
* @author zxfei
* @date 2022-01-12
*/
public interface WindowBusinessService extends ICRUDService<WindowBusinessEntity,Long>{
}
\ No newline at end of file
package com.mortals.xhx.module.window.service;
import com.mortals.framework.service.ICRUDService;
import com.mortals.xhx.module.window.dao.WindowMatterDao;
import com.mortals.xhx.module.window.model.WindowMatterEntity;
/**
* WindowMatterService
* <p>
* 窗口事项 service接口
*
* @author zxfei
* @date 2022-01-12
*/
public interface WindowMatterService extends ICRUDService<WindowMatterEntity, Long> {
WindowMatterDao getDao();
}
\ No newline at end of file
package com.mortals.xhx.module.window.service;
import com.mortals.framework.model.Context;
import com.mortals.framework.service.ICRUDCacheService;
import com.mortals.xhx.module.window.dao.WindowDao;
import com.mortals.xhx.module.window.model.WindowEntity;
/**
* WindowService
* <p>
* 站点部门窗口 service接口
*
* @author zxfei
* @date 2022-01-12
*/
public interface WindowService extends ICRUDCacheService<WindowEntity, Long> {
WindowDao getDao();
/**
* 添加业务到窗口
*
* @param businessIds
* @param windowId
* @param context
*/
void addBusinessToWindow(String businessIds, Long windowId, Context context);
}
\ No newline at end of file
package com.mortals.xhx.module.window.service.impl;
import com.alibaba.fastjson.JSON;
import com.alibaba.fastjson.serializer.SerializerFeature;
import com.mortals.framework.ap.GlobalSysInfo;
import com.mortals.framework.exception.AppException;
import com.mortals.framework.model.Context;
import com.mortals.framework.model.PageInfo;
import com.mortals.framework.service.impl.AbstractCRUDServiceImpl;
import com.mortals.framework.util.HttpUtil;
import com.mortals.xhx.module.window.dao.WindowBusinessDao;
import com.mortals.xhx.module.window.model.WindowBusinessEntity;
import com.mortals.xhx.module.window.model.WindowEntity;
import com.mortals.xhx.module.window.model.WindowQuery;
import com.mortals.xhx.module.window.service.WindowBusinessService;
import com.mortals.xhx.module.window.service.WindowService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.util.ObjectUtils;
import java.util.*;
import static com.mortals.framework.util.HttpUtil.HEADER_CONTENT_TYPE;
import static com.mortals.xhx.common.key.Constant.PARAM_SERVER_PHP_HTTP_URL;
/**
* WindowBusinessService
* 窗口业务 service实现
*
* @author zxfei
* @date 2022-01-12
*/
@Service("windowBusinessService")
@Slf4j
public class WindowBusinessServiceImpl extends AbstractCRUDServiceImpl<WindowBusinessDao, WindowBusinessEntity, Long> implements WindowBusinessService {
@Autowired
private WindowService windowService;
@Override
protected void findAfter(WindowBusinessEntity entity, PageInfo pageInfo, Context context, List<WindowBusinessEntity> list) throws AppException {
Map<Long, WindowEntity> collect = windowService.findToMap(new WindowQuery(), context);
Iterator iterator = list.iterator();
while (iterator.hasNext()) {
WindowBusinessEntity item = (WindowBusinessEntity) iterator.next();
if (!ObjectUtils.isEmpty(item.getWindowId()) && !ObjectUtils.isEmpty(collect.get(item.getWindowId()))) {
item.setFromnum(collect.get(item.getWindowId()).getFromnum());
} else {
iterator.remove();
}
}
super.findAfter(entity, pageInfo, context, list);
}
/**
* @param ids
* @param context
* @throws AppException
*/
@Override
protected void removeBefore(Long[] ids, Context context) throws AppException {
Arrays.asList(ids).forEach(id -> {
WindowBusinessEntity windowBusinessEntity = this.get(id, context);
pushChangeMsg(windowBusinessEntity);
});
super.removeBefore(ids, context);
}
/**
* @param entity
* @param context
* @throws AppException
*/
@Override
protected void saveAfter(WindowBusinessEntity entity, Context context) throws AppException {
//通知php更新
pushChangeMsg(entity);
super.saveAfter(entity, context);
}
/**
* @param entity
* @param context
* @throws AppException
*/
@Override
protected void updateAfter(WindowBusinessEntity entity, Context context) throws AppException {
pushChangeMsg(entity);
super.updateAfter(entity, context);
}
private void pushChangeMsg(WindowBusinessEntity entity) {
String phpUrl = GlobalSysInfo.getParamValue(PARAM_SERVER_PHP_HTTP_URL, "http://172.15.28.116:8090");
phpUrl += "/api/window/winNameChange";
HashMap<String, Object> paramsMap = new HashMap<>();
paramsMap.put("windowid", entity.getWindowId());
paramsMap.put("typeinfo", 1);
String resp = null;
try {
Map<String, String> header = new HashMap<>();
header.put(HEADER_CONTENT_TYPE, "application/json");
log.info("\n thirdPartyUrl=>{} \n reqbody=>{} ", phpUrl, JSON.toJSONString(paramsMap));
resp = HttpUtil.doPost(phpUrl, header, JSON.toJSONString(paramsMap, SerializerFeature.WriteMapNullValue));
log.info("thirdPartyUrl =>resp:{}", resp);
} catch (Exception e) {
log.error("异常:", e);
}
}
}
\ No newline at end of file
package com.mortals.xhx.module.window.web;
import com.mortals.framework.web.BaseCRUDJsonBodyMappingController;
import com.mortals.xhx.base.system.param.service.ParamService;
import com.mortals.xhx.module.window.model.WindowBusinessEntity;
import com.mortals.xhx.module.window.service.WindowBusinessService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
/**
* 窗口业务
*
* @author zxfei
* @date 2022-01-20
*/
@RestController
@RequestMapping("window/business")
public class WindowBusinessController extends BaseCRUDJsonBodyMappingController<WindowBusinessService, WindowBusinessEntity, Long> {
@Autowired
private ParamService paramService;
public WindowBusinessController() {
super.setFormClass(WindowBusinessForm.class);
super.setModuleDesc("窗口业务");
}
}
\ No newline at end of file
package com.mortals.xhx.module.window.web;
import com.mortals.framework.web.BaseCRUDFormLong;
import com.mortals.xhx.module.window.model.WindowBusinessEntity;
import com.mortals.xhx.module.window.model.WindowBusinessQuery;
/**
* WindowBusiness
*
* 窗口业务 Form
*
* @author zxfei
* @date 2022-01-12
*/
public class WindowBusinessForm extends BaseCRUDFormLong<WindowBusinessEntity> {
private WindowBusinessEntity entity = new WindowBusinessEntity();
private WindowBusinessQuery query = new WindowBusinessQuery();
public WindowBusinessForm(){
}
@Override
public WindowBusinessEntity getEntity() {
return entity;
}
public void setWindowBusiness(WindowBusinessEntity entity) {
this.entity = entity;
}
@Override
public WindowBusinessQuery getQuery() {
return query;
}
public void setQuery(WindowBusinessQuery query) {
this.query = query;
}
}
\ No newline at end of file
package com.mortals.xhx.module.window.web;
import com.mortals.framework.web.BaseCRUDFormLong;
import com.mortals.xhx.module.window.model.WindowEntity;
import com.mortals.xhx.module.window.model.WindowQuery;
/**
* Window
*
* 站点部门窗口 Form
*
* @author zxfei
* @date 2022-01-12
*/
public class WindowForm extends BaseCRUDFormLong<WindowEntity> {
private WindowEntity entity = new WindowEntity();
private WindowQuery query = new WindowQuery();
public WindowForm(){
}
@Override
public WindowEntity getEntity() {
return entity;
}
public void setWindow(WindowEntity entity) {
this.entity = entity;
}
@Override
public WindowQuery getQuery() {
return query;
}
public void setQuery(WindowQuery query) {
this.query = query;
}
}
\ 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