|
@@ -24,7 +24,8 @@ public interface ZdChargeItemMapper {
|
|
|
" rtrim(self_flag) self_flag,rtrim(separate_flag) separate_flag,rtrim(suppress_flag) suppress_flag,py_code,d_code wb_code,bill_item_zy,bill_item_mz," +
|
|
|
" charge_unit,percent_group_zy,percent_group_mz,rtrim(case when in_out_flag ='' then null else in_out_flag end) in_out_flag,n_code yn_code,class_code,s_code bz_code,discription,rtrim(del_flag) del_flag," +
|
|
|
" rtrim(yp_flag) yp_flag,bill_item_code,rtrim(xnh_flag) xnh_flag,add_date,hnsyb_code,hnsyb_name,xnh_code,xnh_name,xnh_ratio,xnh_quotamoney,rtrim(xnh_status) xnh_status," +
|
|
|
- " yb_flag_new,yb_comment_new,yb_bl_new,charge_amount_lwg,percent_group_1 percent_group1,yb_name,yb_comment,cl_code,e_code yb_code,co,xl_code FROM (SELECT ROW_NUMBER() OVER (ORDER BY zd_charge_item_page.add_date desc) ",
|
|
|
+ " yb_flag_new,yb_comment_new,yb_bl_new,charge_amount_lwg,percent_group_1 percent_group1,yb_name,yb_comment,cl_code,e_code yb_code,co,xl_code,effective_time,effective_price,update_id,update_time " +
|
|
|
+ " FROM (SELECT ROW_NUMBER() OVER (ORDER BY zd_charge_item_page.add_date desc) ",
|
|
|
"AS RowNumber,* from dbo.zd_charge_item zd_charge_item_page WITH(NOLOCK) where 1=1 ",
|
|
|
"<when test='zdChargeItem.delFlag!=null'>",
|
|
|
" and del_flag =#{zdChargeItem.delFlag}",
|
|
@@ -101,7 +102,8 @@ public interface ZdChargeItemMapper {
|
|
|
"rtrim(self_flag) self_flag,rtrim(separate_flag) separate_flag,rtrim(suppress_flag) suppress_flag,py_code,d_code wb_code,bill_item_zy,bill_item_mz," +
|
|
|
"charge_unit,percent_group_zy,percent_group_mz,rtrim(case when in_out_flag ='' then null else in_out_flag end) in_out_flag,n_code yn_code,class_code,s_code bz_code,discription,rtrim(del_flag) del_flag, " +
|
|
|
"rtrim(yp_flag) yp_flag,bill_item_code,rtrim(xnh_flag) xnh_flag,add_date,hnsyb_code,hnsyb_name,xnh_code,xnh_name,xnh_ratio,xnh_quotamoney,rtrim(xnh_status) xnh_status," +
|
|
|
- "yb_flag_new,yb_comment_new,charge_amount_lwg,percent_group_1 percent_group1,yb_name,yb_comment,yb_bl_new,e_code yb_code,cl_code,co,xl_code from zd_charge_item WITH(NOLOCK) where code = #{code,jdbcType=VARCHAR} ")
|
|
|
+ "yb_flag_new,yb_comment_new,charge_amount_lwg,percent_group_1 percent_group1,yb_name,yb_comment,yb_bl_new,e_code yb_code,cl_code,co,xl_code,effective_time,effective_price,update_id,update_time " +
|
|
|
+ " from zd_charge_item WITH(NOLOCK) where code = #{code,jdbcType=VARCHAR} ")
|
|
|
// " and (del_flag != 1 or del_flag is null) " )
|
|
|
ZdChargeItem selectZdChargeItemByCode(@Param("code") String code);
|
|
|
|
|
@@ -118,7 +120,8 @@ public interface ZdChargeItemMapper {
|
|
|
"charge_unit,percent_group_zy,percent_group_mz,rtrim(case when in_out_flag ='' then null else in_out_flag end) in_out_flag,n_code yn_code,class_code,s_code bz_code,discription,rtrim(del_flag) del_flag, ",
|
|
|
"rtrim(yp_flag) yp_flag,bill_item_code,rtrim(xnh_flag) xnh_flag,add_date,hnsyb_code,hnsyb_name,xnh_code,xnh_name,xnh_ratio,xnh_quotamoney,rtrim(xnh_status) xnh_status,",
|
|
|
// "yb_flag_new,yb_comment_new,yb_bl_new from zd_charge_item where (del_flag != 1 or del_flag is null) ",
|
|
|
- "yb_flag_new,yb_comment_new,yb_bl_new,charge_amount_lwg,percent_group_1 percent_group1,yb_name,yb_comment,e_code yb_code,cl_code,co,xl_code from zd_charge_item WITH(NOLOCK) ",
|
|
|
+ "yb_flag_new,yb_comment_new,yb_bl_new,charge_amount_lwg,percent_group_1 percent_group1,yb_name,yb_comment,e_code yb_code,cl_code,co,xl_code,effective_time,effective_price,update_id,update_time " +
|
|
|
+ " from zd_charge_item WITH(NOLOCK) ",
|
|
|
"<when test='codes!=null'>",
|
|
|
" where code in",
|
|
|
"<foreach item='item' index='index' collection='codes' open='(' separator=',' close=')'>",
|
|
@@ -240,6 +243,18 @@ public interface ZdChargeItemMapper {
|
|
|
"<when test='ybComment!=null'>",
|
|
|
",yb_comment =#{ybComment}",
|
|
|
"</when>",
|
|
|
+ "<when test='effectiveTime!=null'>",
|
|
|
+ ",effective_time =#{effectiveTime}",
|
|
|
+ "</when>",
|
|
|
+ "<when test='effectivePrice!=null'>",
|
|
|
+ ",effective_price =#{effectivePrice}",
|
|
|
+ "</when>",
|
|
|
+ "<when test='updateId!=null'>",
|
|
|
+ ",update_id =#{updateId}",
|
|
|
+ "</when>",
|
|
|
+ "<when test='updateTime!=null'>",
|
|
|
+ ",update_time =#{updateTime}",
|
|
|
+ "</when>",
|
|
|
"</trim>",
|
|
|
"</script>"})
|
|
|
int updateZdChargeItem(ZdChargeItem zdChargeItem);
|
|
@@ -255,7 +270,7 @@ public interface ZdChargeItemMapper {
|
|
|
" rtrim(self_flag) self_flag,rtrim(separate_flag) separate_flag,rtrim(suppress_flag) suppress_flag,py_code,d_code wb_code,bill_item_zy,bill_item_mz," +
|
|
|
" charge_unit,percent_group_zy,percent_group_mz,rtrim(case when in_out_flag ='' then null else in_out_flag end) in_out_flag,n_code yn_code,class_code,s_code bz_code,discription,rtrim(del_flag) del_flag," +
|
|
|
" rtrim(yp_flag) yp_flag,bill_item_code,rtrim(xnh_flag) xnh_flag,add_date,hnsyb_code,hnsyb_name,xnh_code,xnh_name,xnh_ratio,xnh_quotamoney,rtrim(xnh_status) xnh_status," +
|
|
|
- " yb_flag_new,yb_comment_new,yb_bl_new,charge_amount_lwg,percent_group_1 percent_group1,yb_name,yb_comment,cl_code,e_code yb_code,co,xl_code FROM zd_charge_item WITH(NOLOCK) ",
|
|
|
+ " yb_flag_new,yb_comment_new,yb_bl_new,charge_amount_lwg,percent_group_1 percent_group1,yb_name,yb_comment,cl_code,e_code yb_code,co,xl_code,effective_time,effective_price,update_id,update_time FROM zd_charge_item WITH(NOLOCK) ",
|
|
|
" where del_flag =0 ",
|
|
|
"</script>"})
|
|
|
List<ZdChargeItem> selectAllInUsedZdCharge();
|
|
@@ -271,7 +286,7 @@ public interface ZdChargeItemMapper {
|
|
|
" rtrim(self_flag) self_flag,rtrim(separate_flag) separate_flag,rtrim(suppress_flag) suppress_flag,py_code,d_code wb_code,bill_item_zy,bill_item_mz," +
|
|
|
" charge_unit,percent_group_zy,percent_group_mz,rtrim(case when in_out_flag ='' then null else in_out_flag end) in_out_flag,n_code yn_code,class_code,s_code bz_code,discription,rtrim(del_flag) del_flag," +
|
|
|
" rtrim(yp_flag) yp_flag,bill_item_code,rtrim(xnh_flag) xnh_flag,add_date,hnsyb_code,hnsyb_name,xnh_code,xnh_name,xnh_ratio,xnh_quotamoney,rtrim(xnh_status) xnh_status," +
|
|
|
- " yb_flag_new,yb_comment_new,yb_bl_new,charge_amount_lwg,percent_group_1 percent_group1,yb_name,yb_comment,cl_code,e_code yb_code,co,xl_code FROM zd_charge_item WITH(NOLOCK) ",
|
|
|
+ " yb_flag_new,yb_comment_new,yb_bl_new,charge_amount_lwg,percent_group_1 percent_group1,yb_name,yb_comment,cl_code,e_code yb_code,co,xl_code,effective_time,effective_price,update_id,update_time FROM zd_charge_item WITH(NOLOCK) ",
|
|
|
"</script>"})
|
|
|
List<ZdChargeItem> selectAllZdCharge();
|
|
|
|