店铺信息 增加小票logo返回

This commit is contained in:
2024-11-01 10:02:31 +08:00
parent efe907d9af
commit c04d8faabd
5 changed files with 27 additions and 1 deletions

View File

@@ -12,5 +12,7 @@ public interface TbShopInfoMapper {
List<TbShopInfo> selectAllByCreateTime();
String getTicketLogo(Integer shopId);
}

View File

@@ -262,5 +262,7 @@ public class TbShopInfo implements Serializable {
* 店铺收款码
*/
private String paymentQrcode;
private String ticketLogo = "https://cashier-oss.oss-cn-beijing.aliyuncs.com/upload/20241022/eeee8e85c66947e5bcaebf687381b5d6.png";
}

View File

@@ -41,6 +41,10 @@ public class SignInterceptor implements HandlerInterceptor {
return true;
}
if (requestUri.contains("/shopInfo/queryShopInfo")) {
return true;
}
if (requestUri.contains("/version/pcDownload")) {
return true;
}

View File

@@ -18,6 +18,7 @@ import com.chaozhanggui.system.cashierservice.util.PageHelperUtil;
import com.chaozhanggui.system.cashierservice.util.TokenUtil;
import com.github.pagehelper.PageHelper;
import com.github.pagehelper.PageInfo;
import org.apache.commons.lang3.StringUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.stereotype.Service;
@@ -55,7 +56,12 @@ public class ShopInfoService {
}
public Result queryShopInfo(Integer shopId) {
return new Result(CodeEnum.SUCCESS,tbShopInfoMapper.selectByPrimaryKey(shopId));
TbShopInfo tbShopInfo = tbShopInfoMapper.selectByPrimaryKey(shopId);
String ticketLogo = tbShopInfoMapper.getTicketLogo(shopId);
if(StringUtils.isNotBlank(ticketLogo)){
tbShopInfo.setTicketLogo(ticketLogo);
}
return new Result(CodeEnum.SUCCESS,tbShopInfo);
}
public Result queryShopArea(String shopId){

View File

@@ -106,5 +106,17 @@
AND NOW());
</select>
<select id="getTicketLogo" resultType="string">
SELECT
`value`
FROM
tb_shop_extend
WHERE
shop_id = #{shopId}
and autoKey = 'ticket_logo'
</select>
</mapper>