|
@@ -53,7 +53,7 @@ public class CheckAndRepairController {
|
|
|
*/
|
|
|
@RequestMapping("/checkAndRepairExcelHtml")
|
|
|
@ApiOperation("定时检测修复ExcelHtml")
|
|
|
-// @Scheduled(cron = "00 00 00 * * ?")
|
|
|
+ @Scheduled(cron = "00 00 00 * * ?")
|
|
|
public void checkAndRepairExcelHtml() {
|
|
|
StringBuilder result=new StringBuilder("");
|
|
|
String sql = "Select * from m_excel_tab where is_deleted=0 and file_url is not null";
|
|
@@ -144,7 +144,7 @@ public class CheckAndRepairController {
|
|
|
/**
|
|
|
* 定时更新private和contract的html,通过is_private_type_id;保证一样
|
|
|
*/
|
|
|
-// @Scheduled(cron = "0 0 3 * * ?")
|
|
|
+ @Scheduled(cron = "0 0 3 * * ?")
|
|
|
public void checkAndRepairPrivateAndContractHtml() {
|
|
|
System.out.println("开始扫描private和contract的html");
|
|
|
StringBuilder result=new StringBuilder("");
|
|
@@ -169,7 +169,7 @@ public class CheckAndRepairController {
|
|
|
* 定时更新private initTable或者excelID,保证一样
|
|
|
*/
|
|
|
@GetMapping("/checkAndRepairPrivateInitTableAndExcelId")
|
|
|
-// @Scheduled(cron = "0 30 1 * * ?")
|
|
|
+ @Scheduled(cron = "0 30 1 * * ?")
|
|
|
public void checkAndRepairPrivateInitTableAndExcelId() {
|
|
|
System.out.println("开始扫描private initTable和ExcelId");
|
|
|
String privateSql="select p_key_id,init_table_name,excel_id,html_url from m_wbs_tree_private where type=2 AND is_deleted=0 AND (excel_id IS NULL OR init_table_name IS NULL OR html_url IS NULL)";
|
|
@@ -223,7 +223,7 @@ public class CheckAndRepairController {
|
|
|
* 定时更新contract initTable或者excelID,保证一样
|
|
|
*/
|
|
|
@GetMapping("/checkAndRepairContractInitTableAndExcelId")
|
|
|
-// @Scheduled(cron = "0 00 2 * * ?")
|
|
|
+ @Scheduled(cron = "0 00 2 * * ?")
|
|
|
public void checkAndRepairContractInitTableAndExcelId() {
|
|
|
System.out.println("定时更新contract initTable和ExcelId");
|
|
|
String contractSql="select p_key_id,init_table_name,excel_id,html_url from m_wbs_tree_contract where type=2 AND is_deleted=0 AND (excel_id IS NULL OR init_table_name IS NULL OR html_url IS NULL)";
|
|
@@ -289,7 +289,7 @@ public class CheckAndRepairController {
|
|
|
* 定时检测excel文件后缀名
|
|
|
*/
|
|
|
@GetMapping("/checkExcelExtension")
|
|
|
-// @Scheduled(cron = "0 00 12 * * ?")
|
|
|
+ @Scheduled(cron = "0 00 12 * * ?")
|
|
|
public void checkExcelExtension(){
|
|
|
String sql="select id,name,extension from m_excel_tab where is_deleted=0";
|
|
|
List<ExcelTab> list = jdbcTemplate.query(sql, new BeanPropertyRowMapper<>(ExcelTab.class));
|
|
@@ -316,7 +316,7 @@ public class CheckAndRepairController {
|
|
|
* 定时检测private html是否包含privateUrlCopy 但是不包括独立表单
|
|
|
*/
|
|
|
@GetMapping("/checkPrivateHtmlIsCopy")
|
|
|
-// @Scheduled(cron = "0 30 23 * * ?")
|
|
|
+ @Scheduled(cron = "0 30 23 * * ?")
|
|
|
public void checkPrivateHtmlIsCopy(){
|
|
|
String sql="select p_key_id,project_id,html_url from m_wbs_tree_private where is_deleted=0 and html_url NOT LIKE '%privateUrlCopy%' AND type=2";
|
|
|
List<WbsTreePrivate> list = jdbcTemplate.query(sql, new BeanPropertyRowMapper<>(WbsTreePrivate.class));
|
|
@@ -368,7 +368,7 @@ public class CheckAndRepairController {
|
|
|
* 检查private html文件是否存在
|
|
|
*/
|
|
|
@GetMapping("/checkPrivateHtmlIsExist")
|
|
|
-// @Scheduled(cron = "0 0 3 * * ?")
|
|
|
+ @Scheduled(cron = "0 0 3 * * ?")
|
|
|
public void checkPrivateHtmlIsExist() throws Exception {
|
|
|
String sql="select p_key_id, excel_id,html_url from m_wbs_tree_private where html_url IS NOT NULL and is_deleted=0";
|
|
|
List<WbsTreePrivate> list = jdbcTemplate.query(sql, new BeanPropertyRowMapper<>(WbsTreePrivate.class));
|