From 591965a39a0d0dc90e3d9e91d2b50c3242c5976d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=BB=84=E6=B5=B7?= <10402852@qq.com> Date: Mon, 14 Oct 2024 20:55:25 +0800 Subject: [PATCH] 'commit' --- .../main/java/com/dsideal/Code/t_wx_fault_type.txt | 11 +++++++++++ dsUtils/src/main/resources/Controller.ftl | 13 +++++++++++++ dsUtils/target/classes/Controller.ftl | 13 +++++++++++++ 3 files changed, 37 insertions(+) diff --git a/dsUtils/src/main/java/com/dsideal/Code/t_wx_fault_type.txt b/dsUtils/src/main/java/com/dsideal/Code/t_wx_fault_type.txt index fc2c22f2..106c4fcb 100644 --- a/dsUtils/src/main/java/com/dsideal/Code/t_wx_fault_type.txt +++ b/dsUtils/src/main/java/com/dsideal/Code/t_wx_fault_type.txt @@ -19,4 +19,15 @@ public void addWxFaultType(String type_name ){ public void delWxFaultTypeById(int type_id){ ym.delWxFaultTypeById(type_id); renderJson(RetKit.renderSuccess()); +} + +/**修改维修故障类型字典 +* @param type_name 类型名称 +*/ +@Before({POST.class}) +@JwtCheckInterface({}) +@IsNumericInterface({type_id) +public void updateWxFaultTypeById(int type_id , String type_name ){ + ym.updateWxFaultTypeById(type_id , type_name ); + renderJson(RetKit.renderSuccess()); } \ No newline at end of file diff --git a/dsUtils/src/main/resources/Controller.ftl b/dsUtils/src/main/resources/Controller.ftl index f51b1e47..5fa43c50 100644 --- a/dsUtils/src/main/resources/Controller.ftl +++ b/dsUtils/src/main/resources/Controller.ftl @@ -23,4 +23,17 @@ public void add${beanNameWithoutT}(${fullParameters}){ public void del${beanNameWithoutT}ById(${key_type} ${key}){ ${daoName}.del${beanNameWithoutT}ById(${key}); renderJson(RetKit.renderSuccess()); +} + +/**修改${comment} +<#list params as param> +* @param ${param.key} ${param.comment} + +*/ +@Before({POST.class}) +@JwtCheckInterface({}) +@IsNumericInterface({${key}) +public void update${beanNameWithoutT}ById(${key_type} ${key} , ${fullParameters}){ + ${daoName}.update${beanNameWithoutT}ById(${key} , ${parameters}); + renderJson(RetKit.renderSuccess()); } \ No newline at end of file diff --git a/dsUtils/target/classes/Controller.ftl b/dsUtils/target/classes/Controller.ftl index f51b1e47..5fa43c50 100644 --- a/dsUtils/target/classes/Controller.ftl +++ b/dsUtils/target/classes/Controller.ftl @@ -23,4 +23,17 @@ public void add${beanNameWithoutT}(${fullParameters}){ public void del${beanNameWithoutT}ById(${key_type} ${key}){ ${daoName}.del${beanNameWithoutT}ById(${key}); renderJson(RetKit.renderSuccess()); +} + +/**修改${comment} +<#list params as param> +* @param ${param.key} ${param.comment} + +*/ +@Before({POST.class}) +@JwtCheckInterface({}) +@IsNumericInterface({${key}) +public void update${beanNameWithoutT}ById(${key_type} ${key} , ${fullParameters}){ + ${daoName}.update${beanNameWithoutT}ById(${key} , ${parameters}); + renderJson(RetKit.renderSuccess()); } \ No newline at end of file