| | |
| | | package com.zy.common.service.erp; |
| | | |
| | | import com.baomidou.mybatisplus.MybatisSqlSessionTemplate; |
| | | import com.baomidou.mybatisplus.mapper.EntityWrapper; |
| | | import com.core.common.Cools; |
| | | import com.core.common.DateUtils; |
| | |
| | | } |
| | | } |
| | | if (complete) { |
| | | sql = "select * from OutStockbillEntry where 1=1 and FInterID = {1,number,#} and FAuxCommitQty != FQty"; |
| | | sql = MessageFormat.format(sql, Fnumber, FInterID); |
| | | List<OutStockBillEntry> select1 = erpSqlServer.select(sql, OutStockBillEntry.class); |
| | | if(select1.size()<1){ |
| | | if (!completeCPakOut(FBillNo)) { |
| | | log.error("{}出库单标记完成失败", FBillNo); |
| | | |
| | | } |
| | | int updateCount = jdbcTemplate.update("update OutStockbill set Fflag_finish=1 where FBillNo='" + FBillNo + "'"); |
| | | if(updateCount<=0){ |
| | | throw new CoolException("更新出库通知档完成标记失败[FBillNo="+FBillNo+"]"); |
| | | } |
| | | } |
| | | } |
| | | return true; |
| | | } else { |
| | | return false; |