模块修改更改目录

This commit is contained in:
dingjie 2023-12-10 17:30:51 +08:00
parent 0741583a76
commit e7eb563f81
21 changed files with 1799 additions and 0 deletions

View File

@ -0,0 +1,36 @@
package com.bonus.sgzb.material;
import com.bonus.sgzb.common.security.annotation.EnableCustomConfig;
import com.bonus.sgzb.common.security.annotation.EnableRyFeignClients;
import com.bonus.sgzb.common.swagger.annotation.EnableCustomSwagger2;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;
/**
* 文件服务
*
* @author ruoyi
*/
@EnableCustomSwagger2
@SpringBootApplication(exclude = {DataSourceAutoConfiguration.class})
@EnableCustomConfig
@EnableRyFeignClients
public class SgzbMaterialApplication
{
public static void main(String[] args)
{
SpringApplication.run(SgzbMaterialApplication.class, args);
System.out.println("(♥◠‿◠)ノ゙ 基础管理模块启动成功 ლ(´ڡ`ლ)゙ \n" +
" .-------. ____ __ \n" +
" | _ _ \\ \\ \\ / / \n" +
" | ( ' ) | \\ _. / ' \n" +
" |(_ o _) / _( )_ .' \n" +
" | (_,_).' __ ___(_ o _)' \n" +
" | |\\ \\ | || |(_,_)' \n" +
" | | \\ `' /| `-' / \n" +
" | | \\ / \\ / \n" +
" ''-' `'-' `-..-' ");
}
}

View File

@ -0,0 +1,105 @@
package com.bonus.sgzb.material.controller;
import java.util.List;
import javax.servlet.http.HttpServletResponse;
import com.bonus.sgzb.material.service.IPurchaseCheckDetailsService;
import com.bonus.sgzb.material.domain.PurchaseCheckDetails;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.PutMapping;
import org.springframework.web.bind.annotation.DeleteMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import com.bonus.sgzb.common.log.annotation.Log;
import com.bonus.sgzb.common.log.enums.BusinessType;
import com.bonus.sgzb.common.security.annotation.RequiresPermissions;
import com.bonus.sgzb.common.core.web.controller.BaseController;
import com.bonus.sgzb.common.core.web.domain.AjaxResult;
import com.bonus.sgzb.common.core.utils.poi.ExcelUtil;
import com.bonus.sgzb.common.core.web.page.TableDataInfo;
/**
* 新购验收任务详细
*
* @author bonus
* @date 2023-12-10
*/
@RestController
@RequestMapping("/purchaseCheckDetails")
public class PurchaseCheckDetailsController extends BaseController
{
@Autowired
private IPurchaseCheckDetailsService purchaseCheckDetailsService;
/**
* 查询新购验收任务详细列表
*/
@RequiresPermissions("domain:details:list")
@GetMapping("/list")
public TableDataInfo list(PurchaseCheckDetails purchaseCheckDetails)
{
startPage();
List<PurchaseCheckDetails> list = purchaseCheckDetailsService.selectPurchaseCheckDetailsList(purchaseCheckDetails);
return getDataTable(list);
}
/**
* 导出新购验收任务详细列表
*/
@RequiresPermissions("domain:details:export")
@Log(title = "新购验收任务详细", businessType = BusinessType.EXPORT)
@PostMapping("/export")
public void export(HttpServletResponse response, PurchaseCheckDetails purchaseCheckDetails)
{
List<PurchaseCheckDetails> list = purchaseCheckDetailsService.selectPurchaseCheckDetailsList(purchaseCheckDetails);
ExcelUtil<PurchaseCheckDetails> util = new ExcelUtil<PurchaseCheckDetails>(PurchaseCheckDetails.class);
util.exportExcel(response, list, "新购验收任务详细数据");
}
/**
* 获取新购验收任务详细详细信息
*/
@RequiresPermissions("domain:details:query")
@GetMapping(value = "/{taskId}")
public AjaxResult getInfo(@PathVariable("taskId") Long taskId)
{
return success(purchaseCheckDetailsService.selectPurchaseCheckDetailsByTaskId(taskId));
}
/**
* 新增新购验收任务详细
*/
@RequiresPermissions("domain:details:add")
@Log(title = "新购验收任务详细", businessType = BusinessType.INSERT)
@PostMapping
public AjaxResult add(@RequestBody PurchaseCheckDetails purchaseCheckDetails)
{
return toAjax(purchaseCheckDetailsService.insertPurchaseCheckDetails(purchaseCheckDetails));
}
/**
* 修改新购验收任务详细
*/
@RequiresPermissions("domain:details:edit")
@Log(title = "新购验收任务详细", businessType = BusinessType.UPDATE)
@PutMapping
public AjaxResult edit(@RequestBody PurchaseCheckDetails purchaseCheckDetails)
{
return toAjax(purchaseCheckDetailsService.updatePurchaseCheckDetails(purchaseCheckDetails));
}
/**
* 删除新购验收任务详细
*/
@RequiresPermissions("domain:details:remove")
@Log(title = "新购验收任务详细", businessType = BusinessType.DELETE)
@DeleteMapping("/{taskIds}")
public AjaxResult remove(@PathVariable Long[] taskIds)
{
return toAjax(purchaseCheckDetailsService.deletePurchaseCheckDetailsByTaskIds(taskIds));
}
}

View File

@ -0,0 +1,105 @@
package com.bonus.sgzb.material.controller;
import java.util.List;
import javax.servlet.http.HttpServletResponse;
import com.bonus.sgzb.material.service.IPurchaseCheckInfoService;
import com.bonus.sgzb.material.domain.PurchaseCheckInfo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.PutMapping;
import org.springframework.web.bind.annotation.DeleteMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import com.bonus.sgzb.common.log.annotation.Log;
import com.bonus.sgzb.common.log.enums.BusinessType;
import com.bonus.sgzb.common.security.annotation.RequiresPermissions;
import com.bonus.sgzb.common.core.web.controller.BaseController;
import com.bonus.sgzb.common.core.web.domain.AjaxResult;
import com.bonus.sgzb.common.core.utils.poi.ExcelUtil;
import com.bonus.sgzb.common.core.web.page.TableDataInfo;
/**
* 新购验收任务Controller
*
* @author bonus
* @date 2023-12-10
*/
@RestController
@RequestMapping("/purchaseCheckInfo")
public class PurchaseCheckInfoController extends BaseController
{
@Autowired
private IPurchaseCheckInfoService purchaseCheckInfoService;
/**
* 查询新购验收任务列表
*/
@RequiresPermissions("domain:info:list")
@GetMapping("/list")
public TableDataInfo list(PurchaseCheckInfo purchaseCheckInfo)
{
startPage();
List<PurchaseCheckInfo> list = purchaseCheckInfoService.selectPurchaseCheckInfoList(purchaseCheckInfo);
return getDataTable(list);
}
/**
* 导出新购验收任务列表
*/
@RequiresPermissions("domain:info:export")
@Log(title = "新购验收任务", businessType = BusinessType.EXPORT)
@PostMapping("/export")
public void export(HttpServletResponse response, PurchaseCheckInfo purchaseCheckInfo)
{
List<PurchaseCheckInfo> list = purchaseCheckInfoService.selectPurchaseCheckInfoList(purchaseCheckInfo);
ExcelUtil<PurchaseCheckInfo> util = new ExcelUtil<PurchaseCheckInfo>(PurchaseCheckInfo.class);
util.exportExcel(response, list, "新购验收任务数据");
}
/**
* 获取新购验收任务详细信息
*/
@RequiresPermissions("domain:info:query")
@GetMapping(value = "/{taskId}")
public AjaxResult getInfo(@PathVariable("taskId") Long taskId)
{
return success(purchaseCheckInfoService.selectPurchaseCheckInfoByTaskId(taskId));
}
/**
* 新增新购验收任务
*/
@RequiresPermissions("domain:info:add")
@Log(title = "新购验收任务", businessType = BusinessType.INSERT)
@PostMapping
public AjaxResult add(@RequestBody PurchaseCheckInfo purchaseCheckInfo)
{
return toAjax(purchaseCheckInfoService.insertPurchaseCheckInfo(purchaseCheckInfo));
}
/**
* 修改新购验收任务
*/
@RequiresPermissions("domain:info:edit")
@Log(title = "新购验收任务", businessType = BusinessType.UPDATE)
@PutMapping
public AjaxResult edit(@RequestBody PurchaseCheckInfo purchaseCheckInfo)
{
return toAjax(purchaseCheckInfoService.updatePurchaseCheckInfo(purchaseCheckInfo));
}
/**
* 删除新购验收任务
*/
@RequiresPermissions("domain:info:remove")
@Log(title = "新购验收任务", businessType = BusinessType.DELETE)
@DeleteMapping("/{taskIds}")
public AjaxResult remove(@PathVariable Long[] taskIds)
{
return toAjax(purchaseCheckInfoService.deletePurchaseCheckInfoByTaskIds(taskIds));
}
}

