|
@@ -424,7 +424,7 @@
|
|
|
</insert>
|
|
|
|
|
|
<select id="addGroups" resultType="com.caimei365.manager.entity.caimei.providers.ServiceProviderModel">
|
|
|
- SELECT s.serviceProviderID AS serviceProviderId, s.linkMan as name, s.contractMobile as mobile
|
|
|
+ SELECT s.serviceProviderID AS serviceProviderId, s.name as name, s.contractMobile as mobile
|
|
|
FROM serviceprovider s
|
|
|
LEFT JOIN cm_serviceTeam_group csg ON csg.serviceId = s.serviceProviderID
|
|
|
WHERE csg.serviceId is null
|
|
@@ -500,17 +500,20 @@
|
|
|
</select>
|
|
|
|
|
|
<select id="getTaskDetail" resultType="com.caimei365.manager.entity.caimei.providers.ProviderTask">
|
|
|
- select id,
|
|
|
- shopId,
|
|
|
- productId,
|
|
|
- title,
|
|
|
- topPic,
|
|
|
- content,
|
|
|
- reward,
|
|
|
- addTime,
|
|
|
- startTime,
|
|
|
- endTime
|
|
|
- from cm_provider_task
|
|
|
+ select cpt.id,
|
|
|
+ cpt.shopId,
|
|
|
+ cpt.productId,
|
|
|
+ p.name as productName,
|
|
|
+ p.mainImage,
|
|
|
+ cpt.title,
|
|
|
+ cpt.topPic,
|
|
|
+ cpt.content,
|
|
|
+ cpt.reward,
|
|
|
+ cpt.addTime,
|
|
|
+ cpt.startTime,
|
|
|
+ cpt.endTime
|
|
|
+ from cm_provider_task cpt
|
|
|
+ left join product p on cpt.productId = p.productId
|
|
|
where id = #{taskId}
|
|
|
</select>
|
|
|
|