用车需求计算审核
This commit is contained in:
parent
9ab497a150
commit
e6a8109ded
@ -187,6 +187,11 @@ public class VehicleDemandController extends JeecgController<VehicleDemand, IVeh
|
||||
return super.importExcel(request, response, VehicleDemand.class);
|
||||
}
|
||||
|
||||
/**
|
||||
* 用车计算
|
||||
* @param vehicleDemand
|
||||
* @return
|
||||
*/
|
||||
@PostMapping(value = "/carCount")
|
||||
public Result<?> carCount(@RequestBody VehicleDemand vehicleDemand) {
|
||||
return vehicleDemandService.carCount(vehicleDemand);
|
||||
|
@ -12,5 +12,10 @@ import com.baomidou.mybatisplus.extension.service.IService;
|
||||
*/
|
||||
public interface IVehicleDemandService extends IService<VehicleDemand> {
|
||||
|
||||
/**
|
||||
* 用车计算
|
||||
* @param vehicleDemand
|
||||
* @return
|
||||
*/
|
||||
Result<?> carCount(VehicleDemand vehicleDemand);
|
||||
}
|
||||
|
@ -14,6 +14,7 @@ import com.baomidou.mybatisplus.extension.conditions.query.QueryChainWrapper;
|
||||
import org.jeecg.common.api.vo.Result;
|
||||
import org.jeecg.common.system.query.QueryGenerator;
|
||||
import org.jeecg.common.util.oConvertUtils;
|
||||
import org.jeecg.modules.tms.outbound.vehicledemand.entity.VehicleDemand;
|
||||
import org.jeecg.modules.tms.outbound.vehicledemandcount.entity.VehicleDemandCount;
|
||||
import org.jeecg.modules.tms.outbound.vehicledemandcount.service.IVehicleDemandCountService;
|
||||
|
||||
@ -190,4 +191,18 @@ public class VehicleDemandCountController extends JeecgController<VehicleDemandC
|
||||
page.setTotal(vdNos.size());
|
||||
return Result.OK(page);
|
||||
}
|
||||
|
||||
/**
|
||||
* 审核
|
||||
* @param id
|
||||
* @return
|
||||
*/
|
||||
@GetMapping(value = "/handleExamine")
|
||||
public Result<VehicleDemand> handleExamine(@RequestParam(name="id",required=true) String id) {
|
||||
VehicleDemandCount vehicleDemandCount = new VehicleDemandCount();
|
||||
vehicleDemandCount.setId(id)
|
||||
.setAuditResult("1");
|
||||
vehicleDemandCountService.updateById(vehicleDemandCount);
|
||||
return Result.OK("审核完成!");
|
||||
}
|
||||
}
|
||||
|
@ -91,7 +91,7 @@ public class VehicleDemandCount implements Serializable {
|
||||
@ApiModelProperty(value = "定标价格")
|
||||
@TableField(exist = false)
|
||||
private java.math.BigDecimal tandardPrice;
|
||||
/**审核结果*/
|
||||
/**审核结果 0-待审核, 1-通过*/
|
||||
@Excel(name = "审核结果", width = 15, dicCode = "audit_result")
|
||||
@Dict(dicCode = "audit_result")
|
||||
@ApiModelProperty(value = "审核结果")
|
||||
|
Loading…
x
Reference in New Issue
Block a user