修改bug

This commit is contained in:
yangjun 2023-05-22 23:28:14 +08:00
parent 71ec8fee00
commit 53467ee446
30 changed files with 1605 additions and 3 deletions

View File

@ -0,0 +1,70 @@
package org.jeecg.modules.kc.grab.SynchronizationService;
import cn.hutool.core.bean.BeanUtil;
import lombok.extern.slf4j.Slf4j;
import org.apache.commons.compress.utils.Lists;
import org.jeecg.modules.kc.grab.SynchronizationService.base.BaseSync;
import org.jeecg.modules.kc.grab.exports.entity.TJwJsjbxx;
import org.jeecg.modules.kc.grab.exports.entity.TJwKckb;
import org.jeecg.modules.kc.grab.exports.service.ITJwJsjbxxService;
import org.jeecg.modules.kc.grab.exports.service.ITJwKckbService;
import org.jeecg.modules.kc.grab.imports.entity.Xxhbjsjbxx;
import org.jeecg.modules.kc.grab.imports.entity.Xxhbkckb;
import org.jeecg.modules.kc.grab.imports.entity.Xxhbsynclog;
import org.jeecg.modules.kc.grab.imports.service.IXxhbjsjbxxService;
import org.jeecg.modules.kc.grab.imports.service.IXxhbkckbService;
import org.quartz.JobExecutionContext;
import org.springframework.beans.factory.annotation.Autowired;
import java.util.List;
import java.util.Map;
@Slf4j
public class SyncTJwJsjbxxb extends BaseSync {
@Autowired
private ITJwJsjbxxService expService;
@Autowired
private IXxhbjsjbxxService impService;
/**
* 若参数变量名修改 QuartzJobController中也需对应修改
*/
@Override
public void execute(JobExecutionContext jobExecutionContext) {
start();
run(getParamMap());
end();
}
/**
* 有参定时任务实现
* @param param
*/
public void run(Map<String, Object> param){
//查询数据
List<TJwJsjbxx> inDataList = expService.list();
List<Xxhbjsjbxx> outDataList = Lists.newArrayList();
//清洗数据
inDataList.forEach(x -> outDataList.add(BeanUtil.toBean(x, Xxhbjsjbxx.class)));
//保存到胃
impService.syncList(outDataList);
Xxhbsynclog xxhbsynclog = new Xxhbsynclog();
xxhbsynclog.setSyncRowNum(String.valueOf(outDataList.size()));
saveLog(xxhbsynclog, Xxhbkckb.class);
}
/**
* 无参定时任务实现
*/
public void run(){
run(null);
}
}

View File

@ -0,0 +1,67 @@
package org.jeecg.modules.kc.grab.SynchronizationService;
import cn.hutool.core.bean.BeanUtil;
import lombok.extern.slf4j.Slf4j;
import org.apache.commons.compress.utils.Lists;
import org.jeecg.modules.kc.grab.SynchronizationService.base.BaseSync;
import org.jeecg.modules.kc.grab.exports.entity.TJwJxljbxx;
import org.jeecg.modules.kc.grab.exports.service.ITJwJxljbxxService;
import org.jeecg.modules.kc.grab.imports.entity.Xxhbjxljbxx;
import org.jeecg.modules.kc.grab.imports.entity.Xxhbkckb;
import org.jeecg.modules.kc.grab.imports.entity.Xxhbsynclog;
import org.jeecg.modules.kc.grab.imports.service.IXxhbjxljbxxService;
import org.quartz.JobExecutionContext;
import org.springframework.beans.factory.annotation.Autowired;
import java.util.List;
import java.util.Map;
@Slf4j
public class SyncTJwJxljbxxb extends BaseSync {
@Autowired
private ITJwJxljbxxService expService;
@Autowired
private IXxhbjxljbxxService impService;
/**
* 若参数变量名修改 QuartzJobController中也需对应修改
*/
@Override
public void execute(JobExecutionContext jobExecutionContext) {
start();
run(getParamMap());
end();
}
/**
* 有参定时任务实现
* @param param
*/
public void run(Map<String, Object> param){
//查询数据
List<TJwJxljbxx> inDataList = expService.list();
List<Xxhbjxljbxx> outDataList = Lists.newArrayList();
//清洗数据
inDataList.forEach(x -> outDataList.add(BeanUtil.toBean(x, Xxhbjxljbxx.class)));
//保存到胃
impService.syncList(outDataList);
Xxhbsynclog xxhbsynclog = new Xxhbsynclog();
xxhbsynclog.setSyncRowNum(String.valueOf(outDataList.size()));
saveLog(xxhbsynclog, Xxhbkckb.class);
}
/**
* 无参定时任务实现
*/
public void run(){
run(null);
}
}

View File

