| | |
| | | import com.stylefeng.guns.core.base.controller.BaseController; |
| | | import com.stylefeng.guns.core.beetl.ShiroExtUtil; |
| | | import com.stylefeng.guns.core.log.LogObjectHolder; |
| | | import com.stylefeng.guns.core.shiro.ShiroKit; |
| | | import com.stylefeng.guns.core.util.ToolUtil; |
| | | import com.stylefeng.guns.modular.system.controller.util.Base64Util; |
| | | import com.stylefeng.guns.modular.system.model.TBank; |
| | |
| | | @Autowired |
| | | private ITBankNextService bankNextService; |
| | | |
| | | @Resource |
| | | private ShiroExtUtil shiroExtUtil; |
| | | |
| | | /** |
| | | * 跳转到首页 |
| | | */ |
| | | @RequestMapping("") |
| | | public String index(Model model) { |
| | | TEnterpriseWithdrawal companyId = tEnterpriseWithdrawalService.selectOne(new EntityWrapper<TEnterpriseWithdrawal>().eq("companyId", ShiroExtUtil.getUser().getObjectId())); |
| | | TEnterpriseWithdrawal companyId = tEnterpriseWithdrawalService.selectOne(new EntityWrapper<TEnterpriseWithdrawal>().eq("companyId", shiroExtUtil.getUser().getObjectId())); |
| | | if (companyId != null) { |
| | | SimpleDateFormat format = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss"); |
| | | model.addAttribute("item", companyId); |
| | |
| | | @Transactional(readOnly = false,propagation = Propagation.REQUIRED,rollbackFor = Exception.class) |
| | | public Object add(TEnterpriseWithdrawal tEnterpriseWithdrawal,Integer accountType,String code,String businessExpireTimeOne,String unifiedSocialCreditCodeExpireTimeOne,String certificateExpireTimeOne) { |
| | | tEnterpriseWithdrawal.setCode(code); |
| | | List<TEnterpriseWithdrawal> companyId = tEnterpriseWithdrawalService.selectList(new EntityWrapper<TEnterpriseWithdrawal>().eq("companyId", ShiroExtUtil.getUser().getObjectId())); |
| | | List<TEnterpriseWithdrawal> companyId = tEnterpriseWithdrawalService.selectList(new EntityWrapper<TEnterpriseWithdrawal>().eq("companyId", shiroExtUtil.getUser().getObjectId())); |
| | | if(companyId.size()>0){ |
| | | return "5001"; |
| | | } |
| | |
| | | } |
| | | |
| | | tEnterpriseWithdrawal.setIsAudit(1); |
| | | tEnterpriseWithdrawal.setCompanyId(ShiroExtUtil.getUser().getObjectId()); |
| | | tEnterpriseWithdrawal.setCompanyId(shiroExtUtil.getUser().getObjectId()); |
| | | tEnterpriseWithdrawal.setAccountType(accountType); |
| | | String randomString = ToolUtil.getRandomString(32); |
| | | tEnterpriseWithdrawal.setOutRequestNo(randomString); |