View File

@ -0,0 +1,101 @@
package com.bonus.sgzb.material.controller;
import java.util.List;
import javax.servlet.http.HttpServletResponse;
import com.bonus.sgzb.material.service.IPurchaseMacodeInfoService;
import com.bonus.sgzb.material.domain.PurchaseMacodeInfo;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.PutMapping;
import org.springframework.web.bind.annotation.DeleteMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import com.bonus.sgzb.common.core.web.controller.BaseController;
import com.bonus.sgzb.common.core.web.domain.AjaxResult;
import com.bonus.sgzb.common.core.utils.poi.ExcelUtil;
import com.bonus.sgzb.common.core.web.page.TableDataInfo;
/**
* 新购验收编号管理
*
* @author bonus
* @date 2023-12-10
*/
@RestController
@Api(value = "新购验收编号管理")
@RequestMapping("/purchaseMacode")
public class PurchaseMacodeInfoController extends BaseController
{
@Autowired
private IPurchaseMacodeInfoService purchaseMacodeInfoService;
/**
* 查询新购验收编号管理列表
*/
@ApiOperation(value = "查询新购验收编号管理列表")
@GetMapping("/list")
public TableDataInfo list(PurchaseMacodeInfo purchaseMacodeInfo)
{
startPage();
List<PurchaseMacodeInfo> list = purchaseMacodeInfoService.selectPurchaseMacodeInfoList(purchaseMacodeInfo);
return getDataTable(list);
}
/**
* 导出新购验收编号管理列表
*/
@ApiOperation(value = "导出新购验收编号管理列表")
@PostMapping("/export")
public void export(HttpServletResponse response, PurchaseMacodeInfo purchaseMacodeInfo)
{
List<PurchaseMacodeInfo> list = purchaseMacodeInfoService.selectPurchaseMacodeInfoList(purchaseMacodeInfo);
ExcelUtil<PurchaseMacodeInfo> util = new ExcelUtil<PurchaseMacodeInfo>(PurchaseMacodeInfo.class);
util.exportExcel(response, list, "新购验收编号管理数据");
}
/**
* 获取新购验收编号管理详细信息
*/
@ApiOperation(value = "获取新购验收编号管理详细信息")
@GetMapping(value = "/{taskId}")
public AjaxResult getInfo(@PathVariable("taskId") Long taskId)
{
return success(purchaseMacodeInfoService.selectPurchaseMacodeInfoByTaskId(taskId));
}
/**
* 新增新购验收编号管理
*/
@ApiOperation(value = "新增新购验收编号管理")
@PostMapping
public AjaxResult add(@RequestBody PurchaseMacodeInfo purchaseMacodeInfo)
{
return toAjax(purchaseMacodeInfoService.insertPurchaseMacodeInfo(purchaseMacodeInfo));
}
/**
* 修改新购验收编号管理
*/
@ApiOperation(value = "修改新购验收编号管理")
@PutMapping
public AjaxResult edit(@RequestBody PurchaseMacodeInfo purchaseMacodeInfo)
{
return toAjax(purchaseMacodeInfoService.updatePurchaseMacodeInfo(purchaseMacodeInfo));
}
/**
* 删除新购验收编号管理
*/
@ApiOperation(value = "删除新购验收编号管理")
@DeleteMapping("/{taskIds}")
public AjaxResult remove(@PathVariable Long[] taskIds)
{
return toAjax(purchaseMacodeInfoService.deletePurchaseMacodeInfoByTaskIds(taskIds));
}
}

View File

@ -0,0 +1,130 @@
package com.bonus.sgzb.material.domain;
import java.util.Date;
import com.bonus.sgzb.common.core.web.domain.BaseEntity;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.bonus.sgzb.common.core.annotation.Excel;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
/**
* 新购验收任务详细purchase_check_details对象 purchase_check_details
*
* @author bonus
* @date 2023-12-10
*/
public class PurchaseCheckDetails extends BaseEntity
{
private static final long serialVersionUID = 1L;
/** 任务ID */
private Long taskId;
/** 规格id */
@Excel(name = "规格id")
private Long typeId;
/** 采购单价 */
@Excel(name = "采购单价")
private String purchasePrice;
/** 采购数量 */
@Excel(name = "采购数量")
private Long purchaseNum;
/** 供应商id */
@Excel(name = "供应商id")
private Long supplierId;
/** 出厂日期 */
@JsonFormat(pattern = "yyyy-MM-dd")
@Excel(name = "出厂日期", width = 30, dateFormat = "yyyy-MM-dd")
private Date productionTime;
/** 数据所属组织 */
@Excel(name = "数据所属组织")
private Long companyId;
public void setTaskId(Long taskId)
{
this.taskId = taskId;
}
public Long getTaskId()
{
return taskId;
}
public void setTypeId(Long typeId)
{
this.typeId = typeId;
}
public Long getTypeId()
{
return typeId;
}
public void setPurchasePrice(String purchasePrice)
{
this.purchasePrice = purchasePrice;
}
public String getPurchasePrice()
{
return purchasePrice;
}
public void setPurchaseNum(Long purchaseNum)
{
this.purchaseNum = purchaseNum;
}
public Long getPurchaseNum()
{
return purchaseNum;
}
public void setSupplierId(Long supplierId)
{
this.supplierId = supplierId;
}
public Long getSupplierId()
{
return supplierId;
}
public void setProductionTime(Date productionTime)
{
this.productionTime = productionTime;
}
public Date getProductionTime()
{
return productionTime;
}
public void setCompanyId(Long companyId)
{
this.companyId = companyId;
}
public Long getCompanyId()
{
return companyId;
}
@Override
public String toString() {
return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
.append("taskId", getTaskId())
.append("typeId", getTypeId())
.append("purchasePrice", getPurchasePrice())
.append("purchaseNum", getPurchaseNum())
.append("supplierId", getSupplierId())
.append("createBy", getCreateBy())
.append("productionTime", getProductionTime())
.append("createTime", getCreateTime())
.append("updateBy", getUpdateBy())
.append("updateTime", getUpdateTime())
.append("remark", getRemark())
.append("companyId", getCompanyId())
.toString();
}
}

