| | |
| | | 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 org.springframework.web.bind.annotation.PostMapping; |
| | | import org.springframework.web.bind.annotation.RequestBody; |
| | | import org.springframework.web.bind.annotation.RequestMapping; |
| | | import org.springframework.web.bind.annotation.RestController; |
| | | import zy.cloud.wms.common.entity.Parameter; |
| | | import zy.cloud.wms.common.model.ErpUpload; |
| | | import zy.cloud.wms.common.model.param.ReplenishDto; |
| | | import zy.cloud.wms.common.model.param.ReplenishParam; |
| | | import zy.cloud.wms.common.service.erp.ErpService; |
| | | import zy.cloud.wms.common.utils.VersionUtils; |
| | | import zy.cloud.wms.common.web.BaseController; |
| | | import zy.cloud.wms.manager.entity.LocDetl; |
| | |
| | | private MatService matService; |
| | | @Autowired |
| | | private LocDetlService locDetlService; |
| | | @Autowired |
| | | private ErpService erpService; |
| | | |
| | | @PostMapping("/erp/upload") |
| | | public R erpUpload(@RequestBody ErpUpload erpUpload){ |
| | | Boolean result = erpService.uploadBill(erpUpload.getDtos(), erpUpload.getDocId(), erpUpload.getDocNumber()); |
| | | return result ? R.ok() : R.error(); |
| | | } |
| | | |
| | | @PostMapping("/replenish") |
| | | @Transactional |