| | |
| | | |
| | | |
| | | import com.baomidou.mybatisplus.core.metadata.IPage; |
| | | import com.baomidou.mybatisplus.core.toolkit.ObjectUtils; |
| | | import com.baomidou.mybatisplus.core.toolkit.Wrappers; |
| | | import com.baomidou.mybatisplus.extension.plugins.pagination.Page; |
| | | import com.yuanchu.mom.pojo.Sale; |
| | | import com.yuanchu.mom.pojo.dto.ConsignmentDto; |
| | | import com.yuanchu.mom.service.SaleService; |
| | | import com.yuanchu.mom.utils.JackSonUtil; |
| | |
| | | import com.yuanchu.mom.service.ConsignmentService; |
| | | |
| | | import javax.annotation.Resource; |
| | | import java.sql.Wrapper; |
| | | import java.util.HashMap; |
| | | import java.util.List; |
| | | import java.util.Map; |
| | |
| | | }) |
| | | @GetMapping("/selSale") |
| | | public Result selSale(String orderNumber) { |
| | | //只有销售单审核通过之后才能发货 |
| | | Sale sale = saleService.getOne(Wrappers.<Sale>query().eq("order_number", orderNumber)); |
| | | if (ObjectUtils.isEmpty(sale.getType()) || sale.getType() != 1 ) { |
| | | return Result.fail("只有销售单审核通过之后才能发货!"); |
| | | } |
| | | return Result.success(saleService.selSale(orderNumber)); |
| | | } |
| | | |
| | |
| | | map.put("row", consignmentPage.getRecords()); |
| | | return Result.success(map); |
| | | } |
| | | |
| | | @ApiOperation(value = "根据发货id删除") |
| | | @ApiImplicitParams(value = { |
| | | @ApiImplicitParam(name = "id", value = "发货id", dataTypeClass = Integer.class, required = true) |