no message
This commit is contained in:
@ -170,7 +170,7 @@ public class ItemServiceImpl implements ItemService {
|
|||||||
// 设置属性列表
|
// 设置属性列表
|
||||||
model.setAttrs(getItemAttrs(rentRuleItem, model.getImageList(), model.getItemType()));
|
model.setAttrs(getItemAttrs(rentRuleItem, model.getImageList(), model.getItemType()));
|
||||||
|
|
||||||
RentRuleItem res = rentRuleItemMapper.selectByIds(rentRuleItem.getBatteryRuleId(), rentRuleItem.getCarRuleId(), rentRuleItem.getCarModelId(), rentRuleItem.getBrandId());
|
RentRuleItem res = rentRuleItemMapper.selectItemByFourIds(rentRuleItem.getBatteryRuleId(), rentRuleItem.getCarRuleId(), rentRuleItem.getCarModelId(), rentRuleItem.getBrandId());
|
||||||
|
|
||||||
if(res != null ){
|
if(res != null ){
|
||||||
rentRuleItemMapper.updateItemIdByOutItemId(rentRuleItemvo);
|
rentRuleItemMapper.updateItemIdByOutItemId(rentRuleItemvo);
|
||||||
|
|||||||
@ -11,23 +11,6 @@ import java.util.List;
|
|||||||
@Mapper
|
@Mapper
|
||||||
public interface RentRuleItemMapper {
|
public interface RentRuleItemMapper {
|
||||||
|
|
||||||
/**
|
|
||||||
* 根据ID查询车型租赁规则项
|
|
||||||
* @param id 车型ID
|
|
||||||
* @return 车型租赁规则项信息
|
|
||||||
*/
|
|
||||||
RentRuleItem selectById(@Param("id") Long id);
|
|
||||||
|
|
||||||
RentRuleItem selectByIds(@Param("batteryRuleId") Long batteryRuleId, @Param("carRuleId") Long carRuleId, @Param("carModelId") Long carModelId,@Param("brandId") Long brandId);
|
|
||||||
|
|
||||||
RentRuleItem selectByAliId(@Param("aliItemId") String aliItemId);
|
|
||||||
|
|
||||||
RentRuleItem selectByItemId(@Param("outItemId") String outItemId);
|
|
||||||
/**
|
|
||||||
* 查询所有车型租赁规则项
|
|
||||||
* @return 车型租赁规则项列表
|
|
||||||
*/
|
|
||||||
List<RentRuleItem> selectAll();
|
|
||||||
|
|
||||||
|
|
||||||
RentRuleItem selectByFourId(@Param("batteryRuleId") Long batteryRuleId, @Param("carRuleId") Long carRuleId, @Param("carModelId") Long carModelId,@Param("brandId") Long brandId);
|
RentRuleItem selectByFourId(@Param("batteryRuleId") Long batteryRuleId, @Param("carRuleId") Long carRuleId, @Param("carModelId") Long carModelId,@Param("brandId") Long brandId);
|
||||||
@ -42,17 +25,5 @@ public interface RentRuleItemMapper {
|
|||||||
|
|
||||||
int updateByOutItemId(@Param("outItemId") String outItemId, @Param("aliItemId") String aliItemId);
|
int updateByOutItemId(@Param("outItemId") String outItemId, @Param("aliItemId") String aliItemId);
|
||||||
|
|
||||||
/**
|
|
||||||
* 根据ID删除车型租赁规则项
|
|
||||||
* @param id 车型ID
|
|
||||||
* @return 影响行数
|
|
||||||
*/
|
|
||||||
int deleteById(@Param("id") Long id);
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 批量插入车型租赁规则项
|
|
||||||
* @param list 车型租赁规则项列表
|
|
||||||
* @return 影响行数
|
|
||||||
*/
|
|
||||||
int insertBatch(@Param("list") List<RentRuleItem> list);
|
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user