| | |
| | | import com.core.common.Cools; |
| | | import com.core.common.DateUtils; |
| | | import com.core.common.R; |
| | | import com.core.exception.CoolException; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.transaction.annotation.Transactional; |
| | | import org.springframework.web.bind.annotation.*; |
| | | import zy.cloud.wms.common.web.BaseController; |
| | | import zy.cloud.wms.manager.entity.Order; |
| | |
| | | return R.ok(); |
| | | } |
| | | |
| | | @RequestMapping(value = "/orders/delete/auth") |
| | | @ManagerAuth |
| | | @Transactional |
| | | public R deleteBatch(@RequestParam(value = "ids[]") Long[] ids){ |
| | | if (Cools.isEmpty((Object) ids)){ |
| | | return R.error(); |
| | | } |
| | | for (Long id : ids){ |
| | | if (!orderService.deleteById(id)) { |
| | | throw new CoolException("服务器错误,请联系管理员"); |
| | | } |
| | | } |
| | | return R.ok(); |
| | | } |
| | | |
| | | @RequestMapping(value = "/order/export/auth") |
| | | @ManagerAuth |
| | | public R export(@RequestBody JSONObject param){ |