选址
This commit is contained in:
@@ -34,8 +34,14 @@ public class ShopPointDetailInfoDAO {
|
||||
* @return
|
||||
*/
|
||||
public Integer updateShopPointDetailInfo(ShopPointDetailInfoDO shopPointDetailInfo) {
|
||||
Long pointDetailId = getPointDetailIdByPointId(shopPointDetailInfo.getPointId());
|
||||
shopPointDetailInfo.setId(pointDetailId);
|
||||
return shopPointDetailInfoMapper.updateByPrimaryKeySelective(shopPointDetailInfo);
|
||||
}
|
||||
|
||||
public Long getPointDetailIdByPointId(Long pointId){
|
||||
return shopPointDetailInfoMapper.getPointDetailIdByPointId(pointId);
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
package com.cool.store.dao;
|
||||
|
||||
import com.cool.store.entity.ShopPointInfoDO;
|
||||
import com.cool.store.mapper.ShopPointInfoMapper;
|
||||
import org.springframework.stereotype.Repository;
|
||||
|
||||
@@ -17,4 +18,12 @@ public class ShopPointInfoDAO {
|
||||
@Resource
|
||||
private ShopPointInfoMapper shopPointInfoMapper;
|
||||
|
||||
public Long addShopPointInfo(ShopPointInfoDO shopPointInfo) {
|
||||
shopPointInfoMapper.insertSelective(shopPointInfo);
|
||||
return shopPointInfo.getId();
|
||||
}
|
||||
|
||||
public Integer updatePointInfo(ShopPointInfoDO shopPointInfo) {
|
||||
return shopPointInfoMapper.updateByPrimaryKeySelective(shopPointInfo);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,7 +1,15 @@
|
||||
package com.cool.store.mapper;
|
||||
|
||||
import com.cool.store.entity.ShopPointDetailInfoDO;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
import tk.mybatis.mapper.common.Mapper;
|
||||
|
||||
public interface ShopPointDetailInfoMapper extends Mapper<ShopPointDetailInfoDO> {
|
||||
|
||||
/**
|
||||
* 获取详情id
|
||||
* @param pointId
|
||||
* @return
|
||||
*/
|
||||
Long getPointDetailIdByPointId(@Param("pointId") Long pointId);
|
||||
}
|
||||
@@ -2,9 +2,6 @@
|
||||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="com.cool.store.mapper.ShopPointDetailInfoMapper">
|
||||
<resultMap id="BaseResultMap" type="com.cool.store.entity.ShopPointDetailInfoDO">
|
||||
<!--
|
||||
WARNING - @mbg.generated
|
||||
-->
|
||||
<id column="id" jdbcType="BIGINT" property="id" />
|
||||
<result column="point_id" jdbcType="BIGINT" property="pointId" />
|
||||
<result column="bussiness_status" jdbcType="TINYINT" property="bussinessStatus" />
|
||||
@@ -14,7 +11,6 @@
|
||||
<result column="nineteen_flow_rate" jdbcType="TINYINT" property="nineteenFlowRate" />
|
||||
<result column="point_direction" jdbcType="TINYINT" property="pointDirection" />
|
||||
<result column="site_conditions" jdbcType="TINYINT" property="siteConditions" />
|
||||
<result column="use_area" jdbcType="VARCHAR" property="useArea" />
|
||||
<result column="store_width" jdbcType="VARCHAR" property="storeWidth" />
|
||||
<result column="landlord_username" jdbcType="VARCHAR" property="landlordUsername" />
|
||||
<result column="landlord_mobile" jdbcType="VARCHAR" property="landlordMobile" />
|
||||
@@ -54,20 +50,20 @@
|
||||
<result column="clerk_num" jdbcType="VARCHAR" property="clerkNum" />
|
||||
<result column="clerk_fee" jdbcType="VARCHAR" property="clerkFee" />
|
||||
<result column="bonus" jdbcType="VARCHAR" property="bonus" />
|
||||
<result column="monthly_rent" jdbcType="VARCHAR" property="monthlyRent" />
|
||||
<result column="month_rent" jdbcType="VARCHAR" property="monthRent" />
|
||||
<result column="other_fee" jdbcType="VARCHAR" property="otherFee" />
|
||||
<result column="net_profit" jdbcType="VARCHAR" property="netProfit" />
|
||||
<result column="monthly_rate_return" jdbcType="VARCHAR" property="monthlyRateReturn" />
|
||||
<result column="month_rate_return" jdbcType="VARCHAR" property="monthRateReturn" />
|
||||
<result column="development_manager_sign" jdbcType="VARCHAR" property="developmentManagerSign" />
|
||||
<result column="development_manager_sign_time" jdbcType="TIMESTAMP" property="developmentManagerSignTime" />
|
||||
<result column="operation_user_sign" jdbcType="VARCHAR" property="operationUserSign" />
|
||||
<result column="operation_user_sign_time" jdbcType="TIMESTAMP" property="operationUserSignTime" />
|
||||
<result column="line_sign" jdbcType="VARCHAR" property="lineSign" />
|
||||
<result column="line_sign_time" jdbcType="TIMESTAMP" property="lineSignTime" />
|
||||
<result column="market_size_score" jdbcType="VARCHAR" property="marketSizeScore" />
|
||||
<result column="shop_area_score" jdbcType="VARCHAR" property="shopAreaScore" />
|
||||
<result column="convenient_score" jdbcType="VARCHAR" property="convenientScore" />
|
||||
<result column="environment_score" jdbcType="VARCHAR" property="environmentScore" />
|
||||
<result column="market_size_score" jdbcType="INTEGER" property="marketSizeScore" />
|
||||
<result column="shop_area_score" jdbcType="INTEGER" property="shopAreaScore" />
|
||||
<result column="convenient_score" jdbcType="INTEGER" property="convenientScore" />
|
||||
<result column="environment_score" jdbcType="INTEGER" property="environmentScore" />
|
||||
<result column="rent_contract" jdbcType="VARCHAR" property="rentContract" />
|
||||
<result column="map_evaluation_report" jdbcType="VARCHAR" property="mapEvaluationReport" />
|
||||
<result column="deleted" jdbcType="BIT" property="deleted" />
|
||||
@@ -75,4 +71,7 @@
|
||||
<result column="update_time" jdbcType="TIMESTAMP" property="updateTime" />
|
||||
<result column="picture_obj" jdbcType="LONGVARCHAR" property="pictureObj" />
|
||||
</resultMap>
|
||||
<select id="getPointDetailIdByPointId" resultType="java.lang.Long">
|
||||
select id from xfsg_shop_point_detail_info where point_id = #{pointId}
|
||||
</select>
|
||||
</mapper>
|
||||
@@ -2,27 +2,23 @@
|
||||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="com.cool.store.mapper.ShopPointInfoMapper">
|
||||
<resultMap id="BaseResultMap" type="com.cool.store.entity.ShopPointInfoDO">
|
||||
<!--
|
||||
WARNING - @mbg.generated
|
||||
-->
|
||||
<id column="id" jdbcType="BIGINT" property="id" />
|
||||
<result column="point_code" jdbcType="VARCHAR" property="pointCode" />
|
||||
<result column="point_name" jdbcType="VARCHAR" property="pointName" />
|
||||
<result column="region_id" jdbcType="BIGINT" property="regionId" />
|
||||
<result column="shop_id" jdbcType="BIGINT" property="shopId" />
|
||||
<result column="line_id" jdbcType="BIGINT" property="lineId" />
|
||||
<result column="point_space" jdbcType="VARCHAR" property="pointSpace" />
|
||||
<result column="point_area" jdbcType="VARCHAR" property="pointArea" />
|
||||
<result column="shop_area_type" jdbcType="VARCHAR" property="shopAreaType" />
|
||||
<result column="longitude" jdbcType="VARCHAR" property="longitude" />
|
||||
<result column="latitude" jdbcType="VARCHAR" property="latitude" />
|
||||
<result column="address" jdbcType="VARCHAR" property="address" />
|
||||
<result column="point_area_id" jdbcType="BIGINT" property="pointAreaId" />
|
||||
<result column="development_manager" jdbcType="VARCHAR" property="developmentManager" />
|
||||
<result column="operate_user_id" jdbcType="VARCHAR" property="operateUserId" />
|
||||
<result column="development_time" jdbcType="TIMESTAMP" property="developmentTime" />
|
||||
<result column="point_status" jdbcType="TINYINT" property="pointStatus" />
|
||||
<result column="point_score" jdbcType="VARCHAR" property="pointScore" />
|
||||
<result column="audit_count" jdbcType="TINYINT" property="auditCount" />
|
||||
<result column="point_score" jdbcType="INTEGER" property="pointScore" />
|
||||
<result column="submit_audit_count" jdbcType="TINYINT" property="submitAuditCount" />
|
||||
<result column="is_line_upload" jdbcType="BIT" property="isLineUpload" />
|
||||
<result column="deleted" jdbcType="BIT" property="deleted" />
|
||||
<result column="create_time" jdbcType="TIMESTAMP" property="createTime" />
|
||||
|
||||
Reference in New Issue
Block a user