面试&面谈

This commit is contained in:
zhangchenbiao
2024-03-29 12:01:02 +08:00
parent 000561518b
commit da984f90e4
27 changed files with 1238 additions and 28 deletions

View File

@@ -0,0 +1,50 @@
package com.cool.store.dao;
import com.cool.store.entity.ShopInfoDO;
import com.cool.store.mapper.ShopInfoMapper;
import org.springframework.stereotype.Repository;
import javax.annotation.Resource;
import java.util.List;
import java.util.Objects;
/**
* @author zhangchenbiao
* @FileName: ShopInfoDAO
* @Description:
* @date 2024-03-29 10:14
*/
@Repository
public class ShopInfoDAO {
@Resource
private ShopInfoMapper shopInfoMapper;
/**
* 获取门店信息
* @param shopId
* @return
*/
public ShopInfoDO getShopInfo(Long shopId){
ShopInfoDO shopInfo = shopInfoMapper.selectByPrimaryKey(shopId);
if(Objects.isNull(shopInfo) || shopInfo.getDeleted()){
return null;
}
return shopInfo;
}
public List<ShopInfoDO> getShopList(Long lineId){
return shopInfoMapper.getShopList(lineId);
}
/**
* 新增门店信息
* @param shopInfo
* @return
*/
public Long addShopInfo(ShopInfoDO shopInfo){
shopInfoMapper.insertSelective(shopInfo);
return shopInfo.getId();
}
}

View File

@@ -0,0 +1,41 @@
package com.cool.store.dao;
import com.cool.store.entity.ShopPointDetailInfoDO;
import com.cool.store.mapper.ShopPointDetailInfoMapper;
import org.springframework.stereotype.Repository;
import javax.annotation.Resource;
/**
* @author zhangchenbiao
* @FileName: ShopPointDetailInfoDAO
* @Description:
* @date 2024-03-29 10:15
*/
@Repository
public class ShopPointDetailInfoDAO {
@Resource
private ShopPointDetailInfoMapper shopPointDetailInfoMapper;
/**
* 新增点位详情
* @param shopPointDetailInfo
* @return
*/
public Long addShopPointDetailInfo(ShopPointDetailInfoDO shopPointDetailInfo) {
shopPointDetailInfoMapper.insertSelective(shopPointDetailInfo);
return shopPointDetailInfo.getId();
}
/**
* 更新点位详情
* @param shopPointDetailInfo
* @return
*/
public Integer updateShopPointDetailInfo(ShopPointDetailInfoDO shopPointDetailInfo) {
return shopPointDetailInfoMapper.updateByPrimaryKeySelective(shopPointDetailInfo);
}
}

View File

@@ -0,0 +1,20 @@
package com.cool.store.dao;
import com.cool.store.mapper.ShopPointInfoMapper;
import org.springframework.stereotype.Repository;
import javax.annotation.Resource;
/**
* @author zhangchenbiao
* @FileName: ShopPointInfoDAO
* @Description:
* @date 2024-03-29 10:15
*/
@Repository
public class ShopPointInfoDAO {
@Resource
private ShopPointInfoMapper shopPointInfoMapper;
}

View File

@@ -0,0 +1,18 @@
package com.cool.store.mapper;
import com.cool.store.entity.ShopInfoDO;
import org.apache.ibatis.annotations.Param;
import tk.mybatis.mapper.common.Mapper;
import java.util.List;
public interface ShopInfoMapper extends Mapper<ShopInfoDO> {
/**
* 获取加盟商的店铺列表
* @param lineId
* @return
*/
List<ShopInfoDO> getShopList(@Param("lineId") Long lineId);
}

View File

@@ -0,0 +1,7 @@
package com.cool.store.mapper;
import com.cool.store.entity.ShopPointDetailInfoDO;
import tk.mybatis.mapper.common.Mapper;
public interface ShopPointDetailInfoMapper extends Mapper<ShopPointDetailInfoDO> {
}

View File

@@ -0,0 +1,7 @@
package com.cool.store.mapper;
import com.cool.store.entity.ShopPointInfoDO;
import tk.mybatis.mapper.common.Mapper;
public interface ShopPointInfoMapper extends Mapper<ShopPointInfoDO> {
}

View File

@@ -0,0 +1,31 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.cool.store.mapper.ShopInfoMapper">
<resultMap id="BaseResultMap" type="com.cool.store.entity.ShopInfoDO">
<id column="id" jdbcType="BIGINT" property="id" />
<result column="region_id" jdbcType="BIGINT" property="regionId" />
<result column="line_id" jdbcType="BIGINT" property="lineId" />
<result column="partner_id" jdbcType="VARCHAR" property="partnerId" />
<result column="point_id" jdbcType="BIGINT" property="pointId" />
<result column="shop_name" jdbcType="VARCHAR" property="shopName" />
<result column="shop_code" jdbcType="VARCHAR" property="shopCode" />
<result column="store_num" jdbcType="VARCHAR" property="storeNum" />
<result column="shop_manager_user_id" jdbcType="VARCHAR" property="shopManagerUserId" />
<result column="supervisor_user_id" jdbcType="VARCHAR" property="supervisorUserId" />
<result column="plan_open_time" jdbcType="TIMESTAMP" property="planOpenTime" />
<result column="cur_progress" jdbcType="DECIMAL" property="curProgress" />
<result column="shop_type" jdbcType="TINYINT" property="shopType" />
<result column="shop_stage" jdbcType="TINYINT" property="shopStage" />
<result column="deleted" jdbcType="BIT" property="deleted" />
<result column="create_time" jdbcType="TIMESTAMP" property="createTime" />
<result column="update_time" jdbcType="TIMESTAMP" property="updateTime" />
</resultMap>
<sql id="allColumn">
id, region_id, line_id, partner_id, point_id, shop_name, shop_code, store_num, shop_manager_user_id, supervisor_user_id, plan_open_time, cur_progress, shop_type, shop_stage, deleted, create_time, update_time
</sql>
<select id="getShopList" resultMap="BaseResultMap">
select <include refid="allColumn"/> from xfsg_shop_info where line_id = #{lineId} and deleted= '0'
</select>
</mapper>

