You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
64 lines
1.7 KiB
64 lines
1.7 KiB
package com.demo;
|
|
|
|
import com.demo.cost.SyncVerificationMain;
|
|
import com.demo.cost.TbsMatchServiceImpl;
|
|
import com.demo.cost.TbsServiceImpl;
|
|
import com.demo.dto.DaoContext;
|
|
import com.demo.t20230616.SyncBudget;
|
|
import com.demo.t20230621.BudgetMathMain;
|
|
import com.demo.t20230703.SyncMatchActCenter;
|
|
import com.demo.t20230704.SyncNotCheckMain;
|
|
import com.demo.util.SetData;
|
|
import lombok.extern.slf4j.Slf4j;
|
|
|
|
/**
|
|
* @author YenHex
|
|
* @since 2023/3/22
|
|
*/
|
|
@Slf4j
|
|
public class Application {
|
|
|
|
public static void main(String[] args) {
|
|
String ymString = "202307";
|
|
//String ymString = System.getProperty("startId");
|
|
String year = ymString.substring(0,4);
|
|
String month = ymString.substring(4,6);
|
|
Integer y = Integer.parseInt(year);
|
|
Integer m = Integer.parseInt(month);
|
|
|
|
// TbsServiceImpl service = new TbsServiceImpl();
|
|
// service.removeYiDong(); //移除异动
|
|
//
|
|
// //费用申请
|
|
// for (int i = 1; i < 13; i++) {
|
|
// service.syncCost(y,i);
|
|
// }
|
|
//
|
|
// //特殊的命中修改成本中心
|
|
// SyncMatchActCenter matchActCenter = new SyncMatchActCenter();
|
|
// matchActCenter.tmain();
|
|
|
|
//更新申请vtb_flag=1,重新录入核销,并非每次执行
|
|
// new SyncActVtb().tmain();
|
|
//
|
|
// new TbsMatchServiceImpl().matchBudget();
|
|
//
|
|
//费用核销
|
|
SyncVerificationMain verificationMain = new SyncVerificationMain();
|
|
verificationMain.testMain();
|
|
//
|
|
// //更新核销中的预算费用占用
|
|
// new SyncDiscountBudget().sync();
|
|
|
|
// 更新申请和活动的状态
|
|
|
|
// 同步isCancel=1的费用释放
|
|
new SyncNotCheckMain().doMain();
|
|
|
|
// new TbsMatchServiceImpl().updateStatus();
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|