@ -0,0 +1,178 @@
package org.jeecg.modules.kc.grab.exports.controller;
import java.util.Arrays;
import java.util.List;
import java.util.Map;
import java.util.stream.Collectors;
import java.io.IOException;
import java.io.UnsupportedEncodingException;
import java.net.URLDecoder;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import org.jeecg.common.api.vo.Result;
import org.jeecg.common.system.query.QueryGenerator;
import org.jeecg.common.util.oConvertUtils;
import org.jeecg.modules.kc.grab.exports.entity.TJwJsjbxx;
import org.jeecg.modules.kc.grab.exports.service.ITJwJsjbxxService;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import lombok.extern.slf4j.Slf4j;
import org.jeecgframework.poi.excel.ExcelImportUtil;
import org.jeecgframework.poi.excel.def.NormalExcelConstants;
import org.jeecgframework.poi.excel.entity.ExportParams;
import org.jeecgframework.poi.excel.entity.ImportParams;
import org.jeecgframework.poi.excel.view.JeecgEntityExcelView;
import org.jeecg.common.system.base.controller.JeecgController;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;
import org.springframework.web.multipart.MultipartFile;
import org.springframework.web.multipart.MultipartHttpServletRequest;
import org.springframework.web.servlet.ModelAndView;
import com.alibaba.fastjson.JSON;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.jeecg.common.aspect.annotation.AutoLog;
import org.apache.shiro.authz.annotation.RequiresPermissions;
/**
* @Description: TJwJsjbxx
* @Author: jeecg-boot
* @Date: 2023-05-22
* @Version: V1.0
*/
@Api(tags="TJwJsjbxx")
@RestController
@RequestMapping("/TJwJsjbxx/TJwJsjbxx")
@Slf4j
public class TJwJsjbxxController extends JeecgController<TJwJsjbxx, ITJwJsjbxxService> {
@Autowired
private ITJwJsjbxxService TJwJsjbxxService;
/**
* 分页列表查询
*
* @param TJwJsjbxx
* @param pageNo
* @param pageSize
* @param req
* @return
*/
//@AutoLog(value = "TJwJsjbxx-分页列表查询")
@ApiOperation(value="TJwJsjbxx-分页列表查询", notes="TJwJsjbxx-分页列表查询")
@GetMapping(value = "/list")
public Result<IPage<TJwJsjbxx>> queryPageList(TJwJsjbxx TJwJsjbxx,
@RequestParam(name="pageNo", defaultValue="1") Integer pageNo,
@RequestParam(name="pageSize", defaultValue="10") Integer pageSize,
HttpServletRequest req) {
QueryWrapper<TJwJsjbxx> queryWrapper = QueryGenerator.initQueryWrapper(TJwJsjbxx, req.getParameterMap());
Page<TJwJsjbxx> page = new Page<TJwJsjbxx>(pageNo, pageSize);
IPage<TJwJsjbxx> pageList = TJwJsjbxxService.page(page, queryWrapper);
return Result.OK(pageList);
}
/**
* 添加
*
* @param TJwJsjbxx
* @return
*/
@AutoLog(value = "TJwJsjbxx-添加")
@ApiOperation(value="TJwJsjbxx-添加", notes="TJwJsjbxx-添加")
@RequiresPermissions("TJwJsjbxx:TJwJsjbxx:add")
@PostMapping(value = "/add")
public Result<String> add(@RequestBody TJwJsjbxx TJwJsjbxx) {
TJwJsjbxxService.save(TJwJsjbxx);
return Result.OK("添加成功!");
}
/**
* 编辑
*
* @param TJwJsjbxx
* @return
*/
@AutoLog(value = "TJwJsjbxx-编辑")
@ApiOperation(value="TJwJsjbxx-编辑", notes="TJwJsjbxx-编辑")
@RequiresPermissions("TJwJsjbxx:TJwJsjbxx:edit")
@RequestMapping(value = "/edit", method = {RequestMethod.PUT,RequestMethod.POST})
public Result<String> edit(@RequestBody TJwJsjbxx TJwJsjbxx) {
TJwJsjbxxService.updateById(TJwJsjbxx);
return Result.OK("编辑成功!");
}
/**
* 通过id删除
*
* @param id
* @return
*/
@AutoLog(value = "TJwJsjbxx-通过id删除")
@ApiOperation(value="TJwJsjbxx-通过id删除", notes="TJwJsjbxx-通过id删除")
@RequiresPermissions("TJwJsjbxx:TJwJsjbxx:delete")
@DeleteMapping(value = "/delete")
public Result<String> delete(@RequestParam(name="id",required=true) String id) {
TJwJsjbxxService.removeById(id);
return Result.OK("删除成功!");
}
/**
* 批量删除
*
* @param ids
* @return
*/
@AutoLog(value = "TJwJsjbxx-批量删除")
@ApiOperation(value="TJwJsjbxx-批量删除", notes="TJwJsjbxx-批量删除")
@RequiresPermissions("TJwJsjbxx:TJwJsjbxx:deleteBatch")
@DeleteMapping(value = "/deleteBatch")
public Result<String> deleteBatch(@RequestParam(name="ids",required=true) String ids) {
this.TJwJsjbxxService.removeByIds(Arrays.asList(ids.split(",")));
return Result.OK("批量删除成功!");
}
/**
* 通过id查询
*
* @param id
* @return
*/
//@AutoLog(value = "TJwJsjbxx-通过id查询")
@ApiOperation(value="TJwJsjbxx-通过id查询", notes="TJwJsjbxx-通过id查询")
@GetMapping(value = "/queryById")
public Result<TJwJsjbxx> queryById(@RequestParam(name="id",required=true) String id) {
TJwJsjbxx TJwJsjbxx = TJwJsjbxxService.getById(id);
if(TJwJsjbxx==null) {
return Result.error("未找到对应数据");
}
return Result.OK(TJwJsjbxx);
}
/**
* 导出excel
*
* @param request
* @param TJwJsjbxx
*/
@RequiresPermissions("TJwJsjbxx:TJwJsjbxx:exportXls")
@RequestMapping(value = "/exportXls")
public ModelAndView exportXls(HttpServletRequest request, TJwJsjbxx TJwJsjbxx) {
return super.exportXls(request, TJwJsjbxx, TJwJsjbxx.class, "TJwJsjbxx");
}
/**
* 通过excel导入数据
*
* @param request
* @param response
* @return
*/
@RequiresPermissions("TJwJsjbxx:TJwJsjbxx:importExcel")
@RequestMapping(value = "/importExcel", method = RequestMethod.POST)
public Result<?> importExcel(HttpServletRequest request, HttpServletResponse response) {
return super.importExcel(request, response, TJwJsjbxx.class);
}
}

View File

@ -0,0 +1,178 @@
package org.jeecg.modules.kc.grab.exports.controller;
import java.util.Arrays;
import java.util.List;
import java.util.Map;
import java.util.stream.Collectors;
import java.io.IOException;
import java.io.UnsupportedEncodingException;
import java.net.URLDecoder;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import org.jeecg.common.api.vo.Result;
import org.jeecg.common.system.query.QueryGenerator;
import org.jeecg.common.util.oConvertUtils;
import org.jeecg.modules.kc.grab.exports.entity.TJwJxljbxx;
import org.jeecg.modules.kc.grab.exports.service.ITJwJxljbxxService;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import lombok.extern.slf4j.Slf4j;
import org.jeecgframework.poi.excel.ExcelImportUtil;
import org.jeecgframework.poi.excel.def.NormalExcelConstants;
import org.jeecgframework.poi.excel.entity.ExportParams;
import org.jeecgframework.poi.excel.entity.ImportParams;
import org.jeecgframework.poi.excel.view.JeecgEntityExcelView;
import org.jeecg.common.system.base.controller.JeecgController;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;
import org.springframework.web.multipart.MultipartFile;
import org.springframework.web.multipart.MultipartHttpServletRequest;
import org.springframework.web.servlet.ModelAndView;
import com.alibaba.fastjson.JSON;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.jeecg.common.aspect.annotation.AutoLog;
import org.apache.shiro.authz.annotation.RequiresPermissions;
/**
* @Description: TJwJxljbxx
* @Author: jeecg-boot
* @Date: 2023-05-22
* @Version: V1.0
*/
@Api(tags="TJwJxljbxx")
@RestController
@RequestMapping("/TJwJxljbxx/TJwJxljbxx")
@Slf4j
public class TJwJxljbxxController extends JeecgController<TJwJxljbxx, ITJwJxljbxxService> {
@Autowired
private ITJwJxljbxxService TJwJxljbxxService;
/**
* 分页列表查询
*
* @param TJwJxljbxx
* @param pageNo
* @param pageSize
* @param req
* @return
*/
//@AutoLog(value = "TJwJxljbxx-分页列表查询")
@ApiOperation(value="TJwJxljbxx-分页列表查询", notes="TJwJxljbxx-分页列表查询")
@GetMapping(value = "/list")
public Result<IPage<TJwJxljbxx>> queryPageList(TJwJxljbxx TJwJxljbxx,
@RequestParam(name="pageNo", defaultValue="1") Integer pageNo,
@RequestParam(name="pageSize", defaultValue="10") Integer pageSize,
HttpServletRequest req) {
QueryWrapper<TJwJxljbxx> queryWrapper = QueryGenerator.initQueryWrapper(TJwJxljbxx, req.getParameterMap());
Page<TJwJxljbxx> page = new Page<TJwJxljbxx>(pageNo, pageSize);
IPage<TJwJxljbxx> pageList = TJwJxljbxxService.page(page, queryWrapper);
return Result.OK(pageList);
}
/**
* 添加
*
* @param TJwJxljbxx
* @return
*/
@AutoLog(value = "TJwJxljbxx-添加")
@ApiOperation(value="TJwJxljbxx-添加", notes="TJwJxljbxx-添加")
@RequiresPermissions("TJwJxljbxx:TJwJxljbxx:add")
@PostMapping(value = "/add")
public Result<String> add(@RequestBody TJwJxljbxx TJwJxljbxx) {
TJwJxljbxxService.save(TJwJxljbxx);
return Result.OK("添加成功!");
}
/**
* 编辑
*
* @param TJwJxljbxx
* @return
*/
@AutoLog(value = "TJwJxljbxx-编辑")
@ApiOperation(value="TJwJxljbxx-编辑", notes="TJwJxljbxx-编辑")
@RequiresPermissions("TJwJxljbxx:TJwJxljbxx:edit")
@RequestMapping(value = "/edit", method = {RequestMethod.PUT,RequestMethod.POST})
public Result<String> edit(@RequestBody TJwJxljbxx TJwJxljbxx) {
TJwJxljbxxService.updateById(TJwJxljbxx);
return Result.OK("编辑成功!");
}
/**
* 通过id删除
*
* @param id
* @return
*/
@AutoLog(value = "TJwJxljbxx-通过id删除")
@ApiOperation(value="TJwJxljbxx-通过id删除", notes="TJwJxljbxx-通过id删除")
@RequiresPermissions("TJwJxljbxx:TJwJxljbxx:delete")
@DeleteMapping(value = "/delete")
public Result<String> delete(@RequestParam(name="id",required=true) String id) {
TJwJxljbxxService.removeById(id);
return Result.OK("删除成功!");
}
/**
* 批量删除
*
* @param ids
* @return
*/
@AutoLog(value = "TJwJxljbxx-批量删除")
@ApiOperation(value="TJwJxljbxx-批量删除", notes="TJwJxljbxx-批量删除")
@RequiresPermissions("TJwJxljbxx:TJwJxljbxx:deleteBatch")
@DeleteMapping(value = "/deleteBatch")
public Result<String> deleteBatch(@RequestParam(name="ids",required=true) String ids) {
this.TJwJxljbxxService.removeByIds(Arrays.asList(ids.split(",")));
return Result.OK("批量删除成功!");
}
/**
* 通过id查询
*
* @param id
* @return
*/
//@AutoLog(value = "TJwJxljbxx-通过id查询")
@ApiOperation(value="TJwJxljbxx-通过id查询", notes="TJwJxljbxx-通过id查询")
@GetMapping(value = "/queryById")
public Result<TJwJxljbxx> queryById(@RequestParam(name="id",required=true) String id) {
TJwJxljbxx TJwJxljbxx = TJwJxljbxxService.getById(id);
if(TJwJxljbxx==null) {
return Result.error("未找到对应数据");
}
return Result.OK(TJwJxljbxx);
}
/**
* 导出excel
*
* @param request
* @param TJwJxljbxx
*/
@RequiresPermissions("TJwJxljbxx:TJwJxljbxx:exportXls")
@RequestMapping(value = "/exportXls")
public ModelAndView exportXls(HttpServletRequest request, TJwJxljbxx TJwJxljbxx) {
return super.exportXls(request, TJwJxljbxx, TJwJxljbxx.class, "TJwJxljbxx");
}
/**
* 通过excel导入数据
*
* @param request
* @param response
* @return
*/
@RequiresPermissions("TJwJxljbxx:TJwJxljbxx:importExcel")
@RequestMapping(value = "/importExcel", method = RequestMethod.POST)
public Result<?> importExcel(HttpServletRequest request, HttpServletResponse response) {
return super.importExcel(request, response, TJwJxljbxx.class);
}
}