View File

@ -0,0 +1,99 @@
package com.bonus.sgzb.material.domain;
import com.bonus.sgzb.common.core.web.domain.BaseEntity;
import io.swagger.annotations.ApiModelProperty;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
/**
* 新购验收任务
*
* @author bonus
* @date 2023-12-10
*/
public class PurchaseCheckInfo extends BaseEntity
{
private static final long serialVersionUID = 1L;
/** 任务ID */
@ApiModelProperty(value = "任务ID")
private Long taskId;
/** 采购日期 */
@ApiModelProperty(value = "采购日期")
private String purchaseTime;
/** 到货日期 */
@ApiModelProperty(value = "到货日期")
private String arrivalTime;
/** 采购员 */
@ApiModelProperty(value = "采购员")
private Long purchaser;
/** 数据所属组织 */
@ApiModelProperty(value = "数据所属组织")
private Long companyId;
public void setTaskId(Long taskId)
{
this.taskId = taskId;
}
public Long getTaskId()
{
return taskId;
}
public void setPurchaseTime(String purchaseTime)
{
this.purchaseTime = purchaseTime;
}
public String getPurchaseTime()
{
return purchaseTime;
}
public void setArrivalTime(String arrivalTime)
{
this.arrivalTime = arrivalTime;
}
public String getArrivalTime()
{
return arrivalTime;
}
public void setPurchaser(Long purchaser)
{
this.purchaser = purchaser;
}
public Long getPurchaser()
{
return purchaser;
}
public void setCompanyId(Long companyId)
{
this.companyId = companyId;
}
public Long getCompanyId()
{
return companyId;
}
@Override
public String toString() {
return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
.append("taskId", getTaskId())
.append("purchaseTime", getPurchaseTime())
.append("arrivalTime", getArrivalTime())
.append("purchaser", getPurchaser())
.append("createBy", getCreateBy())
.append("createTime", getCreateTime())
.append("updateBy", getUpdateBy())
.append("updateTime", getUpdateTime())
.append("remark", getRemark())
.append("companyId", getCompanyId())
.toString();
}
}

View File

@ -0,0 +1,127 @@
package com.bonus.sgzb.material.domain;
import com.bonus.sgzb.common.core.web.domain.BaseEntity;
import io.swagger.annotations.ApiModelProperty;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
/**
* 新购验收编号管理对象
*
* @author bonus
* @date 2023-12-10
*/
public class PurchaseMacodeInfo extends BaseEntity
{
private static final long serialVersionUID = 1L;
/** 任务ID */
@ApiModelProperty(value = "任务ID")
private Long taskId;
/** 类型ID */
@ApiModelProperty(value = "类型ID")
private Long typeId;
/** 物资编号 */
@ApiModelProperty(value = "物资编号")
private String maCode;
/** 固定资产编号 */
@ApiModelProperty(value = "固定资产编号")
private String fixCode;
/** 编号类型 */
@ApiModelProperty(value = "编号类型")
private String codeType;
/** 状态0删除1正常 */
@ApiModelProperty(value = "状态0删除1正常")
private String status;
/** 数据所属组织 */
@ApiModelProperty(value = "数据所属组织")
private Long companyId;
public void setTaskId(Long taskId)
{
this.taskId = taskId;
}
public Long getTaskId()
{
return taskId;
}
public void setTypeId(Long typeId)
{
this.typeId = typeId;
}
public Long getTypeId()
{
return typeId;
}
public void setMaCode(String maCode)
{
this.maCode = maCode;
}
public String getMaCode()
{
return maCode;
}
public void setFixCode(String fixCode)
{
this.fixCode = fixCode;
}
public String getFixCode()
{
return fixCode;
}
public void setCodeType(String codeType)
{
this.codeType = codeType;
}
public String getCodeType()
{
return codeType;
}
public void setStatus(String status)
{
this.status = status;
}
public String getStatus()
{
return status;
}
public void setCompanyId(Long companyId)
{
this.companyId = companyId;
}
public Long getCompanyId()
{
return companyId;
}
@Override
public String toString() {
return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
.append("taskId", getTaskId())
.append("typeId", getTypeId())
.append("maCode", getMaCode())
.append("fixCode", getFixCode())
.append("codeType", getCodeType())
.append("status", getStatus())
.append("createBy", getCreateBy())
.append("createTime", getCreateTime())
.append("updateBy", getUpdateBy())
.append("updateTime", getUpdateTime())
.append("remark", getRemark())
.append("companyId", getCompanyId())
.toString();
}
}

View File

@ -0,0 +1,99 @@
package com.bonus.sgzb.material.domain;
import com.bonus.sgzb.common.core.web.domain.BaseEntity;
import io.swagger.annotations.ApiModelProperty;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
/**
* 任务对象
*
* @author bonus
* @date 2023-12-10
*/
public class TmTask extends BaseEntity
{
private static final long serialVersionUID = 1L;
/** 任务ID */
@ApiModelProperty(value = "任务ID")
private Long taskId;
/** 任务类型(定义数据字典) */
@ApiModelProperty(value = "任务类型(定义数据字典)")
private Long taskType;
/** 任务状态(定义数据字典) */
@ApiModelProperty(value = "任务状态(定义数据字典)")
private Long taskStatus;
/** 编号 */
@ApiModelProperty(value = "编号")
private String code;
/** 数据所属组织 */
@ApiModelProperty(value = "数据所属组织")
private Long companyId;
public void setTaskId(Long taskId)
{
this.taskId = taskId;
}
public Long getTaskId()
{
return taskId;
}
public void setTaskType(Long taskType)
{
this.taskType = taskType;
}
public Long getTaskType()
{
return taskType;
}
public void setTaskStatus(Long taskStatus)
{
this.taskStatus = taskStatus;
}
public Long getTaskStatus()
{
return taskStatus;
}
public void setCode(String code)
{
this.code = code;
}
public String getCode()
{
return code;
}
public void setCompanyId(Long companyId)
{
this.companyId = companyId;
}
public Long getCompanyId()
{
return companyId;
}
@Override
public String toString() {
return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
.append("taskId", getTaskId())
.append("taskType", getTaskType())
.append("taskStatus", getTaskStatus())
.append("code", getCode())
.append("createBy", getCreateBy())
.append("createTime", getCreateTime())
.append("updateBy", getUpdateBy())
.append("updateTime", getUpdateTime())
.append("remark", getRemark())
.append("companyId", getCompanyId())
.toString();
}
}

