1
This commit is contained in:
@@ -135,4 +135,13 @@ public class JDOrderListController extends BaseController
|
||||
return toAjax(jdOrderService.updateJDOrder(jdOrder));
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除JD订单
|
||||
*/
|
||||
@Log(title = "JD订单", businessType = BusinessType.DELETE)
|
||||
@DeleteMapping("/{ids}")
|
||||
public AjaxResult remove(@PathVariable Long[] ids)
|
||||
{
|
||||
return toAjax(jdOrderService.deleteJDOrderByIds(ids));
|
||||
}
|
||||
}
|
||||
|
||||
@@ -40,6 +40,11 @@ public interface JDOrderMapper {
|
||||
* 根据物流链接查询订单
|
||||
*/
|
||||
JDOrder selectJDOrderByLogisticsLink(String logisticsLink);
|
||||
|
||||
/**
|
||||
* 批量删除(根据主键ID)
|
||||
*/
|
||||
int deleteJDOrderByIds(Long[] ids);
|
||||
}
|
||||
|
||||
|
||||
|
||||
@@ -39,6 +39,9 @@ public interface IJDOrderService {
|
||||
|
||||
/** 根据物流链接查询订单 */
|
||||
JDOrder selectJDOrderByLogisticsLink(String logisticsLink);
|
||||
|
||||
/** 批量删除(根据主键ID) */
|
||||
int deleteJDOrderByIds(Long[] ids);
|
||||
}
|
||||
|
||||
|
||||
|
||||
@@ -58,6 +58,14 @@ public class JDOrderServiceImpl implements IJDOrderService {
|
||||
public JDOrder selectJDOrderByLogisticsLink(String logisticsLink) {
|
||||
return jdOrderMapper.selectJDOrderByLogisticsLink(logisticsLink);
|
||||
}
|
||||
|
||||
@Override
|
||||
public int deleteJDOrderByIds(Long[] ids) {
|
||||
if (ids == null || ids.length == 0) {
|
||||
return 0;
|
||||
}
|
||||
return jdOrderMapper.deleteJDOrderByIds(ids);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
@@ -150,6 +150,13 @@
|
||||
limit 1
|
||||
</select>
|
||||
|
||||
<delete id="deleteJDOrderByIds" parameterType="long">
|
||||
delete from jd_order where id in
|
||||
<foreach collection="array" item="id" open="(" separator="," close=")">
|
||||
#{id}
|
||||
</foreach>
|
||||
</delete>
|
||||
|
||||
</mapper>
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user