Commit 606bb93a authored by hezhen's avatar hezhen

123

parent 8b76969a
...@@ -24,6 +24,13 @@ public class VehicleVO extends Vehicle { ...@@ -24,6 +24,13 @@ public class VehicleVO extends Vehicle {
@ApiModelProperty("所属店铺名称") @ApiModelProperty("所属店铺名称")
private String companyName; private String companyName;
@ApiModelProperty("所属店铺联系人")
private String companyLeader;
@ApiModelProperty("所属店铺联系电话")
private String companyLeaderContact;
@ApiModelProperty("经营店铺名称") @ApiModelProperty("经营店铺名称")
private String manageCompanyName; private String manageCompanyName;
......
...@@ -1777,6 +1777,10 @@ public class VehicleBiz extends BaseBiz<VehicleMapper, Vehicle> implements UserR ...@@ -1777,6 +1777,10 @@ public class VehicleBiz extends BaseBiz<VehicleMapper, Vehicle> implements UserR
return mapper.countByCompamyId(companyId); return mapper.countByCompamyId(companyId);
} }
public int setState(String vehicleId,Integer state){
return mapper.setState(vehicleId,state);
}
......
...@@ -6,6 +6,7 @@ import com.xxfc.platform.vehicle.entity.Area; ...@@ -6,6 +6,7 @@ import com.xxfc.platform.vehicle.entity.Area;
import com.xxfc.platform.vehicle.entity.VehicleManageApply; import com.xxfc.platform.vehicle.entity.VehicleManageApply;
import com.xxfc.platform.vehicle.mapper.VehicleManageApplyMapper; import com.xxfc.platform.vehicle.mapper.VehicleManageApplyMapper;
import org.apache.commons.lang3.StringUtils; import org.apache.commons.lang3.StringUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service; import org.springframework.stereotype.Service;
import tk.mybatis.mapper.entity.Example; import tk.mybatis.mapper.entity.Example;
...@@ -15,6 +16,10 @@ import java.util.List; ...@@ -15,6 +16,10 @@ import java.util.List;
public class VehicleManageApplyBiz extends BaseBiz<VehicleManageApplyMapper, VehicleManageApply> { public class VehicleManageApplyBiz extends BaseBiz<VehicleManageApplyMapper, VehicleManageApply> {
@Autowired
VehicleBiz vehicleBiz;
public List<VehicleManageApply> getManageApply(VehicleManageApply vehicleManageApply){ public List<VehicleManageApply> getManageApply(VehicleManageApply vehicleManageApply){
...@@ -40,4 +45,15 @@ public class VehicleManageApplyBiz extends BaseBiz<VehicleManageApplyMapper, Veh ...@@ -40,4 +45,15 @@ public class VehicleManageApplyBiz extends BaseBiz<VehicleManageApplyMapper, Veh
} }
public void applyManage(VehicleManageApply vehicleManageApply){
Integer type = vehicleManageApply.getType() == null ? 1 : vehicleManageApply.getType();
if (type == 2){
vehicleBiz.setState(vehicleManageApply.getVehicleId(),2);
}
}
} }
...@@ -8,6 +8,7 @@ import com.xxfc.platform.vehicle.pojo.dto.VehiclePlanDto; ...@@ -8,6 +8,7 @@ import com.xxfc.platform.vehicle.pojo.dto.VehiclePlanDto;
import com.xxfc.platform.vehicle.pojo.vo.UsableVeicleVO; import com.xxfc.platform.vehicle.pojo.vo.UsableVeicleVO;
import com.xxfc.platform.vehicle.pojo.vo.VehicleVO; import com.xxfc.platform.vehicle.pojo.vo.VehicleVO;
import org.apache.ibatis.annotations.Select; import org.apache.ibatis.annotations.Select;
import org.apache.ibatis.annotations.Update;
import org.springframework.data.repository.query.Param; import org.springframework.data.repository.query.Param;
import tk.mybatis.mapper.common.Mapper; import tk.mybatis.mapper.common.Mapper;
...@@ -72,4 +73,8 @@ public interface VehicleMapper extends Mapper<Vehicle> { ...@@ -72,4 +73,8 @@ public interface VehicleMapper extends Mapper<Vehicle> {
@Select("SELECT goods_type FROM vehicle WHERE subordinate_branch=#{commpanyId} AND is_del=0 GROUP BY goods_type") @Select("SELECT goods_type FROM vehicle WHERE subordinate_branch=#{commpanyId} AND is_del=0 GROUP BY goods_type")
List<Integer> goodTypes(@Param("commpanyId") Integer commpanyId); List<Integer> goodTypes(@Param("commpanyId") Integer commpanyId);
@Update("update vehicle set state=#{state} WHERE id=#{vehicleId} ")
int setState(@Param("vehicleId")String vehicleId,@Param("state")Integer state);
} }
\ No newline at end of file
...@@ -1297,7 +1297,8 @@ ...@@ -1297,7 +1297,8 @@
v.*, v.*,
b.cn_name as brandName, b.cn_name as brandName,
c.`name` categoryName, c.`name` categoryName,
bc.`name` as companyName, bc.`leader` as companyLeader,
bc.`leader_contact_info` as companyLeaderContact,
bc1.`name` as manageCompanyName, bc1.`name` as manageCompanyName,
bc2.`name` as parkCompanyName bc2.`name` as parkCompanyName
FROM vehicle v FROM vehicle v
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment