main
杜函宇 2 months ago
parent 6eb958fa41
commit 8de926df8f

@ -0,0 +1,159 @@
package com.ruoyi.tc.controller;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.ruoyi.common.annotation.Log;
import com.ruoyi.common.core.controller.BaseController;
import com.ruoyi.common.core.domain.AjaxResult;
import com.ruoyi.common.enums.BusinessType;
import com.ruoyi.common.exception.ServiceException;
import com.ruoyi.common.utils.poi.ExcelUtil;
import com.ruoyi.tc.entity.AssetApp;
import com.ruoyi.tc.entity.request.AssetAppPageRequest;
import com.ruoyi.tc.service.AssetAppService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.transaction.annotation.Transactional;
import org.springframework.web.bind.annotation.*;
import org.springframework.web.multipart.MultipartFile;
import javax.annotation.Resource;
import javax.servlet.http.HttpServletResponse;
import java.util.List;
import static com.ruoyi.common.core.domain.AjaxResult.success;
/**
* (asset_app)
*
* @author makejava
* @since 2024-11-28 17:13:05
*/
@Api(tags = "资产移动应用程序表控制层")
@RestController
@RequestMapping("/tc/assetApp")
public class AssetAppController extends BaseController {
/**
*
*/
@Resource
private AssetAppService assetAppService;
/**
*
*
* @param req
* @return
*/
@ApiOperation(value = "分页查询")
@GetMapping
public AjaxResult queryByPage(AssetAppPageRequest req) {
Page<AssetApp> page = new Page<>();
page.setCurrent(req.getCurrent());
page.setSize(req.getSize());
return success(assetAppService.page(page, req));
}
/**
* app
*
* @param id
* @return
*/
@ApiOperation(value = "通过主键查询单条app数据")
@GetMapping("/{id}")
public AjaxResult queryById(@PathVariable("id") Long id) {
return success(assetAppService.getById(id));
}
/**
*
*
* @param assetApp
* @return
*/
@ApiOperation(value = "新增数据")
@PostMapping
@Log(title = "新增app数据", businessType = BusinessType.INSERT)
public AjaxResult add(@RequestBody AssetApp assetApp) {
return success(assetAppService.save(assetApp));
}
/**
*
*
* @param assetApp
* @return
*/
@ApiOperation(value = "编辑数据")
@Log(title = "编辑app数据", businessType = BusinessType.UPDATE)
@PutMapping
public AjaxResult edit(AssetApp assetApp) {
return success(assetAppService.updateById(assetApp));
}
/**
*
*
* @param id
* @return
*/
@ApiOperation(value = "删除数据")
@Log(title = "删除app数据", businessType = BusinessType.DELETE)
@DeleteMapping("/{id}")
public AjaxResult deleteById(@PathVariable Long id) {
assetAppService.deleteById(id);
return success();
}
/**
*
*/
@ApiOperation(value = "下载App导入模板")
@PostMapping("/importTemplate")
public void importTemplate(HttpServletResponse response) {
ExcelUtil<AssetApp> util = new ExcelUtil<>(AssetApp.class);
util.importTemplateExcel(response, "App导入模板");
}
/**
* app
*/
@Transactional(rollbackFor = Exception.class)
@ApiOperation(value = "app导出")
@Log(title = "app导出", businessType = BusinessType.EXPORT)
@PostMapping("/export")
public void export(HttpServletResponse response, AssetAppPageRequest unit) {
List<AssetApp> list = assetAppService.getAllList(unit);
ExcelUtil<AssetApp> util = new ExcelUtil<>(AssetApp.class);
util.exportExcel(response, list, "app数据");
}
/**
* app
*/
@Transactional(rollbackFor = Exception.class)
@ApiOperation(value = "app导入")
@Log(title = "app导入", businessType = BusinessType.IMPORT)
@PostMapping("/importData")
public AjaxResult importData(MultipartFile file) throws Exception {
ExcelUtil<AssetApp> util = new ExcelUtil<>(AssetApp.class);
List<AssetApp> list = util.importExcel(file.getInputStream());
if (list != null) {
list.forEach(x->{
AssetApp one = assetAppService.lambdaQuery().eq(AssetApp::getSsdw, x.getSsdw())
.eq(AssetApp::getAppName, x.getAppName()).one();
if(one!=null){
x.setId(one.getId());
assetAppService.updateById(x);
}else {
assetAppService.save(x);
}
});
} else {
throw new ServiceException("app导入数据不能为空!");
}
return AjaxResult.success("导入成功");
}
}

