Merge remote-tracking branch 'origin/lyq_battery_shop' into lyq_battery_shop
| | |
| | | @ApiModelProperty(value = "收货地区") |
| | | private String receivingRegion; |
| | | |
| | | @ApiModelProperty(value = "收货地区Code") |
| | | private String receivingRegionCode; |
| | | |
| | | @ApiModelProperty(value = "收货详细地址") |
| | | private String receivingAddress; |
| | | |
| | |
| | | ComChangeCarModel entity = new ComChangeCarModel(); |
| | | BeanUtils.copyProperties(comChangeCarModel, entity); |
| | | if (this.baseMapper.insert(entity) > 0) { |
| | | return R.ok(); |
| | | return R.ok(entity.getId()); |
| | | } |
| | | return R.fail("添加失败"); |
| | | } |
| | |
| | | ComChangeCarModelSpecs entity = new ComChangeCarModelSpecs(); |
| | | BeanUtils.copyProperties(comChangeCarModelSpecs, entity); |
| | | if (this.baseMapper.insert(entity) > 0) { |
| | | return R.ok(); |
| | | return R.ok(entity.getId()); |
| | | } |
| | | return R.fail("添加失败"); |
| | | } |
| | |
| | | com_change_car_model as cccm |
| | | left join com_change_car_brand as cccb on cccb.id = cccm.brand_id |
| | | <where> |
| | | and cccm.is_del = 2 |
| | | <if test="dto.id != null"> |
| | | and cccm.id = #{dto.id} |
| | | </if> |
| | |
| | | com_change_car_model as cccm |
| | | left join com_change_car_brand as cccb on cccb.id = cccm.brand_id |
| | | <where> |
| | | and cccm.is_del = 2 |
| | | <if test="dto.id != null"> |
| | | and cccm.id = #{dto.id} |
| | | </if> |
| | |
| | | and `name` = #{dto.name} |
| | | </if> |
| | | </where> |
| | | order by create_at desc |
| | | </select> |
| | | |
| | | <!--查询所有数据--> |
| | |
| | | and `name` = #{dto.name} |
| | | </if> |
| | | </where> |
| | | order by create_at desc |
| | | </select> |
| | | |
| | | <select id="queryAllBySpecsId" resultType="com.panzhihua.common.model.vos.common.ComChangeCarModelSpecsChildrenVo"> |
| | | select |
| | | id, specs_id, name, is_del |
| | | from com_change_car_model_specs_children |
| | | where is_del = 2 and specs_id = #{dto.specsId} |
| | | order by create_at desc |
| | | where is_del = 2 and specs_id = #{specsId} |
| | | </select> |
| | | |
| | | </mapper> |