|
@@ -38,17 +38,13 @@ public interface IllegalChargesAnalysisDao {
|
|
|
@Delete("delete from t_illegal_charge_template where id like #{id}")
|
|
|
void deleteTemplate(@Param("id") String id);
|
|
|
|
|
|
- @Select("select distinct rtrim(code) as code, rtrim(name) as name from zd_charge_item where isnull(del_flag,0)!=1 and py_code like #{pyCode} union " +
|
|
|
- "select distinct rtrim(code) as code, rtrim(name) as name from yp_zd_dict where isnull(del_flag,0)!=1 and py_code like #{pyCode} ")
|
|
|
- List<PureCodeName> selectChargeItemByPyCode(@Param("pyCode") String pyCode);
|
|
|
-
|
|
|
- @Select("select distinct rtrim(code) as code, rtrim(name) as name from zd_charge_item where isnull(del_flag,0)!=1 and code like #{code} union " +
|
|
|
- "select distinct rtrim(code) as code, rtrim(name) as name from yp_zd_dict where isnull(del_flag,0)!=1 and code like #{code}")
|
|
|
- List<PureCodeName> selectChargeItemByCode(@Param("code") String code);
|
|
|
-
|
|
|
- @Select("select distinct rtrim(code) as code, rtrim(name) as name from zd_charge_item where isnull(del_flag,0)!=1 and name like #{name} union " +
|
|
|
- "select distinct rtrim(code) as code, rtrim(name) as name from yp_zd_dict where isnull(del_flag,0)!=1 and name like #{name}")
|
|
|
- List<PureCodeName> selectChargeItemByName(@Param("name") String name);
|
|
|
+ @Select("select distinct rtrim(code) as code, rtrim(name) as name from zd_charge_item where " +
|
|
|
+ "isnull(del_flag,0) ${include} and ${method} like #{content} union " +
|
|
|
+ "select distinct rtrim(code) as code, rtrim(name) as name from yp_zd_dict where " +
|
|
|
+ "isnull(del_flag,0) ${include} and ${method} like #{content} ")
|
|
|
+ List<PureCodeName> selectChargeItem(@Param("method") String method,
|
|
|
+ @Param("content") String content,
|
|
|
+ @Param("include") String include);
|
|
|
|
|
|
@Update("update t_illegal_charge_template set label=#{label}, value=#{value},attribute=#{attribute} where id=#{id}")
|
|
|
void updateTemplate(IllegalChargeTemplate template);
|