(select GROUP_CONCAT(g.product_name) from sell_table f inner join product_information g on g.product_id=f.product_id where f.sell_id = a.sell_id ) productNames,
(select GROUP_CONCAT(g.product_name) from sales_table f inner join product_information g on g.product_id=f.product_id where f.sales_id = a.sales_id ) productNames,
a.customer_phone,
a.customer_address,
a.create_by,
...
...
@@ -28,7 +28,7 @@
a.sales_id,
a.sales_date,
a.customer_name,
(select GROUP_CONCAT(g.product_name) from sell_table f inner join product_information g on g.product_id=f.product_id where f.sell_id = a.sell_id ) productNames,
(select GROUP_CONCAT(g.product_name) from sales_table f inner join product_information g on g.product_id=f.product_id where f.sales_id = a.sales_id ) productNames,
(select GROUP_CONCAT(g.product_name) from sell_table f inner join product_information g on g.product_id=f.product_id where f.sell_id = a.sell_id ) productNames,
a.customer_phone,
a.customer_address,
a.create_by,
a.create_time,
a.update_by,
a.update_time,
(select full_name from sys_user where user_id =a.update_by) updateName,
a.is_delete,
a.user_id
from
sell a
<where>
${ew.sqlSegment}
</where>
</select>
<!-- 查询全部 -->
<selectid="selectList"resultType="Sell">
select
a.sell_id,
a.sell_date,
a.customer_name,
(select GROUP_CONCAT(g.product_name) from sell_table f inner join product_information g on g.product_id=f.product_id where f.sell_id = a.sell_id ) productNames,
a.customer_phone,
a.customer_address,
a.create_by,
a.create_time,
a.update_by,
a.update_time,
(select full_name from sys_user where user_id =a.update_by) updateName,
(select GROUP_CONCAT(g.product_name) from sell_table f inner join product_information g on g.product_id=f.product_id where f.sell_id = a.sell_id ) productNames,
a.customer_phone,
a.customer_address,
a.create_by,
a.create_time,
a.update_by,
a.update_time,
(select full_name from sys_user where user_id =a.update_by) updateName,