View File

@ -0,0 +1,62 @@
package com.bonus.sgzb.material.mapper;
import com.bonus.sgzb.material.domain.PurchaseCheckDetails;
import java.util.List;
/**
* 新购验收任务详细purchase_check_detailsMapper接口
*
* @author bonus
* @date 2023-12-10
*/
public interface PurchaseCheckDetailsMapper
{
/**
* 查询新购验收任务详细purchase_check_details
*
* @param taskId 新购验收任务详细purchase_check_details主键
* @return 新购验收任务详细purchase_check_details
*/
public PurchaseCheckDetails selectPurchaseCheckDetailsByTaskId(Long taskId);
/**
* 查询新购验收任务详细purchase_check_details列表
*
* @param purchaseCheckDetails 新购验收任务详细purchase_check_details
* @return 新购验收任务详细purchase_check_details集合
*/
public List<PurchaseCheckDetails> selectPurchaseCheckDetailsList(PurchaseCheckDetails purchaseCheckDetails);
/**
* 新增新购验收任务详细purchase_check_details
*
* @param purchaseCheckDetails 新购验收任务详细purchase_check_details
* @return 结果
*/
public int insertPurchaseCheckDetails(PurchaseCheckDetails purchaseCheckDetails);
/**
* 修改新购验收任务详细purchase_check_details
*
* @param purchaseCheckDetails 新购验收任务详细purchase_check_details
* @return 结果
*/
public int updatePurchaseCheckDetails(PurchaseCheckDetails purchaseCheckDetails);
/**
* 删除新购验收任务详细purchase_check_details
*
* @param taskId 新购验收任务详细purchase_check_details主键
* @return 结果
*/
public int deletePurchaseCheckDetailsByTaskId(Long taskId);
/**
* 批量删除新购验收任务详细purchase_check_details
*
* @param taskIds 需要删除的数据主键集合
* @return 结果
*/
public int deletePurchaseCheckDetailsByTaskIds(Long[] taskIds);
}

View File

@ -0,0 +1,62 @@
package com.bonus.sgzb.material.mapper;
import com.bonus.sgzb.material.domain.PurchaseCheckInfo;
import java.util.List;
/**
* 新购验收任务purchase_check_infoMapper接口
*
* @author bonus
* @date 2023-12-10
*/
public interface PurchaseCheckInfoMapper
{
/**
* 查询新购验收任务purchase_check_info
*
* @param taskId 新购验收任务purchase_check_info主键
* @return 新购验收任务purchase_check_info
*/
public PurchaseCheckInfo selectPurchaseCheckInfoByTaskId(Long taskId);
/**
* 查询新购验收任务purchase_check_info列表
*
* @param purchaseCheckInfo 新购验收任务purchase_check_info
* @return 新购验收任务purchase_check_info集合
*/
public List<PurchaseCheckInfo> selectPurchaseCheckInfoList(PurchaseCheckInfo purchaseCheckInfo);
/**
* 新增新购验收任务purchase_check_info
*
* @param purchaseCheckInfo 新购验收任务purchase_check_info
* @return 结果
*/
public int insertPurchaseCheckInfo(PurchaseCheckInfo purchaseCheckInfo);
/**
* 修改新购验收任务purchase_check_info
*
* @param purchaseCheckInfo 新购验收任务purchase_check_info
* @return 结果
*/
public int updatePurchaseCheckInfo(PurchaseCheckInfo purchaseCheckInfo);
/**
* 删除新购验收任务purchase_check_info
*
* @param taskId 新购验收任务purchase_check_info主键
* @return 结果
*/
public int deletePurchaseCheckInfoByTaskId(Long taskId);
/**
* 批量删除新购验收任务purchase_check_info
*
* @param taskIds 需要删除的数据主键集合
* @return 结果
*/
public int deletePurchaseCheckInfoByTaskIds(Long[] taskIds);
}

View File

@ -0,0 +1,62 @@
package com.bonus.sgzb.material.mapper;
import com.bonus.sgzb.material.domain.PurchaseMacodeInfo;
import java.util.List;
/**
* 新购验收编号管理purchase_macode_infoMapper接口
*
* @author bonus
* @date 2023-12-10
*/
public interface PurchaseMacodeInfoMapper
{
/**
* 查询新购验收编号管理purchase_macode_info
*
* @param taskId 新购验收编号管理purchase_macode_info主键
* @return 新购验收编号管理purchase_macode_info
*/
public PurchaseMacodeInfo selectPurchaseMacodeInfoByTaskId(Long taskId);
/**
* 查询新购验收编号管理purchase_macode_info列表
*
* @param purchaseMacodeInfo 新购验收编号管理purchase_macode_info
* @return 新购验收编号管理purchase_macode_info集合
*/
public List<PurchaseMacodeInfo> selectPurchaseMacodeInfoList(PurchaseMacodeInfo purchaseMacodeInfo);
/**
* 新增新购验收编号管理purchase_macode_info
*
* @param purchaseMacodeInfo 新购验收编号管理purchase_macode_info
* @return 结果
*/
public int insertPurchaseMacodeInfo(PurchaseMacodeInfo purchaseMacodeInfo);
/**
* 修改新购验收编号管理purchase_macode_info
*
* @param purchaseMacodeInfo 新购验收编号管理purchase_macode_info
* @return 结果
*/
public int updatePurchaseMacodeInfo(PurchaseMacodeInfo purchaseMacodeInfo);
/**
* 删除新购验收编号管理purchase_macode_info
*
* @param taskId 新购验收编号管理purchase_macode_info主键
* @return 结果
*/
public int deletePurchaseMacodeInfoByTaskId(Long taskId);
/**
* 批量删除新购验收编号管理purchase_macode_info
*
* @param taskIds 需要删除的数据主键集合
* @return 结果
*/
public int deletePurchaseMacodeInfoByTaskIds(Long[] taskIds);
}

View File

@ -0,0 +1,62 @@
package com.bonus.sgzb.material.service;
import com.bonus.sgzb.material.domain.PurchaseCheckDetails;
import java.util.List;
/**
* 新购验收任务详细purchase_check_detailsService接口
*
* @author bonus
* @date 2023-12-10
*/
public interface IPurchaseCheckDetailsService
{
/**
* 查询新购验收任务详细purchase_check_details
*
* @param taskId 新购验收任务详细purchase_check_details主键
* @return 新购验收任务详细purchase_check_details
*/
public PurchaseCheckDetails selectPurchaseCheckDetailsByTaskId(Long taskId);
/**
* 查询新购验收任务详细purchase_check_details列表
*
* @param purchaseCheckDetails 新购验收任务详细purchase_check_details
* @return 新购验收任务详细purchase_check_details集合
*/
public List<PurchaseCheckDetails> selectPurchaseCheckDetailsList(PurchaseCheckDetails purchaseCheckDetails);
/**
* 新增新购验收任务详细purchase_check_details
*
* @param purchaseCheckDetails 新购验收任务详细purchase_check_details
* @return 结果
*/
public int insertPurchaseCheckDetails(PurchaseCheckDetails purchaseCheckDetails);
/**
* 修改新购验收任务详细purchase_check_details
*
* @param purchaseCheckDetails 新购验收任务详细purchase_check_details
* @return 结果
*/
public int updatePurchaseCheckDetails(PurchaseCheckDetails purchaseCheckDetails);
/**
* 批量删除新购验收任务详细purchase_check_details
*
* @param taskIds 需要删除的新购验收任务详细purchase_check_details主键集合
* @return 结果
*/
public int deletePurchaseCheckDetailsByTaskIds(Long[] taskIds);
/**
* 删除新购验收任务详细purchase_check_details信息
*
* @param taskId 新购验收任务详细purchase_check_details主键
* @return 结果
*/
public int deletePurchaseCheckDetailsByTaskId(Long taskId);
}

