|
|
|
@ -25,7 +25,7 @@ public void del${beanNameWithoutT}ById(${key_type} ${key}){
|
|
|
|
|
renderJson(RetKit.renderSuccess());
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**修改${comment}
|
|
|
|
|
/**按ID修改${comment}
|
|
|
|
|
<#list params as param>
|
|
|
|
|
* @param ${param.key} ${param.comment}
|
|
|
|
|
</#list>
|
|
|
|
@ -36,4 +36,23 @@ public void del${beanNameWithoutT}ById(${key_type} ${key}){
|
|
|
|
|
public void update${beanNameWithoutT}ById(${key_type} ${key} , ${fullParameters}){
|
|
|
|
|
${daoName}.update${beanNameWithoutT}ById(${key} , ${parameters});
|
|
|
|
|
renderJson(RetKit.renderSuccess());
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**按ID查询${comment}
|
|
|
|
|
* @para ${key} 主键
|
|
|
|
|
*/
|
|
|
|
|
@Before({GET.class})
|
|
|
|
|
@JwtCheckInterface({})
|
|
|
|
|
@IsNumericInterface("{${key}}")
|
|
|
|
|
public void get${beanNameWithoutT}ById(${key_type} ${key}){
|
|
|
|
|
renderJson(RetKit.renderSuccess(${daoName}.get${beanNameWithoutT}ById(${key})));
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/** 分页查询${comment}
|
|
|
|
|
*/
|
|
|
|
|
@Before({GET.class})
|
|
|
|
|
@JwtCheckInterface({})
|
|
|
|
|
public void get${beanNameWithoutT}List(int pageNum, int pageSize){
|
|
|
|
|
Page<Record> listPage = ${daoName}.get${beanNameWithoutT}List(pageNum, pageSize);
|
|
|
|
|
renderJson(RetKit.renderSuccess(listPage));
|
|
|
|
|
}
|