SELECT a.id,
a.NAME,
a.type,
a.image,
a.pid,
a.weigh,
a.description,
a.STATUS,
a.create_time,
a.update_time,
a.score,
a.create_by,
a.update_by,
a.store_id,
a.dept_id,
sbi.name AS storeName,
st.store_type AS storeType
FROM zdy_wcsc_category a
LEFT JOIN zdy_wcsc_store st ON st.id = a.store_id
LEFT JOIN sys_dept d ON d.dept_id = a.dept_id
LEFT JOIN zdy_store_base_info sbi ON st.store_id = sbi.id
insert into zdy_wcsc_category
name,
type,
image,
pid,
weigh,
description,
status,
create_time,
score,
create_by,
update_by,
store_id,
dept_id,
del_flag,
#{name},
#{type},
#{image},
#{pid},
#{weigh},
#{description},
#{status},
sysdate(),
#{score},
#{createBy},
#{updateBy},
#{storeId},
#{deptId},
#{delFlag},
update zdy_wcsc_category
name =
#{name},
type =
#{type},
image =
#{image},
pid =
#{pid},
weigh =
#{weigh},
description =
#{description},
status =
#{status},
update_time = sysdate(),
score =
#{score},
create_by =
#{createBy},
update_by =
#{updateBy},
store_id =
#{storeId},
dept_id =
#{deptId},
del_flag =
#{delFlag},
where id = #{id}
update zdy_wcsc_category
set del_flag = 1
where id = #{id}
update zdy_wcsc_category set del_flag = 1 where id in
#{id}
update zdy_wcsc_category set del_flag = 1 where store_id in
#{id}