|
|
@ -1,23 +1,23 @@
|
|
|
|
package com.ruoyi.programManagement.quartz;
|
|
|
|
package com.ruoyi.programManagement.quartz;
|
|
|
|
|
|
|
|
|
|
|
|
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
|
|
|
|
|
|
|
|
import com.ruoyi.common.core.domain.AjaxResult;
|
|
|
|
import com.ruoyi.common.core.domain.AjaxResult;
|
|
|
|
import com.ruoyi.programManagement.entity.*;
|
|
|
|
import com.ruoyi.programManagement.entity.BEnterpriseNew;
|
|
|
|
|
|
|
|
import com.ruoyi.programManagement.entity.SzEnforExamine;
|
|
|
|
import com.ruoyi.programManagement.entity.response.BPlanEnterpriseResponse;
|
|
|
|
import com.ruoyi.programManagement.entity.response.BPlanEnterpriseResponse;
|
|
|
|
import com.ruoyi.programManagement.mapper.BEnterpriseNewMapper;
|
|
|
|
import com.ruoyi.programManagement.mapper.BEnterpriseNewMapper;
|
|
|
|
import com.ruoyi.programManagement.mapper.BStandardizationMapper;
|
|
|
|
|
|
|
|
import com.ruoyi.programManagement.mapper.SzsEnterpriseInformationMapper;
|
|
|
|
|
|
|
|
import com.ruoyi.programManagement.service.BPlanEnterpriseService;
|
|
|
|
import com.ruoyi.programManagement.service.BPlanEnterpriseService;
|
|
|
|
|
|
|
|
import com.ruoyi.programManagement.service.IBEnterpriseNewService;
|
|
|
|
import com.ruoyi.programManagement.service.ISzEnforExamineService;
|
|
|
|
import com.ruoyi.programManagement.service.ISzEnforExamineService;
|
|
|
|
import io.swagger.annotations.Api;
|
|
|
|
import io.swagger.annotations.Api;
|
|
|
|
import io.swagger.annotations.ApiOperation;
|
|
|
|
import io.swagger.annotations.ApiOperation;
|
|
|
|
|
|
|
|
import org.apache.ibatis.session.SqlSession;
|
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
|
|
|
|
|
import org.springframework.transaction.annotation.Transactional;
|
|
|
|
import org.springframework.web.bind.annotation.GetMapping;
|
|
|
|
import org.springframework.web.bind.annotation.GetMapping;
|
|
|
|
import org.springframework.web.bind.annotation.RequestMapping;
|
|
|
|
import org.springframework.web.bind.annotation.RequestMapping;
|
|
|
|
import org.springframework.web.bind.annotation.RestController;
|
|
|
|
import org.springframework.web.bind.annotation.RestController;
|
|
|
|
|
|
|
|
|
|
|
|
import javax.annotation.Resource;
|
|
|
|
import javax.annotation.Resource;
|
|
|
|
import java.util.ArrayList;
|
|
|
|
|
|
|
|
import java.util.List;
|
|
|
|
import java.util.List;
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
/**
|
|
|
@ -27,20 +27,20 @@ import java.util.List;
|
|
|
|
//@EnableScheduling
|
|
|
|
//@EnableScheduling
|
|
|
|
@Api(tags = "定时任务")
|
|
|
|
@Api(tags = "定时任务")
|
|
|
|
@RestController
|
|
|
|
@RestController
|
|
|
|
|
|
|
|
@Transactional(rollbackFor = Exception.class)
|
|
|
|
@RequestMapping("/pharmaceuticals/quartz")
|
|
|
|
@RequestMapping("/pharmaceuticals/quartz")
|
|
|
|
public class EnterpristQuartz {
|
|
|
|
public class EnterpristQuartz {
|
|
|
|
@Autowired
|
|
|
|
|
|
|
|
private SzsEnterpriseInformationMapper szsEnterpriseInformationMapper;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@Autowired
|
|
|
|
@Autowired
|
|
|
|
private BEnterpriseNewMapper bEnterpriseNewMapper;
|
|
|
|
private BEnterpriseNewMapper bEnterpriseNewMapper;
|
|
|
|
|
|
|
|
|
|
|
|
@Autowired
|
|
|
|
|
|
|
|
private BStandardizationMapper bStandardizationMapper;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@Autowired
|
|
|
|
@Autowired
|
|
|
|
private ISzEnforExamineService szEnforExamineService;
|
|
|
|
private ISzEnforExamineService szEnforExamineService;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@Resource
|
|
|
|
|
|
|
|
private IBEnterpriseNewService bEnterpriseNewService;
|
|
|
|
|
|
|
|
|
|
|
|
@Resource
|
|
|
|
@Resource
|
|
|
|
private BPlanEnterpriseService bPlanEnterpriseService;
|
|
|
|
private BPlanEnterpriseService bPlanEnterpriseService;
|
|
|
@ -50,8 +50,12 @@ public class EnterpristQuartz {
|
|
|
|
@GetMapping("/getList")
|
|
|
|
@GetMapping("/getList")
|
|
|
|
@ApiOperation(value = "定时任务")
|
|
|
|
@ApiOperation(value = "定时任务")
|
|
|
|
public AjaxResult updateInformationData() {
|
|
|
|
public AjaxResult updateInformationData() {
|
|
|
|
|
|
|
|
//三表关联查询数据
|
|
|
|
return AjaxResult.success(null);
|
|
|
|
List<BEnterpriseNew> list = bEnterpriseNewMapper.seletAll();
|
|
|
|
|
|
|
|
//清空企业新表中的数据
|
|
|
|
|
|
|
|
bEnterpriseNewMapper.deletAll();
|
|
|
|
|
|
|
|
bEnterpriseNewService.saveBatch(list);
|
|
|
|
|
|
|
|
return AjaxResult.success();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@ -73,4 +77,6 @@ public class EnterpristQuartz {
|
|
|
|
return null;
|
|
|
|
return null;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|