parent
de4d867fda
commit
afcc1d49d4
@ -1,7 +1,28 @@ |
|||||||
package com.hfkj.dao; |
package com.hfkj.dao; |
||||||
|
|
||||||
|
import com.hfkj.entity.SecDictionary; |
||||||
|
import org.apache.ibatis.annotations.Param; |
||||||
|
import org.apache.ibatis.annotations.Update; |
||||||
|
|
||||||
/** |
/** |
||||||
* mapper扩展类 |
* mapper扩展类 |
||||||
*/ |
*/ |
||||||
public interface SecDictionaryMapperExt { |
public interface SecDictionaryMapperExt { |
||||||
|
|
||||||
|
@Update({ |
||||||
|
"<script>" + |
||||||
|
"update sec_dictionary", |
||||||
|
"set code_value = #{data.codeValue,jdbcType=VARCHAR}," + |
||||||
|
"code_name = #{data.codeName,jdbcType=VARCHAR},", |
||||||
|
"code_desc = #{data.codeDesc,jdbcType=VARCHAR},", |
||||||
|
"sort_id = #{data.sortId,jdbcType=INTEGER},", |
||||||
|
"`status` = #{data.status,jdbcType=INTEGER},", |
||||||
|
"ext_1 = #{data.ext1,jdbcType=VARCHAR},", |
||||||
|
"ext_2 = #{data.ext2,jdbcType=VARCHAR},", |
||||||
|
"ext_3 = #{data.ext3,jdbcType=VARCHAR}", |
||||||
|
"where code_type = #{codeType,jdbcType=VARCHAR}", |
||||||
|
" <if test='codeValue != null'> and code_value = #{codeValue,jdbcType=VARCHAR} </if>", |
||||||
|
"</script>" |
||||||
|
}) |
||||||
|
void update(@Param("codeType") String codeType, @Param("codeValue") String codeValue, @Param("data") SecDictionary data); |
||||||
} |
} |
||||||
|
Loading…
Reference in new issue