Commit bf23537e authored by Đào Nhật Quang's avatar Đào Nhật Quang

quangdn - add download template and import template

parent b1db5075
......@@ -8,5 +8,5 @@ import java.util.List;
@Repository
public interface CustomizeFieldsRepository extends JpaRepository<CustomizeFields, Long> {
List<CustomizeFields> findCustomizeFieldsByFunctionCodeEqualsAndStatusAndSiteId(String functionCode, Long status, Long siteId);
List<CustomizeFields> findCustomizeFieldsByFunctionCodeEqualsAndStatusAndActiveAndSiteId(String functionCode, Long status, Long active, Long siteId);
}
......@@ -879,7 +879,7 @@ public class CustomerServiceImpl implements CustomerService {
LOGGER.info("------------------GET DYNAMIC HEADER-------------------");
List<CustomizeFields> headerList;
try {
headerList = customizeFieldsRepository.findCustomizeFieldsByFunctionCodeEqualsAndStatusAndSiteId("CUSTOMER", 1L, companySiteId);
headerList = customizeFieldsRepository.findCustomizeFieldsByFunctionCodeEqualsAndStatusAndActiveAndSiteId("CUSTOMER", 1L, 1L, companySiteId);
} catch (Exception e) {
LOGGER.info(e.getMessage());
return null;
......
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