Skip to content

Commit

Permalink
refactor :: sql 쿼리 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
chan99k committed Feb 19, 2024
1 parent d0dce1e commit f3958cf
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@ public class FilterUnusedProductTasklet implements Tasklet {

@Override
public RepeatStatus execute(StepContribution contribution, ChunkContext chunkContext) throws Exception {
jdbcTemplate.update("delete from product where upper_item like '%세탁%'");
jdbcTemplate.update("delete from product where product_name similar to '(방향제|그라스|통풍구|선바이저|살라딘|세탁|체인)%'");
jdbcTemplate.update("delete from product where product.upper_item like '%세탁%'");
jdbcTemplate.update("delete from product where product.product_name similar to '%(방향제|그라스|통풍구|선바이저|살라딘|세탁|체인)%'");

return RepeatStatus.FINISHED;
}
Expand Down

0 comments on commit f3958cf

Please sign in to comment.