@ -22,6 +22,12 @@ public interface TbsCostCheckStateMapper {
@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();
@Update("update tbs_cost_apply set check_state = 0 "+
"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 "+
") and del_flag = 0 and charge_state = 2")
intupdateCheckState0ByVtb();
@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 ")