View File

@ -0,0 +1,133 @@
package org.jeecg.modules.kc.grab.exports.entity;
import java.io.Serializable;
import java.io.UnsupportedEncodingException;
import java.util.Date;
import java.math.BigDecimal;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.TableLogic;
import lombok.Data;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;
import org.jeecgframework.poi.excel.annotation.Excel;
import org.jeecg.common.aspect.annotation.Dict;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
/**
* @Description: TJwJsjbxx
* @Author: jeecg-boot
* @Date: 2023-05-22
* @Version: V1.0
*/
@Data
@TableName("TJwJsjbxx")
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="TJwJsjbxx对象", description="TJwJsjbxx")
public class TJwJsjbxx implements Serializable {
private static final long serialVersionUID = 1L;
/**是否笔试考试*/
@Excel(name = "是否笔试考试", width = 15)
@ApiModelProperty(value = "是否笔试考试")
private java.lang.String sfbsks;
/**是否可用*/
@Excel(name = "是否可用", width = 15)
@ApiModelProperty(value = "是否可用")
private java.lang.String sfky;
/**教室用途*/
@Excel(name = "教室用途", width = 15)
@ApiModelProperty(value = "教室用途")
private java.lang.String jsyt;
/**考试座位数*/
@Excel(name = "考试座位数", width = 15)
@ApiModelProperty(value = "考试座位数")
private java.lang.String kszws;
/**有效座位数*/
@Excel(name = "有效座位数", width = 15)
@ApiModelProperty(value = "有效座位数")
private java.lang.String yxzws;
/**教室类型码*/
@Excel(name = "教室类型码", width = 15)
@ApiModelProperty(value = "教室类型码")
private java.lang.String jslxm;
/**门牌号*/
@Excel(name = "门牌号", width = 15)
@ApiModelProperty(value = "门牌号")
private java.lang.String mph;
/**所在楼层*/
@Excel(name = "所在楼层", width = 15)
@ApiModelProperty(value = "所在楼层")
private java.lang.String szlc;
/**教室管理部门*/
@Excel(name = "教室管理部门", width = 15)
@ApiModelProperty(value = "教室管理部门")
private java.lang.String jsglbm;
/**教室排课优先序号*/
@Excel(name = "教室排课优先序号", width = 15)
@ApiModelProperty(value = "教室排课优先序号")
private java.lang.String jspkyxxh;
/**是否标准考场*/
@Excel(name = "是否标准考场", width = 15)
@ApiModelProperty(value = "是否标准考场")
private java.lang.String sfbzkc;
/**教室名称*/
@Excel(name = "教室名称", width = 15)
@ApiModelProperty(value = "教室名称")
private java.lang.String jsmc;
/**教学楼号(关联视图t_jw_jxljbxx里的JZWH)*/
@Excel(name = "教学楼号(关联视图t_jw_jxljbxx里的JZWH)", width = 15)
@ApiModelProperty(value = "教学楼号(关联视图t_jw_jxljbxx里的JZWH)")
private java.lang.String jxlh;
/**功能区编号*/
@Excel(name = "功能区编号", width = 15)
@ApiModelProperty(value = "功能区编号")
private java.lang.String gnqbh;
/**是否专用*/
@Excel(name = "是否专用", width = 15)
@ApiModelProperty(value = "是否专用")
private java.lang.String sfzy;
/**教室描述*/
@Excel(name = "教室描述", width = 15)
@ApiModelProperty(value = "教室描述")
private java.lang.String jsms;
/**校区码*/
@Excel(name = "校区码", width = 15)
@ApiModelProperty(value = "校区码")
private java.lang.String xqm;
/**所属院系号*/
@Excel(name = "所属院系号", width = 15)
@ApiModelProperty(value = "所属院系号")
private java.lang.String ssyxh;
/**编号*/
@Excel(name = "编号", width = 15)
@ApiModelProperty(value = "编号")
private java.lang.String bh;
/**座位数*/
@Excel(name = "座位数", width = 15)
@ApiModelProperty(value = "座位数")
private java.lang.String zws;
/**教室号(关联视图T_JW_KCKB里的JSBH)*/
@Excel(name = "教室号(关联视图T_JW_KCKB里的JSBH)", width = 15)
@ApiModelProperty(value = "教室号(关联视图T_JW_KCKB里的JSBH)")
private java.lang.String jsh;
/**timestamps*/
@Excel(name = "timestamps", width = 15, format = "yyyy-MM-dd")
@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd")
@DateTimeFormat(pattern="yyyy-MM-dd")
@ApiModelProperty(value = "timestamps")
private java.util.Date timestamps;
/**是否可借用*/
@Excel(name = "是否可借用", width = 15)
@ApiModelProperty(value = "是否可借用")
private java.lang.String sfkjy;
/**是否可重复利用*/
@Excel(name = "是否可重复利用", width = 15)
@ApiModelProperty(value = "是否可重复利用")
private java.lang.String sfkcfly;
}

View File

