基础产品
This commit is contained in:
parent
0a6e493f95
commit
52c9227245
8
pom.xml
8
pom.xml
|
|
@ -222,6 +222,13 @@
|
||||||
<version>${ruoyi.version}</version>
|
<version>${ruoyi.version}</version>
|
||||||
</dependency>
|
</dependency>
|
||||||
|
|
||||||
|
<!-- product模块-->
|
||||||
|
<dependency>
|
||||||
|
<groupId>com.ruoyi</groupId>
|
||||||
|
<artifactId>ruoyi-product</artifactId>
|
||||||
|
<version>${ruoyi.version}</version>
|
||||||
|
</dependency>
|
||||||
|
|
||||||
<!-- 通用工具-->
|
<!-- 通用工具-->
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>com.ruoyi</groupId>
|
<groupId>com.ruoyi</groupId>
|
||||||
|
|
@ -239,6 +246,7 @@
|
||||||
<module>ruoyi-quartz</module>
|
<module>ruoyi-quartz</module>
|
||||||
<module>ruoyi-generator</module>
|
<module>ruoyi-generator</module>
|
||||||
<module>ruoyi-common</module>
|
<module>ruoyi-common</module>
|
||||||
|
<module>ruoyi-product</module>
|
||||||
</modules>
|
</modules>
|
||||||
<packaging>pom</packaging>
|
<packaging>pom</packaging>
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -0,0 +1,126 @@
|
||||||
|
package com.ruoyi.web.controller.product;
|
||||||
|
|
||||||
|
import java.util.List;
|
||||||
|
import org.apache.shiro.authz.annotation.RequiresPermissions;
|
||||||
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
|
import org.springframework.stereotype.Controller;
|
||||||
|
import org.springframework.ui.ModelMap;
|
||||||
|
import org.springframework.web.bind.annotation.GetMapping;
|
||||||
|
import org.springframework.web.bind.annotation.PathVariable;
|
||||||
|
import org.springframework.web.bind.annotation.PostMapping;
|
||||||
|
import org.springframework.web.bind.annotation.RequestMapping;
|
||||||
|
import org.springframework.web.bind.annotation.ResponseBody;
|
||||||
|
import com.ruoyi.common.annotation.Log;
|
||||||
|
import com.ruoyi.common.enums.BusinessType;
|
||||||
|
import com.ruoyi.product.domain.AduitMessage;
|
||||||
|
import com.ruoyi.product.service.IAduitMessageService;
|
||||||
|
import com.ruoyi.common.core.controller.BaseController;
|
||||||
|
import com.ruoyi.common.core.domain.AjaxResult;
|
||||||
|
import com.ruoyi.common.utils.poi.ExcelUtil;
|
||||||
|
import com.ruoyi.common.core.page.TableDataInfo;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* productController
|
||||||
|
*
|
||||||
|
* @author ruoyi
|
||||||
|
* @date 2021-04-29
|
||||||
|
*/
|
||||||
|
@Controller
|
||||||
|
@RequestMapping("/productMessage/product")
|
||||||
|
public class AduitMessageController extends BaseController
|
||||||
|
{
|
||||||
|
private String prefix = "product/product";
|
||||||
|
|
||||||
|
@Autowired
|
||||||
|
private IAduitMessageService aduitMessageService;
|
||||||
|
|
||||||
|
@RequiresPermissions("product:product:view")
|
||||||
|
@GetMapping()
|
||||||
|
public String product()
|
||||||
|
{
|
||||||
|
return prefix + "/product";
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 查询product列表
|
||||||
|
*/
|
||||||
|
@RequiresPermissions("product:product:list")
|
||||||
|
@PostMapping("/list")
|
||||||
|
@ResponseBody
|
||||||
|
public TableDataInfo list(AduitMessage aduitMessage)
|
||||||
|
{
|
||||||
|
startPage();
|
||||||
|
List<AduitMessage> list = aduitMessageService.selectAduitMessageList(aduitMessage);
|
||||||
|
return getDataTable(list);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 导出product列表
|
||||||
|
*/
|
||||||
|
@RequiresPermissions("product:product:export")
|
||||||
|
@Log(title = "product", businessType = BusinessType.EXPORT)
|
||||||
|
@PostMapping("/export")
|
||||||
|
@ResponseBody
|
||||||
|
public AjaxResult export(AduitMessage aduitMessage)
|
||||||
|
{
|
||||||
|
List<AduitMessage> list = aduitMessageService.selectAduitMessageList(aduitMessage);
|
||||||
|
ExcelUtil<AduitMessage> util = new ExcelUtil<AduitMessage>(AduitMessage.class);
|
||||||
|
return util.exportExcel(list, "product");
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 新增product
|
||||||
|
*/
|
||||||
|
@GetMapping("/add")
|
||||||
|
public String add()
|
||||||
|
{
|
||||||
|
return prefix + "/add";
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 新增保存product
|
||||||
|
*/
|
||||||
|
@RequiresPermissions("product:product:add")
|
||||||
|
@Log(title = "product", businessType = BusinessType.INSERT)
|
||||||
|
@PostMapping("/add")
|
||||||
|
@ResponseBody
|
||||||
|
public AjaxResult addSave(AduitMessage aduitMessage)
|
||||||
|
{
|
||||||
|
return toAjax(aduitMessageService.insertAduitMessage(aduitMessage));
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 修改product
|
||||||
|
*/
|
||||||
|
@GetMapping("/edit/{id}")
|
||||||
|
public String edit(@PathVariable("id") Long id, ModelMap mmap)
|
||||||
|
{
|
||||||
|
AduitMessage aduitMessage = aduitMessageService.selectAduitMessageById(id);
|
||||||
|
mmap.put("aduitMessage", aduitMessage);
|
||||||
|
return prefix + "/edit";
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 修改保存product
|
||||||
|
*/
|
||||||
|
@RequiresPermissions("product:product:edit")
|
||||||
|
@Log(title = "product", businessType = BusinessType.UPDATE)
|
||||||
|
@PostMapping("/edit")
|
||||||
|
@ResponseBody
|
||||||
|
public AjaxResult editSave(AduitMessage aduitMessage)
|
||||||
|
{
|
||||||
|
return toAjax(aduitMessageService.updateAduitMessage(aduitMessage));
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 删除product
|
||||||
|
*/
|
||||||
|
@RequiresPermissions("product:product:remove")
|
||||||
|
@Log(title = "product", businessType = BusinessType.DELETE)
|
||||||
|
@PostMapping( "/remove")
|
||||||
|
@ResponseBody
|
||||||
|
public AjaxResult remove(String ids)
|
||||||
|
{
|
||||||
|
return toAjax(aduitMessageService.deleteAduitMessageByIds(ids));
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
@ -0,0 +1,139 @@
|
||||||
|
package com.ruoyi.web.controller.product;
|
||||||
|
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
|
import com.ruoyi.product.domain.AduitMessage;
|
||||||
|
import org.apache.shiro.authz.annotation.RequiresPermissions;
|
||||||
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
|
import org.springframework.stereotype.Controller;
|
||||||
|
import org.springframework.ui.ModelMap;
|
||||||
|
import org.springframework.web.bind.annotation.GetMapping;
|
||||||
|
import org.springframework.web.bind.annotation.PathVariable;
|
||||||
|
import org.springframework.web.bind.annotation.PostMapping;
|
||||||
|
import org.springframework.web.bind.annotation.RequestMapping;
|
||||||
|
import org.springframework.web.bind.annotation.ResponseBody;
|
||||||
|
import com.ruoyi.common.annotation.Log;
|
||||||
|
import com.ruoyi.common.enums.BusinessType;
|
||||||
|
import com.ruoyi.product.domain.ApplyUser;
|
||||||
|
import com.ruoyi.product.service.IApplyUserService;
|
||||||
|
import com.ruoyi.common.core.controller.BaseController;
|
||||||
|
import com.ruoyi.common.core.domain.AjaxResult;
|
||||||
|
import com.ruoyi.common.utils.poi.ExcelUtil;
|
||||||
|
import com.ruoyi.common.core.page.TableDataInfo;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* productController
|
||||||
|
*
|
||||||
|
* @author ruoyi
|
||||||
|
* @date 2021-04-29
|
||||||
|
*/
|
||||||
|
@Controller
|
||||||
|
@RequestMapping("/productApply/product")
|
||||||
|
public class ApplyUserController extends BaseController
|
||||||
|
{
|
||||||
|
private String prefix = "product/product";
|
||||||
|
|
||||||
|
@Autowired
|
||||||
|
private IApplyUserService applyUserService;
|
||||||
|
|
||||||
|
@RequiresPermissions("product:product:view")
|
||||||
|
@GetMapping()
|
||||||
|
public String product()
|
||||||
|
{
|
||||||
|
return prefix + "/product";
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 提交预审 product
|
||||||
|
*/
|
||||||
|
@PostMapping("/addProductSave")
|
||||||
|
@ResponseBody
|
||||||
|
public TableDataInfo addProductSave(ApplyUser applyUser)
|
||||||
|
{
|
||||||
|
List<AduitMessage> list = applyUserService.addProductSave(applyUser);
|
||||||
|
return getDataTable(list);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 查询product列表
|
||||||
|
*/
|
||||||
|
@RequiresPermissions("product:product:list")
|
||||||
|
@PostMapping("/list")
|
||||||
|
@ResponseBody
|
||||||
|
public TableDataInfo list(ApplyUser applyUser)
|
||||||
|
{
|
||||||
|
startPage();
|
||||||
|
List<ApplyUser> list = applyUserService.selectApplyUserList(applyUser);
|
||||||
|
return getDataTable(list);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 导出product列表
|
||||||
|
*/
|
||||||
|
@RequiresPermissions("product:product:export")
|
||||||
|
@Log(title = "product", businessType = BusinessType.EXPORT)
|
||||||
|
@PostMapping("/export")
|
||||||
|
@ResponseBody
|
||||||
|
public AjaxResult export(ApplyUser applyUser)
|
||||||
|
{
|
||||||
|
List<ApplyUser> list = applyUserService.selectApplyUserList(applyUser);
|
||||||
|
ExcelUtil<ApplyUser> util = new ExcelUtil<ApplyUser>(ApplyUser.class);
|
||||||
|
return util.exportExcel(list, "product");
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 新增product
|
||||||
|
*/
|
||||||
|
@GetMapping("/add")
|
||||||
|
public String add()
|
||||||
|
{
|
||||||
|
return prefix + "/add";
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 新增保存product
|
||||||
|
*/
|
||||||
|
@RequiresPermissions("product:product:add")
|
||||||
|
@Log(title = "product", businessType = BusinessType.INSERT)
|
||||||
|
@PostMapping("/add")
|
||||||
|
@ResponseBody
|
||||||
|
public AjaxResult addSave(ApplyUser applyUser)
|
||||||
|
{
|
||||||
|
return toAjax(applyUserService.insertApplyUser(applyUser));
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 修改product
|
||||||
|
*/
|
||||||
|
@GetMapping("/edit/{id}")
|
||||||
|
public String edit(@PathVariable("id") Long id, ModelMap mmap)
|
||||||
|
{
|
||||||
|
ApplyUser applyUser = applyUserService.selectApplyUserById(id);
|
||||||
|
mmap.put("applyUser", applyUser);
|
||||||
|
return prefix + "/edit";
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 修改保存product
|
||||||
|
*/
|
||||||
|
@RequiresPermissions("product:product:edit")
|
||||||
|
@Log(title = "product", businessType = BusinessType.UPDATE)
|
||||||
|
@PostMapping("/edit")
|
||||||
|
@ResponseBody
|
||||||
|
public AjaxResult editSave(ApplyUser applyUser)
|
||||||
|
{
|
||||||
|
return toAjax(applyUserService.updateApplyUser(applyUser));
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 删除product
|
||||||
|
*/
|
||||||
|
@RequiresPermissions("product:product:remove")
|
||||||
|
@Log(title = "product", businessType = BusinessType.DELETE)
|
||||||
|
@PostMapping( "/remove")
|
||||||
|
@ResponseBody
|
||||||
|
public AjaxResult remove(String ids)
|
||||||
|
{
|
||||||
|
return toAjax(applyUserService.deleteApplyUserByIds(ids));
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
@ -0,0 +1,126 @@
|
||||||
|
package com.ruoyi.web.controller.product;
|
||||||
|
|
||||||
|
import java.util.List;
|
||||||
|
import org.apache.shiro.authz.annotation.RequiresPermissions;
|
||||||
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
|
import org.springframework.stereotype.Controller;
|
||||||
|
import org.springframework.ui.ModelMap;
|
||||||
|
import org.springframework.web.bind.annotation.GetMapping;
|
||||||
|
import org.springframework.web.bind.annotation.PathVariable;
|
||||||
|
import org.springframework.web.bind.annotation.PostMapping;
|
||||||
|
import org.springframework.web.bind.annotation.RequestMapping;
|
||||||
|
import org.springframework.web.bind.annotation.ResponseBody;
|
||||||
|
import com.ruoyi.common.annotation.Log;
|
||||||
|
import com.ruoyi.common.enums.BusinessType;
|
||||||
|
import com.ruoyi.product.domain.Product;
|
||||||
|
import com.ruoyi.product.service.IProductService;
|
||||||
|
import com.ruoyi.common.core.controller.BaseController;
|
||||||
|
import com.ruoyi.common.core.domain.AjaxResult;
|
||||||
|
import com.ruoyi.common.utils.poi.ExcelUtil;
|
||||||
|
import com.ruoyi.common.core.page.TableDataInfo;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* productController
|
||||||
|
*
|
||||||
|
* @author ruoyi
|
||||||
|
* @date 2021-04-29
|
||||||
|
*/
|
||||||
|
@Controller
|
||||||
|
@RequestMapping("/product/product")
|
||||||
|
public class ProductController extends BaseController
|
||||||
|
{
|
||||||
|
private String prefix = "product/product";
|
||||||
|
|
||||||
|
@Autowired
|
||||||
|
private IProductService productService;
|
||||||
|
|
||||||
|
@RequiresPermissions("product:product:view")
|
||||||
|
@GetMapping()
|
||||||
|
public String product()
|
||||||
|
{
|
||||||
|
return prefix + "/product";
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 查询product列表
|
||||||
|
*/
|
||||||
|
@RequiresPermissions("product:product:list")
|
||||||
|
@PostMapping("/list")
|
||||||
|
@ResponseBody
|
||||||
|
public TableDataInfo list(Product product)
|
||||||
|
{
|
||||||
|
startPage();
|
||||||
|
List<Product> list = productService.selectProductList(product);
|
||||||
|
return getDataTable(list);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 导出product列表
|
||||||
|
*/
|
||||||
|
@RequiresPermissions("product:product:export")
|
||||||
|
@Log(title = "product", businessType = BusinessType.EXPORT)
|
||||||
|
@PostMapping("/export")
|
||||||
|
@ResponseBody
|
||||||
|
public AjaxResult export(Product product)
|
||||||
|
{
|
||||||
|
List<Product> list = productService.selectProductList(product);
|
||||||
|
ExcelUtil<Product> util = new ExcelUtil<Product>(Product.class);
|
||||||
|
return util.exportExcel(list, "product");
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 新增product
|
||||||
|
*/
|
||||||
|
@GetMapping("/add")
|
||||||
|
public String add()
|
||||||
|
{
|
||||||
|
return prefix + "/add";
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 新增保存product
|
||||||
|
*/
|
||||||
|
@RequiresPermissions("product:product:add")
|
||||||
|
@Log(title = "product", businessType = BusinessType.INSERT)
|
||||||
|
@PostMapping("/add")
|
||||||
|
@ResponseBody
|
||||||
|
public AjaxResult addSave(Product product)
|
||||||
|
{
|
||||||
|
return toAjax(productService.insertProduct(product));
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 修改product
|
||||||
|
*/
|
||||||
|
@GetMapping("/edit/{id}")
|
||||||
|
public String edit(@PathVariable("id") Long id, ModelMap mmap)
|
||||||
|
{
|
||||||
|
Product product = productService.selectProductById(id);
|
||||||
|
mmap.put("product", product);
|
||||||
|
return prefix + "/edit";
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 修改保存product
|
||||||
|
*/
|
||||||
|
@RequiresPermissions("product:product:edit")
|
||||||
|
@Log(title = "product", businessType = BusinessType.UPDATE)
|
||||||
|
@PostMapping("/edit")
|
||||||
|
@ResponseBody
|
||||||
|
public AjaxResult editSave(Product product)
|
||||||
|
{
|
||||||
|
return toAjax(productService.updateProduct(product));
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 删除product
|
||||||
|
*/
|
||||||
|
@RequiresPermissions("product:product:remove")
|
||||||
|
@Log(title = "product", businessType = BusinessType.DELETE)
|
||||||
|
@PostMapping( "/remove")
|
||||||
|
@ResponseBody
|
||||||
|
public AjaxResult remove(String ids)
|
||||||
|
{
|
||||||
|
return toAjax(productService.deleteProductByIds(ids));
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
@ -0,0 +1,126 @@
|
||||||
|
package com.ruoyi.web.controller.product;
|
||||||
|
|
||||||
|
import java.util.List;
|
||||||
|
import org.apache.shiro.authz.annotation.RequiresPermissions;
|
||||||
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
|
import org.springframework.stereotype.Controller;
|
||||||
|
import org.springframework.ui.ModelMap;
|
||||||
|
import org.springframework.web.bind.annotation.GetMapping;
|
||||||
|
import org.springframework.web.bind.annotation.PathVariable;
|
||||||
|
import org.springframework.web.bind.annotation.PostMapping;
|
||||||
|
import org.springframework.web.bind.annotation.RequestMapping;
|
||||||
|
import org.springframework.web.bind.annotation.ResponseBody;
|
||||||
|
import com.ruoyi.common.annotation.Log;
|
||||||
|
import com.ruoyi.common.enums.BusinessType;
|
||||||
|
import com.ruoyi.product.domain.ProductInformation;
|
||||||
|
import com.ruoyi.product.service.IProductInformationService;
|
||||||
|
import com.ruoyi.common.core.controller.BaseController;
|
||||||
|
import com.ruoyi.common.core.domain.AjaxResult;
|
||||||
|
import com.ruoyi.common.utils.poi.ExcelUtil;
|
||||||
|
import com.ruoyi.common.core.page.TableDataInfo;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* productController
|
||||||
|
*
|
||||||
|
* @author ruoyi
|
||||||
|
* @date 2021-04-29
|
||||||
|
*/
|
||||||
|
@Controller
|
||||||
|
@RequestMapping("/productInformation/information")
|
||||||
|
public class ProductInformationController extends BaseController
|
||||||
|
{
|
||||||
|
private String prefix = "product/information";
|
||||||
|
|
||||||
|
@Autowired
|
||||||
|
private IProductInformationService productInformationService;
|
||||||
|
|
||||||
|
@RequiresPermissions("product:information:view")
|
||||||
|
@GetMapping()
|
||||||
|
public String information()
|
||||||
|
{
|
||||||
|
return prefix + "/information";
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 查询product列表
|
||||||
|
*/
|
||||||
|
@RequiresPermissions("product:information:list")
|
||||||
|
@PostMapping("/list")
|
||||||
|
@ResponseBody
|
||||||
|
public TableDataInfo list(ProductInformation productInformation)
|
||||||
|
{
|
||||||
|
startPage();
|
||||||
|
List<ProductInformation> list = productInformationService.selectProductInformationList(productInformation);
|
||||||
|
return getDataTable(list);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 导出product列表
|
||||||
|
*/
|
||||||
|
@RequiresPermissions("product:information:export")
|
||||||
|
@Log(title = "product", businessType = BusinessType.EXPORT)
|
||||||
|
@PostMapping("/export")
|
||||||
|
@ResponseBody
|
||||||
|
public AjaxResult export(ProductInformation productInformation)
|
||||||
|
{
|
||||||
|
List<ProductInformation> list = productInformationService.selectProductInformationList(productInformation);
|
||||||
|
ExcelUtil<ProductInformation> util = new ExcelUtil<ProductInformation>(ProductInformation.class);
|
||||||
|
return util.exportExcel(list, "information");
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 新增product
|
||||||
|
*/
|
||||||
|
@GetMapping("/add")
|
||||||
|
public String add()
|
||||||
|
{
|
||||||
|
return prefix + "/add";
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 新增保存product
|
||||||
|
*/
|
||||||
|
@RequiresPermissions("product:information:add")
|
||||||
|
@Log(title = "product", businessType = BusinessType.INSERT)
|
||||||
|
@PostMapping("/add")
|
||||||
|
@ResponseBody
|
||||||
|
public AjaxResult addSave(ProductInformation productInformation)
|
||||||
|
{
|
||||||
|
return toAjax(productInformationService.insertProductInformation(productInformation));
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 修改product
|
||||||
|
*/
|
||||||
|
@GetMapping("/edit/{id}")
|
||||||
|
public String edit(@PathVariable("id") Long id, ModelMap mmap)
|
||||||
|
{
|
||||||
|
ProductInformation productInformation = productInformationService.selectProductInformationById(id);
|
||||||
|
mmap.put("productInformation", productInformation);
|
||||||
|
return prefix + "/edit";
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 修改保存product
|
||||||
|
*/
|
||||||
|
@RequiresPermissions("product:information:edit")
|
||||||
|
@Log(title = "product", businessType = BusinessType.UPDATE)
|
||||||
|
@PostMapping("/edit")
|
||||||
|
@ResponseBody
|
||||||
|
public AjaxResult editSave(ProductInformation productInformation)
|
||||||
|
{
|
||||||
|
return toAjax(productInformationService.updateProductInformation(productInformation));
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 删除product
|
||||||
|
*/
|
||||||
|
@RequiresPermissions("product:information:remove")
|
||||||
|
@Log(title = "product", businessType = BusinessType.DELETE)
|
||||||
|
@PostMapping( "/remove")
|
||||||
|
@ResponseBody
|
||||||
|
public AjaxResult remove(String ids)
|
||||||
|
{
|
||||||
|
return toAjax(productInformationService.deleteProductInformationByIds(ids));
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
@ -0,0 +1,126 @@
|
||||||
|
package com.ruoyi.web.controller.product;
|
||||||
|
|
||||||
|
import java.util.List;
|
||||||
|
import org.apache.shiro.authz.annotation.RequiresPermissions;
|
||||||
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
|
import org.springframework.stereotype.Controller;
|
||||||
|
import org.springframework.ui.ModelMap;
|
||||||
|
import org.springframework.web.bind.annotation.GetMapping;
|
||||||
|
import org.springframework.web.bind.annotation.PathVariable;
|
||||||
|
import org.springframework.web.bind.annotation.PostMapping;
|
||||||
|
import org.springframework.web.bind.annotation.RequestMapping;
|
||||||
|
import org.springframework.web.bind.annotation.ResponseBody;
|
||||||
|
import com.ruoyi.common.annotation.Log;
|
||||||
|
import com.ruoyi.common.enums.BusinessType;
|
||||||
|
import com.ruoyi.product.domain.ProductTag;
|
||||||
|
import com.ruoyi.product.service.IProductTagService;
|
||||||
|
import com.ruoyi.common.core.controller.BaseController;
|
||||||
|
import com.ruoyi.common.core.domain.AjaxResult;
|
||||||
|
import com.ruoyi.common.utils.poi.ExcelUtil;
|
||||||
|
import com.ruoyi.common.core.page.TableDataInfo;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* productController
|
||||||
|
*
|
||||||
|
* @author ruoyi
|
||||||
|
* @date 2021-04-29
|
||||||
|
*/
|
||||||
|
@Controller
|
||||||
|
@RequestMapping("/productTag/product")
|
||||||
|
public class ProductTagController extends BaseController
|
||||||
|
{
|
||||||
|
private String prefix = "product/product";
|
||||||
|
|
||||||
|
@Autowired
|
||||||
|
private IProductTagService productTagService;
|
||||||
|
|
||||||
|
@RequiresPermissions("product:product:view")
|
||||||
|
@GetMapping()
|
||||||
|
public String product()
|
||||||
|
{
|
||||||
|
return prefix + "/product";
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 查询product列表
|
||||||
|
*/
|
||||||
|
@RequiresPermissions("product:product:list")
|
||||||
|
@PostMapping("/list")
|
||||||
|
@ResponseBody
|
||||||
|
public TableDataInfo list(ProductTag productTag)
|
||||||
|
{
|
||||||
|
startPage();
|
||||||
|
List<ProductTag> list = productTagService.selectProductTagList(productTag);
|
||||||
|
return getDataTable(list);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 导出product列表
|
||||||
|
*/
|
||||||
|
@RequiresPermissions("product:product:export")
|
||||||
|
@Log(title = "product", businessType = BusinessType.EXPORT)
|
||||||
|
@PostMapping("/export")
|
||||||
|
@ResponseBody
|
||||||
|
public AjaxResult export(ProductTag productTag)
|
||||||
|
{
|
||||||
|
List<ProductTag> list = productTagService.selectProductTagList(productTag);
|
||||||
|
ExcelUtil<ProductTag> util = new ExcelUtil<ProductTag>(ProductTag.class);
|
||||||
|
return util.exportExcel(list, "product");
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 新增product
|
||||||
|
*/
|
||||||
|
@GetMapping("/add")
|
||||||
|
public String add()
|
||||||
|
{
|
||||||
|
return prefix + "/add";
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 新增保存product
|
||||||
|
*/
|
||||||
|
@RequiresPermissions("product:product:add")
|
||||||
|
@Log(title = "product", businessType = BusinessType.INSERT)
|
||||||
|
@PostMapping("/add")
|
||||||
|
@ResponseBody
|
||||||
|
public AjaxResult addSave(ProductTag productTag)
|
||||||
|
{
|
||||||
|
return toAjax(productTagService.insertProductTag(productTag));
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 修改product
|
||||||
|
*/
|
||||||
|
@GetMapping("/edit/{id}")
|
||||||
|
public String edit(@PathVariable("id") Long id, ModelMap mmap)
|
||||||
|
{
|
||||||
|
ProductTag productTag = productTagService.selectProductTagById(id);
|
||||||
|
mmap.put("productTag", productTag);
|
||||||
|
return prefix + "/edit";
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 修改保存product
|
||||||
|
*/
|
||||||
|
@RequiresPermissions("product:product:edit")
|
||||||
|
@Log(title = "product", businessType = BusinessType.UPDATE)
|
||||||
|
@PostMapping("/edit")
|
||||||
|
@ResponseBody
|
||||||
|
public AjaxResult editSave(ProductTag productTag)
|
||||||
|
{
|
||||||
|
return toAjax(productTagService.updateProductTag(productTag));
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 删除product
|
||||||
|
*/
|
||||||
|
@RequiresPermissions("product:product:remove")
|
||||||
|
@Log(title = "product", businessType = BusinessType.DELETE)
|
||||||
|
@PostMapping( "/remove")
|
||||||
|
@ResponseBody
|
||||||
|
public AjaxResult remove(String ids)
|
||||||
|
{
|
||||||
|
return toAjax(productTagService.deleteProductTagByIds(ids));
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
@ -6,9 +6,9 @@ spring:
|
||||||
druid:
|
druid:
|
||||||
# 主库数据源
|
# 主库数据源
|
||||||
master:
|
master:
|
||||||
url: jdbc:mysql://localhost:3306/ry?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8
|
url: jdbc:mysql://localhost:3306/srt?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8
|
||||||
username: root
|
username: root
|
||||||
password: password
|
password: root
|
||||||
# 从库数据源
|
# 从库数据源
|
||||||
slave:
|
slave:
|
||||||
# 从数据源开关/默认关闭
|
# 从数据源开关/默认关闭
|
||||||
|
|
|
||||||
|
|
@ -101,6 +101,20 @@
|
||||||
<artifactId>javax.servlet-api</artifactId>
|
<artifactId>javax.servlet-api</artifactId>
|
||||||
</dependency>
|
</dependency>
|
||||||
|
|
||||||
|
<!-- lombok 实体类工具-->
|
||||||
|
<dependency>
|
||||||
|
<groupId>org.projectlombok</groupId>
|
||||||
|
<artifactId>lombok</artifactId>
|
||||||
|
<version>1.18.12</version>
|
||||||
|
</dependency>
|
||||||
|
|
||||||
|
<!-- hutool 实体类工具-->
|
||||||
|
<dependency>
|
||||||
|
<groupId>cn.hutool</groupId>
|
||||||
|
<artifactId>hutool-all</artifactId>
|
||||||
|
<version>5.6.3</version>
|
||||||
|
</dependency>
|
||||||
|
|
||||||
</dependencies>
|
</dependencies>
|
||||||
|
|
||||||
</project>
|
</project>
|
||||||
|
|
@ -0,0 +1,11 @@
|
||||||
|
package com.ruoyi.common.utils;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @Auther: Wang
|
||||||
|
* @Date: 2021/04/27 21:32
|
||||||
|
* 功能描述:
|
||||||
|
*/
|
||||||
|
public class WebCont {
|
||||||
|
|
||||||
|
final static String CONNECT = ";";
|
||||||
|
}
|
||||||
|
|
@ -77,6 +77,12 @@
|
||||||
<artifactId>ruoyi-system</artifactId>
|
<artifactId>ruoyi-system</artifactId>
|
||||||
</dependency>
|
</dependency>
|
||||||
|
|
||||||
|
<!-- product模块-->
|
||||||
|
<dependency>
|
||||||
|
<groupId>com.ruoyi</groupId>
|
||||||
|
<artifactId>ruoyi-product</artifactId>
|
||||||
|
</dependency>
|
||||||
|
|
||||||
</dependencies>
|
</dependencies>
|
||||||
|
|
||||||
</project>
|
</project>
|
||||||
|
|
@ -0,0 +1,28 @@
|
||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<project xmlns="http://maven.apache.org/POM/4.0.0"
|
||||||
|
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||||
|
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
|
||||||
|
<parent>
|
||||||
|
<artifactId>ruoyi</artifactId>
|
||||||
|
<groupId>com.ruoyi</groupId>
|
||||||
|
<version>4.6.1</version>
|
||||||
|
</parent>
|
||||||
|
<modelVersion>4.0.0</modelVersion>
|
||||||
|
|
||||||
|
|
||||||
|
<artifactId>ruoyi-product</artifactId>
|
||||||
|
|
||||||
|
<description>
|
||||||
|
product模块
|
||||||
|
</description>
|
||||||
|
|
||||||
|
<dependencies>
|
||||||
|
|
||||||
|
<!-- 通用工具-->
|
||||||
|
<dependency>
|
||||||
|
<groupId>com.ruoyi</groupId>
|
||||||
|
<artifactId>ruoyi-common</artifactId>
|
||||||
|
</dependency>
|
||||||
|
|
||||||
|
</dependencies>
|
||||||
|
</project>
|
||||||
|
|
@ -0,0 +1,53 @@
|
||||||
|
package com.ruoyi.product.domain;
|
||||||
|
|
||||||
|
import lombok.AllArgsConstructor;
|
||||||
|
import lombok.Data;
|
||||||
|
import lombok.NoArgsConstructor;
|
||||||
|
import lombok.ToString;
|
||||||
|
import org.apache.commons.lang3.builder.ToStringBuilder;
|
||||||
|
import org.apache.commons.lang3.builder.ToStringStyle;
|
||||||
|
import com.ruoyi.common.annotation.Excel;
|
||||||
|
import com.ruoyi.common.core.domain.BaseEntity;
|
||||||
|
|
||||||
|
import java.util.Date;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* product对象 cbfa_aduit_message
|
||||||
|
*
|
||||||
|
* @author ruoyi
|
||||||
|
* @date 2021-04-29
|
||||||
|
*/
|
||||||
|
@AllArgsConstructor
|
||||||
|
@NoArgsConstructor
|
||||||
|
@Data
|
||||||
|
@ToString
|
||||||
|
public class AduitMessage
|
||||||
|
{
|
||||||
|
private static final long serialVersionUID = 1L;
|
||||||
|
|
||||||
|
private Long id;
|
||||||
|
|
||||||
|
//提交预审的id
|
||||||
|
private Long applyUserId;
|
||||||
|
|
||||||
|
//用户id
|
||||||
|
private Long userId;
|
||||||
|
|
||||||
|
//成功信息
|
||||||
|
private String success;
|
||||||
|
|
||||||
|
//失败的信息
|
||||||
|
private String loser;
|
||||||
|
|
||||||
|
//是否成功 0否 1成
|
||||||
|
private String flag;
|
||||||
|
|
||||||
|
//创建的时间
|
||||||
|
private Date createTime;
|
||||||
|
|
||||||
|
//修改的时间
|
||||||
|
private Date updateTime;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
}
|
||||||
|
|
@ -0,0 +1,112 @@
|
||||||
|
package com.ruoyi.product.domain;
|
||||||
|
|
||||||
|
import lombok.AllArgsConstructor;
|
||||||
|
import lombok.Data;
|
||||||
|
import lombok.NoArgsConstructor;
|
||||||
|
import lombok.ToString;
|
||||||
|
import org.apache.commons.lang3.builder.ToStringBuilder;
|
||||||
|
import org.apache.commons.lang3.builder.ToStringStyle;
|
||||||
|
import com.ruoyi.common.annotation.Excel;
|
||||||
|
import com.ruoyi.common.core.domain.BaseEntity;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* product对象 cbfa_apply_user
|
||||||
|
*
|
||||||
|
* @author ruoyi
|
||||||
|
* @date 2021-04-29
|
||||||
|
*/
|
||||||
|
@AllArgsConstructor
|
||||||
|
@NoArgsConstructor
|
||||||
|
@Data
|
||||||
|
@ToString
|
||||||
|
public class ApplyUser extends BaseEntity
|
||||||
|
{
|
||||||
|
private static final long serialVersionUID = 1L;
|
||||||
|
|
||||||
|
private Long id;
|
||||||
|
|
||||||
|
private String name;
|
||||||
|
|
||||||
|
private String sex;
|
||||||
|
|
||||||
|
private String age;
|
||||||
|
|
||||||
|
private String enterpriseName;
|
||||||
|
|
||||||
|
private String idcrds;
|
||||||
|
|
||||||
|
private String importEnterprise;
|
||||||
|
|
||||||
|
private String establishment;
|
||||||
|
|
||||||
|
private String proportion;
|
||||||
|
|
||||||
|
private String proportionUserMax;
|
||||||
|
|
||||||
|
private String shareholding;
|
||||||
|
|
||||||
|
private String administrativePenalty;
|
||||||
|
|
||||||
|
private String significantLawsuit;
|
||||||
|
|
||||||
|
private String overdue;
|
||||||
|
|
||||||
|
private String badRecord;
|
||||||
|
|
||||||
|
private String lastYearSaleroom;
|
||||||
|
|
||||||
|
private String homochronousSaleroom;
|
||||||
|
|
||||||
|
private String makeOutAninvoice;
|
||||||
|
|
||||||
|
private String declareCount;
|
||||||
|
|
||||||
|
private String recentSaleroom;
|
||||||
|
|
||||||
|
private String makeOutAninvoiceTime;
|
||||||
|
|
||||||
|
private String ratepayingTime;
|
||||||
|
|
||||||
|
private String ratepayingLimit;
|
||||||
|
|
||||||
|
private String ratepayingRecent;
|
||||||
|
|
||||||
|
private String brackets;
|
||||||
|
|
||||||
|
private String loansOverdueCount;
|
||||||
|
|
||||||
|
private String blacklist;
|
||||||
|
|
||||||
|
private String creditCard;
|
||||||
|
|
||||||
|
private String loansExamine;
|
||||||
|
|
||||||
|
private String liabilities;
|
||||||
|
|
||||||
|
private String liabilitiesProbability;
|
||||||
|
|
||||||
|
private String companyLoanOverdue;
|
||||||
|
|
||||||
|
private String totalAmountOfBorrowing;
|
||||||
|
|
||||||
|
private String lineOfCredit;
|
||||||
|
|
||||||
|
private String yearTransaction;
|
||||||
|
|
||||||
|
private String clearanceCount;
|
||||||
|
|
||||||
|
private String halfaYearSum;
|
||||||
|
|
||||||
|
private String legalPerson;
|
||||||
|
|
||||||
|
private String legalPersonRecord;
|
||||||
|
|
||||||
|
private String promiseEnterprise;
|
||||||
|
|
||||||
|
private String atPresentOverdue;
|
||||||
|
|
||||||
|
private String yearPerson;
|
||||||
|
|
||||||
|
private String investigation;
|
||||||
|
|
||||||
|
}
|
||||||
|
|
@ -0,0 +1,41 @@
|
||||||
|
package com.ruoyi.product.domain;
|
||||||
|
|
||||||
|
import lombok.AllArgsConstructor;
|
||||||
|
import lombok.Data;
|
||||||
|
import lombok.NoArgsConstructor;
|
||||||
|
import lombok.ToString;
|
||||||
|
import com.ruoyi.common.core.domain.BaseEntity;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* product对象 cbfa_product
|
||||||
|
*
|
||||||
|
* @author ruoyi
|
||||||
|
* @date 2021-04-29
|
||||||
|
*/
|
||||||
|
@AllArgsConstructor
|
||||||
|
@NoArgsConstructor
|
||||||
|
@Data
|
||||||
|
@ToString
|
||||||
|
public class Product extends BaseEntity
|
||||||
|
{
|
||||||
|
private static final long serialVersionUID = 1L;
|
||||||
|
|
||||||
|
private Long id;
|
||||||
|
|
||||||
|
private Long procuctInformationId;
|
||||||
|
|
||||||
|
private Long procuctTagId;
|
||||||
|
|
||||||
|
private String requested;
|
||||||
|
|
||||||
|
private String requiremssage;
|
||||||
|
|
||||||
|
private String beanName;
|
||||||
|
|
||||||
|
private Long rules;
|
||||||
|
|
||||||
|
private String instructions;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
}
|
||||||
|
|
@ -0,0 +1,36 @@
|
||||||
|
package com.ruoyi.product.domain;
|
||||||
|
|
||||||
|
import lombok.AllArgsConstructor;
|
||||||
|
import lombok.Data;
|
||||||
|
import lombok.NoArgsConstructor;
|
||||||
|
import lombok.ToString;
|
||||||
|
import org.apache.commons.lang3.builder.ToStringBuilder;
|
||||||
|
import org.apache.commons.lang3.builder.ToStringStyle;
|
||||||
|
import com.ruoyi.common.annotation.Excel;
|
||||||
|
import com.ruoyi.common.core.domain.BaseEntity;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* product对象 cbfa_product_information
|
||||||
|
*
|
||||||
|
* @author ruoyi
|
||||||
|
* @date 2021-04-29
|
||||||
|
*/
|
||||||
|
@AllArgsConstructor
|
||||||
|
@NoArgsConstructor
|
||||||
|
@Data
|
||||||
|
@ToString
|
||||||
|
public class ProductInformation
|
||||||
|
{
|
||||||
|
private static final long serialVersionUID = 1L;
|
||||||
|
|
||||||
|
private Long id;
|
||||||
|
|
||||||
|
private String productName;
|
||||||
|
|
||||||
|
private String productDescribe;
|
||||||
|
|
||||||
|
private String productDescribeB;
|
||||||
|
|
||||||
|
private String productDescribeC;
|
||||||
|
|
||||||
|
}
|
||||||
|
|
@ -0,0 +1,35 @@
|
||||||
|
package com.ruoyi.product.domain;
|
||||||
|
|
||||||
|
import lombok.AllArgsConstructor;
|
||||||
|
import lombok.Data;
|
||||||
|
import lombok.NoArgsConstructor;
|
||||||
|
import lombok.ToString;
|
||||||
|
import org.apache.commons.lang3.builder.ToStringBuilder;
|
||||||
|
import org.apache.commons.lang3.builder.ToStringStyle;
|
||||||
|
import com.ruoyi.common.annotation.Excel;
|
||||||
|
import com.ruoyi.common.core.domain.BaseEntity;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* product对象 cbfa_product_tag
|
||||||
|
*
|
||||||
|
* @author ruoyi
|
||||||
|
* @date 2021-04-29
|
||||||
|
*/
|
||||||
|
@AllArgsConstructor
|
||||||
|
@NoArgsConstructor
|
||||||
|
@Data
|
||||||
|
@ToString
|
||||||
|
public class ProductTag extends BaseEntity
|
||||||
|
{
|
||||||
|
private static final long serialVersionUID = 1L;
|
||||||
|
|
||||||
|
private Long id;
|
||||||
|
|
||||||
|
private String beanName;
|
||||||
|
|
||||||
|
private Long rules;
|
||||||
|
|
||||||
|
private String instructions;
|
||||||
|
|
||||||
|
|
||||||
|
}
|
||||||
|
|
@ -0,0 +1,26 @@
|
||||||
|
package com.ruoyi.product.domain.pojo;
|
||||||
|
|
||||||
|
import lombok.AllArgsConstructor;
|
||||||
|
import lombok.Data;
|
||||||
|
import lombok.NoArgsConstructor;
|
||||||
|
import lombok.ToString;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @Auther: Wang
|
||||||
|
* @Date: 2021/04/27 20:41
|
||||||
|
* 功能描述: 记录单个产品的是否准入信息
|
||||||
|
*/
|
||||||
|
@AllArgsConstructor
|
||||||
|
@NoArgsConstructor
|
||||||
|
@Data
|
||||||
|
@ToString
|
||||||
|
public class AduitMessageVo {
|
||||||
|
|
||||||
|
private Long id;
|
||||||
|
private StringBuilder success;//成功信息
|
||||||
|
private StringBuilder loser;//失败信息
|
||||||
|
private Boolean flag;//是否完全通过
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
}
|
||||||
|
|
@ -0,0 +1,73 @@
|
||||||
|
package com.ruoyi.product.mapper;
|
||||||
|
|
||||||
|
import com.ruoyi.product.domain.AduitMessage;
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* productMapper接口
|
||||||
|
*
|
||||||
|
* @author ruoyi
|
||||||
|
* @date 2021-04-29
|
||||||
|
*/
|
||||||
|
public interface AduitMessageMapper
|
||||||
|
{
|
||||||
|
/**
|
||||||
|
* 查询product
|
||||||
|
*
|
||||||
|
* @param id productID
|
||||||
|
* @return product
|
||||||
|
*/
|
||||||
|
public AduitMessage selectAduitMessageById(Long id);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 查询product列表
|
||||||
|
*
|
||||||
|
* @param aduitMessage product
|
||||||
|
* @return product集合
|
||||||
|
*/
|
||||||
|
public List<AduitMessage> selectAduitMessageList(AduitMessage aduitMessage);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 新增product
|
||||||
|
*
|
||||||
|
* @param aduitMessage product
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
public int insertAduitMessage(AduitMessage aduitMessage);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 修改product
|
||||||
|
*
|
||||||
|
* @param aduitMessage product
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
public int updateAduitMessage(AduitMessage aduitMessage);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 删除product
|
||||||
|
*
|
||||||
|
* @param id productID
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
public int deleteAduitMessageById(Long id);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 批量删除product
|
||||||
|
*
|
||||||
|
* @param ids 需要删除的数据ID
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
public int deleteAduitMessageByIds(String[] ids);
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @Description: 批量插入
|
||||||
|
*
|
||||||
|
* @param
|
||||||
|
* @return
|
||||||
|
* @Date
|
||||||
|
* @author: wanghao
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
public void insertBatch(List<AduitMessage> aduitMessages);
|
||||||
|
}
|
||||||
|
|
@ -0,0 +1,61 @@
|
||||||
|
package com.ruoyi.product.mapper;
|
||||||
|
|
||||||
|
import com.ruoyi.product.domain.ApplyUser;
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* productMapper接口
|
||||||
|
*
|
||||||
|
* @author ruoyi
|
||||||
|
* @date 2021-04-29
|
||||||
|
*/
|
||||||
|
public interface ApplyUserMapper
|
||||||
|
{
|
||||||
|
/**
|
||||||
|
* 查询product
|
||||||
|
*
|
||||||
|
* @param id productID
|
||||||
|
* @return product
|
||||||
|
*/
|
||||||
|
public ApplyUser selectApplyUserById(Long id);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 查询product列表
|
||||||
|
*
|
||||||
|
* @param applyUser product
|
||||||
|
* @return product集合
|
||||||
|
*/
|
||||||
|
public List<ApplyUser> selectApplyUserList(ApplyUser applyUser);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 新增product
|
||||||
|
*
|
||||||
|
* @param applyUser product
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
public int insertApplyUser(ApplyUser applyUser);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 修改product
|
||||||
|
*
|
||||||
|
* @param applyUser product
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
public int updateApplyUser(ApplyUser applyUser);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 删除product
|
||||||
|
*
|
||||||
|
* @param id productID
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
public int deleteApplyUserById(Long id);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 批量删除product
|
||||||
|
*
|
||||||
|
* @param ids 需要删除的数据ID
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
public int deleteApplyUserByIds(String[] ids);
|
||||||
|
}
|
||||||
|
|
@ -0,0 +1,65 @@
|
||||||
|
package com.ruoyi.product.mapper;
|
||||||
|
|
||||||
|
import com.ruoyi.product.domain.ProductInformation;
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* productMapper接口
|
||||||
|
*
|
||||||
|
* @author ruoyi
|
||||||
|
* @date 2021-04-29
|
||||||
|
*/
|
||||||
|
public interface ProductInformationMapper
|
||||||
|
{
|
||||||
|
/**
|
||||||
|
* 查询product
|
||||||
|
*
|
||||||
|
* @param id productID
|
||||||
|
* @return product
|
||||||
|
*/
|
||||||
|
public ProductInformation selectProductInformationById(Long id);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 查询product列表
|
||||||
|
*
|
||||||
|
* @param productInformation product
|
||||||
|
* @return product集合
|
||||||
|
*/
|
||||||
|
public List<ProductInformation> selectProductInformationList(ProductInformation productInformation);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 新增product
|
||||||
|
*
|
||||||
|
* @param productInformation product
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
public int insertProductInformation(ProductInformation productInformation);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 修改product
|
||||||
|
*
|
||||||
|
* @param productInformation product
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
public int updateProductInformation(ProductInformation productInformation);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 删除product
|
||||||
|
*
|
||||||
|
* @param id productID
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
public int deleteProductInformationById(Long id);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 批量删除product
|
||||||
|
*
|
||||||
|
* @param ids 需要删除的数据ID
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
public int deleteProductInformationByIds(String[] ids);
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
}
|
||||||
|
|
@ -0,0 +1,74 @@
|
||||||
|
package com.ruoyi.product.mapper;
|
||||||
|
|
||||||
|
import com.ruoyi.product.domain.Product;
|
||||||
|
import com.ruoyi.product.domain.ProductInformation;
|
||||||
|
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* productMapper接口
|
||||||
|
*
|
||||||
|
* @author ruoyi
|
||||||
|
* @date 2021-04-29
|
||||||
|
*/
|
||||||
|
public interface ProductMapper
|
||||||
|
{
|
||||||
|
/**
|
||||||
|
* 查询product
|
||||||
|
*
|
||||||
|
* @param id productID
|
||||||
|
* @return product
|
||||||
|
*/
|
||||||
|
public Product selectProductById(Long id);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 查询product列表
|
||||||
|
*
|
||||||
|
* @param product product
|
||||||
|
* @return product集合
|
||||||
|
*/
|
||||||
|
public List<Product> selectProductList(Product product);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 新增product
|
||||||
|
*
|
||||||
|
* @param product product
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
public int insertProduct(Product product);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 修改product
|
||||||
|
*
|
||||||
|
* @param product product
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
public int updateProduct(Product product);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 删除product
|
||||||
|
*
|
||||||
|
* @param id productID
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
public int deleteProductById(Long id);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 批量删除product
|
||||||
|
*
|
||||||
|
* @param ids 需要删除的数据ID
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
public int deleteProductByIds(String[] ids);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @Description: 获取产品的信息
|
||||||
|
*
|
||||||
|
* @param
|
||||||
|
* @return
|
||||||
|
* @Date
|
||||||
|
* @author: wanghao
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
public List<Product> selectProduct();
|
||||||
|
}
|
||||||
|
|
@ -0,0 +1,61 @@
|
||||||
|
package com.ruoyi.product.mapper;
|
||||||
|
|
||||||
|
import com.ruoyi.product.domain.ProductTag;
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* productMapper接口
|
||||||
|
*
|
||||||
|
* @author ruoyi
|
||||||
|
* @date 2021-04-29
|
||||||
|
*/
|
||||||
|
public interface ProductTagMapper
|
||||||
|
{
|
||||||
|
/**
|
||||||
|
* 查询product
|
||||||
|
*
|
||||||
|
* @param id productID
|
||||||
|
* @return product
|
||||||
|
*/
|
||||||
|
public ProductTag selectProductTagById(Long id);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 查询product列表
|
||||||
|
*
|
||||||
|
* @param productTag product
|
||||||
|
* @return product集合
|
||||||
|
*/
|
||||||
|
public List<ProductTag> selectProductTagList(ProductTag productTag);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 新增product
|
||||||
|
*
|
||||||
|
* @param productTag product
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
public int insertProductTag(ProductTag productTag);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 修改product
|
||||||
|
*
|
||||||
|
* @param productTag product
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
public int updateProductTag(ProductTag productTag);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 删除product
|
||||||
|
*
|
||||||
|
* @param id productID
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
public int deleteProductTagById(Long id);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 批量删除product
|
||||||
|
*
|
||||||
|
* @param ids 需要删除的数据ID
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
public int deleteProductTagByIds(String[] ids);
|
||||||
|
}
|
||||||
|
|
@ -0,0 +1,61 @@
|
||||||
|
package com.ruoyi.product.service;
|
||||||
|
|
||||||
|
import com.ruoyi.product.domain.AduitMessage;
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* productService接口
|
||||||
|
*
|
||||||
|
* @author ruoyi
|
||||||
|
* @date 2021-04-29
|
||||||
|
*/
|
||||||
|
public interface IAduitMessageService
|
||||||
|
{
|
||||||
|
/**
|
||||||
|
* 查询product
|
||||||
|
*
|
||||||
|
* @param id productID
|
||||||
|
* @return product
|
||||||
|
*/
|
||||||
|
public AduitMessage selectAduitMessageById(Long id);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 查询product列表
|
||||||
|
*
|
||||||
|
* @param aduitMessage product
|
||||||
|
* @return product集合
|
||||||
|
*/
|
||||||
|
public List<AduitMessage> selectAduitMessageList(AduitMessage aduitMessage);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 新增product
|
||||||
|
*
|
||||||
|
* @param aduitMessage product
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
public int insertAduitMessage(AduitMessage aduitMessage);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 修改product
|
||||||
|
*
|
||||||
|
* @param aduitMessage product
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
public int updateAduitMessage(AduitMessage aduitMessage);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 批量删除product
|
||||||
|
*
|
||||||
|
* @param ids 需要删除的数据ID
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
public int deleteAduitMessageByIds(String ids);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 删除product信息
|
||||||
|
*
|
||||||
|
* @param id productID
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
public int deleteAduitMessageById(Long id);
|
||||||
|
}
|
||||||
|
|
@ -0,0 +1,80 @@
|
||||||
|
package com.ruoyi.product.service;
|
||||||
|
|
||||||
|
import com.ruoyi.product.domain.AduitMessage;
|
||||||
|
import com.ruoyi.product.domain.ApplyUser;
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* productService接口
|
||||||
|
*
|
||||||
|
* @author ruoyi
|
||||||
|
* @date 2021-04-29
|
||||||
|
*/
|
||||||
|
public interface IApplyUserService
|
||||||
|
{
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 查询product
|
||||||
|
*
|
||||||
|
* @param id productID
|
||||||
|
* @return product
|
||||||
|
*/
|
||||||
|
public ApplyUser selectApplyUserById(Long id);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 查询product列表
|
||||||
|
*
|
||||||
|
* @param applyUser product
|
||||||
|
* @return product集合
|
||||||
|
*/
|
||||||
|
public List<ApplyUser> selectApplyUserList(ApplyUser applyUser);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 新增product
|
||||||
|
*
|
||||||
|
* @param applyUser product
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
public int insertApplyUser(ApplyUser applyUser);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 修改product
|
||||||
|
*
|
||||||
|
* @param applyUser product
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
public int updateApplyUser(ApplyUser applyUser);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 批量删除product
|
||||||
|
*
|
||||||
|
* @param ids 需要删除的数据ID
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
public int deleteApplyUserByIds(String ids);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 删除product信息
|
||||||
|
*
|
||||||
|
* @param id productID
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
public int deleteApplyUserById(Long id);
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @Description:添加预审
|
||||||
|
*
|
||||||
|
* @param
|
||||||
|
* @return
|
||||||
|
* @Date
|
||||||
|
* @author: wanghao
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
public List<AduitMessage> addProductSave(ApplyUser applyUser);
|
||||||
|
|
||||||
|
|
||||||
|
}
|
||||||
|
|
@ -0,0 +1,61 @@
|
||||||
|
package com.ruoyi.product.service;
|
||||||
|
|
||||||
|
import com.ruoyi.product.domain.ProductInformation;
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* productService接口
|
||||||
|
*
|
||||||
|
* @author ruoyi
|
||||||
|
* @date 2021-04-29
|
||||||
|
*/
|
||||||
|
public interface IProductInformationService
|
||||||
|
{
|
||||||
|
/**
|
||||||
|
* 查询product
|
||||||
|
*
|
||||||
|
* @param id productID
|
||||||
|
* @return product
|
||||||
|
*/
|
||||||
|
public ProductInformation selectProductInformationById(Long id);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 查询product列表
|
||||||
|
*
|
||||||
|
* @param productInformation product
|
||||||
|
* @return product集合
|
||||||
|
*/
|
||||||
|
public List<ProductInformation> selectProductInformationList(ProductInformation productInformation);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 新增product
|
||||||
|
*
|
||||||
|
* @param productInformation product
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
public int insertProductInformation(ProductInformation productInformation);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 修改product
|
||||||
|
*
|
||||||
|
* @param productInformation product
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
public int updateProductInformation(ProductInformation productInformation);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 批量删除product
|
||||||
|
*
|
||||||
|
* @param ids 需要删除的数据ID
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
public int deleteProductInformationByIds(String ids);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 删除product信息
|
||||||
|
*
|
||||||
|
* @param id productID
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
public int deleteProductInformationById(Long id);
|
||||||
|
}
|
||||||
|
|
@ -0,0 +1,61 @@
|
||||||
|
package com.ruoyi.product.service;
|
||||||
|
|
||||||
|
import com.ruoyi.product.domain.Product;
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* productService接口
|
||||||
|
*
|
||||||
|
* @author ruoyi
|
||||||
|
* @date 2021-04-29
|
||||||
|
*/
|
||||||
|
public interface IProductService
|
||||||
|
{
|
||||||
|
/**
|
||||||
|
* 查询product
|
||||||
|
*
|
||||||
|
* @param id productID
|
||||||
|
* @return product
|
||||||
|
*/
|
||||||
|
public Product selectProductById(Long id);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 查询product列表
|
||||||
|
*
|
||||||
|
* @param product product
|
||||||
|
* @return product集合
|
||||||
|
*/
|
||||||
|
public List<Product> selectProductList(Product product);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 新增product
|
||||||
|
*
|
||||||
|
* @param product product
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
public int insertProduct(Product product);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 修改product
|
||||||
|
*
|
||||||
|
* @param product product
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
public int updateProduct(Product product);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 批量删除product
|
||||||
|
*
|
||||||
|
* @param ids 需要删除的数据ID
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
public int deleteProductByIds(String ids);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 删除product信息
|
||||||
|
*
|
||||||
|
* @param id productID
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
public int deleteProductById(Long id);
|
||||||
|
}
|
||||||
|
|
@ -0,0 +1,61 @@
|
||||||
|
package com.ruoyi.product.service;
|
||||||
|
|
||||||
|
import com.ruoyi.product.domain.ProductTag;
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* productService接口
|
||||||
|
*
|
||||||
|
* @author ruoyi
|
||||||
|
* @date 2021-04-29
|
||||||
|
*/
|
||||||
|
public interface IProductTagService
|
||||||
|
{
|
||||||
|
/**
|
||||||
|
* 查询product
|
||||||
|
*
|
||||||
|
* @param id productID
|
||||||
|
* @return product
|
||||||
|
*/
|
||||||
|
public ProductTag selectProductTagById(Long id);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 查询product列表
|
||||||
|
*
|
||||||
|
* @param productTag product
|
||||||
|
* @return product集合
|
||||||
|
*/
|
||||||
|
public List<ProductTag> selectProductTagList(ProductTag productTag);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 新增product
|
||||||
|
*
|
||||||
|
* @param productTag product
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
public int insertProductTag(ProductTag productTag);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 修改product
|
||||||
|
*
|
||||||
|
* @param productTag product
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
public int updateProductTag(ProductTag productTag);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 批量删除product
|
||||||
|
*
|
||||||
|
* @param ids 需要删除的数据ID
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
public int deleteProductTagByIds(String ids);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 删除product信息
|
||||||
|
*
|
||||||
|
* @param id productID
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
public int deleteProductTagById(Long id);
|
||||||
|
}
|
||||||
|
|
@ -0,0 +1,94 @@
|
||||||
|
package com.ruoyi.product.service.impl;
|
||||||
|
|
||||||
|
import java.util.List;
|
||||||
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
|
import org.springframework.stereotype.Service;
|
||||||
|
import com.ruoyi.product.mapper.AduitMessageMapper;
|
||||||
|
import com.ruoyi.product.domain.AduitMessage;
|
||||||
|
import com.ruoyi.product.service.IAduitMessageService;
|
||||||
|
import com.ruoyi.common.core.text.Convert;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* productService业务层处理
|
||||||
|
*
|
||||||
|
* @author ruoyi
|
||||||
|
* @date 2021-04-29
|
||||||
|
*/
|
||||||
|
@Service
|
||||||
|
public class AduitMessageServiceImpl implements IAduitMessageService
|
||||||
|
{
|
||||||
|
@Autowired
|
||||||
|
private AduitMessageMapper aduitMessageMapper;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 查询product
|
||||||
|
*
|
||||||
|
* @param id productID
|
||||||
|
* @return product
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public AduitMessage selectAduitMessageById(Long id)
|
||||||
|
{
|
||||||
|
return aduitMessageMapper.selectAduitMessageById(id);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 查询product列表
|
||||||
|
*
|
||||||
|
* @param aduitMessage product
|
||||||
|
* @return product
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public List<AduitMessage> selectAduitMessageList(AduitMessage aduitMessage)
|
||||||
|
{
|
||||||
|
return aduitMessageMapper.selectAduitMessageList(aduitMessage);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 新增product
|
||||||
|
*
|
||||||
|
* @param aduitMessage product
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public int insertAduitMessage(AduitMessage aduitMessage)
|
||||||
|
{
|
||||||
|
return aduitMessageMapper.insertAduitMessage(aduitMessage);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 修改product
|
||||||
|
*
|
||||||
|
* @param aduitMessage product
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public int updateAduitMessage(AduitMessage aduitMessage)
|
||||||
|
{
|
||||||
|
return aduitMessageMapper.updateAduitMessage(aduitMessage);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 删除product对象
|
||||||
|
*
|
||||||
|
* @param ids 需要删除的数据ID
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public int deleteAduitMessageByIds(String ids)
|
||||||
|
{
|
||||||
|
return aduitMessageMapper.deleteAduitMessageByIds(Convert.toStrArray(ids));
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 删除product信息
|
||||||
|
*
|
||||||
|
* @param id productID
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public int deleteAduitMessageById(Long id)
|
||||||
|
{
|
||||||
|
return aduitMessageMapper.deleteAduitMessageById(id);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
@ -0,0 +1,306 @@
|
||||||
|
package com.ruoyi.product.service.impl;
|
||||||
|
|
||||||
|
import java.lang.reflect.Field;
|
||||||
|
import java.util.*;
|
||||||
|
import java.util.stream.Collectors;
|
||||||
|
|
||||||
|
import cn.hutool.core.date.DateUtil;
|
||||||
|
import com.ruoyi.product.domain.AduitMessage;
|
||||||
|
import com.ruoyi.product.domain.Product;
|
||||||
|
import com.ruoyi.product.domain.ProductInformation;
|
||||||
|
import com.ruoyi.product.domain.pojo.AduitMessageVo;
|
||||||
|
import com.ruoyi.product.mapper.AduitMessageMapper;
|
||||||
|
import com.ruoyi.product.mapper.ProductInformationMapper;
|
||||||
|
import com.ruoyi.product.mapper.ProductMapper;
|
||||||
|
|
||||||
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
|
import org.springframework.stereotype.Service;
|
||||||
|
import com.ruoyi.product.mapper.ApplyUserMapper;
|
||||||
|
import com.ruoyi.product.domain.ApplyUser;
|
||||||
|
import com.ruoyi.product.service.IApplyUserService;
|
||||||
|
import com.ruoyi.common.core.text.Convert;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* productService业务层处理
|
||||||
|
*
|
||||||
|
* @author ruoyi
|
||||||
|
* @date 2021-04-29
|
||||||
|
*/
|
||||||
|
@Service
|
||||||
|
public class ApplyUserServiceImpl implements IApplyUserService
|
||||||
|
{
|
||||||
|
@Autowired
|
||||||
|
private ApplyUserMapper applyUserMapper;
|
||||||
|
|
||||||
|
|
||||||
|
@Autowired
|
||||||
|
private ProductInformationMapper productInformationMapper;
|
||||||
|
|
||||||
|
|
||||||
|
@Autowired
|
||||||
|
private ProductMapper productMapper;
|
||||||
|
|
||||||
|
@Autowired
|
||||||
|
private AduitMessageMapper aduitMessageMapper;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @Description: 添加预审记录 并且匹配
|
||||||
|
*
|
||||||
|
* @param applyUser
|
||||||
|
* @return
|
||||||
|
* @Date
|
||||||
|
* @author: wanghao
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 查询product
|
||||||
|
*
|
||||||
|
* @param id productID
|
||||||
|
* @return product
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public ApplyUser selectApplyUserById(Long id)
|
||||||
|
{
|
||||||
|
return applyUserMapper.selectApplyUserById(id);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 查询product列表
|
||||||
|
*
|
||||||
|
* @param applyUser product
|
||||||
|
* @return product
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public List<ApplyUser> selectApplyUserList(ApplyUser applyUser)
|
||||||
|
{
|
||||||
|
return applyUserMapper.selectApplyUserList(applyUser);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 新增product
|
||||||
|
*
|
||||||
|
* @param applyUser product
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public int insertApplyUser(ApplyUser applyUser)
|
||||||
|
{
|
||||||
|
return applyUserMapper.insertApplyUser(applyUser);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 修改product
|
||||||
|
*
|
||||||
|
* @param applyUser product
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public int updateApplyUser(ApplyUser applyUser)
|
||||||
|
{
|
||||||
|
return applyUserMapper.updateApplyUser(applyUser);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 删除product对象
|
||||||
|
*
|
||||||
|
* @param ids 需要删除的数据ID
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public int deleteApplyUserByIds(String ids)
|
||||||
|
{
|
||||||
|
return applyUserMapper.deleteApplyUserByIds(Convert.toStrArray(ids));
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 删除product信息
|
||||||
|
*
|
||||||
|
* @param id productID
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public int deleteApplyUserById(Long id)
|
||||||
|
{
|
||||||
|
return applyUserMapper.deleteApplyUserById(id);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @Description: 添加预审
|
||||||
|
*
|
||||||
|
* @param
|
||||||
|
* @return
|
||||||
|
* @Date
|
||||||
|
* @author: wanghao
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public List<AduitMessage> addProductSave(ApplyUser applyUser) {
|
||||||
|
|
||||||
|
//// //对象
|
||||||
|
applyUser.setName("王某");
|
||||||
|
applyUser.setSex("男");
|
||||||
|
applyUser.setAge("1998-02-19");
|
||||||
|
applyUser.setEnterpriseName("税融通");
|
||||||
|
applyUser.setIdcrds("0");
|
||||||
|
applyUser.setImportEnterprise("1");
|
||||||
|
applyUser.setEnterpriseName("2019");
|
||||||
|
applyUser.setYearTransaction("100");//w
|
||||||
|
applyUser.setClearanceCount("2");
|
||||||
|
applyUser.setLegalPerson("0");
|
||||||
|
applyUser.setLegalPersonRecord("0");
|
||||||
|
applyUser.setPromiseEnterprise("0");
|
||||||
|
applyUser.setEstablishment("1");
|
||||||
|
applyUser.setProportion("5");
|
||||||
|
applyUser.setShareholding("10");
|
||||||
|
applyUser.setAdministrativePenalty("5");
|
||||||
|
applyUser.setSignificantLawsuit("1");
|
||||||
|
applyUser.setBadRecord("0");
|
||||||
|
applyUser.setOverdue("0");
|
||||||
|
|
||||||
|
applyUserMapper.insertApplyUser(applyUser);
|
||||||
|
|
||||||
|
//获取所有的产品
|
||||||
|
List<ProductInformation> productInformations = productInformationMapper.selectProductInformationList(null);
|
||||||
|
Map<Long, List<ProductInformation>> map = productInformations.stream().collect(Collectors.groupingBy(ProductInformation::getId));
|
||||||
|
|
||||||
|
//获取所有产品的对应的所有规则
|
||||||
|
List<Product> productsList = productMapper.selectProduct();
|
||||||
|
Map<Long, List<Product>> productsMap = productsList.stream().collect(Collectors.groupingBy(Product::getProcuctInformationId));
|
||||||
|
|
||||||
|
|
||||||
|
StringBuilder succeed = null;
|
||||||
|
StringBuilder loser = null;
|
||||||
|
|
||||||
|
AduitMessageVo aduitMessage = null;
|
||||||
|
//结果数据
|
||||||
|
List<AduitMessage> aduitMessagesList = new ArrayList<AduitMessage>();
|
||||||
|
AduitMessage aduitMege = null;
|
||||||
|
|
||||||
|
//获取所有的产品
|
||||||
|
for (Map.Entry<Long, List<ProductInformation>> entry : map.entrySet()) {
|
||||||
|
|
||||||
|
//获取所有产品的对应的所有规则
|
||||||
|
List<Product> productslist = productsMap.get(entry.getKey());
|
||||||
|
if (productslist != null && !productslist.isEmpty()) {
|
||||||
|
|
||||||
|
aduitMessage = new AduitMessageVo();
|
||||||
|
succeed = new StringBuilder();
|
||||||
|
loser = new StringBuilder();
|
||||||
|
|
||||||
|
for (Product product : productslist) {
|
||||||
|
|
||||||
|
aduitMessage.setSuccess(succeed);
|
||||||
|
aduitMessage.setLoser(loser);
|
||||||
|
|
||||||
|
String ite = (String) getFieldValueByFieldName(product.getBeanName(), applyUser);
|
||||||
|
|
||||||
|
if (ite.equals("是")){
|
||||||
|
ite = "1";
|
||||||
|
}else if (ite.equals("否")){
|
||||||
|
ite = "0";
|
||||||
|
}
|
||||||
|
|
||||||
|
if (product.getRules().intValue() == 1) {
|
||||||
|
String[] age = product.getRequested().split(",");
|
||||||
|
int ageFirst = Integer.parseInt(age[0]);
|
||||||
|
int ageEnding = Integer.parseInt(age[1]);
|
||||||
|
int item = Integer.parseInt(ite);//计算传入的值
|
||||||
|
if (item >= ageFirst && item <= ageEnding) {
|
||||||
|
aduitMessage.setSuccess(aduitMessage.getSuccess().append(product.getRequiremssage()).append(";"));
|
||||||
|
} else {
|
||||||
|
aduitMessage.setFlag(false);
|
||||||
|
aduitMessage.setLoser(aduitMessage.getLoser().append(product.getRequiremssage()).append(";"));
|
||||||
|
}
|
||||||
|
} else if (product.getRules().intValue() == 2) {
|
||||||
|
String[] age = product.getRequested().split(",");
|
||||||
|
int ageFirst = Integer.parseInt(age[0]);
|
||||||
|
int ageEnding = Integer.parseInt(age[1]);
|
||||||
|
int myAge = 0;
|
||||||
|
try {
|
||||||
|
myAge = getAge(DateUtil.parse(ite));
|
||||||
|
} catch (Exception e) {
|
||||||
|
e.printStackTrace();
|
||||||
|
}
|
||||||
|
if (myAge >= ageFirst && myAge <= ageEnding) {
|
||||||
|
aduitMessage.setSuccess(aduitMessage.getSuccess().append(product.getRequiremssage()).append(";"));
|
||||||
|
} else {
|
||||||
|
aduitMessage.setFlag(false);
|
||||||
|
aduitMessage.setLoser(aduitMessage.getLoser().append(product.getRequiremssage()).append(";"));
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
//是否准入
|
||||||
|
aduitMege = new AduitMessage();
|
||||||
|
aduitMege.setApplyUserId(applyUser.getId()); //提交的信息ID
|
||||||
|
aduitMege.setSuccess(aduitMessage.getSuccess().toString());
|
||||||
|
aduitMege.setLoser(aduitMessage.getLoser().toString());
|
||||||
|
aduitMege.setFlag(aduitMessage.getFlag() ? "1" : "0");
|
||||||
|
aduitMessagesList.add(aduitMege);
|
||||||
|
} else {
|
||||||
|
//这个产品没有设置准入要求
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
aduitMessageMapper.insertBatch(aduitMessagesList);
|
||||||
|
|
||||||
|
return aduitMessagesList;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
//工具
|
||||||
|
public static int getAge(Date birthDay) throws Exception {
|
||||||
|
Calendar cal = Calendar.getInstance();
|
||||||
|
if (cal.before(birthDay)) { //出生日期晚于当前时间,无法计算
|
||||||
|
throw new IllegalArgumentException("The birthDay is before Now.It's unbelievable!");
|
||||||
|
}
|
||||||
|
int yearNow = cal.get(Calendar.YEAR); //当前年份
|
||||||
|
int monthNow = cal.get(Calendar.MONTH); //当前月份
|
||||||
|
int dayOfMonthNow = cal.get(Calendar.DAY_OF_MONTH); //当前日期
|
||||||
|
cal.setTime(birthDay);
|
||||||
|
int yearBirth = cal.get(Calendar.YEAR);
|
||||||
|
int monthBirth = cal.get(Calendar.MONTH);
|
||||||
|
int dayOfMonthBirth = cal.get(Calendar.DAY_OF_MONTH);
|
||||||
|
int age = yearNow - yearBirth; //计算整岁数
|
||||||
|
if (monthNow <= monthBirth) {
|
||||||
|
if (monthNow == monthBirth) {
|
||||||
|
//当前日期在生日之前,年龄减一
|
||||||
|
if (dayOfMonthNow < dayOfMonthBirth) {
|
||||||
|
age--;
|
||||||
|
};
|
||||||
|
} else {
|
||||||
|
age--;//当前月份在生日之前,年龄减一
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return age;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @Description: 反射获取实体类的对于的属性值
|
||||||
|
*
|
||||||
|
* @param fieldName 属性值
|
||||||
|
* @param object 对应的实体类
|
||||||
|
* @return
|
||||||
|
* @Date
|
||||||
|
* @author: wanghao
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
public static Object getFieldValueByFieldName(String fieldName,Object object) {
|
||||||
|
try {
|
||||||
|
Field field = object.getClass().getDeclaredField(fieldName);
|
||||||
|
//对private的属性的访问
|
||||||
|
field.setAccessible(true);
|
||||||
|
return field.get(object);
|
||||||
|
} catch (Exception e) {
|
||||||
|
e.printStackTrace();
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
@ -0,0 +1,94 @@
|
||||||
|
package com.ruoyi.product.service.impl;
|
||||||
|
|
||||||
|
import java.util.List;
|
||||||
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
|
import org.springframework.stereotype.Service;
|
||||||
|
import com.ruoyi.product.mapper.ProductInformationMapper;
|
||||||
|
import com.ruoyi.product.domain.ProductInformation;
|
||||||
|
import com.ruoyi.product.service.IProductInformationService;
|
||||||
|
import com.ruoyi.common.core.text.Convert;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* productService业务层处理
|
||||||
|
*
|
||||||
|
* @author ruoyi
|
||||||
|
* @date 2021-04-29
|
||||||
|
*/
|
||||||
|
@Service
|
||||||
|
public class ProductInformationServiceImpl implements IProductInformationService
|
||||||
|
{
|
||||||
|
@Autowired
|
||||||
|
private ProductInformationMapper productInformationMapper;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 查询product
|
||||||
|
*
|
||||||
|
* @param id productID
|
||||||
|
* @return product
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public ProductInformation selectProductInformationById(Long id)
|
||||||
|
{
|
||||||
|
return productInformationMapper.selectProductInformationById(id);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 查询product列表
|
||||||
|
*
|
||||||
|
* @param productInformation product
|
||||||
|
* @return product
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public List<ProductInformation> selectProductInformationList(ProductInformation productInformation)
|
||||||
|
{
|
||||||
|
return productInformationMapper.selectProductInformationList(productInformation);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 新增product
|
||||||
|
*
|
||||||
|
* @param productInformation product
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public int insertProductInformation(ProductInformation productInformation)
|
||||||
|
{
|
||||||
|
return productInformationMapper.insertProductInformation(productInformation);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 修改product
|
||||||
|
*
|
||||||
|
* @param productInformation product
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public int updateProductInformation(ProductInformation productInformation)
|
||||||
|
{
|
||||||
|
return productInformationMapper.updateProductInformation(productInformation);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 删除product对象
|
||||||
|
*
|
||||||
|
* @param ids 需要删除的数据ID
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public int deleteProductInformationByIds(String ids)
|
||||||
|
{
|
||||||
|
return productInformationMapper.deleteProductInformationByIds(Convert.toStrArray(ids));
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 删除product信息
|
||||||
|
*
|
||||||
|
* @param id productID
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public int deleteProductInformationById(Long id)
|
||||||
|
{
|
||||||
|
return productInformationMapper.deleteProductInformationById(id);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
@ -0,0 +1,94 @@
|
||||||
|
package com.ruoyi.product.service.impl;
|
||||||
|
|
||||||
|
import java.util.List;
|
||||||
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
|
import org.springframework.stereotype.Service;
|
||||||
|
import com.ruoyi.product.mapper.ProductMapper;
|
||||||
|
import com.ruoyi.product.domain.Product;
|
||||||
|
import com.ruoyi.product.service.IProductService;
|
||||||
|
import com.ruoyi.common.core.text.Convert;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* productService业务层处理
|
||||||
|
*
|
||||||
|
* @author ruoyi
|
||||||
|
* @date 2021-04-29
|
||||||
|
*/
|
||||||
|
@Service
|
||||||
|
public class ProductServiceImpl implements IProductService
|
||||||
|
{
|
||||||
|
@Autowired
|
||||||
|
private ProductMapper productMapper;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 查询product
|
||||||
|
*
|
||||||
|
* @param id productID
|
||||||
|
* @return product
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public Product selectProductById(Long id)
|
||||||
|
{
|
||||||
|
return productMapper.selectProductById(id);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 查询product列表
|
||||||
|
*
|
||||||
|
* @param product product
|
||||||
|
* @return product
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public List<Product> selectProductList(Product product)
|
||||||
|
{
|
||||||
|
return productMapper.selectProductList(product);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 新增product
|
||||||
|
*
|
||||||
|
* @param product product
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public int insertProduct(Product product)
|
||||||
|
{
|
||||||
|
return productMapper.insertProduct(product);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 修改product
|
||||||
|
*
|
||||||
|
* @param product product
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public int updateProduct(Product product)
|
||||||
|
{
|
||||||
|
return productMapper.updateProduct(product);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 删除product对象
|
||||||
|
*
|
||||||
|
* @param ids 需要删除的数据ID
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public int deleteProductByIds(String ids)
|
||||||
|
{
|
||||||
|
return productMapper.deleteProductByIds(Convert.toStrArray(ids));
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 删除product信息
|
||||||
|
*
|
||||||
|
* @param id productID
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public int deleteProductById(Long id)
|
||||||
|
{
|
||||||
|
return productMapper.deleteProductById(id);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
@ -0,0 +1,94 @@
|
||||||
|
package com.ruoyi.product.service.impl;
|
||||||
|
|
||||||
|
import java.util.List;
|
||||||
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
|
import org.springframework.stereotype.Service;
|
||||||
|
import com.ruoyi.product.mapper.ProductTagMapper;
|
||||||
|
import com.ruoyi.product.domain.ProductTag;
|
||||||
|
import com.ruoyi.product.service.IProductTagService;
|
||||||
|
import com.ruoyi.common.core.text.Convert;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* productService业务层处理
|
||||||
|
*
|
||||||
|
* @author ruoyi
|
||||||
|
* @date 2021-04-29
|
||||||
|
*/
|
||||||
|
@Service
|
||||||
|
public class ProductTagServiceImpl implements IProductTagService
|
||||||
|
{
|
||||||
|
@Autowired
|
||||||
|
private ProductTagMapper productTagMapper;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 查询product
|
||||||
|
*
|
||||||
|
* @param id productID
|
||||||
|
* @return product
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public ProductTag selectProductTagById(Long id)
|
||||||
|
{
|
||||||
|
return productTagMapper.selectProductTagById(id);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 查询product列表
|
||||||
|
*
|
||||||
|
* @param productTag product
|
||||||
|
* @return product
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public List<ProductTag> selectProductTagList(ProductTag productTag)
|
||||||
|
{
|
||||||
|
return productTagMapper.selectProductTagList(productTag);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 新增product
|
||||||
|
*
|
||||||
|
* @param productTag product
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public int insertProductTag(ProductTag productTag)
|
||||||
|
{
|
||||||
|
return productTagMapper.insertProductTag(productTag);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 修改product
|
||||||
|
*
|
||||||
|
* @param productTag product
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public int updateProductTag(ProductTag productTag)
|
||||||
|
{
|
||||||
|
return productTagMapper.updateProductTag(productTag);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 删除product对象
|
||||||
|
*
|
||||||
|
* @param ids 需要删除的数据ID
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public int deleteProductTagByIds(String ids)
|
||||||
|
{
|
||||||
|
return productTagMapper.deleteProductTagByIds(Convert.toStrArray(ids));
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 删除product信息
|
||||||
|
*
|
||||||
|
* @param id productID
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public int deleteProductTagById(Long id)
|
||||||
|
{
|
||||||
|
return productTagMapper.deleteProductTagById(id);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
@ -0,0 +1,98 @@
|
||||||
|
<?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.product.mapper.AduitMessageMapper">
|
||||||
|
|
||||||
|
<resultMap type="AduitMessage" id="AduitMessageResult">
|
||||||
|
<result property="id" column="id" />
|
||||||
|
<result property="applyUserId" column="apply_user_id" />
|
||||||
|
<result property="success" column="success" />
|
||||||
|
<result property="loser" column="loser" />
|
||||||
|
<result property="flag" column="flag" />
|
||||||
|
<result property="userId" column="user_id" />
|
||||||
|
<result property="createTime" column="create_time" />
|
||||||
|
<result property="updateTime" column="update_time" />
|
||||||
|
</resultMap>
|
||||||
|
|
||||||
|
<insert id="insertBatch">
|
||||||
|
INSERT INTO cbfa_aduit_message
|
||||||
|
( apply_user_id, success,loser,flag)
|
||||||
|
VALUES
|
||||||
|
<foreach collection ="list" item="item" separator =",">
|
||||||
|
(#{item.applyUserId}, #{item.success}, #{item.loser}, #{item.flag})
|
||||||
|
</foreach >
|
||||||
|
</insert>
|
||||||
|
|
||||||
|
<sql id="selectAduitMessageVo">
|
||||||
|
select id, apply_user_id, success, loser, flag, create_time, user_id, update_time from cbfa_aduit_message
|
||||||
|
</sql>
|
||||||
|
|
||||||
|
<select id="selectAduitMessageList" parameterType="AduitMessage" resultMap="AduitMessageResult">
|
||||||
|
<include refid="selectAduitMessageVo"/>
|
||||||
|
<where>
|
||||||
|
<if test="applyUserId != null "> and apply_user_id = #{applyUserId}</if>
|
||||||
|
<if test="success != null and success != ''"> and success = #{success}</if>
|
||||||
|
<if test="loser != null and loser != ''"> and loser = #{loser}</if>
|
||||||
|
<if test="flag != null and flag != ''"> and flag = #{flag}</if>
|
||||||
|
<if test="createTime != null "> and create_time = #{createTime}</if>
|
||||||
|
<if test="userId != null "> and user_id = #{userId}</if>
|
||||||
|
<if test="updateTime != null "> and update_time = #{updateTime}</if>
|
||||||
|
</where>
|
||||||
|
</select>
|
||||||
|
|
||||||
|
<select id="selectAduitMessageById" parameterType="Long" resultMap="AduitMessageResult">
|
||||||
|
<include refid="selectAduitMessageVo"/>
|
||||||
|
where id = #{id}
|
||||||
|
</select>
|
||||||
|
|
||||||
|
<insert id="insertAduitMessage" parameterType="AduitMessage">
|
||||||
|
insert into cbfa_aduit_message
|
||||||
|
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||||
|
<if test="id != null ">id,</if>
|
||||||
|
<if test="applyUserId != null ">apply_user_id,</if>
|
||||||
|
<if test="success != null and success != ''">success,</if>
|
||||||
|
<if test="loser != null and loser != ''">loser,</if>
|
||||||
|
<if test="flag != null and flag != ''">flag,</if>
|
||||||
|
<if test="createTime != null ">create_time,</if>
|
||||||
|
<if test="userId != null ">user_id,</if>
|
||||||
|
<if test="updateTime != null ">update_time,</if>
|
||||||
|
</trim>
|
||||||
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
||||||
|
<if test="id != null ">#{id},</if>
|
||||||
|
<if test="applyUserId != null ">#{applyUserId},</if>
|
||||||
|
<if test="success != null and success != ''">#{success},</if>
|
||||||
|
<if test="loser != null and loser != ''">#{loser},</if>
|
||||||
|
<if test="flag != null and flag != ''">#{flag},</if>
|
||||||
|
<if test="createTime != null ">#{createTime},</if>
|
||||||
|
<if test="userId != null ">#{userId},</if>
|
||||||
|
<if test="updateTime != null ">#{updateTime},</if>
|
||||||
|
</trim>
|
||||||
|
</insert>
|
||||||
|
|
||||||
|
<update id="updateAduitMessage" parameterType="AduitMessage">
|
||||||
|
update cbfa_aduit_message
|
||||||
|
<trim prefix="SET" suffixOverrides=",">
|
||||||
|
<if test="applyUserId != null ">apply_user_id = #{applyUserId},</if>
|
||||||
|
<if test="success != null and success != ''">success = #{success},</if>
|
||||||
|
<if test="loser != null and loser != ''">loser = #{loser},</if>
|
||||||
|
<if test="flag != null and flag != ''">flag = #{flag},</if>
|
||||||
|
<if test="createTime != null ">createTime = #{createTime},</if>
|
||||||
|
<if test="userId != null ">userId = #{userId},</if>
|
||||||
|
<if test="updateTime != null ">updateTime = #{updateTime},</if>
|
||||||
|
</trim>
|
||||||
|
where id = #{id}
|
||||||
|
</update>
|
||||||
|
|
||||||
|
<delete id="deleteAduitMessageById" parameterType="Long">
|
||||||
|
delete from cbfa_aduit_message where id = #{id}
|
||||||
|
</delete>
|
||||||
|
|
||||||
|
<delete id="deleteAduitMessageByIds" parameterType="String">
|
||||||
|
delete from cbfa_aduit_message where id in
|
||||||
|
<foreach item="id" collection="array" open="(" separator="," close=")">
|
||||||
|
#{id}
|
||||||
|
</foreach>
|
||||||
|
</delete>
|
||||||
|
|
||||||
|
</mapper>
|
||||||
|
|
@ -0,0 +1,262 @@
|
||||||
|
<?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.product.mapper.ApplyUserMapper">
|
||||||
|
|
||||||
|
<resultMap type="ApplyUser" id="ApplyUserResult">
|
||||||
|
<result property="id" column="id" />
|
||||||
|
<result property="name" column="name" />
|
||||||
|
<result property="sex" column="sex" />
|
||||||
|
<result property="age" column="age" />
|
||||||
|
<result property="enterpriseName" column="enterprise_name" />
|
||||||
|
<result property="idcrds" column="idcrds" />
|
||||||
|
<result property="importEnterprise" column="import_enterprise" />
|
||||||
|
<result property="establishment" column="establishment" />
|
||||||
|
<result property="proportion" column="proportion" />
|
||||||
|
<result property="proportionUserMax" column="proportion_user_max" />
|
||||||
|
<result property="shareholding" column="shareholding" />
|
||||||
|
<result property="administrativePenalty" column="administrative_penalty" />
|
||||||
|
<result property="significantLawsuit" column="significant_lawsuit" />
|
||||||
|
<result property="overdue" column="overdue" />
|
||||||
|
<result property="badRecord" column="bad_record" />
|
||||||
|
<result property="lastYearSaleroom" column="last_year_saleroom" />
|
||||||
|
<result property="homochronousSaleroom" column="homochronous_saleroom" />
|
||||||
|
<result property="makeOutAninvoice" column="make_out_anInvoice" />
|
||||||
|
<result property="declareCount" column="declare_count" />
|
||||||
|
<result property="recentSaleroom" column="recent_saleroom" />
|
||||||
|
<result property="makeOutAninvoiceTime" column="make_out_anInvoice_time" />
|
||||||
|
<result property="ratepayingTime" column="ratepaying_time" />
|
||||||
|
<result property="ratepayingLimit" column="ratepaying_limit" />
|
||||||
|
<result property="ratepayingRecent" column="ratepaying_recent" />
|
||||||
|
<result property="brackets" column="brackets" />
|
||||||
|
<result property="loansOverdueCount" column="loans_overdue_count" />
|
||||||
|
<result property="blacklist" column="blacklist" />
|
||||||
|
<result property="creditCard" column="credit_card" />
|
||||||
|
<result property="loansExamine" column="loans_examine" />
|
||||||
|
<result property="liabilities" column="liabilities" />
|
||||||
|
<result property="liabilitiesProbability" column="liabilities_probability" />
|
||||||
|
<result property="companyLoanOverdue" column="company_loan_overdue" />
|
||||||
|
<result property="totalAmountOfBorrowing" column="total_amount_of_borrowing" />
|
||||||
|
<result property="lineOfCredit" column="line_of_credit" />
|
||||||
|
<result property="yearTransaction" column="year_transaction" />
|
||||||
|
<result property="clearanceCount" column="clearance_count" />
|
||||||
|
<result property="halfaYearSum" column="halfa_year_sum" />
|
||||||
|
<result property="legalPerson" column="legal_person" />
|
||||||
|
<result property="legalPersonRecord" column="legal_person_record" />
|
||||||
|
<result property="promiseEnterprise" column="promise_enterprise" />
|
||||||
|
<result property="atPresentOverdue" column="at_present_overdue" />
|
||||||
|
<result property="yearPerson" column="year_person" />
|
||||||
|
<result property="investigation" column="investigation" />
|
||||||
|
</resultMap>
|
||||||
|
|
||||||
|
<sql id="selectApplyUserVo">
|
||||||
|
select id, name, sex, age, enterprise_name, idcrds, import_enterprise, establishment, proportion, proportion_user_max, shareholding, administrative_penalty, significant_lawsuit, overdue, bad_record, last_year_saleroom, homochronous_saleroom, make_out_anInvoice, declare_count, recent_saleroom, make_out_anInvoice_time, ratepaying_time, ratepaying_limit, ratepaying_recent, brackets, loans_overdue_count, blacklist, credit_card, loans_examine, liabilities, liabilities_probability, company_loan_overdue, total_amount_of_borrowing, line_of_credit, year_transaction, clearance_count, halfa_year_sum, legal_person, legal_person_record, promise_enterprise, at_present_overdue, year_person, investigation from cbfa_apply_user
|
||||||
|
</sql>
|
||||||
|
|
||||||
|
<select id="selectApplyUserList" parameterType="ApplyUser" resultMap="ApplyUserResult">
|
||||||
|
<include refid="selectApplyUserVo"/>
|
||||||
|
<where>
|
||||||
|
<if test="name != null and name != ''"> and name like concat('%', #{name}, '%')</if>
|
||||||
|
<if test="sex != null and sex != ''"> and sex = #{sex}</if>
|
||||||
|
<if test="age != null and age != ''"> and age = #{age}</if>
|
||||||
|
<if test="enterpriseName != null and enterpriseName != ''"> and enterprise_name like concat('%', #{enterpriseName}, '%')</if>
|
||||||
|
<if test="idcrds != null and idcrds != ''"> and idcrds = #{idcrds}</if>
|
||||||
|
<if test="importEnterprise != null and importEnterprise != ''"> and import_enterprise = #{importEnterprise}</if>
|
||||||
|
<if test="establishment != null and establishment != ''"> and establishment = #{establishment}</if>
|
||||||
|
<if test="proportion != null and proportion != ''"> and proportion = #{proportion}</if>
|
||||||
|
<if test="proportionUserMax != null and proportionUserMax != ''"> and proportion_user_max = #{proportionUserMax}</if>
|
||||||
|
<if test="shareholding != null and shareholding != ''"> and shareholding = #{shareholding}</if>
|
||||||
|
<if test="administrativePenalty != null and administrativePenalty != ''"> and administrative_penalty = #{administrativePenalty}</if>
|
||||||
|
<if test="significantLawsuit != null and significantLawsuit != ''"> and significant_lawsuit = #{significantLawsuit}</if>
|
||||||
|
<if test="overdue != null and overdue != ''"> and overdue = #{overdue}</if>
|
||||||
|
<if test="badRecord != null and badRecord != ''"> and bad_record = #{badRecord}</if>
|
||||||
|
<if test="lastYearSaleroom != null and lastYearSaleroom != ''"> and last_year_saleroom = #{lastYearSaleroom}</if>
|
||||||
|
<if test="homochronousSaleroom != null and homochronousSaleroom != ''"> and homochronous_saleroom = #{homochronousSaleroom}</if>
|
||||||
|
<if test="makeOutAninvoice != null and makeOutAninvoice != ''"> and make_out_anInvoice = #{makeOutAninvoice}</if>
|
||||||
|
<if test="declareCount != null and declareCount != ''"> and declare_count = #{declareCount}</if>
|
||||||
|
<if test="recentSaleroom != null and recentSaleroom != ''"> and recent_saleroom = #{recentSaleroom}</if>
|
||||||
|
<if test="makeOutAninvoiceTime != null and makeOutAninvoiceTime != ''"> and make_out_anInvoice_time = #{makeOutAninvoiceTime}</if>
|
||||||
|
<if test="ratepayingTime != null and ratepayingTime != ''"> and ratepaying_time = #{ratepayingTime}</if>
|
||||||
|
<if test="ratepayingLimit != null and ratepayingLimit != ''"> and ratepaying_limit = #{ratepayingLimit}</if>
|
||||||
|
<if test="ratepayingRecent != null and ratepayingRecent != ''"> and ratepaying_recent = #{ratepayingRecent}</if>
|
||||||
|
<if test="brackets != null and brackets != ''"> and brackets = #{brackets}</if>
|
||||||
|
<if test="loansOverdueCount != null and loansOverdueCount != ''"> and loans_overdue_count = #{loansOverdueCount}</if>
|
||||||
|
<if test="blacklist != null and blacklist != ''"> and blacklist = #{blacklist}</if>
|
||||||
|
<if test="creditCard != null and creditCard != ''"> and credit_card = #{creditCard}</if>
|
||||||
|
<if test="loansExamine != null and loansExamine != ''"> and loans_examine = #{loansExamine}</if>
|
||||||
|
<if test="liabilities != null and liabilities != ''"> and liabilities = #{liabilities}</if>
|
||||||
|
<if test="liabilitiesProbability != null and liabilitiesProbability != ''"> and liabilities_probability = #{liabilitiesProbability}</if>
|
||||||
|
<if test="companyLoanOverdue != null and companyLoanOverdue != ''"> and company_loan_overdue = #{companyLoanOverdue}</if>
|
||||||
|
<if test="totalAmountOfBorrowing != null and totalAmountOfBorrowing != ''"> and total_amount_of_borrowing = #{totalAmountOfBorrowing}</if>
|
||||||
|
<if test="lineOfCredit != null and lineOfCredit != ''"> and line_of_credit = #{lineOfCredit}</if>
|
||||||
|
<if test="yearTransaction != null and yearTransaction != ''"> and year_transaction = #{yearTransaction}</if>
|
||||||
|
<if test="clearanceCount != null and clearanceCount != ''"> and clearance_count = #{clearanceCount}</if>
|
||||||
|
<if test="halfaYearSum != null and halfaYearSum != ''"> and halfa_year_sum = #{halfaYearSum}</if>
|
||||||
|
<if test="legalPerson != null and legalPerson != ''"> and legal_person = #{legalPerson}</if>
|
||||||
|
<if test="legalPersonRecord != null and legalPersonRecord != ''"> and legal_person_record = #{legalPersonRecord}</if>
|
||||||
|
<if test="promiseEnterprise != null and promiseEnterprise != ''"> and promise_enterprise = #{promiseEnterprise}</if>
|
||||||
|
<if test="atPresentOverdue != null and atPresentOverdue != ''"> and at_present_overdue = #{atPresentOverdue}</if>
|
||||||
|
<if test="yearPerson != null and yearPerson != ''"> and year_person = #{yearPerson}</if>
|
||||||
|
<if test="investigation != null and investigation != ''"> and investigation = #{investigation}</if>
|
||||||
|
</where>
|
||||||
|
</select>
|
||||||
|
|
||||||
|
<select id="selectApplyUserById" parameterType="Long" resultMap="ApplyUserResult">
|
||||||
|
<include refid="selectApplyUserVo"/>
|
||||||
|
where id = #{id}
|
||||||
|
</select>
|
||||||
|
|
||||||
|
<insert id="insertApplyUser" parameterType="ApplyUser" useGeneratedKeys="true" keyProperty="id">
|
||||||
|
insert into cbfa_apply_user
|
||||||
|
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||||
|
<if test="name != null and name != ''">name,</if>
|
||||||
|
<if test="sex != null and sex != ''">sex,</if>
|
||||||
|
<if test="age != null and age != ''">age,</if>
|
||||||
|
<if test="enterpriseName != null and enterpriseName != ''">enterprise_name,</if>
|
||||||
|
<if test="idcrds != null and idcrds != ''">idcrds,</if>
|
||||||
|
<if test="importEnterprise != null and importEnterprise != ''">import_enterprise,</if>
|
||||||
|
<if test="establishment != null and establishment != ''">establishment,</if>
|
||||||
|
<if test="proportion != null and proportion != ''">proportion,</if>
|
||||||
|
<if test="proportionUserMax != null and proportionUserMax != ''">proportion_user_max,</if>
|
||||||
|
<if test="shareholding != null and shareholding != ''">shareholding,</if>
|
||||||
|
<if test="administrativePenalty != null and administrativePenalty != ''">administrative_penalty,</if>
|
||||||
|
<if test="significantLawsuit != null and significantLawsuit != ''">significant_lawsuit,</if>
|
||||||
|
<if test="overdue != null and overdue != ''">overdue,</if>
|
||||||
|
<if test="badRecord != null and badRecord != ''">bad_record,</if>
|
||||||
|
<if test="lastYearSaleroom != null and lastYearSaleroom != ''">last_year_saleroom,</if>
|
||||||
|
<if test="homochronousSaleroom != null and homochronousSaleroom != ''">homochronous_saleroom,</if>
|
||||||
|
<if test="makeOutAninvoice != null and makeOutAninvoice != ''">make_out_anInvoice,</if>
|
||||||
|
<if test="declareCount != null and declareCount != ''">declare_count,</if>
|
||||||
|
<if test="recentSaleroom != null and recentSaleroom != ''">recent_saleroom,</if>
|
||||||
|
<if test="makeOutAninvoiceTime != null and makeOutAninvoiceTime != ''">make_out_anInvoice_time,</if>
|
||||||
|
<if test="ratepayingTime != null and ratepayingTime != ''">ratepaying_time,</if>
|
||||||
|
<if test="ratepayingLimit != null and ratepayingLimit != ''">ratepaying_limit,</if>
|
||||||
|
<if test="ratepayingRecent != null and ratepayingRecent != ''">ratepaying_recent,</if>
|
||||||
|
<if test="brackets != null and brackets != ''">brackets,</if>
|
||||||
|
<if test="loansOverdueCount != null and loansOverdueCount != ''">loans_overdue_count,</if>
|
||||||
|
<if test="blacklist != null and blacklist != ''">blacklist,</if>
|
||||||
|
<if test="creditCard != null and creditCard != ''">credit_card,</if>
|
||||||
|
<if test="loansExamine != null and loansExamine != ''">loans_examine,</if>
|
||||||
|
<if test="liabilities != null and liabilities != ''">liabilities,</if>
|
||||||
|
<if test="liabilitiesProbability != null and liabilitiesProbability != ''">liabilities_probability,</if>
|
||||||
|
<if test="companyLoanOverdue != null and companyLoanOverdue != ''">company_loan_overdue,</if>
|
||||||
|
<if test="totalAmountOfBorrowing != null and totalAmountOfBorrowing != ''">total_amount_of_borrowing,</if>
|
||||||
|
<if test="lineOfCredit != null and lineOfCredit != ''">line_of_credit,</if>
|
||||||
|
<if test="yearTransaction != null and yearTransaction != ''">year_transaction,</if>
|
||||||
|
<if test="clearanceCount != null and clearanceCount != ''">clearance_count,</if>
|
||||||
|
<if test="halfaYearSum != null and halfaYearSum != ''">halfa_year_sum,</if>
|
||||||
|
<if test="legalPerson != null and legalPerson != ''">legal_person,</if>
|
||||||
|
<if test="legalPersonRecord != null and legalPersonRecord != ''">legal_person_record,</if>
|
||||||
|
<if test="promiseEnterprise != null and promiseEnterprise != ''">promise_enterprise,</if>
|
||||||
|
<if test="atPresentOverdue != null and atPresentOverdue != ''">at_present_overdue,</if>
|
||||||
|
<if test="yearPerson != null and yearPerson != ''">year_person,</if>
|
||||||
|
<if test="investigation != null and investigation != ''">investigation,</if>
|
||||||
|
</trim>
|
||||||
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
||||||
|
<if test="name != null and name != ''">#{name},</if>
|
||||||
|
<if test="sex != null and sex != ''">#{sex},</if>
|
||||||
|
<if test="age != null and age != ''">#{age},</if>
|
||||||
|
<if test="enterpriseName != null and enterpriseName != ''">#{enterpriseName},</if>
|
||||||
|
<if test="idcrds != null and idcrds != ''">#{idcrds},</if>
|
||||||
|
<if test="importEnterprise != null and importEnterprise != ''">#{importEnterprise},</if>
|
||||||
|
<if test="establishment != null and establishment != ''">#{establishment},</if>
|
||||||
|
<if test="proportion != null and proportion != ''">#{proportion},</if>
|
||||||
|
<if test="proportionUserMax != null and proportionUserMax != ''">#{proportionUserMax},</if>
|
||||||
|
<if test="shareholding != null and shareholding != ''">#{shareholding},</if>
|
||||||
|
<if test="administrativePenalty != null and administrativePenalty != ''">#{administrativePenalty},</if>
|
||||||
|
<if test="significantLawsuit != null and significantLawsuit != ''">#{significantLawsuit},</if>
|
||||||
|
<if test="overdue != null and overdue != ''">#{overdue},</if>
|
||||||
|
<if test="badRecord != null and badRecord != ''">#{badRecord},</if>
|
||||||
|
<if test="lastYearSaleroom != null and lastYearSaleroom != ''">#{lastYearSaleroom},</if>
|
||||||
|
<if test="homochronousSaleroom != null and homochronousSaleroom != ''">#{homochronousSaleroom},</if>
|
||||||
|
<if test="makeOutAninvoice != null and makeOutAninvoice != ''">#{makeOutAninvoice},</if>
|
||||||
|
<if test="declareCount != null and declareCount != ''">#{declareCount},</if>
|
||||||
|
<if test="recentSaleroom != null and recentSaleroom != ''">#{recentSaleroom},</if>
|
||||||
|
<if test="makeOutAninvoiceTime != null and makeOutAninvoiceTime != ''">#{makeOutAninvoiceTime},</if>
|
||||||
|
<if test="ratepayingTime != null and ratepayingTime != ''">#{ratepayingTime},</if>
|
||||||
|
<if test="ratepayingLimit != null and ratepayingLimit != ''">#{ratepayingLimit},</if>
|
||||||
|
<if test="ratepayingRecent != null and ratepayingRecent != ''">#{ratepayingRecent},</if>
|
||||||
|
<if test="brackets != null and brackets != ''">#{brackets},</if>
|
||||||
|
<if test="loansOverdueCount != null and loansOverdueCount != ''">#{loansOverdueCount},</if>
|
||||||
|
<if test="blacklist != null and blacklist != ''">#{blacklist},</if>
|
||||||
|
<if test="creditCard != null and creditCard != ''">#{creditCard},</if>
|
||||||
|
<if test="loansExamine != null and loansExamine != ''">#{loansExamine},</if>
|
||||||
|
<if test="liabilities != null and liabilities != ''">#{liabilities},</if>
|
||||||
|
<if test="liabilitiesProbability != null and liabilitiesProbability != ''">#{liabilitiesProbability},</if>
|
||||||
|
<if test="companyLoanOverdue != null and companyLoanOverdue != ''">#{companyLoanOverdue},</if>
|
||||||
|
<if test="totalAmountOfBorrowing != null and totalAmountOfBorrowing != ''">#{totalAmountOfBorrowing},</if>
|
||||||
|
<if test="lineOfCredit != null and lineOfCredit != ''">#{lineOfCredit},</if>
|
||||||
|
<if test="yearTransaction != null and yearTransaction != ''">#{yearTransaction},</if>
|
||||||
|
<if test="clearanceCount != null and clearanceCount != ''">#{clearanceCount},</if>
|
||||||
|
<if test="halfaYearSum != null and halfaYearSum != ''">#{halfaYearSum},</if>
|
||||||
|
<if test="legalPerson != null and legalPerson != ''">#{legalPerson},</if>
|
||||||
|
<if test="legalPersonRecord != null and legalPersonRecord != ''">#{legalPersonRecord},</if>
|
||||||
|
<if test="promiseEnterprise != null and promiseEnterprise != ''">#{promiseEnterprise},</if>
|
||||||
|
<if test="atPresentOverdue != null and atPresentOverdue != ''">#{atPresentOverdue},</if>
|
||||||
|
<if test="yearPerson != null and yearPerson != ''">#{yearPerson},</if>
|
||||||
|
<if test="investigation != null and investigation != ''">#{investigation},</if>
|
||||||
|
</trim>
|
||||||
|
</insert>
|
||||||
|
|
||||||
|
<update id="updateApplyUser" parameterType="ApplyUser">
|
||||||
|
update cbfa_apply_user
|
||||||
|
<trim prefix="SET" suffixOverrides=",">
|
||||||
|
<if test="name != null and name != ''">name = #{name},</if>
|
||||||
|
<if test="sex != null and sex != ''">sex = #{sex},</if>
|
||||||
|
<if test="age != null and age != ''">age = #{age},</if>
|
||||||
|
<if test="enterpriseName != null and enterpriseName != ''">enterprise_name = #{enterpriseName},</if>
|
||||||
|
<if test="idcrds != null and idcrds != ''">idcrds = #{idcrds},</if>
|
||||||
|
<if test="importEnterprise != null and importEnterprise != ''">import_enterprise = #{importEnterprise},</if>
|
||||||
|
<if test="establishment != null and establishment != ''">establishment = #{establishment},</if>
|
||||||
|
<if test="proportion != null and proportion != ''">proportion = #{proportion},</if>
|
||||||
|
<if test="proportionUserMax != null and proportionUserMax != ''">proportion_user_max = #{proportionUserMax},</if>
|
||||||
|
<if test="shareholding != null and shareholding != ''">shareholding = #{shareholding},</if>
|
||||||
|
<if test="administrativePenalty != null and administrativePenalty != ''">administrative_penalty = #{administrativePenalty},</if>
|
||||||
|
<if test="significantLawsuit != null and significantLawsuit != ''">significant_lawsuit = #{significantLawsuit},</if>
|
||||||
|
<if test="overdue != null and overdue != ''">overdue = #{overdue},</if>
|
||||||
|
<if test="badRecord != null and badRecord != ''">bad_record = #{badRecord},</if>
|
||||||
|
<if test="lastYearSaleroom != null and lastYearSaleroom != ''">last_year_saleroom = #{lastYearSaleroom},</if>
|
||||||
|
<if test="homochronousSaleroom != null and homochronousSaleroom != ''">homochronous_saleroom = #{homochronousSaleroom},</if>
|
||||||
|
<if test="makeOutAninvoice != null and makeOutAninvoice != ''">make_out_anInvoice = #{makeOutAninvoice},</if>
|
||||||
|
<if test="declareCount != null and declareCount != ''">declare_count = #{declareCount},</if>
|
||||||
|
<if test="recentSaleroom != null and recentSaleroom != ''">recent_saleroom = #{recentSaleroom},</if>
|
||||||
|
<if test="makeOutAninvoiceTime != null and makeOutAninvoiceTime != ''">make_out_anInvoice_time = #{makeOutAninvoiceTime},</if>
|
||||||
|
<if test="ratepayingTime != null and ratepayingTime != ''">ratepaying_time = #{ratepayingTime},</if>
|
||||||
|
<if test="ratepayingLimit != null and ratepayingLimit != ''">ratepaying_limit = #{ratepayingLimit},</if>
|
||||||
|
<if test="ratepayingRecent != null and ratepayingRecent != ''">ratepaying_recent = #{ratepayingRecent},</if>
|
||||||
|
<if test="brackets != null and brackets != ''">brackets = #{brackets},</if>
|
||||||
|
<if test="loansOverdueCount != null and loansOverdueCount != ''">loans_overdue_count = #{loansOverdueCount},</if>
|
||||||
|
<if test="blacklist != null and blacklist != ''">blacklist = #{blacklist},</if>
|
||||||
|
<if test="creditCard != null and creditCard != ''">credit_card = #{creditCard},</if>
|
||||||
|
<if test="loansExamine != null and loansExamine != ''">loans_examine = #{loansExamine},</if>
|
||||||
|
<if test="liabilities != null and liabilities != ''">liabilities = #{liabilities},</if>
|
||||||
|
<if test="liabilitiesProbability != null and liabilitiesProbability != ''">liabilities_probability = #{liabilitiesProbability},</if>
|
||||||
|
<if test="companyLoanOverdue != null and companyLoanOverdue != ''">company_loan_overdue = #{companyLoanOverdue},</if>
|
||||||
|
<if test="totalAmountOfBorrowing != null and totalAmountOfBorrowing != ''">total_amount_of_borrowing = #{totalAmountOfBorrowing},</if>
|
||||||
|
<if test="lineOfCredit != null and lineOfCredit != ''">line_of_credit = #{lineOfCredit},</if>
|
||||||
|
<if test="yearTransaction != null and yearTransaction != ''">year_transaction = #{yearTransaction},</if>
|
||||||
|
<if test="clearanceCount != null and clearanceCount != ''">clearance_count = #{clearanceCount},</if>
|
||||||
|
<if test="halfaYearSum != null and halfaYearSum != ''">halfa_year_sum = #{halfaYearSum},</if>
|
||||||
|
<if test="legalPerson != null and legalPerson != ''">legal_person = #{legalPerson},</if>
|
||||||
|
<if test="legalPersonRecord != null and legalPersonRecord != ''">legal_person_record = #{legalPersonRecord},</if>
|
||||||
|
<if test="promiseEnterprise != null and promiseEnterprise != ''">promise_enterprise = #{promiseEnterprise},</if>
|
||||||
|
<if test="atPresentOverdue != null and atPresentOverdue != ''">at_present_overdue = #{atPresentOverdue},</if>
|
||||||
|
<if test="yearPerson != null and yearPerson != ''">year_person = #{yearPerson},</if>
|
||||||
|
<if test="investigation != null and investigation != ''">investigation = #{investigation},</if>
|
||||||
|
</trim>
|
||||||
|
where id = #{id}
|
||||||
|
</update>
|
||||||
|
|
||||||
|
<delete id="deleteApplyUserById" parameterType="Long">
|
||||||
|
delete from cbfa_apply_user where id = #{id}
|
||||||
|
</delete>
|
||||||
|
|
||||||
|
<delete id="deleteApplyUserByIds" parameterType="String">
|
||||||
|
delete from cbfa_apply_user where id in
|
||||||
|
<foreach item="id" collection="array" open="(" separator="," close=")">
|
||||||
|
#{id}
|
||||||
|
</foreach>
|
||||||
|
</delete>
|
||||||
|
|
||||||
|
</mapper>
|
||||||
|
|
@ -0,0 +1,76 @@
|
||||||
|
<?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.product.mapper.ProductInformationMapper">
|
||||||
|
|
||||||
|
<resultMap type="ProductInformation" id="ProductInformationResult">
|
||||||
|
<result property="id" column="id" />
|
||||||
|
<result property="productName" column="product_name" />
|
||||||
|
<result property="productDescribe" column="product_describe" />
|
||||||
|
<result property="productDescribeB" column="product_describe_b" />
|
||||||
|
<result property="productDescribeC" column="product_describe_c" />
|
||||||
|
</resultMap>
|
||||||
|
|
||||||
|
<sql id="selectProductInformationVo">
|
||||||
|
select id, product_name, product_describe, product_describe_b, product_describe_c from cbfa_product_information
|
||||||
|
</sql>
|
||||||
|
|
||||||
|
<select id="selectProductInformationList" parameterType="ProductInformation" resultMap="ProductInformationResult">
|
||||||
|
<include refid="selectProductInformationVo"/>
|
||||||
|
<where>
|
||||||
|
<if test="productName != null and productName != ''"> and product_name like concat('%', #{productName}, '%')</if>
|
||||||
|
<if test="productDescribe != null and productDescribe != ''"> and product_describe = #{productDescribe}</if>
|
||||||
|
<if test="productDescribeB != null and productDescribeB != ''"> and product_describe_b = #{productDescribeB}</if>
|
||||||
|
<if test="productDescribeC != null and productDescribeC != ''"> and product_describe_c = #{productDescribeC}</if>
|
||||||
|
</where>
|
||||||
|
</select>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<select id="selectProductInformationById" parameterType="Long" resultMap="ProductInformationResult">
|
||||||
|
<include refid="selectProductInformationVo"/>
|
||||||
|
where id = #{id}
|
||||||
|
</select>
|
||||||
|
|
||||||
|
<insert id="insertProductInformation" parameterType="ProductInformation">
|
||||||
|
insert into cbfa_product_information
|
||||||
|
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||||
|
<if test="id != null ">id,</if>
|
||||||
|
<if test="productName != null and productName != ''">product_name,</if>
|
||||||
|
<if test="productDescribe != null and productDescribe != ''">product_describe,</if>
|
||||||
|
<if test="productDescribeB != null and productDescribeB != ''">product_describe_b,</if>
|
||||||
|
<if test="productDescribeC != null and productDescribeC != ''">product_describe_c,</if>
|
||||||
|
</trim>
|
||||||
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
||||||
|
<if test="id != null ">#{id},</if>
|
||||||
|
<if test="productName != null and productName != ''">#{productName},</if>
|
||||||
|
<if test="productDescribe != null and productDescribe != ''">#{productDescribe},</if>
|
||||||
|
<if test="productDescribeB != null and productDescribeB != ''">#{productDescribeB},</if>
|
||||||
|
<if test="productDescribeC != null and productDescribeC != ''">#{productDescribeC},</if>
|
||||||
|
</trim>
|
||||||
|
</insert>
|
||||||
|
|
||||||
|
<update id="updateProductInformation" parameterType="ProductInformation">
|
||||||
|
update cbfa_product_information
|
||||||
|
<trim prefix="SET" suffixOverrides=",">
|
||||||
|
<if test="productName != null and productName != ''">product_name = #{productName},</if>
|
||||||
|
<if test="productDescribe != null and productDescribe != ''">product_describe = #{productDescribe},</if>
|
||||||
|
<if test="productDescribeB != null and productDescribeB != ''">product_describe_b = #{productDescribeB},</if>
|
||||||
|
<if test="productDescribeC != null and productDescribeC != ''">product_describe_c = #{productDescribeC},</if>
|
||||||
|
</trim>
|
||||||
|
where id = #{id}
|
||||||
|
</update>
|
||||||
|
|
||||||
|
<delete id="deleteProductInformationById" parameterType="Long">
|
||||||
|
delete from cbfa_product_information where id = #{id}
|
||||||
|
</delete>
|
||||||
|
|
||||||
|
<delete id="deleteProductInformationByIds" parameterType="String">
|
||||||
|
delete from cbfa_product_information where id in
|
||||||
|
<foreach item="id" collection="array" open="(" separator="," close=")">
|
||||||
|
#{id}
|
||||||
|
</foreach>
|
||||||
|
</delete>
|
||||||
|
|
||||||
|
</mapper>
|
||||||
|
|
@ -0,0 +1,91 @@
|
||||||
|
<?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.product.mapper.ProductMapper">
|
||||||
|
|
||||||
|
<resultMap type="Product" id="ProductResult">
|
||||||
|
<result property="id" column="id" />
|
||||||
|
<result property="procuctInformationId" column="procuct_information_id" />
|
||||||
|
<result property="procuctTagId" column="procuct_tag_id" />
|
||||||
|
<result property="requested" column="requested" />
|
||||||
|
<result property="requiremssage" column="requireMssage" />
|
||||||
|
</resultMap>
|
||||||
|
|
||||||
|
<resultMap type="Product" id="ProductResultVo">
|
||||||
|
<result property="procuctInformationId" column="procuct_information_id" />
|
||||||
|
<result property="procuctTagId" column="procuct_tag_id" />
|
||||||
|
<result property="requested" column="requested" />
|
||||||
|
<result property="requiremssage" column="requireMssage" />
|
||||||
|
|
||||||
|
<result property="beanName" column="bean_name" />
|
||||||
|
<result property="rules" column="rules" />
|
||||||
|
<result property="instructions" column="instructions" />
|
||||||
|
</resultMap>
|
||||||
|
|
||||||
|
<sql id="selectProductVo">
|
||||||
|
select id, procuct_information_id, procuct_tag_id, requested, requireMssage from cbfa_product
|
||||||
|
</sql>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<select id="selectProduct" resultMap="ProductResultVo">
|
||||||
|
SELECT p.procuct_information_id procuct_information_id,p.requested requested,pt.bean_name bean_name,pt.instructions instructions,pt.rules rules,p.requireMssage requireMssage FROM cbfa_product p LEFT JOIN cbfa_product_tag pt on p.procuct_tag_id = pt.id
|
||||||
|
</select>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<select id="selectProductList" parameterType="Product" resultMap="ProductResult">
|
||||||
|
<include refid="selectProductVo"/>
|
||||||
|
<where>
|
||||||
|
<if test="procuctInformationId != null "> and procuct_information_id = #{procuctInformationId}</if>
|
||||||
|
<if test="procuctTagId != null "> and procuct_tag_id = #{procuctTagId}</if>
|
||||||
|
<if test="requested != null and requested != ''"> and requested = #{requested}</if>
|
||||||
|
<if test="requiremssage != null and requiremssage != ''"> and requireMssage = #{requiremssage}</if>
|
||||||
|
</where>
|
||||||
|
</select>
|
||||||
|
|
||||||
|
<select id="selectProductById" parameterType="Long" resultMap="ProductResult">
|
||||||
|
<include refid="selectProductVo"/>
|
||||||
|
where id = #{id}
|
||||||
|
</select>
|
||||||
|
|
||||||
|
<insert id="insertProduct" parameterType="Product" useGeneratedKeys="true" keyProperty="id">
|
||||||
|
insert into cbfa_product
|
||||||
|
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||||
|
<if test="procuctInformationId != null ">procuct_information_id,</if>
|
||||||
|
<if test="procuctTagId != null ">procuct_tag_id,</if>
|
||||||
|
<if test="requested != null and requested != ''">requested,</if>
|
||||||
|
<if test="requiremssage != null and requiremssage != ''">requireMssage,</if>
|
||||||
|
</trim>
|
||||||
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
||||||
|
<if test="procuctInformationId != null ">#{procuctInformationId},</if>
|
||||||
|
<if test="procuctTagId != null ">#{procuctTagId},</if>
|
||||||
|
<if test="requested != null and requested != ''">#{requested},</if>
|
||||||
|
<if test="requiremssage != null and requiremssage != ''">#{requiremssage},</if>
|
||||||
|
</trim>
|
||||||
|
</insert>
|
||||||
|
|
||||||
|
<update id="updateProduct" parameterType="Product">
|
||||||
|
update cbfa_product
|
||||||
|
<trim prefix="SET" suffixOverrides=",">
|
||||||
|
<if test="procuctInformationId != null ">procuct_information_id = #{procuctInformationId},</if>
|
||||||
|
<if test="procuctTagId != null ">procuct_tag_id = #{procuctTagId},</if>
|
||||||
|
<if test="requested != null and requested != ''">requested = #{requested},</if>
|
||||||
|
<if test="requiremssage != null and requiremssage != ''">requireMssage = #{requiremssage},</if>
|
||||||
|
</trim>
|
||||||
|
where id = #{id}
|
||||||
|
</update>
|
||||||
|
|
||||||
|
<delete id="deleteProductById" parameterType="Long">
|
||||||
|
delete from cbfa_product where id = #{id}
|
||||||
|
</delete>
|
||||||
|
|
||||||
|
<delete id="deleteProductByIds" parameterType="String">
|
||||||
|
delete from cbfa_product where id in
|
||||||
|
<foreach item="id" collection="array" open="(" separator="," close=")">
|
||||||
|
#{id}
|
||||||
|
</foreach>
|
||||||
|
</delete>
|
||||||
|
|
||||||
|
</mapper>
|
||||||
|
|
@ -0,0 +1,69 @@
|
||||||
|
<?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.product.mapper.ProductTagMapper">
|
||||||
|
|
||||||
|
<resultMap type="ProductTag" id="ProductTagResult">
|
||||||
|
<result property="id" column="id" />
|
||||||
|
<result property="beanName" column="bean_name" />
|
||||||
|
<result property="rules" column="rules" />
|
||||||
|
<result property="instructions" column="instructions" />
|
||||||
|
</resultMap>
|
||||||
|
|
||||||
|
<sql id="selectProductTagVo">
|
||||||
|
select id, bean_name, rules, instructions from cbfa_product_tag
|
||||||
|
</sql>
|
||||||
|
|
||||||
|
<select id="selectProductTagList" parameterType="ProductTag" resultMap="ProductTagResult">
|
||||||
|
<include refid="selectProductTagVo"/>
|
||||||
|
<where>
|
||||||
|
<if test="beanName != null and beanName != ''"> and bean_name like concat('%', #{beanName}, '%')</if>
|
||||||
|
<if test="rules != null "> and rules = #{rules}</if>
|
||||||
|
<if test="instructions != null and instructions != ''"> and instructions = #{instructions}</if>
|
||||||
|
</where>
|
||||||
|
</select>
|
||||||
|
|
||||||
|
<select id="selectProductTagById" parameterType="Long" resultMap="ProductTagResult">
|
||||||
|
<include refid="selectProductTagVo"/>
|
||||||
|
where id = #{id}
|
||||||
|
</select>
|
||||||
|
|
||||||
|
<insert id="insertProductTag" parameterType="ProductTag">
|
||||||
|
insert into cbfa_product_tag
|
||||||
|
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||||
|
<if test="id != null ">id,</if>
|
||||||
|
<if test="beanName != null and beanName != ''">bean_name,</if>
|
||||||
|
<if test="rules != null ">rules,</if>
|
||||||
|
<if test="instructions != null and instructions != ''">instructions,</if>
|
||||||
|
</trim>
|
||||||
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
||||||
|
<if test="id != null ">#{id},</if>
|
||||||
|
<if test="beanName != null and beanName != ''">#{beanName},</if>
|
||||||
|
<if test="rules != null ">#{rules},</if>
|
||||||
|
<if test="instructions != null and instructions != ''">#{instructions},</if>
|
||||||
|
</trim>
|
||||||
|
</insert>
|
||||||
|
|
||||||
|
<update id="updateProductTag" parameterType="ProductTag">
|
||||||
|
update cbfa_product_tag
|
||||||
|
<trim prefix="SET" suffixOverrides=",">
|
||||||
|
<if test="beanName != null and beanName != ''">bean_name = #{beanName},</if>
|
||||||
|
<if test="rules != null ">rules = #{rules},</if>
|
||||||
|
<if test="instructions != null and instructions != ''">instructions = #{instructions},</if>
|
||||||
|
</trim>
|
||||||
|
where id = #{id}
|
||||||
|
</update>
|
||||||
|
|
||||||
|
<delete id="deleteProductTagById" parameterType="Long">
|
||||||
|
delete from cbfa_product_tag where id = #{id}
|
||||||
|
</delete>
|
||||||
|
|
||||||
|
<delete id="deleteProductTagByIds" parameterType="String">
|
||||||
|
delete from cbfa_product_tag where id in
|
||||||
|
<foreach item="id" collection="array" open="(" separator="," close=")">
|
||||||
|
#{id}
|
||||||
|
</foreach>
|
||||||
|
</delete>
|
||||||
|
|
||||||
|
</mapper>
|
||||||
Loading…
Reference in New Issue