View File

@@ -0,0 +1,78 @@
<?xml version="1.0" encoding="UTF-8"?>
<!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" />
<result column="nine_flow_rate" jdbcType="TINYINT" property="nineFlowRate" />
<result column="ten_flow_rate" jdbcType="TINYINT" property="tenFlowRate" />
<result column="eighteen_flow_rate" jdbcType="TINYINT" property="eighteenFlowRate" />
<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" />
<result column="store_rent" jdbcType="VARCHAR" property="storeRent" />
<result column="payment_method" jdbcType="TINYINT" property="paymentMethod" />
<result column="property_status" jdbcType="TINYINT" property="propertyStatus" />
<result column="transfer_fee" jdbcType="VARCHAR" property="transferFee" />
<result column="cover_community" jdbcType="TINYINT" property="coverCommunity" />
<result column="consumer_ability" jdbcType="TINYINT" property="consumerAbility" />
<result column="flow_rate_calculate" jdbcType="TINYINT" property="flowRateCalculate" />
<result column="gather_guest_farmer_market" jdbcType="TINYINT" property="gatherGuestFarmerMarket" />
<result column="gather_guest_hospital" jdbcType="TINYINT" property="gatherGuestHospital" />
<result column="gather_guest_school" jdbcType="TINYINT" property="gatherGuestSchool" />
<result column="store_flow_trend" jdbcType="TINYINT" property="storeFlowTrend" />
<result column="near_repast" jdbcType="TINYINT" property="nearRepast" />
<result column="near_neighbor" jdbcType="TINYINT" property="nearNeighbor" />
<result column="near_compete" jdbcType="TINYINT" property="nearCompete" />
<result column="near_business_condition" jdbcType="TINYINT" property="nearBusinessCondition" />
<result column="intend_position" jdbcType="TINYINT" property="intendPosition" />
<result column="green_belt" jdbcType="TINYINT" property="greenBelt" />
<result column="store_outlook" jdbcType="TINYINT" property="storeOutlook" />
<result column="guest_convenience" jdbcType="TINYINT" property="guestConvenience" />
<result column="want_shop_size" jdbcType="TINYINT" property="wantShopSize" />
<result column="compete_type" jdbcType="TINYINT" property="competeType" />
<result column="compete_business_capacity" jdbcType="TINYINT" property="competeBusinessCapacity" />
<result column="invest_amount" jdbcType="VARCHAR" property="investAmount" />
<result column="day_trader" jdbcType="VARCHAR" property="dayTrader" />
<result column="profit_rate" jdbcType="VARCHAR" property="profitRate" />
<result column="month_profit_rate" jdbcType="VARCHAR" property="monthProfitRate" />
<result column="delivery_rate" jdbcType="VARCHAR" property="deliveryRate" />
<result column="delivery_fee" jdbcType="VARCHAR" property="deliveryFee" />
<result column="brand_use_rate" jdbcType="VARCHAR" property="brandUseRate" />
<result column="brand_use_fee" jdbcType="VARCHAR" property="brandUseFee" />
<result column="staff_fee" jdbcType="VARCHAR" property="staffFee" />
<result column="shop_manager_num" jdbcType="VARCHAR" property="shopManagerNum" />
<result column="shop_manager_fee" jdbcType="VARCHAR" property="shopManagerFee" />
<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="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="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="rent_contract" jdbcType="VARCHAR" property="rentContract" />
<result column="map_evaluation_report" jdbcType="VARCHAR" property="mapEvaluationReport" />
<result column="deleted" jdbcType="BIT" property="deleted" />
<result column="create_time" jdbcType="TIMESTAMP" property="createTime" />
<result column="update_time" jdbcType="TIMESTAMP" property="updateTime" />
<result column="picture_obj" jdbcType="LONGVARCHAR" property="pictureObj" />
</resultMap>
</mapper>

View File

@@ -0,0 +1,31 @@
<?xml version="1.0" encoding="UTF-8"?>
<!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="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="is_line_upload" jdbcType="BIT" property="isLineUpload" />
<result column="deleted" jdbcType="BIT" property="deleted" />
<result column="create_time" jdbcType="TIMESTAMP" property="createTime" />
<result column="update_time" jdbcType="TIMESTAMP" property="updateTime" />
</resultMap>
</mapper>

View File

@@ -3,6 +3,6 @@ jdbc.url = jdbc:mysql://dingpushcoolcollege.mysql.rds.aliyuncs.com:3306/coolcoll
jdbc.user= coolstore
jdbc.password = CSCErYcXniNYm7bT
table.name = xfsg_line_follow_log
table.object.class = LineFollowLogDO
table.mapper = LineFollowLogMapper
table.name = xfsg_shop_point_info
table.object.class = ShopPointInfoDO
table.mapper = ShopPointInfoMapper