@ -0,0 +1,81 @@
package org.jeecg.modules.kc.grab.exports.entity;
import java.io.Serializable;
import java.io.UnsupportedEncodingException;
import java.util.Date;
import java.math.BigDecimal;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.TableLogic;
import lombok.Data;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;
import org.jeecgframework.poi.excel.annotation.Excel;
import org.jeecg.common.aspect.annotation.Dict;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
/**
* @Description: TJwJxljbxx
* @Author: jeecg-boot
* @Date: 2023-05-22
* @Version: V1.0
*/
@Data
@TableName("TJwJxljbxx")
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="TJwJxljbxx对象", description="TJwJxljbxx")
public class TJwJxljbxx implements Serializable {
private static final long serialVersionUID = 1L;
/**院系号*/
@Excel(name = "院系号", width = 15)
@ApiModelProperty(value = "院系号")
private java.lang.String yxh;
/**建筑物状况码*/
@Excel(name = "建筑物状况码", width = 15)
@ApiModelProperty(value = "建筑物状况码")
private java.lang.String jzwzkm;
/**编号*/
@Excel(name = "编号", width = 15)
@ApiModelProperty(value = "编号")
private java.lang.String bh;
/**状态*/
@Excel(name = "状态", width = 15)
@ApiModelProperty(value = "状态")
private java.lang.String zt;
/**建筑物号关联视图t_jw_jsjbxx里的JXLH*/
@Excel(name = "建筑物号关联视图t_jw_jsjbxx里的JXLH", width = 15)
@ApiModelProperty(value = "建筑物号关联视图t_jw_jsjbxx里的JXLH")
private java.lang.String jzwh;
/**建筑物英文名称*/
@Excel(name = "建筑物英文名称", width = 15)
@ApiModelProperty(value = "建筑物英文名称")
private java.lang.String jzwywmc;
/**建筑物分类码*/
@Excel(name = "建筑物分类码", width = 15)
@ApiModelProperty(value = "建筑物分类码")
private java.lang.String jzwflm;
/**建筑物名称*/
@Excel(name = "建筑物名称", width = 15)
@ApiModelProperty(value = "建筑物名称")
private java.lang.String jzwmc;
/**校区码*/
@Excel(name = "校区码", width = 15)
@ApiModelProperty(value = "校区码")
private java.lang.String xqm;
/**建筑物层数*/
@Excel(name = "建筑物层数", width = 15)
@ApiModelProperty(value = "建筑物层数")
private java.lang.String jzwcs;
/**时间戳*/
@Excel(name = "时间戳", width = 15, format = "yyyy-MM-dd")
@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd")
@DateTimeFormat(pattern="yyyy-MM-dd")
@ApiModelProperty(value = "时间戳")
private java.util.Date timestamps;
}

View File

@ -0,0 +1,17 @@
package org.jeecg.modules.kc.grab.exports.mapper;
import java.util.List;
import org.apache.ibatis.annotations.Param;
import org.jeecg.modules.kc.grab.exports.entity.TJwJsjbxx;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
/**
* @Description: TJwJsjbxx
* @Author: jeecg-boot
* @Date: 2023-05-22
* @Version: V1.0
*/
public interface TJwJsjbxxMapper extends BaseMapper<TJwJsjbxx> {
}

View File

@ -0,0 +1,17 @@
package org.jeecg.modules.kc.grab.exports.mapper;
import java.util.List;
import org.apache.ibatis.annotations.Param;
import org.jeecg.modules.kc.grab.exports.entity.TJwJxljbxx;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
/**
* @Description: TJwJxljbxx
* @Author: jeecg-boot
* @Date: 2023-05-22
* @Version: V1.0
*/
public interface TJwJxljbxxMapper extends BaseMapper<TJwJxljbxx> {
}

View File

@ -0,0 +1,5 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="org.jeecg.modules.kc.grab.exports.mapper.TJwJsjbxxMapper">
</mapper>

View File

@ -0,0 +1,5 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="org.jeecg.modules.kc.grab.exports.mapper.TJwJxljbxxMapper">
</mapper>

View File

@ -0,0 +1,14 @@
package org.jeecg.modules.kc.grab.exports.service;
import org.jeecg.modules.kc.grab.exports.entity.TJwJsjbxx;
import com.baomidou.mybatisplus.extension.service.IService;
/**
* @Description: TJwJsjbxx
* @Author: jeecg-boot
* @Date: 2023-05-22
* @Version: V1.0
*/
public interface ITJwJsjbxxService extends IService<TJwJsjbxx> {
}

View File

@ -0,0 +1,14 @@
package org.jeecg.modules.kc.grab.exports.service;
import org.jeecg.modules.kc.grab.exports.entity.TJwJxljbxx;
import com.baomidou.mybatisplus.extension.service.IService;
/**
* @Description: TJwJxljbxx
* @Author: jeecg-boot
* @Date: 2023-05-22
* @Version: V1.0
*/
public interface ITJwJxljbxxService extends IService<TJwJxljbxx> {
}

View File

@ -0,0 +1,21 @@
package org.jeecg.modules.kc.grab.exports.service.impl;
import com.baomidou.dynamic.datasource.annotation.DS;
import org.jeecg.modules.kc.grab.exports.entity.TJwJsjbxx;
import org.jeecg.modules.kc.grab.exports.mapper.TJwJsjbxxMapper;
import org.jeecg.modules.kc.grab.exports.service.ITJwJsjbxxService;
import org.springframework.stereotype.Service;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
/**
* @Description: TJwJsjbxx
* @Author: jeecg-boot
* @Date: 2023-05-22
* @Version: V1.0
*/
@DS("multi-oracle")
@Service
public class TJwJsjbxxServiceImpl extends ServiceImpl<TJwJsjbxxMapper, TJwJsjbxx> implements ITJwJsjbxxService {
}

View File

@ -0,0 +1,21 @@
package org.jeecg.modules.kc.grab.exports.service.impl;
import com.baomidou.dynamic.datasource.annotation.DS;
import org.jeecg.modules.kc.grab.exports.entity.TJwJxljbxx;
import org.jeecg.modules.kc.grab.exports.mapper.TJwJxljbxxMapper;
import org.jeecg.modules.kc.grab.exports.service.ITJwJxljbxxService;
import org.springframework.stereotype.Service;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
/**
* @Description: TJwJxljbxx
* @Author: jeecg-boot
* @Date: 2023-05-22
* @Version: V1.0
*/
@DS("multi-oracle")
@Service
public class TJwJxljbxxServiceImpl extends ServiceImpl<TJwJxljbxxMapper, TJwJxljbxx> implements ITJwJxljbxxService {
}

View File

