mp calls listByIds and reports an error

SELECTid,category_id,attr_group_id,sku_type,sku_name,img_url,per_limit,publish_status,check_status,is_new_person,sort,sku_code,price,market_price,stock,lock_stock,low_stock,sale,ware_id,create_time,update_time,is_deleted FROM sku_info WHERE id IN ( )  AND is_deleted=0
### Cause: java.sql.SQLSyntaxErrorException: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')  AND is_deleted=0' at line 1

The reason is that skuIdList is empty when the service layer calls it.

 

Guess you like

Origin blog.csdn.net/picktheshy/article/details/131772536