View File

@ -0,0 +1,62 @@
package com.bonus.sgzb.material.service;
import com.bonus.sgzb.material.domain.PurchaseCheckInfo;
import java.util.List;
/**
* 新购验收任务purchase_check_infoService接口
*
* @author bonus
* @date 2023-12-10
*/
public interface IPurchaseCheckInfoService
{
/**
* 查询新购验收任务purchase_check_info
*
* @param taskId 新购验收任务purchase_check_info主键
* @return 新购验收任务purchase_check_info
*/
public PurchaseCheckInfo selectPurchaseCheckInfoByTaskId(Long taskId);
/**
* 查询新购验收任务purchase_check_info列表
*
* @param purchaseCheckInfo 新购验收任务purchase_check_info
* @return 新购验收任务purchase_check_info集合
*/
public List<PurchaseCheckInfo> selectPurchaseCheckInfoList(PurchaseCheckInfo purchaseCheckInfo);
/**
* 新增新购验收任务purchase_check_info
*
* @param purchaseCheckInfo 新购验收任务purchase_check_info
* @return 结果
*/
public int insertPurchaseCheckInfo(PurchaseCheckInfo purchaseCheckInfo);
/**
* 修改新购验收任务purchase_check_info
*
* @param purchaseCheckInfo 新购验收任务purchase_check_info
* @return 结果
*/
public int updatePurchaseCheckInfo(PurchaseCheckInfo purchaseCheckInfo);
/**
* 批量删除新购验收任务purchase_check_info
*
* @param taskIds 需要删除的新购验收任务purchase_check_info主键集合
* @return 结果
*/
public int deletePurchaseCheckInfoByTaskIds(Long[] taskIds);
/**
* 删除新购验收任务purchase_check_info信息
*
* @param taskId 新购验收任务purchase_check_info主键
* @return 结果
*/
public int deletePurchaseCheckInfoByTaskId(Long taskId);
}

View File

@ -0,0 +1,62 @@
package com.bonus.sgzb.material.service;
import com.bonus.sgzb.material.domain.PurchaseMacodeInfo;
import java.util.List;
/**
* 新购验收编号管理purchase_macode_infoService接口
*
* @author bonus
* @date 2023-12-10
*/
public interface IPurchaseMacodeInfoService
{
/**
* 查询新购验收编号管理purchase_macode_info
*
* @param taskId 新购验收编号管理purchase_macode_info主键
* @return 新购验收编号管理purchase_macode_info
*/
public PurchaseMacodeInfo selectPurchaseMacodeInfoByTaskId(Long taskId);
/**
* 查询新购验收编号管理purchase_macode_info列表
*
* @param purchaseMacodeInfo 新购验收编号管理purchase_macode_info
* @return 新购验收编号管理purchase_macode_info集合
*/
public List<PurchaseMacodeInfo> selectPurchaseMacodeInfoList(PurchaseMacodeInfo purchaseMacodeInfo);
/**
* 新增新购验收编号管理purchase_macode_info
*
* @param purchaseMacodeInfo 新购验收编号管理purchase_macode_info
* @return 结果
*/
public int insertPurchaseMacodeInfo(PurchaseMacodeInfo purchaseMacodeInfo);
/**
* 修改新购验收编号管理purchase_macode_info
*
* @param purchaseMacodeInfo 新购验收编号管理purchase_macode_info
* @return 结果
*/
public int updatePurchaseMacodeInfo(PurchaseMacodeInfo purchaseMacodeInfo);
/**
* 批量删除新购验收编号管理purchase_macode_info
*
* @param taskIds 需要删除的新购验收编号管理purchase_macode_info主键集合
* @return 结果
*/
public int deletePurchaseMacodeInfoByTaskIds(Long[] taskIds);
/**
* 删除新购验收编号管理purchase_macode_info信息
*
* @param taskId 新购验收编号管理purchase_macode_info主键
* @return 结果
*/
public int deletePurchaseMacodeInfoByTaskId(Long taskId);
}

View File

@ -0,0 +1,97 @@
package com.bonus.sgzb.material.service.impl;
import java.util.List;
import com.bonus.sgzb.material.domain.PurchaseCheckDetails;
import com.bonus.sgzb.material.mapper.PurchaseCheckDetailsMapper;
import com.bonus.sgzb.material.service.IPurchaseCheckDetailsService;
import com.bonus.sgzb.common.core.utils.DateUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
/**
* 新购验收任务详细purchase_check_detailsService业务层处理
*
* @author bonus
* @date 2023-12-10
*/
@Service
public class PurchaseCheckDetailsServiceImpl implements IPurchaseCheckDetailsService
{
@Autowired
private PurchaseCheckDetailsMapper purchaseCheckDetailsMapper;
/**
* 查询新购验收任务详细purchase_check_details
*
* @param taskId 新购验收任务详细purchase_check_details主键
* @return 新购验收任务详细purchase_check_details
*/
@Override
public PurchaseCheckDetails selectPurchaseCheckDetailsByTaskId(Long taskId)
{
return purchaseCheckDetailsMapper.selectPurchaseCheckDetailsByTaskId(taskId);
}
/**
* 查询新购验收任务详细purchase_check_details列表
*
* @param purchaseCheckDetails 新购验收任务详细purchase_check_details
* @return 新购验收任务详细purchase_check_details
*/
@Override
public List<PurchaseCheckDetails> selectPurchaseCheckDetailsList(PurchaseCheckDetails purchaseCheckDetails)
{
return purchaseCheckDetailsMapper.selectPurchaseCheckDetailsList(purchaseCheckDetails);
}
/**
* 新增新购验收任务详细purchase_check_details
*
* @param purchaseCheckDetails 新购验收任务详细purchase_check_details
* @return 结果
*/
@Override
public int insertPurchaseCheckDetails(PurchaseCheckDetails purchaseCheckDetails)
{
purchaseCheckDetails.setCreateTime(DateUtils.getNowDate());
return purchaseCheckDetailsMapper.insertPurchaseCheckDetails(purchaseCheckDetails);
}
/**
* 修改新购验收任务详细purchase_check_details
*
* @param purchaseCheckDetails 新购验收任务详细purchase_check_details
* @return 结果
*/
@Override
public int updatePurchaseCheckDetails(PurchaseCheckDetails purchaseCheckDetails)
{
purchaseCheckDetails.setUpdateTime(DateUtils.getNowDate());
return purchaseCheckDetailsMapper.updatePurchaseCheckDetails(purchaseCheckDetails);
}
/**
* 批量删除新购验收任务详细purchase_check_details
*
* @param taskIds 需要删除的新购验收任务详细purchase_check_details主键
* @return 结果
*/
@Override
public int deletePurchaseCheckDetailsByTaskIds(Long[] taskIds)
{
return purchaseCheckDetailsMapper.deletePurchaseCheckDetailsByTaskIds(taskIds);
}
/**
* 删除新购验收任务详细purchase_check_details信息
*
* @param taskId 新购验收任务详细purchase_check_details主键
* @return 结果
*/
@Override
public int deletePurchaseCheckDetailsByTaskId(Long taskId)
{
return purchaseCheckDetailsMapper.deletePurchaseCheckDetailsByTaskId(taskId);
}
}