@ -0,0 +1,178 @@
package org.jeecg.modules.kc.grab.imports.controller;
import java.util.Arrays;
import java.util.List;
import java.util.Map;
import java.util.stream.Collectors;
import java.io.IOException;
import java.io.UnsupportedEncodingException;
import java.net.URLDecoder;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import org.jeecg.common.api.vo.Result;
import org.jeecg.common.system.query.QueryGenerator;
import org.jeecg.common.util.oConvertUtils;
import org.jeecg.modules.kc.grab.imports.entity.Xxhbjsjbxx;
import org.jeecg.modules.kc.grab.imports.service.IXxhbjsjbxxService;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import lombok.extern.slf4j.Slf4j;
import org.jeecgframework.poi.excel.ExcelImportUtil;
import org.jeecgframework.poi.excel.def.NormalExcelConstants;
import org.jeecgframework.poi.excel.entity.ExportParams;
import org.jeecgframework.poi.excel.entity.ImportParams;
import org.jeecgframework.poi.excel.view.JeecgEntityExcelView;
import org.jeecg.common.system.base.controller.JeecgController;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;
import org.springframework.web.multipart.MultipartFile;
import org.springframework.web.multipart.MultipartHttpServletRequest;
import org.springframework.web.servlet.ModelAndView;
import com.alibaba.fastjson.JSON;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.jeecg.common.aspect.annotation.AutoLog;
import org.apache.shiro.authz.annotation.RequiresPermissions;
/**
* @Description: xxhbjsjbxx
* @Author: jeecg-boot
* @Date: 2023-05-22
* @Version: V1.0
*/
@Api(tags="xxhbjsjbxx")
@RestController
@RequestMapping("/xxhbjsjbxx/xxhbjsjbxx")
@Slf4j
public class XxhbjsjbxxController extends JeecgController<Xxhbjsjbxx, IXxhbjsjbxxService> {
@Autowired
private IXxhbjsjbxxService xxhbjsjbxxService;
/**
* 分页列表查询
*
* @param xxhbjsjbxx
* @param pageNo
* @param pageSize
* @param req
* @return
*/
//@AutoLog(value = "xxhbjsjbxx-分页列表查询")
@ApiOperation(value="xxhbjsjbxx-分页列表查询", notes="xxhbjsjbxx-分页列表查询")
@GetMapping(value = "/list")
public Result<IPage<Xxhbjsjbxx>> queryPageList(Xxhbjsjbxx xxhbjsjbxx,
@RequestParam(name="pageNo", defaultValue="1") Integer pageNo,
@RequestParam(name="pageSize", defaultValue="10") Integer pageSize,
HttpServletRequest req) {
QueryWrapper<Xxhbjsjbxx> queryWrapper = QueryGenerator.initQueryWrapper(xxhbjsjbxx, req.getParameterMap());
Page<Xxhbjsjbxx> page = new Page<Xxhbjsjbxx>(pageNo, pageSize);
IPage<Xxhbjsjbxx> pageList = xxhbjsjbxxService.page(page, queryWrapper);
return Result.OK(pageList);
}
/**
* 添加
*
* @param xxhbjsjbxx
* @return
*/
@AutoLog(value = "xxhbjsjbxx-添加")
@ApiOperation(value="xxhbjsjbxx-添加", notes="xxhbjsjbxx-添加")
@RequiresPermissions("xxhbjsjbxx:xxhbjsjbxx:add")
@PostMapping(value = "/add")
public Result<String> add(@RequestBody Xxhbjsjbxx xxhbjsjbxx) {
xxhbjsjbxxService.save(xxhbjsjbxx);
return Result.OK("添加成功!");
}
/**
* 编辑
*
* @param xxhbjsjbxx
* @return
*/
@AutoLog(value = "xxhbjsjbxx-编辑")
@ApiOperation(value="xxhbjsjbxx-编辑", notes="xxhbjsjbxx-编辑")
@RequiresPermissions("xxhbjsjbxx:xxhbjsjbxx:edit")
@RequestMapping(value = "/edit", method = {RequestMethod.PUT,RequestMethod.POST})
public Result<String> edit(@RequestBody Xxhbjsjbxx xxhbjsjbxx) {
xxhbjsjbxxService.updateById(xxhbjsjbxx);
return Result.OK("编辑成功!");
}
/**
* 通过id删除
*
* @param id
* @return
*/
@AutoLog(value = "xxhbjsjbxx-通过id删除")
@ApiOperation(value="xxhbjsjbxx-通过id删除", notes="xxhbjsjbxx-通过id删除")
@RequiresPermissions("xxhbjsjbxx:xxhbjsjbxx:delete")
@DeleteMapping(value = "/delete")
public Result<String> delete(@RequestParam(name="id",required=true) String id) {
xxhbjsjbxxService.removeById(id);
return Result.OK("删除成功!");
}
/**
* 批量删除
*
* @param ids
* @return
*/
@AutoLog(value = "xxhbjsjbxx-批量删除")
@ApiOperation(value="xxhbjsjbxx-批量删除", notes="xxhbjsjbxx-批量删除")
@RequiresPermissions("xxhbjsjbxx:xxhbjsjbxx:deleteBatch")
@DeleteMapping(value = "/deleteBatch")
public Result<String> deleteBatch(@RequestParam(name="ids",required=true) String ids) {
this.xxhbjsjbxxService.removeByIds(Arrays.asList(ids.split(",")));
return Result.OK("批量删除成功!");
}
/**
* 通过id查询
*
* @param id
* @return
*/
//@AutoLog(value = "xxhbjsjbxx-通过id查询")
@ApiOperation(value="xxhbjsjbxx-通过id查询", notes="xxhbjsjbxx-通过id查询")
@GetMapping(value = "/queryById")
public Result<Xxhbjsjbxx> queryById(@RequestParam(name="id",required=true) String id) {
Xxhbjsjbxx xxhbjsjbxx = xxhbjsjbxxService.getById(id);
if(xxhbjsjbxx==null) {
return Result.error("未找到对应数据");
}
return Result.OK(xxhbjsjbxx);
}
/**
* 导出excel
*
* @param request
* @param xxhbjsjbxx
*/
@RequiresPermissions("xxhbjsjbxx:xxhbjsjbxx:exportXls")
@RequestMapping(value = "/exportXls")
public ModelAndView exportXls(HttpServletRequest request, Xxhbjsjbxx xxhbjsjbxx) {
return super.exportXls(request, xxhbjsjbxx, Xxhbjsjbxx.class, "xxhbjsjbxx");
}
/**
* 通过excel导入数据
*
* @param request
* @param response
* @return
*/
@RequiresPermissions("xxhbjsjbxx:xxhbjsjbxx:importExcel")
@RequestMapping(value = "/importExcel", method = RequestMethod.POST)
public Result<?> importExcel(HttpServletRequest request, HttpServletResponse response) {
return super.importExcel(request, response, Xxhbjsjbxx.class);
}
}

View File

