| | |
| | | tErpClinicWarehousing.setWarehousingType(1); |
| | | tErpClinicWarehousing.setType(1); |
| | | tErpClinicWarehousing.setWarehouseNo("G"+ DateUtils.dateTimeNow()); |
| | | tErpClinicWarehousing.setProcurementId(erpProcurement.getId()); |
| | | erpClinicWarehousingService.save(tErpClinicWarehousing); |
| | | // goodsId分组 |
| | | for (UpdateStatusProcurementDto updateStatusProcurementDto : dto.getList()) { |
| | |
| | | public R<List<TSysAppUser>> pageList(@RequestBody TSysAppUserQuery query) { |
| | | LambdaQueryWrapper<TSysAppUser> eq = new LambdaQueryWrapper<TSysAppUser>().eq(TSysAppUser::getStatus, 1); |
| | | if(query.getNickName() != null && !query.getNickName().isEmpty()){ |
| | | eq.like(TSysAppUser::getNickName, query.getNickName()); |
| | | eq.and(e->e.like(TSysAppUser::getNickName, query.getNickName()).or().like(TSysAppUser::getPhone, query.getNickName())); |
| | | } |
| | | if(query.getPhone() != null && !query.getPhone().isEmpty()){ |
| | | eq.like(TSysAppUser::getPhone, query.getPhone()); |
| | | } |
| | | // if(query.getPhone() != null && !query.getPhone().isEmpty()){ |
| | | // eq.like(TSysAppUser::getPhone, query.getPhone()); |
| | | // } |
| | | List<TSysAppUser> list = sysAppUserService.list(eq); |
| | | return R.ok(list); |
| | | } |
| | |
| | | |
| | | @Resource |
| | | private TErpSupplierInventoryMapper erpSupplierInventoryMapper; |
| | | |
| | | @Resource |
| | | private TErpClinicInventoryMapper erpClinicInventoryMapper; |
| | | |
| | | @Resource |
| | | private TErpSupplierInventoryGoodsMapper erpSupplierInventoryGoodsMapper; |
| | | |
| | | @Resource |
| | | private TErpClinicInventoryGoodsMapper erpClinicInventoryGoodsMapper; |
| | | |
| | | @Resource |
| | | private TErpSupplierWarehousingMapper erpSupplierWarehousingMapper; |
| | | |
| | | @Resource |
| | | private TErpClinicWarehousingMapper erpClinicWarehousingMapper; |
| | | |
| | | @Resource |
| | | private TErpSupplierWarehousingBatchMapper erpSupplierWarehousingBatchMapper; |
| | | |
| | | @Resource |
| | | private TErpClinicWarehousingBatchMapper erpClinicWarehousingBatchMapper; |
| | | |
| | | @Resource |
| | | private TErpSupplierOutboundMapper erpSupplierOutboundMapper; |
| | | |
| | | @Resource |
| | | private TErpClinicOutboundMapper erpClinicOutboundMapper; |
| | | |
| | | @Resource |
| | | private TErpSupplierOutboundGoodsMapper erpSupplierOutboundGoodsMapper; |
| | | |
| | | @Resource |
| | | private TErpClinicOutboundGoodsMapper erpClinicOutboundGoodsMapper; |
| | | |
| | |
| | | |
| | | @Resource |
| | | private TCrmSupplierMapper crmSupplierMapper; |
| | | |
| | | @Resource |
| | | private TErpProcurementMapper erpProcurementMapper; |
| | | |
| | | |
| | | |
| | | @Override |
| | |
| | | warehouseGoodsDetailVo.setCreateTime(tErpClinicWarehousing.getCreateTime()); |
| | | warehouseGoodsDetailVo.setCreateBy(tErpClinicWarehousing.getCreateBy()); |
| | | if(tErpClinicWarehousing.getType()==1){ |
| | | TErpClinicInventory tErpClinicInventory = erpClinicInventoryMapper.selectById(tErpClinicWarehousing.getInventoryId()); |
| | | warehouseGoodsDetailVo.setInventoryNumber(tErpClinicInventory.getInventoryNumber()); |
| | | TErpProcurement tErpProcurement = erpProcurementMapper.selectById(tErpClinicWarehousing.getProcurementId()); |
| | | warehouseGoodsDetailVo.setInventoryNumber(tErpProcurement.getProcurementCode()); |
| | | } |
| | | |
| | | List<TErpClinicWarehousingBatch> tErpClinicWarehousingBatches = erpClinicWarehousingBatchMapper.selectList(new LambdaQueryWrapper<TErpClinicWarehousingBatch>().eq(TErpClinicWarehousingBatch::getWarehousingId, id)); |
| | |
| | | @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8") |
| | | private LocalDateTime createTime; |
| | | |
| | | @ApiModelProperty(value = "盘点单号") |
| | | @ApiModelProperty(value = "采购单号") |
| | | private String inventoryNumber; |
| | | |
| | | |
| | | @ApiModelProperty(value = "入库商品") |
| | | private List<TErpClinicWarehousingBatch> list; |
| | | } |
| | |
| | | COALESCE(sum(t2.purchase_count), 0) - COALESCE(sum(t3.outbound_count), 0) as allNum, |
| | | SUM(t2.unit_amount * (t2.purchase_count - COALESCE(t3.outbound_count, 0))) as allTotalPrice, |
| | | |
| | | COALESCE(sum(t3.outbound_count), 0) as outNum |
| | | COALESCE(sum(t3.outbound_count), 0) as outNum,t4.create_time as createTime1 |
| | | from t_erp_goods t1 left join t_erp_clinic_warehousing_batch t2 on t1.id = t2.goods_id |
| | | left join t_erp_clinic_warehousing t4 on t2.warehousing_id = t4.id |
| | | left join t_erp_clinic_outbound_goods t3 on t2.id = t3.warehousing_id |
| | | where t1.disabled = 0 and t2.id is not null |
| | | <if test="query.goodsName != null and query.goodsName != ''"> |
| | |
| | | <if test="query.type != null and query.type ==1"> |
| | | and o.warning_inventory > (o.allNum-o.outNum) |
| | | </if> |
| | | order by o.create_time desc |
| | | order by o.createTime1 desc |
| | | </select> |
| | | |
| | | <select id="warehousePageList" resultType="com.ruoyi.system.vo.TErpClinicWarehousePageListVO"> |
| | |
| | | select * from ( |
| | | SELECT t1.id,t2.warehouse_no, |
| | | t3.goods_name,t3.goods_source, |
| | | t4.supplier_name, |
| | | case t3.goods_source when 1 then t4.supplier_name when 2 then t3.supplier_name end as supplierName, |
| | | t3.type_id, |
| | | t3.packing_unit_id, |
| | | t3.quasi_number, |