View File

@ -0,0 +1,101 @@
package com.bonus.sgzb.material.service.impl;
import java.util.List;
import com.bonus.sgzb.material.domain.PurchaseCheckInfo;
import com.bonus.sgzb.material.domain.TmTask;
import com.bonus.sgzb.material.mapper.PurchaseCheckInfoMapper;
import com.bonus.sgzb.material.service.IPurchaseCheckInfoService;
import com.bonus.sgzb.common.core.utils.DateUtils;
import org.springframework.stereotype.Service;
import javax.annotation.Resource;
/**
* 新购验收任务Service业务层处理
*
* @author bonus
* @date 2023-12-10
*/
@Service
public class PurchaseCheckInfoServiceImpl implements IPurchaseCheckInfoService
{
@Resource
private PurchaseCheckInfoMapper purchaseCheckInfoMapper;
/**
* 查询新购验收任务
*
* @param taskId 新购验收任务主键
* @return 新购验收任务
*/
@Override
public PurchaseCheckInfo selectPurchaseCheckInfoByTaskId(Long taskId)
{
return purchaseCheckInfoMapper.selectPurchaseCheckInfoByTaskId(taskId);
}
/**
* 查询新购验收任务列表
*
* @param purchaseCheckInfo 新购验收任务
* @return 新购验收任务
*/
@Override
public List<PurchaseCheckInfo> selectPurchaseCheckInfoList(PurchaseCheckInfo purchaseCheckInfo)
{
return purchaseCheckInfoMapper.selectPurchaseCheckInfoList(purchaseCheckInfo);
}
/**
* 新增新购验收任务
*
* @param purchaseCheckInfo 新购验收任务
* @return 结果
*/
@Override
public int insertPurchaseCheckInfo(PurchaseCheckInfo purchaseCheckInfo)
{
TmTask task = new TmTask();
purchaseCheckInfo.setCreateTime(DateUtils.getNowDate());
return purchaseCheckInfoMapper.insertPurchaseCheckInfo(purchaseCheckInfo);
}
/**
* 修改新购验收任务
*
* @param purchaseCheckInfo 新购验收任务
* @return 结果
*/
@Override
public int updatePurchaseCheckInfo(PurchaseCheckInfo purchaseCheckInfo)
{
purchaseCheckInfo.setUpdateTime(DateUtils.getNowDate());
return purchaseCheckInfoMapper.updatePurchaseCheckInfo(purchaseCheckInfo);
}
/**
* 批量删除新购验收任务
*
* @param taskIds 需要删除的新购验收任务主键
* @return 结果
*/
@Override
public int deletePurchaseCheckInfoByTaskIds(Long[] taskIds)
{
return purchaseCheckInfoMapper.deletePurchaseCheckInfoByTaskIds(taskIds);
}
/**
* 删除新购验收任务信息
*
* @param taskId 新购验收任务主键
* @return 结果
*/
@Override
public int deletePurchaseCheckInfoByTaskId(Long taskId)
{
return purchaseCheckInfoMapper.deletePurchaseCheckInfoByTaskId(taskId);
}
}

View File

@ -0,0 +1,98 @@
package com.bonus.sgzb.material.service.impl;
import java.util.List;
import com.bonus.sgzb.material.domain.PurchaseMacodeInfo;
import com.bonus.sgzb.material.mapper.PurchaseMacodeInfoMapper;
import com.bonus.sgzb.material.service.IPurchaseMacodeInfoService;
import com.bonus.sgzb.common.core.utils.DateUtils;
import org.springframework.stereotype.Service;
import javax.annotation.Resource;
/**
* 新购验收编号管理Service业务层处理
*
* @author bonus
* @date 2023-12-10
*/
@Service
public class PurchaseMacodeInfoServiceImpl implements IPurchaseMacodeInfoService
{
@Resource
private PurchaseMacodeInfoMapper purchaseMacodeInfoMapper;
/**
* 查询新购验收编号管理
*
* @param taskId 新购验收编号管理主键
* @return 新购验收编号管理
*/
@Override
public PurchaseMacodeInfo selectPurchaseMacodeInfoByTaskId(Long taskId)
{
return purchaseMacodeInfoMapper.selectPurchaseMacodeInfoByTaskId(taskId);
}
/**
* 查询新购验收编号管理列表
*
* @param purchaseMacodeInfo 新购验收编号管理
* @return 新购验收编号管理
*/
@Override
public List<PurchaseMacodeInfo> selectPurchaseMacodeInfoList(PurchaseMacodeInfo purchaseMacodeInfo)
{
return purchaseMacodeInfoMapper.selectPurchaseMacodeInfoList(purchaseMacodeInfo);
}
/**
* 新增新购验收编号管理
*
* @param purchaseMacodeInfo 新购验收编号管理
* @return 结果
*/
@Override
public int insertPurchaseMacodeInfo(PurchaseMacodeInfo purchaseMacodeInfo)
{
purchaseMacodeInfo.setCreateTime(DateUtils.getNowDate());
return purchaseMacodeInfoMapper.insertPurchaseMacodeInfo(purchaseMacodeInfo);
}
/**
* 修改新购验收编号管理
*
* @param purchaseMacodeInfo 新购验收编号管理
* @return 结果
*/
@Override
public int updatePurchaseMacodeInfo(PurchaseMacodeInfo purchaseMacodeInfo)
{
purchaseMacodeInfo.setUpdateTime(DateUtils.getNowDate());
return purchaseMacodeInfoMapper.updatePurchaseMacodeInfo(purchaseMacodeInfo);
}
/**
* 批量删除新购验收编号管理
*
* @param taskIds 需要删除的新购验收编号管理主键
* @return 结果
*/
@Override
public int deletePurchaseMacodeInfoByTaskIds(Long[] taskIds)
{
return purchaseMacodeInfoMapper.deletePurchaseMacodeInfoByTaskIds(taskIds);
}
/**
* 删除新购验收编号管理信息
*
* @param taskId 新购验收编号管理主键
* @return 结果
*/
@Override
public int deletePurchaseMacodeInfoByTaskId(Long taskId)
{
return purchaseMacodeInfoMapper.deletePurchaseMacodeInfoByTaskId(taskId);
}
}

View File