@ -0,0 +1,178 @@
package org.jeecg.modules.kc.grab.imports.controller;
import java.util.Arrays;
import java.util.List;
import java.util.Map;
import java.util.stream.Collectors;
import java.io.IOException;
import java.io.UnsupportedEncodingException;
import java.net.URLDecoder;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import org.jeecg.common.api.vo.Result;
import org.jeecg.common.system.query.QueryGenerator;
import org.jeecg.common.util.oConvertUtils;
import org.jeecg.modules.kc.grab.imports.entity.Xxhbjxljbxx;
import org.jeecg.modules.kc.grab.imports.service.IXxhbjxljbxxService;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import lombok.extern.slf4j.Slf4j;
import org.jeecgframework.poi.excel.ExcelImportUtil;
import org.jeecgframework.poi.excel.def.NormalExcelConstants;
import org.jeecgframework.poi.excel.entity.ExportParams;
import org.jeecgframework.poi.excel.entity.ImportParams;
import org.jeecgframework.poi.excel.view.JeecgEntityExcelView;
import org.jeecg.common.system.base.controller.JeecgController;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;
import org.springframework.web.multipart.MultipartFile;
import org.springframework.web.multipart.MultipartHttpServletRequest;
import org.springframework.web.servlet.ModelAndView;
import com.alibaba.fastjson.JSON;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.jeecg.common.aspect.annotation.AutoLog;
import org.apache.shiro.authz.annotation.RequiresPermissions;
/**
* @Description: xxhbjxljbxx
* @Author: jeecg-boot
* @Date: 2023-05-22
* @Version: V1.0
*/
@Api(tags="xxhbjxljbxx")
@RestController
@RequestMapping("/xxhbjxljbxx/xxhbjxljbxx")
@Slf4j
public class XxhbjxljbxxController extends JeecgController<Xxhbjxljbxx, IXxhbjxljbxxService> {
@Autowired
private IXxhbjxljbxxService xxhbjxljbxxService;
/**
* 分页列表查询
*
* @param xxhbjxljbxx
* @param pageNo
* @param pageSize
* @param req
* @return
*/
//@AutoLog(value = "xxhbjxljbxx-分页列表查询")
@ApiOperation(value="xxhbjxljbxx-分页列表查询", notes="xxhbjxljbxx-分页列表查询")
@GetMapping(value = "/list")
public Result<IPage<Xxhbjxljbxx>> queryPageList(Xxhbjxljbxx xxhbjxljbxx,
@RequestParam(name="pageNo", defaultValue="1") Integer pageNo,
@RequestParam(name="pageSize", defaultValue="10") Integer pageSize,
HttpServletRequest req) {
QueryWrapper<Xxhbjxljbxx> queryWrapper = QueryGenerator.initQueryWrapper(xxhbjxljbxx, req.getParameterMap());
Page<Xxhbjxljbxx> page = new Page<Xxhbjxljbxx>(pageNo, pageSize);
IPage<Xxhbjxljbxx> pageList = xxhbjxljbxxService.page(page, queryWrapper);
return Result.OK(pageList);
}
/**
* 添加
*
* @param xxhbjxljbxx
* @return
*/
@AutoLog(value = "xxhbjxljbxx-添加")
@ApiOperation(value="xxhbjxljbxx-添加", notes="xxhbjxljbxx-添加")
@RequiresPermissions("xxhbjxljbxx:xxhbjxljbxx:add")
@PostMapping(value = "/add")
public Result<String> add(@RequestBody Xxhbjxljbxx xxhbjxljbxx) {
xxhbjxljbxxService.save(xxhbjxljbxx);
return Result.OK("添加成功!");
}
/**
* 编辑
*
* @param xxhbjxljbxx
* @return
*/
@AutoLog(value = "xxhbjxljbxx-编辑")
@ApiOperation(value="xxhbjxljbxx-编辑", notes="xxhbjxljbxx-编辑")
@RequiresPermissions("xxhbjxljbxx:xxhbjxljbxx:edit")
@RequestMapping(value = "/edit", method = {RequestMethod.PUT,RequestMethod.POST})
public Result<String> edit(@RequestBody Xxhbjxljbxx xxhbjxljbxx) {
xxhbjxljbxxService.updateById(xxhbjxljbxx);
return Result.OK("编辑成功!");
}
/**
* 通过id删除
*
* @param id
* @return
*/
@AutoLog(value = "xxhbjxljbxx-通过id删除")
@ApiOperation(value="xxhbjxljbxx-通过id删除", notes="xxhbjxljbxx-通过id删除")
@RequiresPermissions("xxhbjxljbxx:xxhbjxljbxx:delete")
@DeleteMapping(value = "/delete")
public Result<String> delete(@RequestParam(name="id",required=true) String id) {
xxhbjxljbxxService.removeById(id);
return Result.OK("删除成功!");
}
/**
* 批量删除
*
* @param ids
* @return
*/
@AutoLog(value = "xxhbjxljbxx-批量删除")
@ApiOperation(value="xxhbjxljbxx-批量删除", notes="xxhbjxljbxx-批量删除")
@RequiresPermissions("xxhbjxljbxx:xxhbjxljbxx:deleteBatch")
@DeleteMapping(value = "/deleteBatch")
public Result<String> deleteBatch(@RequestParam(name="ids",required=true) String ids) {
this.xxhbjxljbxxService.removeByIds(Arrays.asList(ids.split(",")));
return Result.OK("批量删除成功!");
}
/**
* 通过id查询
*
* @param id
* @return
*/
//@AutoLog(value = "xxhbjxljbxx-通过id查询")
@ApiOperation(value="xxhbjxljbxx-通过id查询", notes="xxhbjxljbxx-通过id查询")
@GetMapping(value = "/queryById")
public Result<Xxhbjxljbxx> queryById(@RequestParam(name="id",required=true) String id) {
Xxhbjxljbxx xxhbjxljbxx = xxhbjxljbxxService.getById(id);
if(xxhbjxljbxx==null) {
return Result.error("未找到对应数据");
}
return Result.OK(xxhbjxljbxx);
}
/**
* 导出excel
*
* @param request
* @param xxhbjxljbxx
*/
@RequiresPermissions("xxhbjxljbxx:xxhbjxljbxx:exportXls")
@RequestMapping(value = "/exportXls")
public ModelAndView exportXls(HttpServletRequest request, Xxhbjxljbxx xxhbjxljbxx) {
return super.exportXls(request, xxhbjxljbxx, Xxhbjxljbxx.class, "xxhbjxljbxx");
}
/**
* 通过excel导入数据
*
* @param request
* @param response
* @return
*/
@RequiresPermissions("xxhbjxljbxx:xxhbjxljbxx:importExcel")
@RequestMapping(value = "/importExcel", method = RequestMethod.POST)
public Result<?> importExcel(HttpServletRequest request, HttpServletResponse response) {
return super.importExcel(request, response, Xxhbjxljbxx.class);
}
}

View File

@ -0,0 +1,133 @@
package org.jeecg.modules.kc.grab.imports.entity;
import java.io.Serializable;
import java.io.UnsupportedEncodingException;
import java.util.Date;
import java.math.BigDecimal;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.TableLogic;
import lombok.Data;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;
import org.jeecgframework.poi.excel.annotation.Excel;
import org.jeecg.common.aspect.annotation.Dict;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
/**
* @Description: xxhbjsjbxx
* @Author: jeecg-boot
* @Date: 2023-05-22
* @Version: V1.0
*/
@Data
@TableName("xxhbjsjbxx")
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="xxhbjsjbxx对象", description="xxhbjsjbxx")
public class Xxhbjsjbxx implements Serializable {
private static final long serialVersionUID = 1L;
/**是否笔试考试*/
@Excel(name = "是否笔试考试", width = 15)
@ApiModelProperty(value = "是否笔试考试")
private java.lang.String sfbsks;
/**是否可用*/
@Excel(name = "是否可用", width = 15)
@ApiModelProperty(value = "是否可用")
private java.lang.String sfky;
/**教室用途*/
@Excel(name = "教室用途", width = 15)
@ApiModelProperty(value = "教室用途")
private java.lang.String jsyt;
/**考试座位数*/
@Excel(name = "考试座位数", width = 15)
@ApiModelProperty(value = "考试座位数")
private java.lang.String kszws;
/**有效座位数*/
@Excel(name = "有效座位数", width = 15)
@ApiModelProperty(value = "有效座位数")
private java.lang.String yxzws;
/**教室类型码*/
@Excel(name = "教室类型码", width = 15)
@ApiModelProperty(value = "教室类型码")
private java.lang.String jslxm;
/**门牌号*/
@Excel(name = "门牌号", width = 15)
@ApiModelProperty(value = "门牌号")
private java.lang.String mph;
/**所在楼层*/
@Excel(name = "所在楼层", width = 15)
@ApiModelProperty(value = "所在楼层")
private java.lang.String szlc;
/**教室管理部门*/
@Excel(name = "教室管理部门", width = 15)
@ApiModelProperty(value = "教室管理部门")
private java.lang.String jsglbm;
/**教室排课优先序号*/
@Excel(name = "教室排课优先序号", width = 15)
@ApiModelProperty(value = "教室排课优先序号")
private java.lang.String jspkyxxh;
/**是否标准考场*/
@Excel(name = "是否标准考场", width = 15)
@ApiModelProperty(value = "是否标准考场")
private java.lang.String sfbzkc;
/**教室名称*/
@Excel(name = "教室名称", width = 15)
@ApiModelProperty(value = "教室名称")
private java.lang.String jsmc;
/**教学楼号(关联视图t_jw_jxljbxx里的JZWH)*/
@Excel(name = "教学楼号(关联视图t_jw_jxljbxx里的JZWH)", width = 15)
@ApiModelProperty(value = "教学楼号(关联视图t_jw_jxljbxx里的JZWH)")
private java.lang.String jxlh;
/**功能区编号*/
@Excel(name = "功能区编号", width = 15)
@ApiModelProperty(value = "功能区编号")
private java.lang.String gnqbh;
/**是否专用*/
@Excel(name = "是否专用", width = 15)
@ApiModelProperty(value = "是否专用")
private java.lang.String sfzy;
/**教室描述*/
@Excel(name = "教室描述", width = 15)
@ApiModelProperty(value = "教室描述")
private java.lang.String jsms;
/**校区码*/
@Excel(name = "校区码", width = 15)
@ApiModelProperty(value = "校区码")
private java.lang.String xqm;
/**所属院系号*/
@Excel(name = "所属院系号", width = 15)
@ApiModelProperty(value = "所属院系号")
private java.lang.String ssyxh;
/**编号*/
@Excel(name = "编号", width = 15)
@ApiModelProperty(value = "编号")
private java.lang.String bh;
/**座位数*/
@Excel(name = "座位数", width = 15)
@ApiModelProperty(value = "座位数")
private java.lang.String zws;
/**教室号(关联视图T_JW_KCKB里的JSBH)*/
@Excel(name = "教室号(关联视图T_JW_KCKB里的JSBH)", width = 15)
@ApiModelProperty(value = "教室号(关联视图T_JW_KCKB里的JSBH)")
private java.lang.String jsh;
/**timestamps*/
@Excel(name = "timestamps", width = 15, format = "yyyy-MM-dd")
@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd")
@DateTimeFormat(pattern="yyyy-MM-dd")
@ApiModelProperty(value = "timestamps")
private java.util.Date timestamps;
/**是否可借用*/
@Excel(name = "是否可借用", width = 15)
@ApiModelProperty(value = "是否可借用")
private java.lang.String sfkjy;
/**是否可重复利用*/
@Excel(name = "是否可重复利用", width = 15)
@ApiModelProperty(value = "是否可重复利用")
private java.lang.String sfkcfly;
}

