| | |
| | | import com.zy.asrs.task.core.ReturnT; |
| | | import com.zy.common.service.erp.ErpService; |
| | | import com.zy.common.service.erp.entity.OutStockBillEntry; |
| | | import lombok.extern.slf4j.Slf4j; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.jdbc.core.JdbcTemplate; |
| | | import org.springframework.stereotype.Service; |
| | |
| | | /** |
| | | * Created by vincent on 2020/7/6 |
| | | */ |
| | | @Slf4j |
| | | @Service |
| | | @RestController |
| | | public class WorkLogHandler extends AbstractHandler<String> { |
| | |
| | | for (WrkDetl wrkDetl: wrkDetls) { |
| | | if (!Cools.isEmpty(wrkDetl)) { |
| | | Integer FInterI = outStockService.queryOutStockFInterID(wrkDetl.getSupplier()); // 获取出库单主表主键 |
| | | log.info("incrementCPakOut---" + wrkMast.getWrkNo() + "----FInterI" + FInterI); |
| | | if (!Cools.isEmpty(FInterI)) { |
| | | if (!erpService.incrementCPakOut(FInterI, wrkDetl.getMatnr(), wrkDetl.getAnfme(), wrkDetl.getSupplier())) { |
| | | log.error("erpService.incrementCPakOut"); |
| | | exceptionHandle("[xtyasrs_dual]更新ERP成品出库数据[matnr={0}]失败", wrkDetl.getMatnr()); |
| | | } |
| | | // if (!outStockService.incrementCPakOut(FInterI, wrkDetl.getMatnr(), wrkDetl.getAnfme(), wrkDetl.getSupplier())) { |
| | |
| | | } |
| | | } |
| | | } |
| | | |
| | | |
| | | |
| | | // 保存工作主档历史档 |
| | | if (!wrkMastLogService.save(wrkMast.getWrkNo())) { |