@ -0,0 +1,101 @@
<?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.bonus.sgzb.material.mapper.PurchaseCheckDetailsMapper">
<resultMap type="com.bonus.sgzb.material.domain.PurchaseCheckDetails" id="PurchaseCheckDetailsResult">
<result property="taskId" column="task_id" />
<result property="typeId" column="type_id" />
<result property="purchasePrice" column="purchase_price" />
<result property="purchaseNum" column="purchase_num" />
<result property="supplierId" column="supplier_id" />
<result property="createBy" column="create_by" />
<result property="productionTime" column="production_time" />
<result property="createTime" column="create_time" />
<result property="updateBy" column="update_by" />
<result property="updateTime" column="update_time" />
<result property="remark" column="remark" />
<result property="companyId" column="company_id" />
</resultMap>
<sql id="selectPurchaseCheckDetailsVo">
select task_id, type_id, purchase_price, purchase_num, supplier_id, create_by, production_time, create_time, update_by, update_time, remark, company_id from purchase_check_details
</sql>
<select id="selectPurchaseCheckDetailsList" parameterType="com.bonus.sgzb.material.domain.PurchaseCheckDetails" resultMap="PurchaseCheckDetailsResult">
<include refid="selectPurchaseCheckDetailsVo"/>
<where>
<if test="typeId != null "> and type_id = #{typeId}</if>
<if test="purchasePrice != null and purchasePrice != ''"> and purchase_price = #{purchasePrice}</if>
<if test="purchaseNum != null "> and purchase_num = #{purchaseNum}</if>
<if test="supplierId != null "> and supplier_id = #{supplierId}</if>
<if test="productionTime != null "> and production_time = #{productionTime}</if>
<if test="companyId != null "> and company_id = #{companyId}</if>
</where>
</select>
<select id="selectPurchaseCheckDetailsByTaskId" parameterType="Long" resultMap="PurchaseCheckDetailsResult">
<include refid="selectPurchaseCheckDetailsVo"/>
where task_id = #{taskId}
</select>
<insert id="insertPurchaseCheckDetails" parameterType="com.bonus.sgzb.material.domain.PurchaseCheckDetails" useGeneratedKeys="true" keyProperty="taskId">
insert into purchase_check_details
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="typeId != null">type_id,</if>
<if test="purchasePrice != null">purchase_price,</if>
<if test="purchaseNum != null">purchase_num,</if>
<if test="supplierId != null">supplier_id,</if>
<if test="createBy != null">create_by,</if>
<if test="productionTime != null">production_time,</if>
<if test="createTime != null">create_time,</if>
<if test="updateBy != null">update_by,</if>
<if test="updateTime != null">update_time,</if>
<if test="remark != null">remark,</if>
<if test="companyId != null">company_id,</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="typeId != null">#{typeId},</if>
<if test="purchasePrice != null">#{purchasePrice},</if>
<if test="purchaseNum != null">#{purchaseNum},</if>
<if test="supplierId != null">#{supplierId},</if>
<if test="createBy != null">#{createBy},</if>
<if test="productionTime != null">#{productionTime},</if>
<if test="createTime != null">#{createTime},</if>
<if test="updateBy != null">#{updateBy},</if>
<if test="updateTime != null">#{updateTime},</if>
<if test="remark != null">#{remark},</if>
<if test="companyId != null">#{companyId},</if>
</trim>
</insert>
<update id="updatePurchaseCheckDetails" parameterType="com.bonus.sgzb.material.domain.PurchaseCheckDetails">
update purchase_check_details
<trim prefix="SET" suffixOverrides=",">
<if test="typeId != null">type_id = #{typeId},</if>
<if test="purchasePrice != null">purchase_price = #{purchasePrice},</if>
<if test="purchaseNum != null">purchase_num = #{purchaseNum},</if>
<if test="supplierId != null">supplier_id = #{supplierId},</if>
<if test="createBy != null">create_by = #{createBy},</if>
<if test="productionTime != null">production_time = #{productionTime},</if>
<if test="createTime != null">create_time = #{createTime},</if>
<if test="updateBy != null">update_by = #{updateBy},</if>
<if test="updateTime != null">update_time = #{updateTime},</if>
<if test="remark != null">remark = #{remark},</if>
<if test="companyId != null">company_id = #{companyId},</if>
</trim>
where task_id = #{taskId}
</update>
<delete id="deletePurchaseCheckDetailsByTaskId" parameterType="Long">
delete from purchase_check_details where task_id = #{taskId}
</delete>
<delete id="deletePurchaseCheckDetailsByTaskIds" parameterType="String">
delete from purchase_check_details where task_id in
<foreach item="taskId" collection="array" open="(" separator="," close=")">
#{taskId}
</foreach>
</delete>
</mapper>

View File

@ -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.bonus.sgzb.material.mapper.PurchaseCheckInfoMapper">
<resultMap type="com.bonus.sgzb.material.domain.PurchaseCheckInfo" id="PurchaseCheckInfoResult">
<result property="taskId" column="task_id" />
<result property="purchaseTime" column="purchase_time" />
<result property="arrivalTime" column="arrival_time" />
<result property="purchaser" column="purchaser" />
<result property="createBy" column="create_by" />
<result property="createTime" column="create_time" />
<result property="updateBy" column="update_by" />
<result property="updateTime" column="update_time" />
<result property="remark" column="remark" />
<result property="companyId" column="company_id" />
</resultMap>
<sql id="selectPurchaseCheckInfoVo">
select task_id, purchase_time, arrival_time, purchaser, create_by, create_time, update_by, update_time, remark, company_id from purchase_check_info
</sql>
<select id="selectPurchaseCheckInfoList" parameterType="com.bonus.sgzb.material.domain.PurchaseCheckInfo" resultMap="PurchaseCheckInfoResult">
<include refid="selectPurchaseCheckInfoVo"/>
<where>
<if test="purchaseTime != null and purchaseTime != ''"> and purchase_time = #{purchaseTime}</if>
<if test="arrivalTime != null and arrivalTime != ''"> and arrival_time = #{arrivalTime}</if>
<if test="purchaser != null "> and purchaser = #{purchaser}</if>
<if test="companyId != null "> and company_id = #{companyId}</if>
</where>
</select>
<select id="selectPurchaseCheckInfoByTaskId" parameterType="Long" resultMap="PurchaseCheckInfoResult">
<include refid="selectPurchaseCheckInfoVo"/>
where task_id = #{taskId}
</select>
<insert id="insertPurchaseCheckInfo" parameterType="com.bonus.sgzb.material.domain.PurchaseCheckInfo" useGeneratedKeys="true" keyProperty="taskId">
insert into purchase_check_info
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="purchaseTime != null and purchaseTime != ''">purchase_time,</if>
<if test="arrivalTime != null">arrival_time,</if>
<if test="purchaser != null">purchaser,</if>
<if test="createBy != null">create_by,</if>
<if test="createTime != null">create_time,</if>
<if test="updateBy != null">update_by,</if>
<if test="updateTime != null">update_time,</if>
<if test="remark != null">remark,</if>
<if test="companyId != null">company_id,</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="purchaseTime != null and purchaseTime != ''">#{purchaseTime},</if>
<if test="arrivalTime != null">#{arrivalTime},</if>
<if test="purchaser != null">#{purchaser},</if>
<if test="createBy != null">#{createBy},</if>
<if test="createTime != null">#{createTime},</if>
<if test="updateBy != null">#{updateBy},</if>
<if test="updateTime != null">#{updateTime},</if>
<if test="remark != null">#{remark},</if>
<if test="companyId != null">#{companyId},</if>
</trim>
</insert>
<update id="updatePurchaseCheckInfo" parameterType="com.bonus.sgzb.material.domain.PurchaseCheckInfo">
update purchase_check_info
<trim prefix="SET" suffixOverrides=",">
<if test="purchaseTime != null and purchaseTime != ''">purchase_time = #{purchaseTime},</if>
<if test="arrivalTime != null">arrival_time = #{arrivalTime},</if>
<if test="purchaser != null">purchaser = #{purchaser},</if>
<if test="createBy != null">create_by = #{createBy},</if>
<if test="createTime != null">create_time = #{createTime},</if>
<if test="updateBy != null">update_by = #{updateBy},</if>
<if test="updateTime != null">update_time = #{updateTime},</if>
<if test="remark != null">remark = #{remark},</if>
<if test="companyId != null">company_id = #{companyId},</if>
</trim>
where task_id = #{taskId}
</update>
<delete id="deletePurchaseCheckInfoByTaskId" parameterType="Long">
delete from purchase_check_info where task_id = #{taskId}
</delete>
<delete id="deletePurchaseCheckInfoByTaskIds" parameterType="String">
delete from purchase_check_info where task_id in
<foreach item="taskId" collection="array" open="(" separator="," close=")">
#{taskId}
</foreach>
</delete>
</mapper>