View File

@ -0,0 +1,81 @@
package org.jeecg.modules.kc.grab.imports.entity;
import java.io.Serializable;
import java.io.UnsupportedEncodingException;
import java.util.Date;
import java.math.BigDecimal;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.TableLogic;
import lombok.Data;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;
import org.jeecgframework.poi.excel.annotation.Excel;
import org.jeecg.common.aspect.annotation.Dict;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
/**
* @Description: xxhbjxljbxx
* @Author: jeecg-boot
* @Date: 2023-05-22
* @Version: V1.0
*/
@Data
@TableName("xxhbjxljbxx")
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="xxhbjxljbxx对象", description="xxhbjxljbxx")
public class Xxhbjxljbxx implements Serializable {
private static final long serialVersionUID = 1L;
/**院系号*/
@Excel(name = "院系号", width = 15)
@ApiModelProperty(value = "院系号")
private java.lang.String yxh;
/**建筑物状况码*/
@Excel(name = "建筑物状况码", width = 15)
@ApiModelProperty(value = "建筑物状况码")
private java.lang.String jzwzkm;
/**编号*/
@Excel(name = "编号", width = 15)
@ApiModelProperty(value = "编号")
private java.lang.String bh;
/**状态*/
@Excel(name = "状态", width = 15)
@ApiModelProperty(value = "状态")
private java.lang.String zt;
/**建筑物号关联视图t_jw_jsjbxx里的JXLH*/
@Excel(name = "建筑物号关联视图t_jw_jsjbxx里的JXLH", width = 15)
@ApiModelProperty(value = "建筑物号关联视图t_jw_jsjbxx里的JXLH")
private java.lang.String jzwh;
/**建筑物英文名称*/
@Excel(name = "建筑物英文名称", width = 15)
@ApiModelProperty(value = "建筑物英文名称")
private java.lang.String jzwywmc;
/**建筑物分类码*/
@Excel(name = "建筑物分类码", width = 15)
@ApiModelProperty(value = "建筑物分类码")
private java.lang.String jzwflm;
/**建筑物名称*/
@Excel(name = "建筑物名称", width = 15)
@ApiModelProperty(value = "建筑物名称")
private java.lang.String jzwmc;
/**校区码*/
@Excel(name = "校区码", width = 15)
@ApiModelProperty(value = "校区码")
private java.lang.String xqm;
/**建筑物层数*/
@Excel(name = "建筑物层数", width = 15)
@ApiModelProperty(value = "建筑物层数")
private java.lang.String jzwcs;
/**时间戳*/
@Excel(name = "时间戳", width = 15, format = "yyyy-MM-dd")
@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd")
@DateTimeFormat(pattern="yyyy-MM-dd")
@ApiModelProperty(value = "时间戳")
private java.util.Date timestamps;
}

View File

@ -0,0 +1,17 @@
package org.jeecg.modules.kc.grab.imports.mapper;
import java.util.List;
import org.apache.ibatis.annotations.Param;
import org.jeecg.modules.kc.grab.imports.entity.Xxhbjsjbxx;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
/**
* @Description: xxhbjsjbxx
* @Author: jeecg-boot
* @Date: 2023-05-22
* @Version: V1.0
*/
public interface XxhbjsjbxxMapper extends BaseMapper<Xxhbjsjbxx> {
}

View File

@ -0,0 +1,17 @@
package org.jeecg.modules.kc.grab.imports.mapper;
import java.util.List;
import org.apache.ibatis.annotations.Param;
import org.jeecg.modules.kc.grab.imports.entity.Xxhbjxljbxx;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
/**
* @Description: xxhbjxljbxx
* @Author: jeecg-boot
* @Date: 2023-05-22
* @Version: V1.0
*/
public interface XxhbjxljbxxMapper extends BaseMapper<Xxhbjxljbxx> {
}

View File

@ -0,0 +1,5 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="org.jeecg.modules.kc.grab.imports.mapper.XxhbjsjbxxMapper">
</mapper>

View File

@ -0,0 +1,5 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="org.jeecg.modules.kc.grab.imports.mapper.XxhbjxljbxxMapper">
</mapper>

View File

@ -0,0 +1,21 @@
package org.jeecg.modules.kc.grab.imports.service;
import org.jeecg.modules.kc.grab.imports.entity.Xxhbjsjbxx;
import com.baomidou.mybatisplus.extension.service.IService;
import org.springframework.transaction.annotation.Transactional;
import java.util.Collection;
import java.util.List;
/**
* @Description: xxhbjsjbxx
* @Author: jeecg-boot
* @Date: 2023-05-22
* @Version: V1.0
*/
public interface IXxhbjsjbxxService extends IService<Xxhbjsjbxx> {
boolean syncList(List<Xxhbjsjbxx> outDataList);
boolean syncList(Collection<Xxhbjsjbxx> entityList, boolean isDelete);
}

View File

@ -0,0 +1,21 @@
package org.jeecg.modules.kc.grab.imports.service;
import org.jeecg.modules.kc.grab.imports.entity.Xxhbjsjbxx;
import org.jeecg.modules.kc.grab.imports.entity.Xxhbjxljbxx;
import com.baomidou.mybatisplus.extension.service.IService;
import java.util.Collection;
import java.util.List;
/**
* @Description: xxhbjxljbxx
* @Author: jeecg-boot
* @Date: 2023-05-22
* @Version: V1.0
*/
public interface IXxhbjxljbxxService extends IService<Xxhbjxljbxx> {
boolean syncList(List<Xxhbjxljbxx> outDataList);
boolean syncList(Collection<Xxhbjxljbxx> entityList, boolean isDelete);
}

View File

