Commit c2903393 authored by Phạm Duy Phi's avatar Phạm Duy Phi

phipd commit

parent ad5b82a9
...@@ -613,12 +613,14 @@ public class CustomerServiceImpl implements CustomerService { ...@@ -613,12 +613,14 @@ public class CustomerServiceImpl implements CustomerService {
String convertDate = dateFormat.format(new Date()); String convertDate = dateFormat.format(new Date());
String[] dateArray = convertDate.split("/"); String[] dateArray = convertDate.split("/");
if (newDay == 0) { if (customerListDTO.getCustomerListCode().trim().length() == 0) {
apParamRepository.updateCustomerListSeq(String.valueOf(Integer.parseInt(apParam.getParValue()) + 1), apParam.getDescription()); if (newDay == 0) {
customerListDTO.setCustomerListCode(dateArray[0]+dateArray[2]+dateArray[1]+"_"+(Integer.parseInt(apParam.getParValue()) + 1)+" "+customerListDTO.getCustomerListCode()); apParamRepository.updateCustomerListSeq(String.valueOf(Integer.parseInt(apParam.getParValue()) + 1), apParam.getDescription());
} else { customerListDTO.setCustomerListCode(dateArray[0]+dateArray[2]+dateArray[1]+"_"+(Integer.parseInt(apParam.getParValue()) + 1));
apParamRepository.updateCustomerListSeq("1", dateFormat.format(new Date())); } else {
customerListDTO.setCustomerListCode(dateArray[0]+dateArray[2]+dateArray[1]+"_1"+" "+customerListDTO.getCustomerListCode()); apParamRepository.updateCustomerListSeq("1", dateFormat.format(new Date()));
customerListDTO.setCustomerListCode(dateArray[0]+dateArray[2]+dateArray[1]+"_1");
}
} }
// THÍM NÀO MERGE CONFLICT THÌ GIỮ LẠI HỘ E CÁI METHOD NÀY VỚI // THÍM NÀO MERGE CONFLICT THÌ GIỮ LẠI HỘ E CÁI METHOD NÀY VỚI
...@@ -794,7 +796,7 @@ public class CustomerServiceImpl implements CustomerService { ...@@ -794,7 +796,7 @@ public class CustomerServiceImpl implements CustomerService {
sb.append(" AND a.STATUS = 1"); sb.append(" AND a.STATUS = 1");
sb.append(" AND a.COMPANY_SITE_ID = :p_company_site_id"); sb.append(" AND a.COMPANY_SITE_ID = :p_company_site_id");
sb.append(" AND CREATE_AT BETWEEN to_date(:p_date_from, 'YYYYMMDD') AND to_date(:p_date_to, 'YYYYMMDD')"); sb.append(" AND to_date(CREATE_AT, 'DD-MM-RR') >= to_date(:p_date_from, 'YYYYMMDD') AND to_date(CREATE_AT, 'DD-MM-RR') <= to_date(:p_date_to, 'YYYYMMDD')");
if (!DataUtil.isNullOrEmpty(searchCustomerRequestDTO.getCustomerListCode())) { if (!DataUtil.isNullOrEmpty(searchCustomerRequestDTO.getCustomerListCode())) {
sb.append(" AND CUSTOMER_LIST_CODE LIKE :p_list_code"); sb.append(" AND CUSTOMER_LIST_CODE LIKE :p_list_code");
......
server: server:
port: 1111 port: 9999
spring: spring:
application: application:
name: campaign name: campaign
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment