| | |
| | | package com.consum.base.core; |
| | | |
| | | import com.consum.base.core.param.BaseWarehouseParam; |
| | | import com.consum.base.core.utils.SqlParameter; |
| | | import com.consum.base.core.utils.DateUtil; |
| | | import com.consum.base.core.utils.IdUtil; |
| | | import com.consum.base.core.utils.SqlParameter; |
| | | import com.consum.model.po.*; |
| | | import com.walker.infrastructure.utils.NumberGenerator; |
| | | import com.walker.jdbc.service.BaseServiceImpl; |
| | | import lombok.extern.slf4j.Slf4j; |
| | | import org.springframework.beans.BeanUtils; |
| | | import org.springframework.stereotype.Service; |
| | | import org.springframework.transaction.annotation.Propagation; |
| | | import org.springframework.transaction.annotation.Transactional; |
| | | import org.springframework.util.Assert; |
| | | |
| | | import java.util.ArrayList; |
| | |
| | | */ |
| | | @Service |
| | | @Slf4j |
| | | @Transactional(rollbackFor = Exception.class, propagation = Propagation.REQUIRED) |
| | | public class WarehouseCoreService extends BaseServiceImpl { |
| | | |
| | | public static void main(String[] args) { |
| | |
| | | //如果出库的型号与分发单里的型号相同 |
| | | if (goods.getBaseGoodsModelsId().longValue() == output.getWhGoods().getBaseGoodsModelsId().longValue()){ |
| | | DepFormLendingModel model = new DepFormLendingModel(); |
| | | model.setId(NumberGenerator.getLongSequenceNumber()); |
| | | model.setId(IdUtil.generateId()); |
| | | model.setCounts(goods.getCounts()); |
| | | model.setDepFormLendingGoodsId(goods.getId()); |
| | | model.setDepFormLendingId(goods.getDepFormLendingId()); |
| | |
| | | //变更状态为调拨 |
| | | nGoods.setStates(param.getOutput_type()); |
| | | nGoods.setWhCount(param.getCount()); |
| | | nGoods.setId(NumberGenerator.getLongSequenceNumber()); |
| | | nGoods.setId(IdUtil.generateId()); |
| | | insert(nGoods); |
| | | |
| | | CheckWarehouseResult nresult = new CheckWarehouseResult(); |
| | |
| | | WhFormProcure procure = get(new WhFormProcure(),"ID=?",new Object[]{procureModel.getWhFormProcureId()}); |
| | | |
| | | WhGoods goods = new WhGoods(); |
| | | goods.setId(NumberGenerator.getLongSequenceNumber()); |
| | | goods.setId(IdUtil.generateId()); |
| | | goods.setBaseGoodsTemplateId(procureModel.getBaseGoodsTemplateId()); |
| | | goods.setGoodsTemplateName(procureModel.getGoodsTemplateName()); |
| | | goods.setBaseGoodsModelsId(procureModel.getBaseGoodsModelsId()); |