@ -0,0 +1,157 @@
package com.ruoyi.tc.controller;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.ruoyi.common.annotation.Log;
import com.ruoyi.common.core.controller.BaseController;
import com.ruoyi.common.core.domain.AjaxResult;
import com.ruoyi.common.enums.BusinessType;
import com.ruoyi.common.exception.ServiceException;
import com.ruoyi.common.utils.poi.ExcelUtil;
import com.ruoyi.tc.entity.AssetEmail;
import com.ruoyi.tc.entity.request.AssetEmailPageRequest;
import com.ruoyi.tc.service.AssetEmailService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.transaction.annotation.Transactional;
import org.springframework.web.bind.annotation.*;
import org.springframework.web.multipart.MultipartFile;
import javax.annotation.Resource;
import javax.servlet.http.HttpServletResponse;
import java.util.List;
/**
* (asset_email)
*
* @author makejava
* @since 2024-11-28 17:13:05
*/
@Api(tags = "电子邮件资产")
@RestController
@RequestMapping("/tc/assetEmail")
public class AssetEmailController extends BaseController {
/**
*
*/
@Resource
private AssetEmailService assetEmailService;
/**
*
*
* @param req
* @return
*/
@ApiOperation(value = "分页查询")
@GetMapping
public AjaxResult queryByPage(AssetEmailPageRequest req) {
Page<AssetEmail> page = new Page<>();
page.setCurrent(req.getCurrent());
page.setSize(req.getSize());
return success(assetEmailService.page(page, req));
}
/**
* email
*
* @param id
* @return
*/
@ApiOperation(value = "通过主键查询单条email数据")
@GetMapping("/{id}")
public AjaxResult queryById(@PathVariable("id") Long id) {
return success(assetEmailService.getById(id));
}
/**
* email
*
* @param assetEmail
* @return
*/
@ApiOperation(value = "新增email数据")
@PostMapping
@Log(title = "新增email数据", businessType = BusinessType.INSERT)
public AjaxResult add(@RequestBody AssetEmail assetEmail) {
return success(assetEmailService.save(assetEmail));
}
/**
* email
*
* @param assetEmail
* @return
*/
@ApiOperation(value = "编辑email数据")
@Log(title = "编辑email数据", businessType = BusinessType.UPDATE)
@PutMapping
public AjaxResult edit(AssetEmail assetEmail) {
return success(assetEmailService.updateById(assetEmail));
}
/**
* email
*
* @param id
* @return
*/
@ApiOperation(value = "删除email数据")
@Log(title = "删除email数据", businessType = BusinessType.DELETE)
@DeleteMapping("/{id}")
public AjaxResult deleteById(@PathVariable Long id) {
assetEmailService.deleteById(id);
return success();
}
/**
* email
*/
@ApiOperation(value = "下载email导入模板")
@PostMapping("/importTemplate")
public void importTemplate(HttpServletResponse response) {
ExcelUtil<AssetEmail> util = new ExcelUtil<>(AssetEmail.class);
util.importTemplateExcel(response, "email导入模板");
}
/**
* email
*/
@Transactional(rollbackFor = Exception.class)
@ApiOperation(value = "email导出")
@Log(title = "email导出", businessType = BusinessType.EXPORT)
@PostMapping("/export")
public void export(HttpServletResponse response, AssetEmailPageRequest unit) {
List<AssetEmail> list = assetEmailService.getAllList(unit);
ExcelUtil<AssetEmail> util = new ExcelUtil<>(AssetEmail.class);
util.exportExcel(response, list, "email数据");
}
/**
* app
*/
@Transactional(rollbackFor = Exception.class)
@ApiOperation(value = "email导入")
@Log(title = "email导入", businessType = BusinessType.IMPORT)
@PostMapping("/importData")
public AjaxResult importData(MultipartFile file) throws Exception {
ExcelUtil<AssetEmail> util = new ExcelUtil<>(AssetEmail.class);
List<AssetEmail> list = util.importExcel(file.getInputStream());
if (list != null) {
list.forEach(x->{
AssetEmail one = assetEmailService.lambdaQuery().eq(AssetEmail::getDzyxhz, x.getDzyxhz())
.eq(AssetEmail::getSsdw, x.getSsdw()).one();
if(one!=null){
x.setId(one.getId());
assetEmailService.updateById(x);
}else {
assetEmailService.save(x);
}
});
} else {
throw new ServiceException("email导入数据不能为空!");
}
return AjaxResult.success("导入成功");
}
}

@ -0,0 +1,159 @@
package com.ruoyi.tc.controller;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.ruoyi.common.annotation.Log;
import com.ruoyi.common.core.controller.BaseController;
import com.ruoyi.common.core.domain.AjaxResult;
import com.ruoyi.common.enums.BusinessType;
import com.ruoyi.common.exception.ServiceException;
import com.ruoyi.common.utils.poi.ExcelUtil;
import com.ruoyi.tc.entity.AssetMiniPrograms;
import com.ruoyi.tc.entity.request.AssetMiniProgramsPageRequest;
import com.ruoyi.tc.service.AssetMiniProgramsService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.transaction.annotation.Transactional;
import org.springframework.web.bind.annotation.*;
import org.springframework.web.multipart.MultipartFile;
import javax.annotation.Resource;
import javax.servlet.http.HttpServletResponse;
import java.util.List;
import static com.ruoyi.common.core.domain.AjaxResult.success;
/**
* (asset_mini_programs)
*
* @author makejava
* @since 2024-11-28 17:13:05
*/
@Api(tags = "小程序资产")
@RestController
@RequestMapping("/tc/miniPrograms")
public class AssetMiniProgramsController extends BaseController {
/**
*
*/
@Resource
private AssetMiniProgramsService assetMiniProgramsService;
/**
*
*
* @param req
* @return
*/
@ApiOperation(value = "分页查询")
@GetMapping
public AjaxResult queryByPage(AssetMiniProgramsPageRequest req) {
Page<AssetMiniPrograms> page = new Page<>();
page.setCurrent(req.getCurrent());
page.setSize(req.getSize());
return success(assetMiniProgramsService.page(page, req));
}
/**
*
*
* @param id
* @return
*/
@ApiOperation(value = "通过主键查询单条小程序数据")
@GetMapping("/{id}")
public AjaxResult queryById(@PathVariable("id") Long id) {
return success(assetMiniProgramsService.getById(id));
}
/**
*
*
* @param assetMiniPrograms
* @return
*/
@ApiOperation(value = "新增小程序数据")
@PostMapping
@Log(title = "新增小程序数据", businessType = BusinessType.INSERT)
public AjaxResult add(@RequestBody AssetMiniPrograms assetMiniPrograms) {
return success(assetMiniProgramsService.save(assetMiniPrograms));
}
/**
*
*
* @param assetMiniPrograms
* @return
*/
@ApiOperation(value = "编辑小程序数据")
@Log(title = "编辑小程序数据", businessType = BusinessType.UPDATE)
@PutMapping
public AjaxResult edit(AssetMiniPrograms assetMiniPrograms) {
return success(assetMiniProgramsService.updateById(assetMiniPrograms));
}
/**
*
*
* @param id
* @return
*/
@ApiOperation(value = "删除小程序数据")
@Log(title = "删除小程序数据", businessType = BusinessType.DELETE)
@DeleteMapping("/{id}")
public AjaxResult deleteById(@PathVariable Long id) {
assetMiniProgramsService.deleteById(id);
return success();
}
/**
*
*/
@ApiOperation(value = "下载App导入模板")
@PostMapping("/importTemplate")
public void importTemplate(HttpServletResponse response) {
ExcelUtil<AssetMiniPrograms> util = new ExcelUtil<>(AssetMiniPrograms.class);
util.importTemplateExcel(response, "App导入模板");
}
/**
*
*/
@Transactional(rollbackFor = Exception.class)
@ApiOperation(value = "小程序导出")
@Log(title = "小程序导出", businessType = BusinessType.EXPORT)
@PostMapping("/export")
public void export(HttpServletResponse response, AssetMiniProgramsPageRequest unit) {
List<AssetMiniPrograms> list = assetMiniProgramsService.getAllList(unit);
ExcelUtil<AssetMiniPrograms> util = new ExcelUtil<>(AssetMiniPrograms.class);
util.exportExcel(response, list, "小程序数据");
}
/**
*
*/
@Transactional(rollbackFor = Exception.class)
@ApiOperation(value = "小程序导入")
@Log(title = "小程序导入", businessType = BusinessType.IMPORT)
@PostMapping("/importData")
public AjaxResult importData(MultipartFile file) throws Exception {
ExcelUtil<AssetMiniPrograms> util = new ExcelUtil<>(AssetMiniPrograms.class);
List<AssetMiniPrograms> list = util.importExcel(file.getInputStream());
if (list != null) {
list.forEach(x->{
AssetMiniPrograms one = assetMiniProgramsService.lambdaQuery().eq(AssetMiniPrograms::getSsdw, x.getSsdw())
.eq(AssetMiniPrograms::getXcxmc, x.getXcxmc()).one();
if(one!=null){
x.setId(one.getId());
assetMiniProgramsService.updateById(x);
}else {
assetMiniProgramsService.save(x);
}
});
} else {
throw new ServiceException("小程序导入数据不能为空!");
}
return AjaxResult.success("导入成功");
}
}

