| | |
| | | import com.baomidou.mybatisplus.mapper.EntityWrapper; |
| | | import com.stylefeng.guns.core.base.controller.BaseController; |
| | | import com.stylefeng.guns.core.base.tips.SuccessTip; |
| | | import com.stylefeng.guns.core.beetl.ShiroExtUtil; |
| | | import com.stylefeng.guns.core.shiro.ShiroKit; |
| | | import com.stylefeng.guns.core.util.DateUtil; |
| | | import com.stylefeng.guns.core.util.JwtTokenUtil; |
| | |
| | | @Autowired |
| | | private ITBranchOfficeService branchOfficeService; |
| | | |
| | | @Autowired |
| | | private ShiroExtUtil shiroExtUtil; |
| | | |
| | | /** |
| | | * 跳转到首页 |
| | | */ |
| | |
| | | @RequestMapping(value = "/list") |
| | | @ResponseBody |
| | | public Object list(String createTime,Integer type) { |
| | | Integer roleType = Objects.requireNonNull(ShiroKit.getUser()).getRoleType(); |
| | | Integer companyId = Objects.requireNonNull(ShiroKit.getUser()).getObjectId(); |
| | | Integer roleType = Objects.requireNonNull(shiroExtUtil.getUser()).getRoleType(); |
| | | Integer companyId = Objects.requireNonNull(shiroExtUtil.getUser()).getObjectId(); |
| | | EntityWrapper<TYouTui> wrapper = new EntityWrapper<>(); |
| | | |
| | | if(Objects.nonNull(type)){ |
| | |
| | | @RequestMapping(value = "/add") |
| | | @ResponseBody |
| | | public Object add(TYouTui tYouTui) { |
| | | tYouTui.setCompanyId(Objects.requireNonNull(ShiroKit.getUser()).getObjectId()); |
| | | tYouTui.setCompanyId(Objects.requireNonNull(shiroExtUtil.getUser()).getObjectId()); |
| | | tYouTui.setContent(tYouTui.getServiceContent()); |
| | | tYouTuiService.insert(tYouTui); |
| | | return SUCCESS_TIP; |