@Update("update tbs_cost_apply set check_state = 0 where charge_state is null ")
@Update("update tbs_cost_apply set check_state = 0 where charge_state is null ")
intupdateCheckState0();
intupdateCheckState0();
@InterceptorIgnore(tenantLine="1")
@Update("update tbs_cost_apply set check_state = 0 "+
@Update("update tbs_cost_apply set check_state = 0 "+
"where id not in ( "+
"where id not in ( "+
" select vtb.cost_apply_id from vtb_verification vtb where vtb.del_flag = 0 AND vtb.verification_state in (0,1) and vtb.cost_apply_id is not null group by vtb.cost_apply_id "+
" select vtb.cost_apply_id from vtb_verification vtb where vtb.del_flag = 0 AND vtb.verification_state in (0,1) and vtb.cost_apply_id is not null group by vtb.cost_apply_id "+
") and del_flag = 0 and charge_state = 2")
") and del_flag = 0 and charge_state = 2")
intupdateCheckState0ByVtb();
intupdateCheckState0ByVtb();
@InterceptorIgnore(tenantLine="1")
@Update("update tbs_cost_apply set check_state = 1 where charge_state = 3 ")
@Update("update tbs_cost_apply set check_state = 1 where charge_state = 3 ")
intupdateCheckState1();
intupdateCheckState1();
@InterceptorIgnore(tenantLine="1")
@Update("update tbs_cost_apply set check_state = 2 where id in ( "+
@Update("update tbs_cost_apply set check_state = 2 where id in ( "+
" SELECT cost_apply_id from vtb_verification where verification_state = 0 and del_flag = 0 "+
" SELECT cost_apply_id from vtb_verification where verification_state = 0 and del_flag = 0 "+