@ -0,0 +1,160 @@
package com.ruoyi.tc.controller;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.ruoyi.common.annotation.Log;
import com.ruoyi.common.core.domain.AjaxResult;
import com.ruoyi.common.enums.BusinessType;
import com.ruoyi.common.exception.ServiceException;
import com.ruoyi.common.utils.SecurityUtils;
import com.ruoyi.common.utils.poi.ExcelUtil;
import com.ruoyi.tc.entity.AssetOfficialAccount;
import com.ruoyi.tc.entity.request.AssetOfficialAccountPageRequest;
import com.ruoyi.tc.service.AssetOfficialAccountService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.transaction.annotation.Transactional;
import org.springframework.web.bind.annotation.*;
import org.springframework.web.multipart.MultipartFile;
import javax.annotation.Resource;
import javax.servlet.http.HttpServletResponse;
import java.security.Security;
import java.util.List;
import static com.ruoyi.common.core.domain.AjaxResult.success;
/**
* (asset_official_account)
*
* @author makejava
* @since 2024-11-28 17:13:05
*/
@Api(tags = "公众号资产")
@RestController
@RequestMapping("/tc/assetOfficialAccount")
public class AssetOfficialAccountController {
/**
*
*/
@Resource
private AssetOfficialAccountService assetOfficialAccountService;
/**
*
*
* @param req
* @return
*/
@ApiOperation(value = "分页查询")
@GetMapping
public AjaxResult queryByPage(AssetOfficialAccountPageRequest req) {
Page<AssetOfficialAccount> page = new Page<>();
page.setCurrent(req.getCurrent());
page.setSize(req.getSize());
return success(assetOfficialAccountService.page(page, req));
}
/**
*
*
* @param id
* @return
*/
@ApiOperation(value = "通过主键查询单条公众号数据")
@GetMapping("/{id}")
public AjaxResult queryById(@PathVariable("id") Long id) {
return success(assetOfficialAccountService.getById(id));
}
/**
*
*
* @param assetOfficialAccount
* @return
*/
@ApiOperation(value = "新增公众号数据")
@PostMapping
@Log(title = "新增公众号数据", businessType = BusinessType.INSERT)
public AjaxResult add(@RequestBody AssetOfficialAccount assetOfficialAccount) {
return success(assetOfficialAccountService.save(assetOfficialAccount));
}
/**
*
*
* @param assetOfficialAccount
* @return
*/
@ApiOperation(value = "编辑公众号数据")
@Log(title = "编辑公众号数据", businessType = BusinessType.UPDATE)
@PutMapping
public AjaxResult edit(AssetOfficialAccount assetOfficialAccount) {
return success(assetOfficialAccountService.updateById(assetOfficialAccount));
}
/**
*
*
* @param id
* @return
*/
@ApiOperation(value = "删除公众号数据")
@Log(title = "删除公众号数据", businessType = BusinessType.DELETE)
@DeleteMapping("/{id}")
public AjaxResult deleteById(@PathVariable Long id) {
assetOfficialAccountService.deleteById(id);
return success();
}
/**
*
*/
@ApiOperation(value = "下载公众号导入模板")
@PostMapping("/importTemplate")
public void importTemplate(HttpServletResponse response) {
ExcelUtil<AssetOfficialAccount> util = new ExcelUtil<>(AssetOfficialAccount.class);
util.importTemplateExcel(response, "App导入模板");
}
/**
* app
*/
@Transactional(rollbackFor = Exception.class)
@ApiOperation(value = "公众号导出")
@Log(title = "公众号导出", businessType = BusinessType.EXPORT)
@PostMapping("/export")
public void export(HttpServletResponse response, AssetOfficialAccountPageRequest unit) {
List<AssetOfficialAccount> list = assetOfficialAccountService.getAllList(unit);
ExcelUtil<AssetOfficialAccount> util = new ExcelUtil<>(AssetOfficialAccount.class);
util.exportExcel(response, list, "公众号数据");
}
/**
*
*/
@Transactional(rollbackFor = Exception.class)
@ApiOperation(value = "公众号导入")
@Log(title = "公众号导入", businessType = BusinessType.IMPORT)
@PostMapping("/importData")
public AjaxResult importData(MultipartFile file) throws Exception {
ExcelUtil<AssetOfficialAccount> util = new ExcelUtil<>(AssetOfficialAccount.class);
List<AssetOfficialAccount> list = util.importExcel(file.getInputStream());
if (list != null) {
list.forEach(x->{
AssetOfficialAccount one = assetOfficialAccountService.lambdaQuery().eq(AssetOfficialAccount::getSsdw, x.getSsdw())
.eq(AssetOfficialAccount::getGzhmc, x.getGzhmc()).one();
if(one!=null){
x.setId(one.getId());
assetOfficialAccountService.updateById(x);
}else {
assetOfficialAccountService.save(x);
}
});
} else {
throw new ServiceException("公众号导入数据不能为空!");
}
return AjaxResult.success("导入成功");
}
}

