puzhibing
2024-02-05 640ff18d2d7f4be02ddb7f8f75e899f05545eb98
cloud-server-management/src/main/java/com/dsh/guns/modular/system/service/impl/TOperatorUserServiceImpl.java
@@ -49,34 +49,39 @@
    @Autowired
    private WeChatUtil weChatUtil;
//    @Override
//    public void mgtShopAuth(MgtShopAuthDto mgtShopAuthDto) {
//
//        OperatorAuthAlipay shopAuthentication = new OperatorAuth();
//
//        if(mgtShopAuthDto.getBlBusinessFoeverFlag()!=null&&mgtShopAuthDto.getBlBusinessFoeverFlag()==1){
//            mgtShopAuthDto.setBlBusinessDeanline("长期");
//        }
//        if(mgtShopAuthDto.getLpIcForeverFlag()!=null&&mgtShopAuthDto.getLpIcForeverFlag()==1){
//            mgtShopAuthDto.setLpIcEndDate("长期");
//        }
//        BeanUtils.copyProperties(mgtShopAuthDto , shopAuthentication);
//        TOperator operator = operatorMapper.selectById(shopAuthentication.getOperatorId());
//        String applyNumber = UUIDUtil.getNativeUUID().replace("-","");
//        shopAuthentication.setOutBizNo(applyNumber);
//        ApplymentsResult applymentsResult;
//        try {
//            applymentsResult = weChatUtil.ecommerceApply(shopAuthentication,applyNumber,operator);
//        } catch (Exception e) {
//            throw new ServiceException(e.getMessage());
//        }
//        shopAuthentication.setOrderStatus("AUDITING");
//        shopAuthentication.setOrderNo(applymentsResult.getApplymentId());
//        operatorAuthService.saveOrUpdate(shopAuthentication);
//    }
    @Override
    public List<Map<String, Object>> listAll(Page<Map<String, Object>> page, String province, String city, String userName, String phone, Integer platform, Integer type, Integer state) {
        return this.baseMapper.listAll(page,province,city,userName,phone,platform,type,state);
    }
    @Override
    public void mgtShopAuth(MgtShopAuthDto mgtShopAuthDto) {
        OperatorAuth shopAuthentication = new OperatorAuth();
    }
        if(mgtShopAuthDto.getBlBusinessFoeverFlag()!=null&&mgtShopAuthDto.getBlBusinessFoeverFlag()==1){
            mgtShopAuthDto.setBlBusinessDeanline("长期");
        }
        if(mgtShopAuthDto.getLpIcForeverFlag()!=null&&mgtShopAuthDto.getLpIcForeverFlag()==1){
            mgtShopAuthDto.setLpIcEndDate("长期");
        }
        BeanUtils.copyProperties(mgtShopAuthDto , shopAuthentication);
        TOperator operator = operatorMapper.selectById(shopAuthentication.getOperatorId());
        String applyNumber = UUIDUtil.getNativeUUID().replace("-","");
        shopAuthentication.setOutBizNo(applyNumber);
        ApplymentsResult applymentsResult;
        try {
            applymentsResult = weChatUtil.ecommerceApply(shopAuthentication,applyNumber,operator);
        } catch (Exception e) {
            throw new ServiceException(e.getMessage());
        }
        shopAuthentication.setOrderStatus("AUDITING");
        shopAuthentication.setOrderNo(applymentsResult.getApplymentId());
        operatorAuthService.saveOrUpdate(shopAuthentication);
    @Override
    public List<OperatorUserVO> listAll(String province, String city, String userName, String phone, Integer platform, Integer type, Integer state) {
        return this.baseMapper.listAll(province,city,userName,phone,platform,type,state);
    }
}