| | |
| | | |
| | | import cn.hutool.core.date.DatePattern; |
| | | import com.baomidou.dynamic.datasource.annotation.DS; |
| | | import com.core.common.Cools; |
| | | import com.core.common.R; |
| | | import com.core.exception.CoolException; |
| | | import com.zy.asrs.entity.*; |
| | |
| | | import com.zy.kingdee.entity.PoOrder; |
| | | import com.zy.kingdee.entity.SubContract; |
| | | import com.zy.kingdee.entity.Vendor; |
| | | import com.zy.kingdee.utils.CustomStringUtils; |
| | | import com.zy.kingdee.utils.ERPDateUtil; |
| | | import com.zy.kingdee.utils.SnowFlakeUtils; |
| | | import org.aspectj.weaver.ResolvedType; |
| | |
| | | String soCode = listSo.stream().filter(p2 -> { |
| | | return p2.equals(q.getSoCode()); |
| | | }).findAny().orElse(null); |
| | | if (CustomStringUtils.isBlank(soCode)) { |
| | | if (Cools.isEmpty(soCode)) { |
| | | poInStockEntry.setFEntrySelfP0362(poInStockEntry.getFEntrySelfP0362() + "," + q.getSoCode()); |
| | | } |
| | | PoOrder poOrder2 = new PoOrder(); |
| | |
| | | String soCode2 = listSo2.stream().filter(p4 -> { |
| | | return p4.equals(q2.getSoCode()); |
| | | }).findAny().orElse(null); |
| | | if (CustomStringUtils.isBlank(soCode2)) { |
| | | if (Cools.isEmpty(soCode2)) { |
| | | poInStockEntry3.setFEntrySelfP0362(poInStockEntry3.getFEntrySelfP0362() + "," + q2.getSoCode()); |
| | | } |
| | | SubContract poOrder4 = new SubContract(); |
| | |
| | | String strCode = venCode + ERPDateUtil.getDateStr(new Date(), DatePattern.PURE_DATE_PATTERN); |
| | | try { |
| | | String nowCode = this.poInStockMapper.getMaxCode(strCode); |
| | | if (!CustomStringUtils.isBlank(nowCode)) { |
| | | if (!Cools.isEmpty(nowCode)) { |
| | | String strLeft = nowCode.substring(0, strCode.length()); |
| | | String strRight = nowCode.substring(strCode.length(), nowCode.length()); |
| | | Integer num = Integer.valueOf(Integer.valueOf(strRight).intValue() + 1); |