package com.stylefeng.guns.modular.system.service.impl;
|
|
import com.stylefeng.guns.modular.system.dao.TCouponMapper;
|
import com.stylefeng.guns.modular.system.dao.TOrderMapper;
|
import com.stylefeng.guns.modular.system.dao.TSystemConfigMapper;
|
import com.stylefeng.guns.modular.system.model.TBranchOffice;
|
import com.stylefeng.guns.modular.system.dao.TBranchOfficeMapper;
|
import com.stylefeng.guns.modular.system.model.TSystemConfig;
|
import com.stylefeng.guns.modular.system.service.ITBranchOfficeService;
|
import com.baomidou.mybatisplus.service.impl.ServiceImpl;
|
import org.springframework.beans.factory.annotation.Autowired;
|
import org.springframework.stereotype.Service;
|
import org.springframework.ui.Model;
|
|
/**
|
* <p>
|
* 分公司 服务实现类
|
* </p>
|
*
|
* @author stylefeng
|
* @since 2023-02-21
|
*/
|
@Service
|
public class TBranchOfficeServiceImpl extends ServiceImpl<TBranchOfficeMapper, TBranchOffice> implements ITBranchOfficeService {
|
|
@Autowired
|
private TBranchOfficeMapper tBranchOfficeMapper;
|
|
@Autowired
|
private TCouponMapper tCouponMapper;
|
|
@Autowired
|
private TOrderMapper tOrderMapper;
|
|
@Override
|
public void tBranchOfficeDetail(Integer tBranchOfficeId, Model model) {
|
// 分公司信息
|
TBranchOffice tBranchOffice = tBranchOfficeMapper.selectById(tBranchOfficeId);
|
model.addAttribute("principal",tBranchOffice.getPrincipal());
|
model.addAttribute("createTime",tBranchOffice.getCreateTime());
|
model.addAttribute("email",tBranchOffice.getEmail());
|
model.addAttribute("area",tBranchOffice.getProvinceName()+tBranchOffice.getCityName()+tBranchOffice.getDistrictName());
|
}
|
}
|