计划企业中的修改和新增时间

zhangtao
dongdingding 1 year ago
parent 3a4106c24e
commit 0cff693f75

@ -5,6 +5,7 @@ import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
@ -17,7 +18,7 @@ import java.util.Date;
*/
@Data
@ApiModel("计划企业新增请求类")
public class BPlanEnterpriseRequest {
public class BPlanEnterpriseRequest extends BaseEntity {
private static final long serialVersionUID = -98531345456142440L;
/**
*

@ -55,7 +55,7 @@ public class EnterpristQuartz {
}
// 定时任务修改更新计划表的检查状态、检查id、检查时效字段
// @Scheduled(cron = "0 0 17 ? * SUN")
// @Scheduled(cron = "0 0 1 * * ?")
@GetMapping("/updateExamine")
@ApiOperation(value = "定时任务修改更新计划表的检查状态、检查id、检查时效字段")
public AjaxResult updateExamine() {

@ -3,6 +3,7 @@ package com.ruoyi.programManagement.service.impl;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.github.pagehelper.PageHelper;
import com.github.pagehelper.PageInfo;
import com.ruoyi.common.utils.DateUtils;
import com.ruoyi.common.utils.SecurityUtils;
import com.ruoyi.programManagement.entity.BPlanEnterprise;
import com.ruoyi.programManagement.entity.request.*;
@ -108,11 +109,13 @@ public class BPlanEnterpriseServiceImpl extends ServiceImpl<BPlanEnterpriseMappe
@Override
public void insert(BPlanEnterpriseRequest bPlanEnterprise) {
bPlanEnterprise.setCreateTime(DateUtils.getNowDate());
bPlanEnterpriseMapper.insertPlan(bPlanEnterprise);
}
@Override
public void updatePlan(BPlanEnterpriseRequest bPlanEnterprise) {
bPlanEnterprise.setUpdateTime(DateUtils.getNowDate());
bPlanEnterpriseMapper.updatePlan(bPlanEnterprise);
}

Loading…
Cancel
Save