@RequestMapping(method = RequestMethod.${reqMtd}, value = "${fullPath}<#ifdeaction.getRequestParamType()=='NONE'><#else>/{${itemCodeNameLC + keyCNLC}}</#if>/${deactionCodeName?lower_case}")
public ResponseEntity<${apiReturnValueType}> ${deactionCodeName?uncap_first}(<#ifdeaction.getRequestParamType()=='NONE'><#else><#ifreqMtd?lower_case =='get'>${id_etParams_get}<#else>${id_etParams}</#if></#if>) {
public ResponseEntity<List<${itemCodeName}DTO>> esFetch<#if(deds.getName()=='DEFAULT')>${deds.getCodeName()}<#else>${deds.getCodeName()}</#if>(${deCodeName}SearchContext context) {
List<${srfr7javatype(deapide.getKeyPSDEField().getStdDataType())}> ${deMinApiCNLC}Ids = new ArrayList<${srfr7javatype(deapide.getKeyPSDEField().getStdDataType())}>();
if (${deMinApiCNLC}DOs != null && !${deMinApiCNLC}DOs.isEmpty()) {
for (${deapide.getCodeName()} minorDO : ${deMinApiCNLC}DOs) {
@RequestMapping(method = RequestMethod.${reqMtd}, value = "${fullPath}<#ifdeaction.getRequestParamType()=='NONE'><#else>/{${itemCodeNameLC + keyCNLC}}</#if>/${deactionCodeName?lower_case}")
public ResponseEntity<${apiReturnValueType}> ${deactionCodeName?uncap_first}${byParams}(<#ifdeaction.getRequestParamType()=='NONE'><#else><#ifreqMtd?lower_case =='get'>${id_etParams_get}<#else>${id_etParams}</#if></#if>) {
@PreAuthorize("hasAnyAuthority('ROLE_SUPERADMIN','${sys.codeName}-${de.codeName}-search${dataset.codeName}-all') and hasPermission(#context,'${sys.codeName}-${de.codeName}-Get')")
@RequestMapping(method = RequestMethod.${reqMtd}, value = "${fullPath}/${deactionCodeName?lower_case}batch")
public ResponseEntity<${resultValueType}> ${deactionCodeName?uncap_first}Batch(<#ifdeaction.getRequestParamType()=='NONE'><#else>${etParamsList}</#if>) {
<#ifdeaction.getRequestParamType()=='NONE'>
List<${deCodeName}> domains = new ArrayList<${deCodeName}>();
boolean result = ${deCodeNameLC}Service.${srfmethodname(deactionCodeName)}Batch(domains);
@RequestMapping(method = RequestMethod.${reqMtd}, value = "${fullPath}/${deactionCodeName?lower_case}batch")
public ResponseEntity<${resultValueType}> ${deactionCodeName?uncap_first}${byParams}(<#ifdeaction.getRequestParamType()=='NONE'><#else>${etParamsList}</#if>) {
<#ifdeaction.getRequestParamType()=='NONE'>
List<${deCodeName}> domains = new ArrayList<${deCodeName}>();
boolean result = ${deCodeNameLC}Service.${srfmethodname(deactionCodeName)}Batch(domains);