| @@ -5,6 +5,8 @@ import com.iformall.domain.po.WxShop; | |||||
| import com.iformall.domain.vo.WxShopVo; | import com.iformall.domain.vo.WxShopVo; | ||||
| import org.apache.ibatis.annotations.Param; | import org.apache.ibatis.annotations.Param; | ||||
| import java.io.Serializable; | |||||
| import java.util.Collection; | |||||
| import java.util.List; | import java.util.List; | ||||
| import java.util.Map; | import java.util.Map; | ||||
| @@ -39,4 +41,5 @@ public interface WxShopMapper extends CommonMapper<WxShop, String> { | |||||
| void updateUnRentByIds(@Param("ids")List<Long> shopIds); | void updateUnRentByIds(@Param("ids")List<Long> shopIds); | ||||
| List<WxShop> selectBatchByIds(@Param("ids")List<Long> ids); | |||||
| } | } | ||||
| @@ -82,7 +82,8 @@ public class WxShopServiceImpl implements WxShopService { | |||||
| if(CollectionUtils.isEmpty(ids)) { | if(CollectionUtils.isEmpty(ids)) { | ||||
| return new ArrayList<>() ; | return new ArrayList<>() ; | ||||
| } | } | ||||
| return wxShopMapper.selectBatchIds(ids) ; | |||||
| // return wxShopMapper.selectBatchIds(ids) ; | |||||
| return wxShopMapper.selectBatchByIds((List<Long>) ids) ; | |||||
| } | } | ||||
| @Override | @Override | ||||
| @@ -176,7 +176,7 @@ public class WiwideUtil implements SMSExcutor { | |||||
| public static WiwideSercret querySercret(WxWiWideInfo wiWideInfo) { | public static WiwideSercret querySercret(WxWiWideInfo wiWideInfo) { | ||||
| logger.info("获取WiwideSercret"); | logger.info("获取WiwideSercret"); | ||||
| String username = wiWideInfo.getWiwideId(); | |||||
| String username = wiWideInfo.getUserName(); | |||||
| String password = wiWideInfo.getPassword(); | String password = wiWideInfo.getPassword(); | ||||
| if(StringUtils.isEmpty(username)){ | if(StringUtils.isEmpty(username)){ | ||||
| logger.error("商场:" + wiWideInfo.getTenantId() + ",wiwide info : wiwideId为空" ); | logger.error("商场:" + wiWideInfo.getTenantId() + ",wiwide info : wiwideId为空" ); | ||||
| @@ -139,6 +139,23 @@ | |||||
| <include refid="dynamicWhereConditions"/> | <include refid="dynamicWhereConditions"/> | ||||
| </select> | </select> | ||||
| <select id="selectBatchByIds" resultMap="BaseResultMap"> | |||||
| select | |||||
| s.`id`,s.`tenant_id`,s.`parent_tenant_id`,s.`shop_number`,s.`build_area`,s.`operation_area`,b.building_name building,f.floor_name floor,s.`status`,s.`x`,s.`y`,s.`addr`, | |||||
| s.`baidu_poi`,s.`longitude`,s.`latitude`,s.`create_date`,s.`update_date`,s.`img_url`,s.`manager`,s.`manager_phone`, | |||||
| s.`type`,s.`point_type`,s.`comments`,s.`is_del`,DATEDIFF(now(),s.create_date) freeDay,s.rent,s.rent_unit,s.business_id | |||||
| from wx_shop s | |||||
| left join wx_mall_building b on s.building=b.id | |||||
| left join wx_mall_floor f on s.floor=f.id | |||||
| where s.is_del=0 | |||||
| <if test=" null != ids "> | |||||
| and s.id in | |||||
| <foreach collection="ids" index="index" item="idItem" open="(" separator="," close=")"> | |||||
| #{idItem} | |||||
| </foreach> | |||||
| </if> | |||||
| </select> | |||||
| <select id="findListMap" parameterType="com.iformall.domain.po.WxShop" resultType="hashmap"> | <select id="findListMap" parameterType="com.iformall.domain.po.WxShop" resultType="hashmap"> | ||||
| select s.id id, s.tenant_id tenantId, s.parent_tenant_id parentTenantId, s.shop_number shopNumber,CONVERT(s.build_area,DECIMAL(10,2)) buildArea, | select s.id id, s.tenant_id tenantId, s.parent_tenant_id parentTenantId, s.shop_number shopNumber,CONVERT(s.build_area,DECIMAL(10,2)) buildArea, | ||||
| s.img_url imgUrl,CONVERT(s.operation_area,DECIMAL(10,2)) operationArea, | s.img_url imgUrl,CONVERT(s.operation_area,DECIMAL(10,2)) operationArea, | ||||