@ -16,6 +16,7 @@ import com.ruoyi.tc.service.UnitOtherConcatService;
import com.ruoyi.tc.service.UnitService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.transaction.annotation.Transactional;
import org.springframework.web.bind.annotation.*;
import org.springframework.web.multipart.MultipartFile;
@ -33,7 +34,7 @@ import java.util.*;
*/
@Api(tags = "单位表控制层")
@RestController
//@PreAuthorize("@ss.hasAnyRoles('admin,common')")
@PreAuthorize("@ss.hasAnyRoles('admin,common')")
@RequestMapping("/tc/unit")
public class UnitController {

@ -1,5 +1,7 @@
package com.ruoyi.tc.entity;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.tc.baseClass.BaseClass;
@ -19,8 +21,10 @@ import java.io.Serializable;
@TableName(value = "asset_app")
public class AssetApp extends BaseClass implements Serializable {
private static final long serialVersionUID = 1L;
@ApiModelProperty("id")
@TableId(value = "id",type = IdType.AUTO)
private Long id;
/**
*

@ -1,5 +1,7 @@
package com.ruoyi.tc.entity;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.tc.baseClass.BaseClass;
@ -21,6 +23,7 @@ public class AssetEmail extends BaseClass implements Serializable {
@ApiModelProperty("id")
@TableId(value = "id",type = IdType.AUTO)
private Long id;
/**
*
@ -41,10 +44,10 @@ public class AssetEmail extends BaseClass implements Serializable {
@ApiModelProperty("建设类型(字典)")
private String jslx;
/**
*
*
*/
@Excel(name = "邮系统供应商", sort = 4, width = 24)
@ApiModelProperty("邮系统供应商")
@Excel(name = "邮系统供应商", sort = 4, width = 24)
@ApiModelProperty("邮系统供应商")
private String yjxtgys;
/**
*
@ -53,10 +56,10 @@ public class AssetEmail extends BaseClass implements Serializable {
@ApiModelProperty("密码算法")
private String mmsf;
/**
* )
* )
*/
@Excel(name = "邮系统状态", sort = 6, width = 20,dictType = "email_state",comboReadDict = true)
@ApiModelProperty("邮系统状态(字典)")
@Excel(name = "邮系统状态", sort = 6, width = 20,dictType = "email_state",comboReadDict = true)
@ApiModelProperty("邮系统状态(字典)")
private String yjxtzc;
/**
*

@ -1,5 +1,7 @@
package com.ruoyi.tc.entity;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.tc.baseClass.BaseClass;
@ -28,6 +30,7 @@ public class AssetMiniPrograms extends BaseClass implements Serializable {
*
*/
@ApiModelProperty("id")
@TableId(value = "id",type = IdType.AUTO)
private Long id;
/**
*
@ -62,140 +65,122 @@ public class AssetMiniPrograms extends BaseClass implements Serializable {
/**
*
*/
@Excel(name = "小程序状态", sort = 6,dictType = "email_state",comboReadDict = true)
@Excel(name = "小程序状态", sort = 6,dictType = "gzh_state",comboReadDict = true)
@ApiModelProperty("小程序状态(字典)")
private String state;
/**
* ID
*/
@Excel(name = "账号原始ID", sort = 6,dictType = "email_state",comboReadDict = true)
@Excel(name = "账号原始ID", sort = 7)
@ApiModelProperty("账号原始ID")
private String ysId;
/**
* ()
*/
@Size(max= 10,message="编码长度不能超过10")
@Excel(name = "小程序包状态", sort = 8,dictType = "email_state",comboReadDict = true)
@ApiModelProperty("小程序包状态(字典)")
@Length(max= 10,message="编码长度不能超过10")
private String packState;
/**
* (
*/
@Size(max= 10,message="编码长度不能超过10")
@Excel(name = "认证状态", sort = 9,dictType = "gzh_rzzt",comboReadDict = true)
@ApiModelProperty("认证状态(字典)")
@Length(max= 10,message="编码长度不能超过10")
private String rzState;
/**
*
*/
@Size(max= 50,message="编码长度不能超过50")
@Excel(name = "认证时间", sort = 10)
@ApiModelProperty("认证时间")
@Length(max= 50,message="编码长度不能超过50")
private String rzsj;
/**
*
*/
@Size(max= 255,message="编码长度不能超过255")
@Excel(name = "认证类型", sort = 11,dictType = "gzh_rzlx",comboReadDict = true)
@ApiModelProperty("认证类型(字典)")
@Length(max= 255,message="编码长度不能超过255")
private String rzlx;
/**
* icp
*/
@Size(max= 100,message="编码长度不能超过100")
@ApiModelProperty("icp备案状态")
@Length(max= 100,message="编码长度不能超过100")
@Excel(name = "icp备案状态", sort = 12)
private String icpState;
/**
*
*/
@Size(max= 255,message="编码长度不能超过255")
@Excel(name = "域名白名单", sort = 13)
@ApiModelProperty("域命白名单")
@Length(max= 255,message="编码长度不能超过255")
private String ymbmd;
/**
*
*/
@Size(max= 255,message="编码长度不能超过255")
@Excel(name = "服务类目", sort = 14)
@ApiModelProperty("服务类目")
@Length(max= 255,message="编码长度不能超过255")
private String fwlm;
/**
*
*/
@Size(max= 100,message="编码长度不能超过100")
@Excel(name = "行业电子邮箱", sort = 15)
@ApiModelProperty("行业电子邮箱")
@Length(max= 100,message="编码长度不能超过100")
private String hydzyx;
/**
*
*/
@Size(max= 10,message="编码长度不能超过10")
@ApiModelProperty("所属行业(字典)")
@Length(max= 10,message="编码长度不能超过10")
@Excel(name = "所属行业",dictType = "app_sshy",comboReadDict = true,sort = 16, width = 18)
private String sshy;
/**
* ()
*/
@Size(max= 10,message="编码长度不能超过10")
@Excel(name = "重点行业",dictType = "app_zdhy",comboReadDict = true,sort = 17, width = 18)
@ApiModelProperty("重点行业(字典)")
@Length(max= 10,message="编码长度不能超过10")
private String zdhy;
/**
* )
*/
@Size(max= 10,message="编码长度不能超过10")
@Excel(name = "行政区划",dictType = "app_xzqh",comboReadDict = true,sort = 18, width = 18)
@ApiModelProperty("行政区划(字典)")
@Length(max= 10,message="编码长度不能超过10")
private String xzqh;
/**
*
*/
@Size(max= 500,message="编码长度不能超过500")
@Excel(name = "系统简介",sort = 19, width = 24)
@ApiModelProperty("系统简介")
@Length(max= 500,message="编码长度不能超过500")
private String xtjj;
/**
*
*/
@Size(max= 50,message="编码长度不能超过50")
@Excel(name = "系统责任人",sort = 20)
@ApiModelProperty("系统责任人")
@Length(max= 50,message="编码长度不能超过50")
private String xtzrr;
/**
*
*/
@Size(max= 50,message="编码长度不能超过50")
@Excel(name = "系统责任人电话",sort = 21)
@ApiModelProperty("系统责任人电话")
@Length(max= 50,message="编码长度不能超过50")
private String xtzrrdh;
/**
*
*/
@Size(max= 50,message="编码长度不能超过50")
@Excel(name = "系统责任人邮箱",sort = 22)
@ApiModelProperty("系统责任人邮箱")
@Length(max= 50,message="编码长度不能超过50")
private String xtzrryx;
/**
*
*/
@Size(max= 255,message="编码长度不能超过255")
@Excel(name = "系统责任人地址",sort = 23,width = 24)
@ApiModelProperty("系统责任人地址")
@Length(max= 255,message="编码长度不能超过255")
private String xtzrrdz;
/**
* appid
*/
@Size(max= 255,message="编码长度不能超过255")
@Excel(name = "引用插件APPID",sort = 24)
@ApiModelProperty("引用插件appid")
@Length(max= 255,message="编码长度不能超过255")
private String yycjAppid;
/**
*
*/
@Size(max= 255,message="编码长度不能超过255")
@Excel(name = "引用插件(开发者)",sort = 25)
@ApiModelProperty("引用插件开发者")
@Length(max= 255,message="编码长度不能超过255")
private String yycjKfz;
/**
* 0 2

@ -1,5 +1,7 @@
package com.ruoyi.tc.entity;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.tc.baseClass.BaseClass;
@ -22,6 +24,7 @@ public class AssetOfficialAccount extends BaseClass implements Serializable {
@ApiModelProperty("id")
@TableId(value = "id",type = IdType.AUTO)
private Long id;
/**
@ -76,7 +79,7 @@ public class AssetOfficialAccount extends BaseClass implements Serializable {
/**
*
*/
@Excel(name = "公众号类型", sort = 9, dictType = "gzh_rzzt", comboReadDict = true)
@Excel(name = "认证状态", sort = 9, dictType = "gzh_rzzt", comboReadDict = true)
@ApiModelProperty("认证状态(字典)")
private String rzState;
/**
@ -154,7 +157,7 @@ public class AssetOfficialAccount extends BaseClass implements Serializable {
/**
*
*/
@Excel(name = "菜单信息(菜单类型)", sort = 22, dictType = "gzh_cdlx", comboReadDict = true)
@Excel(name = "菜单信息(菜单类型)", sort = 22)
@ApiModelProperty("菜单类型")
private String cdlx;

@ -0,0 +1,53 @@
package com.ruoyi.tc.entity.request;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;
import java.util.Date;
/**
*
* @author du
* @since 2024/11/15 15:37
*/
@Data
public class AssetAppPageRequest {
/**
*
*/
@ApiModelProperty("应用名称")
private String yymc;
/**
*
*/
@ApiModelProperty("所属单位")
private String dwmc;
/**
*
*/
@JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
@ApiModelProperty("开始时间")
private Date startTime;
/**
*
*/
@JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
@ApiModelProperty("结束时间")
private Date endTime;
@ApiModelProperty("页码")
private Long current=1L;
@ApiModelProperty("页数")
private Long size=10L;
}

@ -0,0 +1,53 @@
package com.ruoyi.tc.entity.request;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;
import java.util.Date;
/**
*
* @author du
* @since 2024/11/15 15:37
*/
@Data
public class AssetEmailPageRequest {
/**
*
*/
@ApiModelProperty("电子邮箱后缀")
private String dzyxhz;
/**
*
*/
@ApiModelProperty("所属单位")
private String dwmc;
/**
*
*/
@JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
@ApiModelProperty("开始时间")
private Date startTime;
/**
*
*/
@JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
@ApiModelProperty("结束时间")
private Date endTime;
@ApiModelProperty("页码")
private Long current=1L;
@ApiModelProperty("页数")
private Long size=10L;
}

@ -0,0 +1,53 @@
package com.ruoyi.tc.entity.request;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;
import java.util.Date;
/**
*
* @author du
* @since 2024/11/15 15:37
*/
@Data
public class AssetMiniProgramsPageRequest {
/**
*
*/
@ApiModelProperty("小程序名称")
private String xcxmc;
/**
*
*/
@ApiModelProperty("所属单位")
private String dwmc;
/**
*
*/
@JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
@ApiModelProperty("开始时间")
private Date startTime;
/**
*
*/
@JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
@ApiModelProperty("结束时间")
private Date endTime;
@ApiModelProperty("页码")
private Long current=1L;
@ApiModelProperty("页数")
private Long size=10L;
}

@ -0,0 +1,53 @@
package com.ruoyi.tc.entity.request;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;
import java.util.Date;
/**
*
* @author du
* @since 2024/11/15 15:37
*/
@Data
public class AssetOfficialAccountPageRequest {
/**
*
*/
@ApiModelProperty("公众号名称")
private String gzhmc;
/**
*
*/
@ApiModelProperty("所属单位")
private String dwmc;
/**
*
*/
@JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
@ApiModelProperty("开始时间")
private Date startTime;
/**
*
*/
@JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
@ApiModelProperty("结束时间")
private Date endTime;
@ApiModelProperty("页码")
private Long current=1L;
@ApiModelProperty("页数")
private Long size=10L;
}

@ -0,0 +1,45 @@
package com.ruoyi.tc.mapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.ruoyi.tc.entity.AssetApp;
import com.ruoyi.tc.entity.request.AssetAppPageRequest;
import org.apache.ibatis.annotations.Param;
import java.util.List;
/**
* (asset_app)访
* @author makejava
* @since 2024-11-15 10:03:56
*/
public interface AssetAppMapper extends BaseMapper<AssetApp> {
/**
*
*
* @param page
* @param as
* @return
*/
Page<AssetApp> page(Page<AssetApp> page,@Param("req") AssetAppPageRequest as);
/**
*
*
* @param as
* @return
*/
List<AssetApp> page(@Param("req")AssetAppPageRequest as);
/**
*
*
* @return
*/
void deleteById(Long id);
}

@ -0,0 +1,45 @@
package com.ruoyi.tc.mapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.ruoyi.tc.entity.AssetEmail;
import com.ruoyi.tc.entity.request.AssetEmailPageRequest;
import org.apache.ibatis.annotations.Param;
import java.util.List;
/**
* (asset_email)访
* @author makejava
* @since 2024-11-15 10:03:56
*/
public interface AssetEmailMapper extends BaseMapper<AssetEmail> {
/**
*
*
* @param page
* @param as
* @return
*/
Page<AssetEmail> page(Page<AssetEmail> page,@Param("req") AssetEmailPageRequest as);
/**
*
*
* @param as
* @return
*/
List<AssetEmail> page(@Param("req")AssetEmailPageRequest as);
/**
*
*
* @return
*/
String deleteById(Long id);
}

@ -0,0 +1,46 @@
package com.ruoyi.tc.mapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.ruoyi.tc.entity.AssetMiniPrograms;
import com.ruoyi.tc.entity.AssetMiniPrograms;
import com.ruoyi.tc.entity.request.AssetMiniProgramsPageRequest;
import org.apache.ibatis.annotations.Param;
import java.util.List;
/**
* (asset_mini_programs)访
* @author makejava
* @since 2024-11-15 10:03:56
*/
public interface AssetMiniProgramsMapper extends BaseMapper<AssetMiniPrograms> {
/**
*
*
* @param page
* @param as
* @return
*/
Page<AssetMiniPrograms> page(Page<AssetMiniPrograms> page,@Param("req") AssetMiniProgramsPageRequest as);
/**
*
*
* @param as
* @return
*/
List<AssetMiniPrograms> page(@Param("req")AssetMiniProgramsPageRequest as);
/**
*
*
* @return
*/
void deleteById(Long id);
}

@ -0,0 +1,45 @@
package com.ruoyi.tc.mapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.ruoyi.tc.entity.AssetOfficialAccount;
import com.ruoyi.tc.entity.request.AssetOfficialAccountPageRequest;
import org.apache.ibatis.annotations.Param;
import java.util.List;
/**
* (asset_official_account)访
* @author makejava
* @since 2024-11-15 10:03:56
*/
public interface AssetOfficialAccountMapper extends BaseMapper<AssetOfficialAccount> {
/**
*
*
* @param page
* @param as
* @return
*/
Page<AssetOfficialAccount> page(Page<AssetOfficialAccount> page,@Param("req") AssetOfficialAccountPageRequest as);
/**
*
*
* @param as
* @return
*/
List<AssetOfficialAccount> page(@Param("req")AssetOfficialAccountPageRequest as);
/**
*
*
* @return
*/
void deleteById(Long id);
}

@ -0,0 +1,39 @@
package com.ruoyi.tc.service;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.ruoyi.tc.entity.AssetApp;
import com.ruoyi.tc.entity.request.AssetAppPageRequest;
import com.ruoyi.tc.entity.request.UnitRequest;
import java.util.List;
/**
* (asset_app)
*
* @author makejava
* @since 2024-11-28 17:13:07
*/
public interface AssetAppService extends IService<AssetApp> {
/**
*
*
* @param page
* @param as
* @return
*/
Page<AssetApp> page(Page<AssetApp> page, AssetAppPageRequest as);
/**
*
*/
void deleteById(Long id);
/**
*
*
* @param as
* @return
*/
List<AssetApp> getAllList(AssetAppPageRequest as);
}

@ -0,0 +1,40 @@
package com.ruoyi.tc.service;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.ruoyi.tc.entity.AssetApp;
import com.ruoyi.tc.entity.AssetEmail;
import com.ruoyi.tc.entity.request.AssetAppPageRequest;
import com.ruoyi.tc.entity.request.AssetEmailPageRequest;
import java.util.List;
/**
* (asset_email)
*
* @author makejava
* @since 2024-11-28 17:13:07
*/
public interface AssetEmailService extends IService<AssetEmail> {
/**
*
*
* @param page
* @param as
* @return
*/
Page<AssetEmail> page(Page<AssetEmail> page, AssetEmailPageRequest as);
/**
*
*/
String deleteById(Long id);
/**
*
*
* @param as
* @return
*/
List<AssetEmail> getAllList(AssetEmailPageRequest as);
}

@ -0,0 +1,39 @@
package com.ruoyi.tc.service;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.ruoyi.tc.entity.AssetMiniPrograms;
import com.ruoyi.tc.entity.AssetMiniPrograms;
import com.ruoyi.tc.entity.request.AssetMiniProgramsPageRequest;
import java.util.List;
/**
* (asset_mini_programs)
*
* @author makejava
* @since 2024-11-28 17:13:07
*/
public interface AssetMiniProgramsService extends IService<AssetMiniPrograms> {
/**
*
*
* @param page
* @param as
* @return
*/
Page<AssetMiniPrograms> page(Page<AssetMiniPrograms> page, AssetMiniProgramsPageRequest as);
/**
*
*/
void deleteById(Long id);
/**
*
*
* @param as
* @return
*/
List<AssetMiniPrograms> getAllList(AssetMiniProgramsPageRequest as);
}

@ -0,0 +1,38 @@
package com.ruoyi.tc.service;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.ruoyi.tc.entity.AssetOfficialAccount;
import com.ruoyi.tc.entity.request.AssetOfficialAccountPageRequest;
import java.util.List;
/**
* (asset_official_account)
*
* @author makejava
* @since 2024-11-28 17:13:07
*/
public interface AssetOfficialAccountService extends IService<AssetOfficialAccount> {
/**
*
*
* @param page
* @param as
* @return
*/
Page<AssetOfficialAccount> page(Page<AssetOfficialAccount> page, AssetOfficialAccountPageRequest as);
/**
*
*/
void deleteById(Long id);
/**
*
*
* @param as
* @return
*/
List<AssetOfficialAccount> getAllList(AssetOfficialAccountPageRequest as);
}

@ -0,0 +1,52 @@
package com.ruoyi.tc.service.impl;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.ruoyi.tc.entity.AssetApp;
import com.ruoyi.tc.entity.request.AssetAppPageRequest;
import com.ruoyi.tc.mapper.AssetAppMapper;
import com.ruoyi.tc.service.AssetAppService;
import org.springframework.stereotype.Service;
import java.util.List;
/**
* (asset_app)
*
* @author makejava
* @since 2024-11-28 17:13:07
*/
@Service("assetAppService")
public class AssetAppServiceImpl extends ServiceImpl<AssetAppMapper, AssetApp> implements AssetAppService{
/**
*
*
* @param page
* @param as
* @return
*/
@Override
public Page<AssetApp> page(Page<AssetApp> page, AssetAppPageRequest as) {
return baseMapper.page(page,as);
}
/**
*
*/
@Override
public void deleteById(Long id) {
baseMapper.deleteById(id);
}
/**
*
*
* @param as
* @return
*/
@Override
public List<AssetApp> getAllList(AssetAppPageRequest as) {
return baseMapper.page(as);
}
}

@ -0,0 +1,52 @@
package com.ruoyi.tc.service.impl;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.ruoyi.tc.entity.AssetEmail;
import com.ruoyi.tc.entity.request.AssetEmailPageRequest;
import com.ruoyi.tc.mapper.AssetEmailMapper;
import com.ruoyi.tc.service.AssetEmailService;
import org.springframework.stereotype.Service;
import java.util.List;
/**
* (asset_email)
*
* @author makejava
* @since 2024-11-28 17:13:07
*/
@Service("assetEmailService")
public class AssetEmailServiceImpl extends ServiceImpl<AssetEmailMapper, AssetEmail> implements AssetEmailService {
/**
*
*
* @param page
* @param as
* @return
*/
@Override
public Page<AssetEmail> page(Page<AssetEmail> page, AssetEmailPageRequest as) {
return baseMapper.page(page,as);
}
/**
*
*/
@Override
public String deleteById(Long id) {
return baseMapper.deleteById(id);
}
/**
*
*
* @param as
* @return
*/
@Override
public List<AssetEmail> getAllList(AssetEmailPageRequest as) {
return baseMapper.page(as);
}
}

@ -0,0 +1,52 @@
package com.ruoyi.tc.service.impl;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.ruoyi.tc.entity.AssetMiniPrograms;
import com.ruoyi.tc.entity.request.AssetMiniProgramsPageRequest;
import com.ruoyi.tc.mapper.AssetMiniProgramsMapper;
import com.ruoyi.tc.service.AssetMiniProgramsService;
import org.springframework.stereotype.Service;
import java.util.List;
/**
* (asset_mini_programs)
*
* @author makejava
* @since 2024-11-28 17:13:07
*/
@Service("assetMiniProgramsService")
public class AssetMiniProgramsServiceImpl extends ServiceImpl<AssetMiniProgramsMapper, AssetMiniPrograms> implements AssetMiniProgramsService{
/**
*
*
* @param page
* @param as
* @return
*/
@Override
public Page<AssetMiniPrograms> page(Page<AssetMiniPrograms> page, AssetMiniProgramsPageRequest as) {
return baseMapper.page(page,as);
}
/**
*
*/
@Override
public void deleteById(Long id) {
baseMapper.deleteById(id);
}
/**
*
*
* @param as
* @return
*/
@Override
public List<AssetMiniPrograms> getAllList(AssetMiniProgramsPageRequest as) {
return baseMapper.page(as);
}
}

@ -0,0 +1,52 @@
package com.ruoyi.tc.service.impl;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.ruoyi.tc.entity.AssetOfficialAccount;
import com.ruoyi.tc.entity.request.AssetOfficialAccountPageRequest;
import com.ruoyi.tc.mapper.AssetOfficialAccountMapper;
import com.ruoyi.tc.service.AssetOfficialAccountService;
import org.springframework.stereotype.Service;
import java.util.List;
/**
* (asset_official_account)
*
* @author makejava
* @since 2024-11-28 17:13:07
*/
@Service("assetOfficialAccountService")
public class AssetOfficialAccountServiceImpl extends ServiceImpl<AssetOfficialAccountMapper, AssetOfficialAccount> implements AssetOfficialAccountService{
/**
*
*
* @param page
* @param as
* @return
*/
@Override
public Page<AssetOfficialAccount> page(Page<AssetOfficialAccount> page, AssetOfficialAccountPageRequest as) {
return baseMapper.page(page,as);
}
/**
*
*/
@Override
public void deleteById(Long id) {
baseMapper.deleteById(id);
}
/**
*
*
* @param as
* @return
*/
@Override
public List<AssetOfficialAccount> getAllList(AssetOfficialAccountPageRequest as) {
return baseMapper.page(as);
}
}

@ -0,0 +1,30 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.ruoyi.tc.mapper.AssetAppMapper">
<update id="deleteById">
update asset_app
set del_flag = '2'
where id = #{id}
</update>
<select id="page" resultType="com.ruoyi.tc.entity.AssetApp">
select * from asset_app
<where>
del_flag = '0'
<if test="req.yymc!=null and req.yymc!='' ">
and app_name like concat('%',#{req.yymc},'%')
</if>
<if test="req.dwmc!=null and req.dwmc!='' ">
and ssdw like concat('%',#{req.dwmc},'%')
</if>
<if test="req.startTime != null ">
and create_time &gt;= #{req.startTime}
</if>
<if test="req.endTime != null">
and create_time &lt;= #{req.endTime}
</if>
</where>
order by create_time desc
</select>
</mapper>

@ -0,0 +1,30 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.ruoyi.tc.mapper.AssetEmailMapper">
<update id="deleteById">
update asset_email
set del_flag = '2'
where id = #{id}
</update>
<select id="page" resultType="com.ruoyi.tc.entity.AssetEmail">
select * from asset_email
<where>
del_flag = '0'
<if test="req.dzyxhz!=null and req.dzyxhz!='' ">
and dzyxhz like concat('%',#{req.dzyxhz},'%')
</if>
<if test="req.dwmc!=null and req.dwmc!='' ">
and ssdw like concat('%',#{req.dwmc},'%')
</if>
<if test="req.startTime != null ">
and create_time &gt;= #{req.startTime}
</if>
<if test="req.endTime != null">
and create_time &lt;= #{req.endTime}
</if>
</where>
order by create_time desc
</select>
</mapper>

@ -0,0 +1,30 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.ruoyi.tc.mapper.AssetMiniProgramsMapper">
<update id="deleteById">
update asset_mini_programs
set del_flag = '2'
where id = #{id}
</update>
<select id="page" resultType="com.ruoyi.tc.entity.AssetMiniPrograms">
select * from asset_mini_programs
<where>
del_flag = '0'
<if test="req.xcxmc!=null and req.xcxmc!='' ">
and xcxmc like concat('%',#{req.xcxmc},'%')
</if>
<if test="req.dwmc!=null and req.dwmc!='' ">
and ssdw like concat('%',#{req.dwmc},'%')
</if>
<if test="req.startTime != null ">
and create_time &gt;= #{req.startTime}
</if>
<if test="req.endTime != null">
and create_time &lt;= #{req.endTime}
</if>
</where>
order by create_time desc
</select>
</mapper>

@ -0,0 +1,30 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.ruoyi.tc.mapper.AssetOfficialAccountMapper">
<update id="deleteById">
update asset_official_account
set del_flag = '2'
where id = #{id}
</update>
<select id="page" resultType="com.ruoyi.tc.entity.AssetOfficialAccount">
select * from asset_official_account
<where>
del_flag = '0'
<if test="req.gzhmc!=null and req.gzhmc!='' ">
and gzhmc like concat('%',#{req.gzhmc},'%')
</if>
<if test="req.dwmc!=null and req.dwmc!='' ">
and ssdw like concat('%',#{req.dwmc},'%')
</if>
<if test="req.startTime != null ">
and create_time &gt;= #{req.startTime}
</if>
<if test="req.endTime != null">
and create_time &lt;= #{req.endTime}
</if>
</where>
order by create_time desc
</select>
</mapper>
Loading…
Cancel
Save