@ -0,0 +1,38 @@
package org.jeecg.modules.kc.grab.imports.service.impl;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import org.jeecg.modules.kc.grab.imports.entity.Xxhbjsjbxx;
import org.jeecg.modules.kc.grab.imports.mapper.XxhbjsjbxxMapper;
import org.jeecg.modules.kc.grab.imports.service.IXxhbjsjbxxService;
import org.springframework.stereotype.Service;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.transaction.annotation.Transactional;
import java.util.Collection;
import java.util.List;
/**
* @Description: xxhbjsjbxx
* @Author: jeecg-boot
* @Date: 2023-05-22
* @Version: V1.0
*/
@Service
public class XxhbjsjbxxServiceImpl extends ServiceImpl<XxhbjsjbxxMapper, Xxhbjsjbxx> implements IXxhbjsjbxxService {
@Override
public boolean syncList(List<Xxhbjsjbxx> outDataList) {
return syncList(outDataList, true);
}
@Override
@Transactional(rollbackFor = {Exception.class})
public boolean syncList(Collection<Xxhbjsjbxx> entityList, boolean isDelete) {
QueryWrapper dqw = new QueryWrapper();
if(isDelete){
baseMapper.delete(dqw);
}
return this.saveBatch(entityList, 1000);
}
}

View File

@ -0,0 +1,36 @@
package org.jeecg.modules.kc.grab.imports.service.impl;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import org.jeecg.modules.kc.grab.imports.entity.Xxhbjxljbxx;
import org.jeecg.modules.kc.grab.imports.mapper.XxhbjxljbxxMapper;
import org.jeecg.modules.kc.grab.imports.service.IXxhbjxljbxxService;
import org.springframework.stereotype.Service;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import java.util.Collection;
import java.util.List;
/**
* @Description: xxhbjxljbxx
* @Author: jeecg-boot
* @Date: 2023-05-22
* @Version: V1.0
*/
@Service
public class XxhbjxljbxxServiceImpl extends ServiceImpl<XxhbjxljbxxMapper, Xxhbjxljbxx> implements IXxhbjxljbxxService {
@Override
public boolean syncList(List<Xxhbjxljbxx> outDataList) {
return syncList(outDataList, true);
}
@Override
public boolean syncList(Collection<Xxhbjxljbxx> entityList, boolean isDelete) {
QueryWrapper dqw = new QueryWrapper();
if(isDelete){
baseMapper.delete(dqw);
}
return this.saveBatch(entityList, 1000);
}
}

View File

@ -1,8 +1,7 @@
package org.jeecg.modules.kc.kcSysConfig.controller;
import java.util.Arrays;
import java.util.List;
import java.util.Map;
import java.text.ParseException;
import java.util.*;
import java.util.stream.Collectors;
import java.io.IOException;
import java.io.UnsupportedEncodingException;
@ -11,6 +10,7 @@ import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import org.jeecg.common.api.vo.Result;
import org.jeecg.common.system.query.QueryGenerator;
import org.jeecg.common.util.DateUtils;
import org.jeecg.common.util.oConvertUtils;
import org.jeecg.modules.kc.kcSysConfig.entity.KcSysConfig;
import org.jeecg.modules.kc.kcSysConfig.service.IKcSysConfigService;
@ -174,4 +174,41 @@ public class KcSysConfigController extends JeecgController<KcSysConfig, IKcSysCo
return super.importExcel(request, response, KcSysConfig.class);
}
@GetMapping(value = "/getDjz")
public Result<List<KcSysConfig>> getDjz() throws ParseException {
KcSysConfig kcSysConfig = kcSysConfigService.getById("1");
List<KcSysConfig> list = new ArrayList<>();
String startTime = kcSysConfig.getBxqkssj();
String endTime = kcSysConfig.getBxqjssj();
Date date1 = DateUtils.parseDate(startTime,"yyyy-MM-dd");
Date date2 = DateUtils.parseDate(endTime,"yyyy-MM-dd");
int i=0;
while(date1.getTime()<date2.getTime()){
if(i!=0){
Calendar calendar = Calendar.getInstance(); //日历时间工具类实例化创建取得当前时间初值
calendar.setTime(date1); //覆盖掉当前时间
calendar.add(Calendar.DATE, 1); //+7
date1 = calendar.getTime();
}
i++;
KcSysConfig kcSysConfigPar = new KcSysConfig();
kcSysConfigPar.setBxqkssj(DateUtils.formatDate(date1,"yyyy-MM-dd"));
kcSysConfigPar.setFlag1(""+i+"");
Date date3 = date1;
Calendar calendar = Calendar.getInstance(); //日历时间工具类实例化创建取得当前时间初值
calendar.setTime(date1); //覆盖掉当前时间
calendar.add(Calendar.DATE, 6); //+7
Date date4 = calendar.getTime();
date1 = calendar.getTime();
Date date5 = new Date();
if(date3.getTime()<=date5.getTime()&&date5.getTime()<=date4.getTime()){
kcSysConfigPar.setFlag2("1");
}
kcSysConfigPar.setBxqjssj(DateUtils.formatDate(date4,"yyyy-MM-dd"));
list.add(kcSysConfigPar);
}
return Result.OK(list);
}
}

View File

@ -272,5 +272,7 @@ public class KcKetangbiao implements Serializable {
private String zhjsId;
@TableField(exist = false)
private String sfyzhjs;
@TableField(exist = false)
private String jzwh;
}

View File

@ -38,6 +38,8 @@
from kc_ketangbiao ktb
left join (select * from kc_yuyue where userid = #{kcKetangbiao.userid}) yy on ktb.id = yy.ketangbiaoid
LEFT JOIN (SELECT DISTINCT jsbh, jsmc from kc_zhihuijiaoshi where sfyx=0) js on ktb.jsbh = js.jsbh
left join xxhbjsjbxx jsjbxx on jsjbxx.jsh = js.jsbh
left join xxhbjxljbxx jxljbxx on jsjbxx.jxlh = jxljbxx.jzwh
<where>
<if test="kcKetangbiao.ywmc!=null and kcKetangbiao.ywmc!=''">
and (ktb.skjs like concat('%',#{kcKetangbiao.ywmc},'%') or ktb.kcmc like concat('%',#{kcKetangbiao.ywmc},'%') )
@ -78,6 +80,9 @@
<if test="kcKetangbiao.sfyzhjs!=null and kcKetangbiao.sfyzhjs!=''">
and js.jsbh is not NULL
</if>
<if test="kcKetangbiao.jzwh!=null and kcKetangbiao.jzwh!=''">
and jxljbxx.jzwh = #{kcKetangbiao.jzwh}
</if>
</where>
</select>

View File

@ -27,6 +27,10 @@
<if test="kcEvaluation.szdw != null and kcEvaluation.szdw != ''">
and college = #{kcEvaluation.szdw}
</if>
<if test="kcEvaluation.username != null and kcEvaluation.username != ''">
and (ev.upuserid like concat('%',#{kcEvaluation.username},'%') or ev.upuser like concat('%',#{kcEvaluation.username},'%'))
</if>
GROUP BY ev.upuserid, ev.upuser, cu.college
) tk,
( SELECT usercode, username, GROUP_CONCAT( assess1 SEPARATOR ',' ) tksf1, GROUP_CONCAT( assess2 SEPARATOR ',' ) tksf2, max( tkyq ) tkyq
@ -55,6 +59,9 @@
<if test="kcEvaluation.endTime != null and kcEvaluation.endTime != ''">
and p.up_date &lt;= #{kcEvaluation.endTime}
</if>
<if test="kcEvaluation.username != null and kcEvaluation.username != ''">
and (c.cn like concat('%',#{kcEvaluation.username},'%') or c.user like concat('%',#{kcEvaluation.username},'%'))
</if>
) AS pk
LEFT JOIN kc_assessuser au ON pk.userid = au.usercode
<where>