开业验收

This commit is contained in:
bianyadong
2024-04-22 19:10:25 +08:00
parent 6893413a96
commit 3dd6e5b6cb
9 changed files with 260 additions and 0 deletions

View File

@@ -0,0 +1,27 @@
package com.cool.store.dao;
import com.cool.store.mapper.OpenAcceptanceInfoMapper;
import com.cool.store.request.OpenAcceptanceRequest;
import com.cool.store.vo.OpenAcceptanceInfoListVO;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;
import javax.annotation.Resource;
import java.util.List;
/**
* @author byd
* @date 2024-04-22 14:48
*/
@Repository
public class OpenAcceptanceInfoDAO {
@Resource
private OpenAcceptanceInfoMapper openAcceptanceInfoMapper;
public List<OpenAcceptanceInfoListVO> openAcceptanceList(OpenAcceptanceRequest openAcceptanceRequest){
return openAcceptanceInfoMapper.openAcceptanceList(openAcceptanceRequest);
}
}

View File

@@ -1,7 +1,15 @@
package com.cool.store.mapper;
import com.cool.store.entity.OpenAcceptanceInfoDO;
import com.cool.store.request.OpenAcceptanceRequest;
import com.cool.store.vo.OpenAcceptanceInfoListVO;
import org.apache.ibatis.annotations.Param;
import tk.mybatis.mapper.common.Mapper;
import java.util.List;
public interface OpenAcceptanceInfoMapper extends Mapper<OpenAcceptanceInfoDO> {
List<OpenAcceptanceInfoListVO> openAcceptanceList(@Param("openAcceptance") OpenAcceptanceRequest openAcceptanceRequest);
}

View File

@@ -10,6 +10,7 @@
<result column="plan_open_time" jdbcType="TIMESTAMP" property="planOpenTime" />
<result column="acceptance_status" jdbcType="TINYINT" property="acceptanceStatus" />
<result column="acceptance_time" jdbcType="TIMESTAMP" property="acceptanceTime" />
<result column="acceptance_user_id" jdbcType="TIMESTAMP" property="acceptanceUserId" />
<result column="system_setup" jdbcType="TINYINT" property="systemSetup" />
<result column="license_processing" jdbcType="TINYINT" property="licenseProcessing" />
<result column="franchise_fee_deposit" jdbcType="TINYINT" property="franchiseFeeDeposit" />
@@ -26,4 +27,46 @@
<result column="create_time" jdbcType="TIMESTAMP" property="createTime" />
<result column="update_time" jdbcType="TIMESTAMP" property="updateTime" />
</resultMap>
<select id="openAcceptanceList" resultType="com.cool.store.vo.OpenAcceptanceInfoListVO">
SELECT
o.id AS openAcceptanceInfoId,
s.id AS shopId,
s.shop_name AS shopName,
s.shop_code AS shopCode,
s.shop_manager_user_id AS shopManagerUserId,
s.supervisor_user_id AS supervisorUserId,
l.username AS partnerName,
l.mobile AS partnerMobile,
l.region_id AS regionId,
o.plan_open_time AS planOpenTime,
o.acceptance_status AS acceptanceStatus,
l.investment_manager AS investmentManager,
l.acceptance_time AS acceptanceTime,
o.acceptance_user_id AS acceptanceUserId
FROM
xfsg_open_acceptance_info o
LEFT JOIN xfsg_shop_info s ON o.shop_id = s.id
LEFT JOIN xfsg_line_info l ON l.id = s.line_id
<where>
<if test="openAcceptance.shopName != null and openAcceptance.shopName != ''">
s.shop_name LIKE CONCAT('%',#{shopName},'%')
</if>
<if test="openAcceptance.supervisorUserId != null and openAcceptance.supervisorUserId != ''">
s.supervisor_user_id = #{supervisorUserId}
</if>
<if test="openAcceptance.investmentManager != null and openAcceptance.investmentManager != ''">
l.investment_manager =#{investmentManager}
</if>
<if test="openAcceptance.acceptanceStatus != null">
o.acceptance_status = #{acceptanceStatus}
</if>
<if test="openAcceptance.planOpenTimeBegin != null">
AND o.plan_open_time &gt;= #{planOpenTimeBegin}
</if>
<if test="openAcceptance.planOpenTimeEnd != null">
AND o.plan_open_time &lt;= #{planOpenTimeEnd}
</if>
</where>
</select>
</mapper>