Commit bc521952 authored by ='s avatar =

hungtt-commit reallocation customer

parent b2e6cdb5
...@@ -19,7 +19,7 @@ public interface CampaignRepositoryCustom { ...@@ -19,7 +19,7 @@ public interface CampaignRepositoryCustom {
ResultDTO checkAllowStatusToPrepare(Long campaignId); ResultDTO checkAllowStatusToPrepare(Long campaignId);
//hungtt //hungtt
ResultDTO findCustomerList(CampaignRequestDTO dto); ResultDTO findCustomerListReallocation(CampaignRequestDTO dto);
//hungtt //hungtt
ResultDTO reallocationCustomer(CampaignRequestDTO dto); ResultDTO reallocationCustomer(CampaignRequestDTO dto);
} }
...@@ -332,7 +332,7 @@ public class CampaignRepositoryImpl implements CampaignRepositoryCustom { ...@@ -332,7 +332,7 @@ public class CampaignRepositoryImpl implements CampaignRepositoryCustom {
@Override @Override
@Transactional(DataSourceQualify.CCMS_FULL) @Transactional(DataSourceQualify.CCMS_FULL)
public ResultDTO findCustomerList(CampaignRequestDTO dto) { public ResultDTO findCustomerListReallocation(CampaignRequestDTO dto) {
ResultDTO resultDTO = new ResultDTO(); ResultDTO resultDTO = new ResultDTO();
List<CustomerCustomDTO> list = new ArrayList<>(); List<CustomerCustomDTO> list = new ArrayList<>();
Map<String, String> params = new HashMap<>(); Map<String, String> params = new HashMap<>();
......
...@@ -51,7 +51,7 @@ public interface CampaignService { ...@@ -51,7 +51,7 @@ public interface CampaignService {
ResultDTO updateCampaign(CampaignDTO dto); ResultDTO updateCampaign(CampaignDTO dto);
//<editor-fold: hungtt> //<editor-fold: hungtt>
ResultDTO findCustomerList(CampaignRequestDTO dto); ResultDTO findCustomerListReallocation(CampaignRequestDTO dto);
ResultDTO reallocationCustomer(CampaignRequestDTO dto); ResultDTO reallocationCustomer(CampaignRequestDTO dto);
//</editor-fold> //</editor-fold>
......
...@@ -455,8 +455,8 @@ public class CampaignServiceImpl implements CampaignService { ...@@ -455,8 +455,8 @@ public class CampaignServiceImpl implements CampaignService {
// hungtt // hungtt
@Override @Override
@Transactional(DataSourceQualify.CCMS_FULL) @Transactional(DataSourceQualify.CCMS_FULL)
public ResultDTO findCustomerList(CampaignRequestDTO dto) { public ResultDTO findCustomerListReallocation(CampaignRequestDTO dto) {
return campaignRepositoryCustom.findCustomerList(dto); return campaignRepositoryCustom.findCustomerListReallocation(dto);
} }
// hungtt // hungtt
......
...@@ -216,10 +216,10 @@ public class CampaignController { ...@@ -216,10 +216,10 @@ public class CampaignController {
return new ResponseEntity<>(resultDTO, HttpStatus.OK); return new ResponseEntity<>(resultDTO, HttpStatus.OK);
} }
@PostMapping("/findCustomerList") @PostMapping("/findCustomerListReallocation")
@ResponseBody @ResponseBody
public ResponseEntity<?> findCustomerList(@RequestBody CampaignRequestDTO dto) { public ResponseEntity<?> findCustomerListReallocation(@RequestBody CampaignRequestDTO dto) {
ResultDTO result = campaignService.findCustomerList(dto); ResultDTO result = campaignService.findCustomerListReallocation(dto);
return new ResponseEntity<>(result, HttpStatus.OK); return new ResponseEntity<>(result, HttpStatus.OK);
} }
......
...@@ -34,7 +34,7 @@ data as ( ...@@ -34,7 +34,7 @@ data as (
where a.campaign_id = :p_campaign_id where a.campaign_id = :p_campaign_id
and a.in_campaign_status = 1 and a.in_campaign_status = 1
and a.status in (select connect_status from connect_status_list) and a.status in (select connect_status from connect_status_list)
order by customerName order by connectTime desc, customerName
), ),
final_data as ( final_data as (
select a.*, rownum row_ from data a select a.*, rownum row_ from data a
......
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