| | |
| | | import com.core.common.DateUtils; |
| | | import com.core.common.R; |
| | | import com.zy.asrs.entity.WaitPakin; |
| | | import com.zy.asrs.entity.WrkMast; |
| | | import com.zy.asrs.service.WaitPakinService; |
| | | import com.zy.asrs.service.WrkMastService; |
| | | import com.zy.common.web.BaseController; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.web.bind.annotation.*; |
| | |
| | | |
| | | @Autowired |
| | | private WaitPakinService waitPakinService; |
| | | |
| | | @Autowired |
| | | private WrkMastService wrkMastService; |
| | | |
| | | @RequestMapping(value = "/waitPakin/{id}/auth") |
| | | @ManagerAuth |
| | |
| | | return R.error(); |
| | | } |
| | | for (WaitPakin entity : list){ |
| | | waitPakinService.delete(new EntityWrapper<>(entity)); |
| | | WrkMast wrkMast = wrkMastService.selectByBarcode(entity.getBarcode()); |
| | | if (Cools.isEmpty(wrkMast)) { |
| | | waitPakinService.delete(new EntityWrapper<>(entity)); |
| | | } |
| | | return R.error("工作档数据已存在,无法删除!!"); |
| | | } |
| | | return R.ok(); |
| | | } |