| | |
| | | import com.core.common.Cools; |
| | | import com.core.common.DateUtils; |
| | | import com.core.exception.CoolException; |
| | | import com.zy.asrs.entity.DropdownValuesDto; |
| | | import com.zy.asrs.entity.OrderDetl; |
| | | import com.zy.asrs.entity.Pla; |
| | | import com.zy.asrs.entity.PlaQty; |
| | |
| | | import org.springframework.stereotype.Service; |
| | | import org.springframework.transaction.annotation.Transactional; |
| | | |
| | | import javax.annotation.Resource; |
| | | import java.util.Date; |
| | | import java.util.List; |
| | | |
| | |
| | | public class PlaServiceImpl extends ServiceImpl<PlaMapper, Pla> implements PlaService { |
| | | @Autowired |
| | | private PlaQtyService plaQtyService; |
| | | |
| | | @Resource |
| | | private PlaMapper plaMapper; |
| | | |
| | | @Override |
| | | public List<DropdownValuesDto> getDropdownValues() { |
| | | return plaMapper.getDropdownValues(); |
| | | } |
| | | |
| | | public Pla selectByBatchAndPackageNo(String batch, Integer packageNo, String brand) { |
| | | return this.selectOne(new EntityWrapper<Pla>().eq("batch",batch).eq("package_no",packageNo).eq("brand",brand)); |
| | |
| | | pla.setTransfer("退货"); |
| | | pla.setStash(""); // 库区 |
| | | pla.setLocNo(""); // 库位 |
| | | |
| | | double beforeWeightAnfme = pla.getWeightAnfme(); |
| | | pla.setWeightAnfme(pla.getWeightAnfme() + plaQty.getOrderWeight()); |
| | | pla.setStatus(GlobleParameter.PLA_STATUS_1); |
| | | this.updateById(pla); |
| | | |
| | | SaasUtils.insertLog(4,pla.getLocNo(),pla.getBrand(),plaQty.getOrderWeight(),user.getUsername(), |
| | | null,pla.getBatch(),pla.getPackageNo(),pla.getOwner(),pla.getWorkshop(),null); |
| | | null,pla.getBatch(),pla.getPackageNo(),pla.getOwner(),pla.getWorkshop(),null,"退回前:"+beforeWeightAnfme+",退回后:"+pla.getWeightAnfme()); |
| | | |
| | | }); |
| | | } |