queryRequest.ftl 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. package ${code.packageName}.model.request;
  2. import com.inkasso.adapter.page.PageQuery;
  3. import com.inkasso.adapter.service.query.Equals;
  4. import com.inkasso.adapter.service.query.Like;
  5. import lombok.Setter;
  6. import lombok.Getter;
  7. <#list code.propertys as property>
  8. <#if property.type = 'Date'>
  9. import java.util.Date;
  10. <#break>
  11. </#if>
  12. </#list>
  13. /**
  14. * @author ${code.author}
  15. * @date ${.now?string('yyyy-MM-dd')}
  16. */
  17. @Getter
  18. @Setter
  19. public class Query${code.className}Request extends PageQuery {
  20. <#list code.propertys as property>
  21. <#if property.name = 'create_user_id' || property.name= 'create_user_name' || property.name= 'create_time' || property.name= 'update_user_id' || property.name= 'update_user_name' || property.name= 'update_time' || property.name= 'delete_flag' || property.name= 'version'>
  22. <#continue>
  23. </#if>
  24. <#if property.type = 'Text'>
  25. <#if property.conditionType = 'LK'>
  26. /**
  27. *${property.label}
  28. */
  29. @Like
  30. </#if>
  31. private String ${property.name};
  32. <#else>
  33. <#if property.conditionType = 'LK'>
  34. /**
  35. *${property.label}
  36. */
  37. @Like
  38. private ${property.type} ${property.name};
  39. </#if>
  40. <#if property.conditionType = 'EQ'>
  41. /**
  42. *${property.label}
  43. */
  44. @Equals
  45. private ${property.type} ${property.name};
  46. </#if>
  47. </#if>
  48. </#list>
  49. }