main
黄海 9 months ago
parent 0e03d58bba
commit 4d6f18b360

@ -8,3 +8,15 @@ public void addWxFaultType(String type_name ){
ym.addWxFaultType(type_name );
renderJson(RetKit.renderSuccess());
}
/**
* 删除维修故障类型字典
* @param type_name 类型名称
*/
@Before({POST.class})
@JwtCheckInterface({})
@IsNumericInterface({"type_id"})
public void delWxFaultTypeById(int type_id){
ym.delWxFaultTypeById(type_id);
renderJson(RetKit.renderSuccess());
}

@ -452,7 +452,8 @@ public class GenerateCodeWithFreeMaker {
dataModel.put("beanNameWithoutT", beanNameWithoutT);
dataModel.put("fullParameters", fullParameters);
dataModel.put("parameters", parameters);
dataModel.put("key", key);
dataModel.put("key_type", key_type);
// 创建一个 Configuration 实例
Configuration cfg = new Configuration(new Version(2, 3, 33));
// 设置模板目录

@ -10,3 +10,17 @@ public void add${beanNameWithoutT}(${fullParameters}){
${daoName}.add${beanNameWithoutT}(${parameters});
renderJson(RetKit.renderSuccess());
}
/**
* 删除${comment}
<#list params as param>
* @param ${param.key} ${param.comment}
</#list>
*/
@Before({POST.class})
@JwtCheckInterface({})
@IsNumericInterface({"${key}"})
public void del${beanNameWithoutT}ById(${key_type} ${key}){
${daoName}.del${beanNameWithoutT}ById(${key});
renderJson(RetKit.renderSuccess());
}

@ -10,3 +10,17 @@ public void add${beanNameWithoutT}(${fullParameters}){
${daoName}.add${beanNameWithoutT}(${parameters});
renderJson(RetKit.renderSuccess());
}
/**
* 删除${comment}
<#list params as param>
* @param ${param.key} ${param.comment}
</#list>
*/
@Before({POST.class})
@JwtCheckInterface({})
@IsNumericInterface({"${key}"})
public void del${beanNameWithoutT}ById(${key_type} ${key}){
${daoName}.del${beanNameWithoutT}ById(${key});
renderJson(RetKit.renderSuccess());
}
Loading…
Cancel
Save