View File

@ -0,0 +1,101 @@
<?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.bonus.sgzb.material.mapper.PurchaseMacodeInfoMapper">
<resultMap type="com.bonus.sgzb.material.domain.PurchaseMacodeInfo" id="PurchaseMacodeInfoResult">
<result property="taskId" column="task_id" />
<result property="typeId" column="type_id" />
<result property="maCode" column="ma_code" />
<result property="fixCode" column="fix_code" />
<result property="codeType" column="code_type" />
<result property="status" column="status" />
<result property="createBy" column="create_by" />
<result property="createTime" column="create_time" />
<result property="updateBy" column="update_by" />
<result property="updateTime" column="update_time" />
<result property="remark" column="remark" />
<result property="companyId" column="company_id" />
</resultMap>
<sql id="selectPurchaseMacodeInfoVo">
select task_id, type_id, ma_code, fix_code, code_type, status, create_by, create_time, update_by, update_time, remark, company_id from purchase_macode_info
</sql>
<select id="selectPurchaseMacodeInfoList" parameterType="com.bonus.sgzb.material.domain.PurchaseMacodeInfo" resultMap="PurchaseMacodeInfoResult">
<include refid="selectPurchaseMacodeInfoVo"/>
<where>
<if test="typeId != null "> and type_id = #{typeId}</if>
<if test="maCode != null and maCode != ''"> and ma_code = #{maCode}</if>
<if test="fixCode != null and fixCode != ''"> and fix_code = #{fixCode}</if>
<if test="codeType != null and codeType != ''"> and code_type = #{codeType}</if>
<if test="status != null and status != ''"> and status = #{status}</if>
<if test="companyId != null "> and company_id = #{companyId}</if>
</where>
</select>
<select id="selectPurchaseMacodeInfoByTaskId" parameterType="Long" resultMap="PurchaseMacodeInfoResult">
<include refid="selectPurchaseMacodeInfoVo"/>
where task_id = #{taskId}
</select>
<insert id="insertPurchaseMacodeInfo" parameterType="com.bonus.sgzb.material.domain.PurchaseMacodeInfo" useGeneratedKeys="true" keyProperty="taskId">
insert into purchase_macode_info
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="typeId != null">type_id,</if>
<if test="maCode != null">ma_code,</if>
<if test="fixCode != null">fix_code,</if>
<if test="codeType != null">code_type,</if>
<if test="status != null">status,</if>
<if test="createBy != null">create_by,</if>
<if test="createTime != null">create_time,</if>
<if test="updateBy != null">update_by,</if>
<if test="updateTime != null">update_time,</if>
<if test="remark != null">remark,</if>
<if test="companyId != null">company_id,</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="typeId != null">#{typeId},</if>
<if test="maCode != null">#{maCode},</if>
<if test="fixCode != null">#{fixCode},</if>
<if test="codeType != null">#{codeType},</if>
<if test="status != null">#{status},</if>
<if test="createBy != null">#{createBy},</if>
<if test="createTime != null">#{createTime},</if>
<if test="updateBy != null">#{updateBy},</if>
<if test="updateTime != null">#{updateTime},</if>
<if test="remark != null">#{remark},</if>
<if test="companyId != null">#{companyId},</if>
</trim>
</insert>
<update id="updatePurchaseMacodeInfo" parameterType="com.bonus.sgzb.material.domain.PurchaseMacodeInfo">
update purchase_macode_info
<trim prefix="SET" suffixOverrides=",">
<if test="typeId != null">type_id = #{typeId},</if>
<if test="maCode != null">ma_code = #{maCode},</if>
<if test="fixCode != null">fix_code = #{fixCode},</if>
<if test="codeType != null">code_type = #{codeType},</if>
<if test="status != null">status = #{status},</if>
<if test="createBy != null">create_by = #{createBy},</if>
<if test="createTime != null">create_time = #{createTime},</if>
<if test="updateBy != null">update_by = #{updateBy},</if>
<if test="updateTime != null">update_time = #{updateTime},</if>
<if test="remark != null">remark = #{remark},</if>
<if test="companyId != null">company_id = #{companyId},</if>
</trim>
where task_id = #{taskId}
</update>
<delete id="deletePurchaseMacodeInfoByTaskId" parameterType="Long">
delete from purchase_macode_info where task_id = #{taskId}
</delete>
<delete id="deletePurchaseMacodeInfoByTaskIds" parameterType="String">
delete from purchase_macode_info where task_id in
<foreach item="taskId" collection="array" open="(" separator="," close=")">
#{taskId}
</foreach>
</delete>
</mapper>

View File

@ -0,0 +1,36 @@
package com.bonus.sgzb.settlement;
import com.bonus.sgzb.common.security.annotation.EnableCustomConfig;
import com.bonus.sgzb.common.security.annotation.EnableRyFeignClients;
import com.bonus.sgzb.common.swagger.annotation.EnableCustomSwagger2;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;
/**
* 文件服务
*
* @author ruoyi
*/
@EnableCustomSwagger2
@SpringBootApplication(exclude = {DataSourceAutoConfiguration.class})
@EnableCustomConfig
@EnableRyFeignClients
public class SgzbSettlementApplication
{
public static void main(String[] args)
{
SpringApplication.run(SgzbSettlementApplication.class, args);
System.out.println("(♥◠‿◠)ノ゙ 基础管理模块启动成功 ლ(´ڡ`ლ)゙ \n" +
" .-------. ____ __ \n" +
" | _ _ \\ \\ \\ / / \n" +
" | ( ' ) | \\ _. / ' \n" +
" |(_ o _) / _( )_ .' \n" +
" | (_,_).' __ ___(_ o _)' \n" +
" | |\\ \\ | || |(_,_)' \n" +
" | | \\ `' /| `-' / \n" +
" | | \\ / \\ / \n" +
" ''-' `'-' `-..-' ");
}
}