md
This commit is contained in:
parent
d585f3d7dc
commit
8da8197f45
@ -0,0 +1,134 @@
|
||||
|
||||
/**
|
||||
* @Project: emis
|
||||
* @Title: EmisBaseInvoiceInfoController.java
|
||||
* @author linfso
|
||||
* @date 2024-07-21 13:31:27
|
||||
* @Copyright: ShangHai Duta 2022 All rights reserved.
|
||||
* @version v1.0
|
||||
* @Description: <p> 公司开票信息 控制器 </p>
|
||||
*/
|
||||
|
||||
package com.xdadan.erp.web.emis;
|
||||
|
||||
import java.util.List;
|
||||
import javax.servlet.http.HttpServletResponse;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.security.access.prepost.PreAuthorize;
|
||||
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.xdadan.erp.common.annotation.Log;
|
||||
import com.xdadan.erp.common.core.controller.BaseController;
|
||||
import com.xdadan.erp.common.core.domain.AjaxResult;
|
||||
import com.xdadan.erp.common.core.page.TableDataInfo;
|
||||
import com.xdadan.erp.common.enums.BusinessType;
|
||||
import com.xdadan.erp.common.utils.StringUtils;
|
||||
import com.xdadan.erp.common.utils.poi.ExcelUtil;
|
||||
|
||||
import com.xdadan.erp.emis.domain.EmisBaseInvoiceInfo;
|
||||
import com.xdadan.erp.emis.service.IEmisBaseInvoiceInfoService;
|
||||
|
||||
/**
|
||||
* 公司开票信息Controller
|
||||
*
|
||||
* @author linfso
|
||||
* @date 2024-07-21 13:31:27
|
||||
*/
|
||||
@RestController
|
||||
@RequestMapping("/emis/emisBaseInvoiceInfo")
|
||||
public class EmisBaseInvoiceInfoController extends BaseController
|
||||
{
|
||||
@Autowired
|
||||
private IEmisBaseInvoiceInfoService emisBaseInvoiceInfoService;
|
||||
|
||||
/**
|
||||
* 查询公司开票信息列表
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('emis:emisBaseInvoiceInfo:list')")
|
||||
@GetMapping("/list")
|
||||
public TableDataInfo list(EmisBaseInvoiceInfo emisBaseInvoiceInfo)
|
||||
{
|
||||
startPage();
|
||||
List<EmisBaseInvoiceInfo> list = emisBaseInvoiceInfoService.selectEmisBaseInvoiceInfoList(emisBaseInvoiceInfo);
|
||||
return getDataTable(list);
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* 检查是否重复
|
||||
*
|
||||
* @param emisBaseInvoiceInfo
|
||||
* @return 数量
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('emis:emisBaseInvoiceInfo:list')")
|
||||
@GetMapping("/checkUnique")
|
||||
public AjaxResult checkUnique(EmisBaseInvoiceInfo emisBaseInvoiceInfo)
|
||||
{
|
||||
int cnt=emisBaseInvoiceInfoService.checkUnique(emisBaseInvoiceInfo);
|
||||
return AjaxResult.success("检查成功",cnt);
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* 导出公司开票信息列表
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('emis:emisBaseInvoiceInfo:export')")
|
||||
@Log(title = "公司开票信息", businessType = BusinessType.EXPORT)
|
||||
@PostMapping("/export")
|
||||
public void export(HttpServletResponse response, EmisBaseInvoiceInfo emisBaseInvoiceInfo)
|
||||
{
|
||||
List<EmisBaseInvoiceInfo> list = emisBaseInvoiceInfoService.selectEmisBaseInvoiceInfoList(emisBaseInvoiceInfo);
|
||||
ExcelUtil<EmisBaseInvoiceInfo> util = new ExcelUtil<EmisBaseInvoiceInfo>(EmisBaseInvoiceInfo.class);
|
||||
util.exportExcel(response, list, "公司开票信息数据");
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取公司开票信息详细信息
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('emis:emisBaseInvoiceInfo:query')")
|
||||
@GetMapping(value = "/{id}")
|
||||
public AjaxResult getInfo(@PathVariable("id") Long id)
|
||||
{
|
||||
return AjaxResult.success(emisBaseInvoiceInfoService.selectEmisBaseInvoiceInfoById(id));
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增公司开票信息
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('emis:emisBaseInvoiceInfo:add')")
|
||||
@Log(title = "公司开票信息", businessType = BusinessType.INSERT)
|
||||
@PostMapping
|
||||
public AjaxResult add(@RequestBody EmisBaseInvoiceInfo emisBaseInvoiceInfo)
|
||||
{
|
||||
return toAjax(emisBaseInvoiceInfoService.insertEmisBaseInvoiceInfo(emisBaseInvoiceInfo));
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改公司开票信息
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('emis:emisBaseInvoiceInfo:edit')")
|
||||
@Log(title = "公司开票信息", businessType = BusinessType.UPDATE)
|
||||
@PutMapping
|
||||
public AjaxResult edit(@RequestBody EmisBaseInvoiceInfo emisBaseInvoiceInfo)
|
||||
{
|
||||
return toAjax(emisBaseInvoiceInfoService.updateEmisBaseInvoiceInfo(emisBaseInvoiceInfo));
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除公司开票信息
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('emis:emisBaseInvoiceInfo:remove')")
|
||||
@Log(title = "公司开票信息", businessType = BusinessType.DELETE)
|
||||
@DeleteMapping("/{ids}")
|
||||
public AjaxResult remove(@PathVariable Long[] ids)
|
||||
{
|
||||
return toAjax(emisBaseInvoiceInfoService.deleteEmisBaseInvoiceInfoByIds(ids));
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,134 @@
|
||||
|
||||
/**
|
||||
* @Project: emis
|
||||
* @Title: EmisCustomerInvoiceInfoController.java
|
||||
* @author linfso
|
||||
* @date 2024-07-21 13:31:25
|
||||
* @Copyright: ShangHai Duta 2022 All rights reserved.
|
||||
* @version v1.0
|
||||
* @Description: <p> 客户开票信息记录表 控制器 </p>
|
||||
*/
|
||||
|
||||
package com.xdadan.erp.web.emis;
|
||||
|
||||
import java.util.List;
|
||||
import javax.servlet.http.HttpServletResponse;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.security.access.prepost.PreAuthorize;
|
||||
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.xdadan.erp.common.annotation.Log;
|
||||
import com.xdadan.erp.common.core.controller.BaseController;
|
||||
import com.xdadan.erp.common.core.domain.AjaxResult;
|
||||
import com.xdadan.erp.common.core.page.TableDataInfo;
|
||||
import com.xdadan.erp.common.enums.BusinessType;
|
||||
import com.xdadan.erp.common.utils.StringUtils;
|
||||
import com.xdadan.erp.common.utils.poi.ExcelUtil;
|
||||
|
||||
import com.xdadan.erp.emis.domain.EmisCustomerInvoiceInfo;
|
||||
import com.xdadan.erp.emis.service.IEmisCustomerInvoiceInfoService;
|
||||
|
||||
/**
|
||||
* 客户开票信息记录表Controller
|
||||
*
|
||||
* @author linfso
|
||||
* @date 2024-07-21 13:31:25
|
||||
*/
|
||||
@RestController
|
||||
@RequestMapping("/emis/emisCustomerInvoiceInfo")
|
||||
public class EmisCustomerInvoiceInfoController extends BaseController
|
||||
{
|
||||
@Autowired
|
||||
private IEmisCustomerInvoiceInfoService emisCustomerInvoiceInfoService;
|
||||
|
||||
/**
|
||||
* 查询客户开票信息记录表列表
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('emis:emisCustomerInvoiceInfo:list')")
|
||||
@GetMapping("/list")
|
||||
public TableDataInfo list(EmisCustomerInvoiceInfo emisCustomerInvoiceInfo)
|
||||
{
|
||||
startPage();
|
||||
List<EmisCustomerInvoiceInfo> list = emisCustomerInvoiceInfoService.selectEmisCustomerInvoiceInfoList(emisCustomerInvoiceInfo);
|
||||
return getDataTable(list);
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* 检查是否重复
|
||||
*
|
||||
* @param emisCustomerInvoiceInfo
|
||||
* @return 数量
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('emis:emisCustomerInvoiceInfo:list')")
|
||||
@GetMapping("/checkUnique")
|
||||
public AjaxResult checkUnique(EmisCustomerInvoiceInfo emisCustomerInvoiceInfo)
|
||||
{
|
||||
int cnt=emisCustomerInvoiceInfoService.checkUnique(emisCustomerInvoiceInfo);
|
||||
return AjaxResult.success("检查成功",cnt);
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* 导出客户开票信息记录表列表
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('emis:emisCustomerInvoiceInfo:export')")
|
||||
@Log(title = "客户开票信息记录表", businessType = BusinessType.EXPORT)
|
||||
@PostMapping("/export")
|
||||
public void export(HttpServletResponse response, EmisCustomerInvoiceInfo emisCustomerInvoiceInfo)
|
||||
{
|
||||
List<EmisCustomerInvoiceInfo> list = emisCustomerInvoiceInfoService.selectEmisCustomerInvoiceInfoList(emisCustomerInvoiceInfo);
|
||||
ExcelUtil<EmisCustomerInvoiceInfo> util = new ExcelUtil<EmisCustomerInvoiceInfo>(EmisCustomerInvoiceInfo.class);
|
||||
util.exportExcel(response, list, "客户开票信息记录表数据");
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取客户开票信息记录表详细信息
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('emis:emisCustomerInvoiceInfo:query')")
|
||||
@GetMapping(value = "/{id}")
|
||||
public AjaxResult getInfo(@PathVariable("id") Long id)
|
||||
{
|
||||
return AjaxResult.success(emisCustomerInvoiceInfoService.selectEmisCustomerInvoiceInfoById(id));
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增客户开票信息记录表
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('emis:emisCustomerInvoiceInfo:add')")
|
||||
@Log(title = "客户开票信息记录表", businessType = BusinessType.INSERT)
|
||||
@PostMapping
|
||||
public AjaxResult add(@RequestBody EmisCustomerInvoiceInfo emisCustomerInvoiceInfo)
|
||||
{
|
||||
return toAjax(emisCustomerInvoiceInfoService.insertEmisCustomerInvoiceInfo(emisCustomerInvoiceInfo));
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改客户开票信息记录表
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('emis:emisCustomerInvoiceInfo:edit')")
|
||||
@Log(title = "客户开票信息记录表", businessType = BusinessType.UPDATE)
|
||||
@PutMapping
|
||||
public AjaxResult edit(@RequestBody EmisCustomerInvoiceInfo emisCustomerInvoiceInfo)
|
||||
{
|
||||
return toAjax(emisCustomerInvoiceInfoService.updateEmisCustomerInvoiceInfo(emisCustomerInvoiceInfo));
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除客户开票信息记录表
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('emis:emisCustomerInvoiceInfo:remove')")
|
||||
@Log(title = "客户开票信息记录表", businessType = BusinessType.DELETE)
|
||||
@DeleteMapping("/{ids}")
|
||||
public AjaxResult remove(@PathVariable Long[] ids)
|
||||
{
|
||||
return toAjax(emisCustomerInvoiceInfoService.deleteEmisCustomerInvoiceInfoByIds(ids));
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,134 @@
|
||||
|
||||
/**
|
||||
* @Project: emis
|
||||
* @Title: EmisSettleInvoiceRecordController.java
|
||||
* @author linfso
|
||||
* @date 2024-07-21 13:31:26
|
||||
* @Copyright: ShangHai Duta 2022 All rights reserved.
|
||||
* @version v1.0
|
||||
* @Description: <p> 开票记录表 控制器 </p>
|
||||
*/
|
||||
|
||||
package com.xdadan.erp.web.emis;
|
||||
|
||||
import java.util.List;
|
||||
import javax.servlet.http.HttpServletResponse;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.security.access.prepost.PreAuthorize;
|
||||
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.xdadan.erp.common.annotation.Log;
|
||||
import com.xdadan.erp.common.core.controller.BaseController;
|
||||
import com.xdadan.erp.common.core.domain.AjaxResult;
|
||||
import com.xdadan.erp.common.core.page.TableDataInfo;
|
||||
import com.xdadan.erp.common.enums.BusinessType;
|
||||
import com.xdadan.erp.common.utils.StringUtils;
|
||||
import com.xdadan.erp.common.utils.poi.ExcelUtil;
|
||||
|
||||
import com.xdadan.erp.emis.domain.EmisSettleInvoiceRecord;
|
||||
import com.xdadan.erp.emis.service.IEmisSettleInvoiceRecordService;
|
||||
|
||||
/**
|
||||
* 开票记录表Controller
|
||||
*
|
||||
* @author linfso
|
||||
* @date 2024-07-21 13:31:26
|
||||
*/
|
||||
@RestController
|
||||
@RequestMapping("/emis/emisSettleInvoiceRecord")
|
||||
public class EmisSettleInvoiceRecordController extends BaseController
|
||||
{
|
||||
@Autowired
|
||||
private IEmisSettleInvoiceRecordService emisSettleInvoiceRecordService;
|
||||
|
||||
/**
|
||||
* 查询开票记录表列表
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('emis:emisSettleInvoiceRecord:list')")
|
||||
@GetMapping("/list")
|
||||
public TableDataInfo list(EmisSettleInvoiceRecord emisSettleInvoiceRecord)
|
||||
{
|
||||
startPage();
|
||||
List<EmisSettleInvoiceRecord> list = emisSettleInvoiceRecordService.selectEmisSettleInvoiceRecordList(emisSettleInvoiceRecord);
|
||||
return getDataTable(list);
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* 检查是否重复
|
||||
*
|
||||
* @param emisSettleInvoiceRecord
|
||||
* @return 数量
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('emis:emisSettleInvoiceRecord:list')")
|
||||
@GetMapping("/checkUnique")
|
||||
public AjaxResult checkUnique(EmisSettleInvoiceRecord emisSettleInvoiceRecord)
|
||||
{
|
||||
int cnt=emisSettleInvoiceRecordService.checkUnique(emisSettleInvoiceRecord);
|
||||
return AjaxResult.success("检查成功",cnt);
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* 导出开票记录表列表
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('emis:emisSettleInvoiceRecord:export')")
|
||||
@Log(title = "开票记录表", businessType = BusinessType.EXPORT)
|
||||
@PostMapping("/export")
|
||||
public void export(HttpServletResponse response, EmisSettleInvoiceRecord emisSettleInvoiceRecord)
|
||||
{
|
||||
List<EmisSettleInvoiceRecord> list = emisSettleInvoiceRecordService.selectEmisSettleInvoiceRecordList(emisSettleInvoiceRecord);
|
||||
ExcelUtil<EmisSettleInvoiceRecord> util = new ExcelUtil<EmisSettleInvoiceRecord>(EmisSettleInvoiceRecord.class);
|
||||
util.exportExcel(response, list, "开票记录表数据");
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取开票记录表详细信息
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('emis:emisSettleInvoiceRecord:query')")
|
||||
@GetMapping(value = "/{id}")
|
||||
public AjaxResult getInfo(@PathVariable("id") Long id)
|
||||
{
|
||||
return AjaxResult.success(emisSettleInvoiceRecordService.selectEmisSettleInvoiceRecordById(id));
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增开票记录表
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('emis:emisSettleInvoiceRecord:add')")
|
||||
@Log(title = "开票记录表", businessType = BusinessType.INSERT)
|
||||
@PostMapping
|
||||
public AjaxResult add(@RequestBody EmisSettleInvoiceRecord emisSettleInvoiceRecord)
|
||||
{
|
||||
return toAjax(emisSettleInvoiceRecordService.insertEmisSettleInvoiceRecord(emisSettleInvoiceRecord));
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改开票记录表
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('emis:emisSettleInvoiceRecord:edit')")
|
||||
@Log(title = "开票记录表", businessType = BusinessType.UPDATE)
|
||||
@PutMapping
|
||||
public AjaxResult edit(@RequestBody EmisSettleInvoiceRecord emisSettleInvoiceRecord)
|
||||
{
|
||||
return toAjax(emisSettleInvoiceRecordService.updateEmisSettleInvoiceRecord(emisSettleInvoiceRecord));
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除开票记录表
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('emis:emisSettleInvoiceRecord:remove')")
|
||||
@Log(title = "开票记录表", businessType = BusinessType.DELETE)
|
||||
@DeleteMapping("/{ids}")
|
||||
public AjaxResult remove(@PathVariable Long[] ids)
|
||||
{
|
||||
return toAjax(emisSettleInvoiceRecordService.deleteEmisSettleInvoiceRecordByIds(ids));
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,134 @@
|
||||
|
||||
/**
|
||||
* @Project: emis
|
||||
* @Title: EmisSettleInvoiceRelController.java
|
||||
* @author linfso
|
||||
* @date 2024-07-21 13:31:27
|
||||
* @Copyright: ShangHai Duta 2022 All rights reserved.
|
||||
* @version v1.0
|
||||
* @Description: <p> 开票子账单关联表 控制器 </p>
|
||||
*/
|
||||
|
||||
package com.xdadan.erp.web.emis;
|
||||
|
||||
import java.util.List;
|
||||
import javax.servlet.http.HttpServletResponse;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.security.access.prepost.PreAuthorize;
|
||||
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.xdadan.erp.common.annotation.Log;
|
||||
import com.xdadan.erp.common.core.controller.BaseController;
|
||||
import com.xdadan.erp.common.core.domain.AjaxResult;
|
||||
import com.xdadan.erp.common.core.page.TableDataInfo;
|
||||
import com.xdadan.erp.common.enums.BusinessType;
|
||||
import com.xdadan.erp.common.utils.StringUtils;
|
||||
import com.xdadan.erp.common.utils.poi.ExcelUtil;
|
||||
|
||||
import com.xdadan.erp.emis.domain.EmisSettleInvoiceRel;
|
||||
import com.xdadan.erp.emis.service.IEmisSettleInvoiceRelService;
|
||||
|
||||
/**
|
||||
* 开票子账单关联表Controller
|
||||
*
|
||||
* @author linfso
|
||||
* @date 2024-07-21 13:31:27
|
||||
*/
|
||||
@RestController
|
||||
@RequestMapping("/emis/emisSettleInvoiceRel")
|
||||
public class EmisSettleInvoiceRelController extends BaseController
|
||||
{
|
||||
@Autowired
|
||||
private IEmisSettleInvoiceRelService emisSettleInvoiceRelService;
|
||||
|
||||
/**
|
||||
* 查询开票子账单关联表列表
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('emis:emisSettleInvoiceRel:list')")
|
||||
@GetMapping("/list")
|
||||
public TableDataInfo list(EmisSettleInvoiceRel emisSettleInvoiceRel)
|
||||
{
|
||||
startPage();
|
||||
List<EmisSettleInvoiceRel> list = emisSettleInvoiceRelService.selectEmisSettleInvoiceRelList(emisSettleInvoiceRel);
|
||||
return getDataTable(list);
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* 检查是否重复
|
||||
*
|
||||
* @param emisSettleInvoiceRel
|
||||
* @return 数量
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('emis:emisSettleInvoiceRel:list')")
|
||||
@GetMapping("/checkUnique")
|
||||
public AjaxResult checkUnique(EmisSettleInvoiceRel emisSettleInvoiceRel)
|
||||
{
|
||||
int cnt=emisSettleInvoiceRelService.checkUnique(emisSettleInvoiceRel);
|
||||
return AjaxResult.success("检查成功",cnt);
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* 导出开票子账单关联表列表
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('emis:emisSettleInvoiceRel:export')")
|
||||
@Log(title = "开票子账单关联表", businessType = BusinessType.EXPORT)
|
||||
@PostMapping("/export")
|
||||
public void export(HttpServletResponse response, EmisSettleInvoiceRel emisSettleInvoiceRel)
|
||||
{
|
||||
List<EmisSettleInvoiceRel> list = emisSettleInvoiceRelService.selectEmisSettleInvoiceRelList(emisSettleInvoiceRel);
|
||||
ExcelUtil<EmisSettleInvoiceRel> util = new ExcelUtil<EmisSettleInvoiceRel>(EmisSettleInvoiceRel.class);
|
||||
util.exportExcel(response, list, "开票子账单关联表数据");
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取开票子账单关联表详细信息
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('emis:emisSettleInvoiceRel:query')")
|
||||
@GetMapping(value = "/{id}")
|
||||
public AjaxResult getInfo(@PathVariable("id") Long id)
|
||||
{
|
||||
return AjaxResult.success(emisSettleInvoiceRelService.selectEmisSettleInvoiceRelById(id));
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增开票子账单关联表
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('emis:emisSettleInvoiceRel:add')")
|
||||
@Log(title = "开票子账单关联表", businessType = BusinessType.INSERT)
|
||||
@PostMapping
|
||||
public AjaxResult add(@RequestBody EmisSettleInvoiceRel emisSettleInvoiceRel)
|
||||
{
|
||||
return toAjax(emisSettleInvoiceRelService.insertEmisSettleInvoiceRel(emisSettleInvoiceRel));
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改开票子账单关联表
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('emis:emisSettleInvoiceRel:edit')")
|
||||
@Log(title = "开票子账单关联表", businessType = BusinessType.UPDATE)
|
||||
@PutMapping
|
||||
public AjaxResult edit(@RequestBody EmisSettleInvoiceRel emisSettleInvoiceRel)
|
||||
{
|
||||
return toAjax(emisSettleInvoiceRelService.updateEmisSettleInvoiceRel(emisSettleInvoiceRel));
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除开票子账单关联表
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('emis:emisSettleInvoiceRel:remove')")
|
||||
@Log(title = "开票子账单关联表", businessType = BusinessType.DELETE)
|
||||
@DeleteMapping("/{ids}")
|
||||
public AjaxResult remove(@PathVariable Long[] ids)
|
||||
{
|
||||
return toAjax(emisSettleInvoiceRelService.deleteEmisSettleInvoiceRelByIds(ids));
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,134 @@
|
||||
|
||||
/**
|
||||
* @Project: emis
|
||||
* @Title: EmisSettlePayRecordController.java
|
||||
* @author linfso
|
||||
* @date 2024-07-21 13:31:24
|
||||
* @Copyright: ShangHai Duta 2022 All rights reserved.
|
||||
* @version v1.0
|
||||
* @Description: <p> 账单收退款记录 控制器 </p>
|
||||
*/
|
||||
|
||||
package com.xdadan.erp.web.emis;
|
||||
|
||||
import java.util.List;
|
||||
import javax.servlet.http.HttpServletResponse;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.security.access.prepost.PreAuthorize;
|
||||
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.xdadan.erp.common.annotation.Log;
|
||||
import com.xdadan.erp.common.core.controller.BaseController;
|
||||
import com.xdadan.erp.common.core.domain.AjaxResult;
|
||||
import com.xdadan.erp.common.core.page.TableDataInfo;
|
||||
import com.xdadan.erp.common.enums.BusinessType;
|
||||
import com.xdadan.erp.common.utils.StringUtils;
|
||||
import com.xdadan.erp.common.utils.poi.ExcelUtil;
|
||||
|
||||
import com.xdadan.erp.emis.domain.EmisSettlePayRecord;
|
||||
import com.xdadan.erp.emis.service.IEmisSettlePayRecordService;
|
||||
|
||||
/**
|
||||
* 账单收退款记录Controller
|
||||
*
|
||||
* @author linfso
|
||||
* @date 2024-07-21 13:31:24
|
||||
*/
|
||||
@RestController
|
||||
@RequestMapping("/emis/emisSettlePayRecord")
|
||||
public class EmisSettlePayRecordController extends BaseController
|
||||
{
|
||||
@Autowired
|
||||
private IEmisSettlePayRecordService emisSettlePayRecordService;
|
||||
|
||||
/**
|
||||
* 查询账单收退款记录列表
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('emis:emisSettlePayRecord:list')")
|
||||
@GetMapping("/list")
|
||||
public TableDataInfo list(EmisSettlePayRecord emisSettlePayRecord)
|
||||
{
|
||||
startPage();
|
||||
List<EmisSettlePayRecord> list = emisSettlePayRecordService.selectEmisSettlePayRecordList(emisSettlePayRecord);
|
||||
return getDataTable(list);
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* 检查是否重复
|
||||
*
|
||||
* @param emisSettlePayRecord
|
||||
* @return 数量
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('emis:emisSettlePayRecord:list')")
|
||||
@GetMapping("/checkUnique")
|
||||
public AjaxResult checkUnique(EmisSettlePayRecord emisSettlePayRecord)
|
||||
{
|
||||
int cnt=emisSettlePayRecordService.checkUnique(emisSettlePayRecord);
|
||||
return AjaxResult.success("检查成功",cnt);
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* 导出账单收退款记录列表
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('emis:emisSettlePayRecord:export')")
|
||||
@Log(title = "账单收退款记录", businessType = BusinessType.EXPORT)
|
||||
@PostMapping("/export")
|
||||
public void export(HttpServletResponse response, EmisSettlePayRecord emisSettlePayRecord)
|
||||
{
|
||||
List<EmisSettlePayRecord> list = emisSettlePayRecordService.selectEmisSettlePayRecordList(emisSettlePayRecord);
|
||||
ExcelUtil<EmisSettlePayRecord> util = new ExcelUtil<EmisSettlePayRecord>(EmisSettlePayRecord.class);
|
||||
util.exportExcel(response, list, "账单收退款记录数据");
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取账单收退款记录详细信息
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('emis:emisSettlePayRecord:query')")
|
||||
@GetMapping(value = "/{id}")
|
||||
public AjaxResult getInfo(@PathVariable("id") Long id)
|
||||
{
|
||||
return AjaxResult.success(emisSettlePayRecordService.selectEmisSettlePayRecordById(id));
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增账单收退款记录
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('emis:emisSettlePayRecord:add')")
|
||||
@Log(title = "账单收退款记录", businessType = BusinessType.INSERT)
|
||||
@PostMapping
|
||||
public AjaxResult add(@RequestBody EmisSettlePayRecord emisSettlePayRecord)
|
||||
{
|
||||
return toAjax(emisSettlePayRecordService.insertEmisSettlePayRecord(emisSettlePayRecord));
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改账单收退款记录
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('emis:emisSettlePayRecord:edit')")
|
||||
@Log(title = "账单收退款记录", businessType = BusinessType.UPDATE)
|
||||
@PutMapping
|
||||
public AjaxResult edit(@RequestBody EmisSettlePayRecord emisSettlePayRecord)
|
||||
{
|
||||
return toAjax(emisSettlePayRecordService.updateEmisSettlePayRecord(emisSettlePayRecord));
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除账单收退款记录
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('emis:emisSettlePayRecord:remove')")
|
||||
@Log(title = "账单收退款记录", businessType = BusinessType.DELETE)
|
||||
@DeleteMapping("/{ids}")
|
||||
public AjaxResult remove(@PathVariable Long[] ids)
|
||||
{
|
||||
return toAjax(emisSettlePayRecordService.deleteEmisSettlePayRecordByIds(ids));
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,134 @@
|
||||
|
||||
/**
|
||||
* @Project: emis
|
||||
* @Title: EmisSettlePayRelController.java
|
||||
* @author linfso
|
||||
* @date 2024-07-21 13:31:25
|
||||
* @Copyright: ShangHai Duta 2022 All rights reserved.
|
||||
* @version v1.0
|
||||
* @Description: <p> 支付子账单关联表 控制器 </p>
|
||||
*/
|
||||
|
||||
package com.xdadan.erp.web.emis;
|
||||
|
||||
import java.util.List;
|
||||
import javax.servlet.http.HttpServletResponse;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.security.access.prepost.PreAuthorize;
|
||||
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.xdadan.erp.common.annotation.Log;
|
||||
import com.xdadan.erp.common.core.controller.BaseController;
|
||||
import com.xdadan.erp.common.core.domain.AjaxResult;
|
||||
import com.xdadan.erp.common.core.page.TableDataInfo;
|
||||
import com.xdadan.erp.common.enums.BusinessType;
|
||||
import com.xdadan.erp.common.utils.StringUtils;
|
||||
import com.xdadan.erp.common.utils.poi.ExcelUtil;
|
||||
|
||||
import com.xdadan.erp.emis.domain.EmisSettlePayRel;
|
||||
import com.xdadan.erp.emis.service.IEmisSettlePayRelService;
|
||||
|
||||
/**
|
||||
* 支付子账单关联表Controller
|
||||
*
|
||||
* @author linfso
|
||||
* @date 2024-07-21 13:31:25
|
||||
*/
|
||||
@RestController
|
||||
@RequestMapping("/emis/emisSettlePayRel")
|
||||
public class EmisSettlePayRelController extends BaseController
|
||||
{
|
||||
@Autowired
|
||||
private IEmisSettlePayRelService emisSettlePayRelService;
|
||||
|
||||
/**
|
||||
* 查询支付子账单关联表列表
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('emis:emisSettlePayRel:list')")
|
||||
@GetMapping("/list")
|
||||
public TableDataInfo list(EmisSettlePayRel emisSettlePayRel)
|
||||
{
|
||||
startPage();
|
||||
List<EmisSettlePayRel> list = emisSettlePayRelService.selectEmisSettlePayRelList(emisSettlePayRel);
|
||||
return getDataTable(list);
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* 检查是否重复
|
||||
*
|
||||
* @param emisSettlePayRel
|
||||
* @return 数量
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('emis:emisSettlePayRel:list')")
|
||||
@GetMapping("/checkUnique")
|
||||
public AjaxResult checkUnique(EmisSettlePayRel emisSettlePayRel)
|
||||
{
|
||||
int cnt=emisSettlePayRelService.checkUnique(emisSettlePayRel);
|
||||
return AjaxResult.success("检查成功",cnt);
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* 导出支付子账单关联表列表
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('emis:emisSettlePayRel:export')")
|
||||
@Log(title = "支付子账单关联表", businessType = BusinessType.EXPORT)
|
||||
@PostMapping("/export")
|
||||
public void export(HttpServletResponse response, EmisSettlePayRel emisSettlePayRel)
|
||||
{
|
||||
List<EmisSettlePayRel> list = emisSettlePayRelService.selectEmisSettlePayRelList(emisSettlePayRel);
|
||||
ExcelUtil<EmisSettlePayRel> util = new ExcelUtil<EmisSettlePayRel>(EmisSettlePayRel.class);
|
||||
util.exportExcel(response, list, "支付子账单关联表数据");
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取支付子账单关联表详细信息
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('emis:emisSettlePayRel:query')")
|
||||
@GetMapping(value = "/{id}")
|
||||
public AjaxResult getInfo(@PathVariable("id") Long id)
|
||||
{
|
||||
return AjaxResult.success(emisSettlePayRelService.selectEmisSettlePayRelById(id));
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增支付子账单关联表
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('emis:emisSettlePayRel:add')")
|
||||
@Log(title = "支付子账单关联表", businessType = BusinessType.INSERT)
|
||||
@PostMapping
|
||||
public AjaxResult add(@RequestBody EmisSettlePayRel emisSettlePayRel)
|
||||
{
|
||||
return toAjax(emisSettlePayRelService.insertEmisSettlePayRel(emisSettlePayRel));
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改支付子账单关联表
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('emis:emisSettlePayRel:edit')")
|
||||
@Log(title = "支付子账单关联表", businessType = BusinessType.UPDATE)
|
||||
@PutMapping
|
||||
public AjaxResult edit(@RequestBody EmisSettlePayRel emisSettlePayRel)
|
||||
{
|
||||
return toAjax(emisSettlePayRelService.updateEmisSettlePayRel(emisSettlePayRel));
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除支付子账单关联表
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('emis:emisSettlePayRel:remove')")
|
||||
@Log(title = "支付子账单关联表", businessType = BusinessType.DELETE)
|
||||
@DeleteMapping("/{ids}")
|
||||
public AjaxResult remove(@PathVariable Long[] ids)
|
||||
{
|
||||
return toAjax(emisSettlePayRelService.deleteEmisSettlePayRelByIds(ids));
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,59 @@
|
||||
/**
|
||||
* @Project: emis
|
||||
* @Title: EmisBaseInvoiceInfo.java
|
||||
* @author linfso
|
||||
* @date 2024-07-21 13:31:27
|
||||
* @Copyright: ShangHai Duta 2022 All rights reserved.
|
||||
* @version v1.0
|
||||
* @Description: <p> 公司开票信息 实体类 </p>
|
||||
*/
|
||||
|
||||
package com.xdadan.erp.emis.domain;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||
import org.apache.commons.lang3.builder.ToStringBuilder;
|
||||
import org.apache.commons.lang3.builder.ToStringStyle;
|
||||
import com.xdadan.erp.common.annotation.Excel;
|
||||
import com.xdadan.erp.common.core.domain.BaseEntity;
|
||||
import com.xdadan.erp.common.core.domain.TreeEntity;
|
||||
import java.io.Serializable;
|
||||
import java.math.BigDecimal;
|
||||
import java.util.Date;
|
||||
import lombok.Data;
|
||||
|
||||
|
||||
/**
|
||||
* @ClassName EmisBaseInvoiceInfo
|
||||
* @Description 公司开票信息
|
||||
* @author linfso
|
||||
* @date 2024-07-21 13:31:27
|
||||
*/
|
||||
@Data
|
||||
public class EmisBaseInvoiceInfo extends BaseEntity
|
||||
{
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/* id */
|
||||
private Long id;
|
||||
/* 开票企业代码标识 */
|
||||
private String comCode;
|
||||
/* 开票名称 */
|
||||
private String companyName;
|
||||
/* 开票税号 */
|
||||
private String companyTaxNo;
|
||||
/* 开票电话 */
|
||||
private String companyTel;
|
||||
/* 开票地址 */
|
||||
private String companyAddress;
|
||||
/* 开票类型 1-增值电子 */
|
||||
private String invoiceType;
|
||||
/* 联系人 */
|
||||
private String contact;
|
||||
/* 联系电话 */
|
||||
private String phone;
|
||||
/* 纸质发票邮寄地址 */
|
||||
private String recieveAddress;
|
||||
/* 发票投递邮箱 */
|
||||
private String email;
|
||||
|
||||
}
|
||||
@ -0,0 +1,61 @@
|
||||
/**
|
||||
* @Project: emis
|
||||
* @Title: EmisCustomerInvoiceInfo.java
|
||||
* @author linfso
|
||||
* @date 2024-07-21 13:31:25
|
||||
* @Copyright: ShangHai Duta 2022 All rights reserved.
|
||||
* @version v1.0
|
||||
* @Description: <p> 客户开票信息记录表 实体类 </p>
|
||||
*/
|
||||
|
||||
package com.xdadan.erp.emis.domain;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||
import org.apache.commons.lang3.builder.ToStringBuilder;
|
||||
import org.apache.commons.lang3.builder.ToStringStyle;
|
||||
import com.xdadan.erp.common.annotation.Excel;
|
||||
import com.xdadan.erp.common.core.domain.BaseEntity;
|
||||
import com.xdadan.erp.common.core.domain.TreeEntity;
|
||||
import java.io.Serializable;
|
||||
import java.math.BigDecimal;
|
||||
import java.util.Date;
|
||||
import lombok.Data;
|
||||
|
||||
|
||||
/**
|
||||
* @ClassName EmisCustomerInvoiceInfo
|
||||
* @Description 客户开票信息记录表
|
||||
* @author linfso
|
||||
* @date 2024-07-21 13:31:25
|
||||
*/
|
||||
@Data
|
||||
public class EmisCustomerInvoiceInfo extends BaseEntity
|
||||
{
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/* id */
|
||||
private Long id;
|
||||
/* 开票名称 */
|
||||
private String companyName;
|
||||
/* 开票税号 */
|
||||
private String companyTaxNo;
|
||||
/* 开票电话 */
|
||||
private String companyTel;
|
||||
/* 开票地址 */
|
||||
private String companyAddress;
|
||||
/* 开票类型 1-增值电子 */
|
||||
private String invoiceType;
|
||||
/* 客户编码 */
|
||||
private String customerCode;
|
||||
/* 客户名称 */
|
||||
private String customerName;
|
||||
/* 联系人 */
|
||||
private String contact;
|
||||
/* 联系电话 */
|
||||
private String phone;
|
||||
/* 纸质发票邮寄地址 */
|
||||
private String recieveAddress;
|
||||
/* 发票投递邮箱 */
|
||||
private String email;
|
||||
|
||||
}
|
||||
@ -0,0 +1,114 @@
|
||||
/**
|
||||
* @Project: emis
|
||||
* @Title: EmisSettleInvoiceRecord.java
|
||||
* @author linfso
|
||||
* @date 2024-07-21 13:31:26
|
||||
* @Copyright: ShangHai Duta 2022 All rights reserved.
|
||||
* @version v1.0
|
||||
* @Description: <p> 开票记录表 实体类 </p>
|
||||
*/
|
||||
|
||||
package com.xdadan.erp.emis.domain;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||
import org.apache.commons.lang3.builder.ToStringBuilder;
|
||||
import org.apache.commons.lang3.builder.ToStringStyle;
|
||||
import com.xdadan.erp.common.annotation.Excel;
|
||||
import com.xdadan.erp.common.core.domain.BaseEntity;
|
||||
import com.xdadan.erp.common.core.domain.TreeEntity;
|
||||
import java.io.Serializable;
|
||||
import java.math.BigDecimal;
|
||||
import java.util.Date;
|
||||
import lombok.Data;
|
||||
|
||||
|
||||
/**
|
||||
* @ClassName EmisSettleInvoiceRecord
|
||||
* @Description 开票记录表
|
||||
* @author linfso
|
||||
* @date 2024-07-21 13:31:26
|
||||
*/
|
||||
@Data
|
||||
public class EmisSettleInvoiceRecord extends BaseEntity
|
||||
{
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/* id */
|
||||
private Long id;
|
||||
/* 申请序号 */
|
||||
private String applySeqNo;
|
||||
/* 申请时间 */
|
||||
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
|
||||
private Date applyDate;
|
||||
/* 审核人 */
|
||||
private String applyManCode;
|
||||
/* 审核站点 */
|
||||
private String applySiteCode;
|
||||
/* 客户编码 */
|
||||
private String customerCode;
|
||||
/* 客户名称 */
|
||||
private String customerName;
|
||||
/* 账单号编号 */
|
||||
private String settleBillNo;
|
||||
/* 账单名称 */
|
||||
private String settleBillName;
|
||||
/* 申请开票金额 */
|
||||
private BigDecimal applyMoney;
|
||||
/* 开票类型 1-增值电子 */
|
||||
private String invoiceType;
|
||||
/* 开票名称 */
|
||||
private String companyName;
|
||||
/* 开票税号 */
|
||||
private String companyTaxNo;
|
||||
/* 开票电话 */
|
||||
private String companyTel;
|
||||
/* 开票地址 */
|
||||
private String companyAddress;
|
||||
/* 联系人 */
|
||||
private String contact;
|
||||
/* 联系电话 */
|
||||
private String phone;
|
||||
/* 税类型 1-免税 2-增值税 */
|
||||
private String realTaxType;
|
||||
/* 开票上限 */
|
||||
private BigDecimal openMoneyMax;
|
||||
/* 开票金额 */
|
||||
private BigDecimal openMoney;
|
||||
/* 发票号 */
|
||||
private String invoiceNo;
|
||||
/* 开票状态 0-待开票 1-已开票 2-拒绝开票 */
|
||||
private String invoiceStatus;
|
||||
/* 开票状态描述 */
|
||||
private String invoiceStatusDesc;
|
||||
/* 纸质发票邮寄地址 */
|
||||
private String recieveAddress;
|
||||
/* 发票投递邮箱 */
|
||||
private String email;
|
||||
/* 发票下载路径 */
|
||||
private String filePath;
|
||||
/* 审核状态 0-未审核 1-已审核 */
|
||||
private String blAudit;
|
||||
/* 审核日期 */
|
||||
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
|
||||
private Date auditDate;
|
||||
/* 审核人 */
|
||||
private String auditManCode;
|
||||
/* 审核站点 */
|
||||
private String auditSiteCode;
|
||||
/* 操作人 */
|
||||
private String opManCode;
|
||||
/* 操作时间 */
|
||||
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
|
||||
private Date opDate;
|
||||
/* 操作站点 */
|
||||
private String opSiteCode;
|
||||
/* 开票渠道编号 code -航信 HX */
|
||||
private String openChId;
|
||||
/* 开票渠道状态 0-待开票 1-已开票 2-拒绝开票 */
|
||||
private String openChStatus;
|
||||
/* 开票渠道描述 */
|
||||
private String openChStatusDesc;
|
||||
/* 使用的开票企业代码 */
|
||||
private String openComCode;
|
||||
|
||||
}
|
||||
@ -0,0 +1,47 @@
|
||||
/**
|
||||
* @Project: emis
|
||||
* @Title: EmisSettleInvoiceRel.java
|
||||
* @author linfso
|
||||
* @date 2024-07-21 13:31:27
|
||||
* @Copyright: ShangHai Duta 2022 All rights reserved.
|
||||
* @version v1.0
|
||||
* @Description: <p> 开票子账单关联表 实体类 </p>
|
||||
*/
|
||||
|
||||
package com.xdadan.erp.emis.domain;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||
import org.apache.commons.lang3.builder.ToStringBuilder;
|
||||
import org.apache.commons.lang3.builder.ToStringStyle;
|
||||
import com.xdadan.erp.common.annotation.Excel;
|
||||
import com.xdadan.erp.common.core.domain.BaseEntity;
|
||||
import com.xdadan.erp.common.core.domain.TreeEntity;
|
||||
import java.io.Serializable;
|
||||
import java.math.BigDecimal;
|
||||
import java.util.Date;
|
||||
import lombok.Data;
|
||||
|
||||
|
||||
/**
|
||||
* @ClassName EmisSettleInvoiceRel
|
||||
* @Description 开票子账单关联表
|
||||
* @author linfso
|
||||
* @date 2024-07-21 13:31:27
|
||||
*/
|
||||
@Data
|
||||
public class EmisSettleInvoiceRel extends BaseEntity
|
||||
{
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/* id */
|
||||
private Long id;
|
||||
/* 申请序号 */
|
||||
private String applySeqNo;
|
||||
/* 支付序号 */
|
||||
private String payId;
|
||||
/* 分账单号 */
|
||||
private String billNo;
|
||||
/* 申请开票金额 */
|
||||
private BigDecimal money;
|
||||
|
||||
}
|
||||
@ -0,0 +1,120 @@
|
||||
/**
|
||||
* @Project: emis
|
||||
* @Title: EmisSettlePayRecord.java
|
||||
* @author linfso
|
||||
* @date 2024-07-21 13:31:23
|
||||
* @Copyright: ShangHai Duta 2022 All rights reserved.
|
||||
* @version v1.0
|
||||
* @Description: <p> 账单收退款记录 实体类 </p>
|
||||
*/
|
||||
|
||||
package com.xdadan.erp.emis.domain;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||
import org.apache.commons.lang3.builder.ToStringBuilder;
|
||||
import org.apache.commons.lang3.builder.ToStringStyle;
|
||||
import com.xdadan.erp.common.annotation.Excel;
|
||||
import com.xdadan.erp.common.core.domain.BaseEntity;
|
||||
import com.xdadan.erp.common.core.domain.TreeEntity;
|
||||
import java.io.Serializable;
|
||||
import java.math.BigDecimal;
|
||||
import java.util.Date;
|
||||
import lombok.Data;
|
||||
|
||||
|
||||
/**
|
||||
* @ClassName EmisSettlePayRecord
|
||||
* @Description 账单收退款记录
|
||||
* @author linfso
|
||||
* @date 2024-07-21 13:31:23
|
||||
*/
|
||||
@Data
|
||||
public class EmisSettlePayRecord extends BaseEntity
|
||||
{
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/* id */
|
||||
private Long id;
|
||||
/* 支付序号 */
|
||||
private String payId;
|
||||
/* 支付类型 1-微信支付2支付宝 3-对公 */
|
||||
private String payType;
|
||||
/* 收付类型 1-收款 2-退款 */
|
||||
private String recType;
|
||||
/* 支付人名称 */
|
||||
private String payMan;
|
||||
/* 支付人编码 */
|
||||
private String payManCode;
|
||||
/* 总账单号 */
|
||||
private String settleBillNo;
|
||||
/* 审核状态 0-未审核 1-已审核 */
|
||||
private String blAudit;
|
||||
/* 审核日期 */
|
||||
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
|
||||
private Date auditDate;
|
||||
/* 审核人 */
|
||||
private String auditManCode;
|
||||
/* 审核站点 */
|
||||
private String auditSiteCode;
|
||||
/* 客户编码 */
|
||||
private String customerCode;
|
||||
/* 客户名称 */
|
||||
private String customerName;
|
||||
/* 金额 */
|
||||
private BigDecimal payMoney;
|
||||
/* 支付状态 0-待支付 1-支付成功 2-支付失败 */
|
||||
private String payStatus;
|
||||
/* 支付状态描述 */
|
||||
private String payStatusDesc;
|
||||
/* break_type */
|
||||
private String breakType;
|
||||
/* break_reason */
|
||||
private String breakReason;
|
||||
/* break_emp_code */
|
||||
private String breakEmpCode;
|
||||
/* 收款人代码 */
|
||||
private String recManCode;
|
||||
/* 结算类型 1-现金 2-月结 */
|
||||
private String settleType;
|
||||
/* 退款日期 */
|
||||
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
|
||||
private Date refundDate;
|
||||
/* 退款人 */
|
||||
private String refundManCode;
|
||||
/* 退款序号 */
|
||||
private String refundSeq;
|
||||
/* 退款模式 1-原路返回 2-线下支付 */
|
||||
private String refundMode;
|
||||
/* 退款金额 */
|
||||
private BigDecimal refundMoney;
|
||||
/* 退款原因 */
|
||||
private String refundReason;
|
||||
/* 退款备注 */
|
||||
private String refundRemark;
|
||||
/* 退款操作人 */
|
||||
private String refundOpManCode;
|
||||
/* 退款登记站点 */
|
||||
private String refundRegisterSiteCode;
|
||||
/* 退款登记人 */
|
||||
private String refundRegisterManCode;
|
||||
/* 安全金额 */
|
||||
private BigDecimal satisfyMoney;
|
||||
/* 安全原因 */
|
||||
private String satisfyReason;
|
||||
/* allowance_money */
|
||||
private BigDecimal allowanceMoney;
|
||||
/* allowance_reason */
|
||||
private String allowanceReason;
|
||||
/* deduction_money */
|
||||
private BigDecimal deductionMoney;
|
||||
/* deduction_reason */
|
||||
private String deductionReason;
|
||||
/* other_money */
|
||||
private BigDecimal otherMoney;
|
||||
/* other_reason */
|
||||
private String otherReason;
|
||||
/* 交易时间 */
|
||||
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
|
||||
private Date tradeDate;
|
||||
|
||||
}
|
||||
@ -0,0 +1,45 @@
|
||||
/**
|
||||
* @Project: emis
|
||||
* @Title: EmisSettlePayRel.java
|
||||
* @author linfso
|
||||
* @date 2024-07-21 13:31:24
|
||||
* @Copyright: ShangHai Duta 2022 All rights reserved.
|
||||
* @version v1.0
|
||||
* @Description: <p> 支付子账单关联表 实体类 </p>
|
||||
*/
|
||||
|
||||
package com.xdadan.erp.emis.domain;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||
import org.apache.commons.lang3.builder.ToStringBuilder;
|
||||
import org.apache.commons.lang3.builder.ToStringStyle;
|
||||
import com.xdadan.erp.common.annotation.Excel;
|
||||
import com.xdadan.erp.common.core.domain.BaseEntity;
|
||||
import com.xdadan.erp.common.core.domain.TreeEntity;
|
||||
import java.io.Serializable;
|
||||
import java.math.BigDecimal;
|
||||
import java.util.Date;
|
||||
import lombok.Data;
|
||||
|
||||
|
||||
/**
|
||||
* @ClassName EmisSettlePayRel
|
||||
* @Description 支付子账单关联表
|
||||
* @author linfso
|
||||
* @date 2024-07-21 13:31:24
|
||||
*/
|
||||
@Data
|
||||
public class EmisSettlePayRel extends BaseEntity
|
||||
{
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/* id */
|
||||
private Long id;
|
||||
/* 支付序号 */
|
||||
private String payId;
|
||||
/* 分账单号 */
|
||||
private String billNo;
|
||||
/* 金额 */
|
||||
private BigDecimal payMoney;
|
||||
|
||||
}
|
||||
@ -0,0 +1,80 @@
|
||||
/**
|
||||
* @Project: emis
|
||||
* @Title: EmisBaseInvoiceInfoMapper.java
|
||||
* @author linfso
|
||||
* @date 2024-07-21 13:31:27
|
||||
* @Copyright: ShangHai Doitinfo 2022 All rights reserved.
|
||||
* @version v1.0
|
||||
* @Description: <p> 公司开票信息 Mapper 接口 </p>
|
||||
* <span style='color:red'> Warning : This file is generate by ai tools,don't edit!!! </span>
|
||||
*/
|
||||
package com.xdadan.erp.emis.mapper;
|
||||
|
||||
import java.util.List;
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
import com.xdadan.erp.emis.domain.EmisBaseInvoiceInfo;
|
||||
/**
|
||||
* @ClassName EmisBaseInvoiceInfoMapper
|
||||
* @Description <p> 公司开票信息 Mapper 接口 </p>
|
||||
* @author linfso
|
||||
* @date 2024-07-21 13:31:27
|
||||
*/
|
||||
public interface EmisBaseInvoiceInfoMapper extends BaseMapper<EmisBaseInvoiceInfo>
|
||||
{
|
||||
/**
|
||||
* 主键查询
|
||||
* @param id
|
||||
* @return
|
||||
*/
|
||||
public EmisBaseInvoiceInfo selectEmisBaseInvoiceInfoById(Long id);
|
||||
|
||||
/**
|
||||
* 查询列表
|
||||
*
|
||||
* @param emisBaseInvoiceInfo
|
||||
* @return 集合
|
||||
*/
|
||||
public List<EmisBaseInvoiceInfo> selectEmisBaseInvoiceInfoList(EmisBaseInvoiceInfo emisBaseInvoiceInfo);
|
||||
|
||||
|
||||
/**
|
||||
* 检查是否重复
|
||||
*
|
||||
* @param emisBaseInvoiceInfo
|
||||
* @return 数量
|
||||
*/
|
||||
public int checkUnique(EmisBaseInvoiceInfo emisBaseInvoiceInfo);
|
||||
|
||||
|
||||
/**
|
||||
* 新增
|
||||
*
|
||||
* @param emisBaseInvoiceInfo
|
||||
* @return
|
||||
*/
|
||||
public int insertEmisBaseInvoiceInfo(EmisBaseInvoiceInfo emisBaseInvoiceInfo);
|
||||
|
||||
/**
|
||||
* 修改
|
||||
*
|
||||
* @param emisBaseInvoiceInfo
|
||||
* @return
|
||||
*/
|
||||
public int updateEmisBaseInvoiceInfo(EmisBaseInvoiceInfo emisBaseInvoiceInfo);
|
||||
|
||||
/**
|
||||
* 删除
|
||||
*
|
||||
* @param id 主键
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteEmisBaseInvoiceInfoById(Long id);
|
||||
|
||||
/**
|
||||
* 批量删除
|
||||
*
|
||||
* @param ids 需要删除的数据主键集合
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteEmisBaseInvoiceInfoByIds(Long[] ids);
|
||||
}
|
||||
@ -0,0 +1,80 @@
|
||||
/**
|
||||
* @Project: emis
|
||||
* @Title: EmisCustomerInvoiceInfoMapper.java
|
||||
* @author linfso
|
||||
* @date 2024-07-21 13:31:25
|
||||
* @Copyright: ShangHai Doitinfo 2022 All rights reserved.
|
||||
* @version v1.0
|
||||
* @Description: <p> 客户开票信息记录表 Mapper 接口 </p>
|
||||
* <span style='color:red'> Warning : This file is generate by ai tools,don't edit!!! </span>
|
||||
*/
|
||||
package com.xdadan.erp.emis.mapper;
|
||||
|
||||
import java.util.List;
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
import com.xdadan.erp.emis.domain.EmisCustomerInvoiceInfo;
|
||||
/**
|
||||
* @ClassName EmisCustomerInvoiceInfoMapper
|
||||
* @Description <p> 客户开票信息记录表 Mapper 接口 </p>
|
||||
* @author linfso
|
||||
* @date 2024-07-21 13:31:25
|
||||
*/
|
||||
public interface EmisCustomerInvoiceInfoMapper extends BaseMapper<EmisCustomerInvoiceInfo>
|
||||
{
|
||||
/**
|
||||
* 主键查询
|
||||
* @param id
|
||||
* @return
|
||||
*/
|
||||
public EmisCustomerInvoiceInfo selectEmisCustomerInvoiceInfoById(Long id);
|
||||
|
||||
/**
|
||||
* 查询列表
|
||||
*
|
||||
* @param emisCustomerInvoiceInfo
|
||||
* @return 集合
|
||||
*/
|
||||
public List<EmisCustomerInvoiceInfo> selectEmisCustomerInvoiceInfoList(EmisCustomerInvoiceInfo emisCustomerInvoiceInfo);
|
||||
|
||||
|
||||
/**
|
||||
* 检查是否重复
|
||||
*
|
||||
* @param emisCustomerInvoiceInfo
|
||||
* @return 数量
|
||||
*/
|
||||
public int checkUnique(EmisCustomerInvoiceInfo emisCustomerInvoiceInfo);
|
||||
|
||||
|
||||
/**
|
||||
* 新增
|
||||
*
|
||||
* @param emisCustomerInvoiceInfo
|
||||
* @return
|
||||
*/
|
||||
public int insertEmisCustomerInvoiceInfo(EmisCustomerInvoiceInfo emisCustomerInvoiceInfo);
|
||||
|
||||
/**
|
||||
* 修改
|
||||
*
|
||||
* @param emisCustomerInvoiceInfo
|
||||
* @return
|
||||
*/
|
||||
public int updateEmisCustomerInvoiceInfo(EmisCustomerInvoiceInfo emisCustomerInvoiceInfo);
|
||||
|
||||
/**
|
||||
* 删除
|
||||
*
|
||||
* @param id 主键
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteEmisCustomerInvoiceInfoById(Long id);
|
||||
|
||||
/**
|
||||
* 批量删除
|
||||
*
|
||||
* @param ids 需要删除的数据主键集合
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteEmisCustomerInvoiceInfoByIds(Long[] ids);
|
||||
}
|
||||
@ -0,0 +1,80 @@
|
||||
/**
|
||||
* @Project: emis
|
||||
* @Title: EmisSettleInvoiceRecordMapper.java
|
||||
* @author linfso
|
||||
* @date 2024-07-21 13:31:26
|
||||
* @Copyright: ShangHai Doitinfo 2022 All rights reserved.
|
||||
* @version v1.0
|
||||
* @Description: <p> 开票记录表 Mapper 接口 </p>
|
||||
* <span style='color:red'> Warning : This file is generate by ai tools,don't edit!!! </span>
|
||||
*/
|
||||
package com.xdadan.erp.emis.mapper;
|
||||
|
||||
import java.util.List;
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
import com.xdadan.erp.emis.domain.EmisSettleInvoiceRecord;
|
||||
/**
|
||||
* @ClassName EmisSettleInvoiceRecordMapper
|
||||
* @Description <p> 开票记录表 Mapper 接口 </p>
|
||||
* @author linfso
|
||||
* @date 2024-07-21 13:31:26
|
||||
*/
|
||||
public interface EmisSettleInvoiceRecordMapper extends BaseMapper<EmisSettleInvoiceRecord>
|
||||
{
|
||||
/**
|
||||
* 主键查询
|
||||
* @param id
|
||||
* @return
|
||||
*/
|
||||
public EmisSettleInvoiceRecord selectEmisSettleInvoiceRecordById(Long id);
|
||||
|
||||
/**
|
||||
* 查询列表
|
||||
*
|
||||
* @param emisSettleInvoiceRecord
|
||||
* @return 集合
|
||||
*/
|
||||
public List<EmisSettleInvoiceRecord> selectEmisSettleInvoiceRecordList(EmisSettleInvoiceRecord emisSettleInvoiceRecord);
|
||||
|
||||
|
||||
/**
|
||||
* 检查是否重复
|
||||
*
|
||||
* @param emisSettleInvoiceRecord
|
||||
* @return 数量
|
||||
*/
|
||||
public int checkUnique(EmisSettleInvoiceRecord emisSettleInvoiceRecord);
|
||||
|
||||
|
||||
/**
|
||||
* 新增
|
||||
*
|
||||
* @param emisSettleInvoiceRecord
|
||||
* @return
|
||||
*/
|
||||
public int insertEmisSettleInvoiceRecord(EmisSettleInvoiceRecord emisSettleInvoiceRecord);
|
||||
|
||||
/**
|
||||
* 修改
|
||||
*
|
||||
* @param emisSettleInvoiceRecord
|
||||
* @return
|
||||
*/
|
||||
public int updateEmisSettleInvoiceRecord(EmisSettleInvoiceRecord emisSettleInvoiceRecord);
|
||||
|
||||
/**
|
||||
* 删除
|
||||
*
|
||||
* @param id 主键
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteEmisSettleInvoiceRecordById(Long id);
|
||||
|
||||
/**
|
||||
* 批量删除
|
||||
*
|
||||
* @param ids 需要删除的数据主键集合
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteEmisSettleInvoiceRecordByIds(Long[] ids);
|
||||
}
|
||||
@ -0,0 +1,80 @@
|
||||
/**
|
||||
* @Project: emis
|
||||
* @Title: EmisSettleInvoiceRelMapper.java
|
||||
* @author linfso
|
||||
* @date 2024-07-21 13:31:27
|
||||
* @Copyright: ShangHai Doitinfo 2022 All rights reserved.
|
||||
* @version v1.0
|
||||
* @Description: <p> 开票子账单关联表 Mapper 接口 </p>
|
||||
* <span style='color:red'> Warning : This file is generate by ai tools,don't edit!!! </span>
|
||||
*/
|
||||
package com.xdadan.erp.emis.mapper;
|
||||
|
||||
import java.util.List;
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
import com.xdadan.erp.emis.domain.EmisSettleInvoiceRel;
|
||||
/**
|
||||
* @ClassName EmisSettleInvoiceRelMapper
|
||||
* @Description <p> 开票子账单关联表 Mapper 接口 </p>
|
||||
* @author linfso
|
||||
* @date 2024-07-21 13:31:27
|
||||
*/
|
||||
public interface EmisSettleInvoiceRelMapper extends BaseMapper<EmisSettleInvoiceRel>
|
||||
{
|
||||
/**
|
||||
* 主键查询
|
||||
* @param id
|
||||
* @return
|
||||
*/
|
||||
public EmisSettleInvoiceRel selectEmisSettleInvoiceRelById(Long id);
|
||||
|
||||
/**
|
||||
* 查询列表
|
||||
*
|
||||
* @param emisSettleInvoiceRel
|
||||
* @return 集合
|
||||
*/
|
||||
public List<EmisSettleInvoiceRel> selectEmisSettleInvoiceRelList(EmisSettleInvoiceRel emisSettleInvoiceRel);
|
||||
|
||||
|
||||
/**
|
||||
* 检查是否重复
|
||||
*
|
||||
* @param emisSettleInvoiceRel
|
||||
* @return 数量
|
||||
*/
|
||||
public int checkUnique(EmisSettleInvoiceRel emisSettleInvoiceRel);
|
||||
|
||||
|
||||
/**
|
||||
* 新增
|
||||
*
|
||||
* @param emisSettleInvoiceRel
|
||||
* @return
|
||||
*/
|
||||
public int insertEmisSettleInvoiceRel(EmisSettleInvoiceRel emisSettleInvoiceRel);
|
||||
|
||||
/**
|
||||
* 修改
|
||||
*
|
||||
* @param emisSettleInvoiceRel
|
||||
* @return
|
||||
*/
|
||||
public int updateEmisSettleInvoiceRel(EmisSettleInvoiceRel emisSettleInvoiceRel);
|
||||
|
||||
/**
|
||||
* 删除
|
||||
*
|
||||
* @param id 主键
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteEmisSettleInvoiceRelById(Long id);
|
||||
|
||||
/**
|
||||
* 批量删除
|
||||
*
|
||||
* @param ids 需要删除的数据主键集合
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteEmisSettleInvoiceRelByIds(Long[] ids);
|
||||
}
|
||||
@ -0,0 +1,80 @@
|
||||
/**
|
||||
* @Project: emis
|
||||
* @Title: EmisSettlePayRecordMapper.java
|
||||
* @author linfso
|
||||
* @date 2024-07-21 13:31:24
|
||||
* @Copyright: ShangHai Doitinfo 2022 All rights reserved.
|
||||
* @version v1.0
|
||||
* @Description: <p> 账单收退款记录 Mapper 接口 </p>
|
||||
* <span style='color:red'> Warning : This file is generate by ai tools,don't edit!!! </span>
|
||||
*/
|
||||
package com.xdadan.erp.emis.mapper;
|
||||
|
||||
import java.util.List;
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
import com.xdadan.erp.emis.domain.EmisSettlePayRecord;
|
||||
/**
|
||||
* @ClassName EmisSettlePayRecordMapper
|
||||
* @Description <p> 账单收退款记录 Mapper 接口 </p>
|
||||
* @author linfso
|
||||
* @date 2024-07-21 13:31:24
|
||||
*/
|
||||
public interface EmisSettlePayRecordMapper extends BaseMapper<EmisSettlePayRecord>
|
||||
{
|
||||
/**
|
||||
* 主键查询
|
||||
* @param id
|
||||
* @return
|
||||
*/
|
||||
public EmisSettlePayRecord selectEmisSettlePayRecordById(Long id);
|
||||
|
||||
/**
|
||||
* 查询列表
|
||||
*
|
||||
* @param emisSettlePayRecord
|
||||
* @return 集合
|
||||
*/
|
||||
public List<EmisSettlePayRecord> selectEmisSettlePayRecordList(EmisSettlePayRecord emisSettlePayRecord);
|
||||
|
||||
|
||||
/**
|
||||
* 检查是否重复
|
||||
*
|
||||
* @param emisSettlePayRecord
|
||||
* @return 数量
|
||||
*/
|
||||
public int checkUnique(EmisSettlePayRecord emisSettlePayRecord);
|
||||
|
||||
|
||||
/**
|
||||
* 新增
|
||||
*
|
||||
* @param emisSettlePayRecord
|
||||
* @return
|
||||
*/
|
||||
public int insertEmisSettlePayRecord(EmisSettlePayRecord emisSettlePayRecord);
|
||||
|
||||
/**
|
||||
* 修改
|
||||
*
|
||||
* @param emisSettlePayRecord
|
||||
* @return
|
||||
*/
|
||||
public int updateEmisSettlePayRecord(EmisSettlePayRecord emisSettlePayRecord);
|
||||
|
||||
/**
|
||||
* 删除
|
||||
*
|
||||
* @param id 主键
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteEmisSettlePayRecordById(Long id);
|
||||
|
||||
/**
|
||||
* 批量删除
|
||||
*
|
||||
* @param ids 需要删除的数据主键集合
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteEmisSettlePayRecordByIds(Long[] ids);
|
||||
}
|
||||
@ -0,0 +1,80 @@
|
||||
/**
|
||||
* @Project: emis
|
||||
* @Title: EmisSettlePayRelMapper.java
|
||||
* @author linfso
|
||||
* @date 2024-07-21 13:31:24
|
||||
* @Copyright: ShangHai Doitinfo 2022 All rights reserved.
|
||||
* @version v1.0
|
||||
* @Description: <p> 支付子账单关联表 Mapper 接口 </p>
|
||||
* <span style='color:red'> Warning : This file is generate by ai tools,don't edit!!! </span>
|
||||
*/
|
||||
package com.xdadan.erp.emis.mapper;
|
||||
|
||||
import java.util.List;
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
import com.xdadan.erp.emis.domain.EmisSettlePayRel;
|
||||
/**
|
||||
* @ClassName EmisSettlePayRelMapper
|
||||
* @Description <p> 支付子账单关联表 Mapper 接口 </p>
|
||||
* @author linfso
|
||||
* @date 2024-07-21 13:31:24
|
||||
*/
|
||||
public interface EmisSettlePayRelMapper extends BaseMapper<EmisSettlePayRel>
|
||||
{
|
||||
/**
|
||||
* 主键查询
|
||||
* @param id
|
||||
* @return
|
||||
*/
|
||||
public EmisSettlePayRel selectEmisSettlePayRelById(Long id);
|
||||
|
||||
/**
|
||||
* 查询列表
|
||||
*
|
||||
* @param emisSettlePayRel
|
||||
* @return 集合
|
||||
*/
|
||||
public List<EmisSettlePayRel> selectEmisSettlePayRelList(EmisSettlePayRel emisSettlePayRel);
|
||||
|
||||
|
||||
/**
|
||||
* 检查是否重复
|
||||
*
|
||||
* @param emisSettlePayRel
|
||||
* @return 数量
|
||||
*/
|
||||
public int checkUnique(EmisSettlePayRel emisSettlePayRel);
|
||||
|
||||
|
||||
/**
|
||||
* 新增
|
||||
*
|
||||
* @param emisSettlePayRel
|
||||
* @return
|
||||
*/
|
||||
public int insertEmisSettlePayRel(EmisSettlePayRel emisSettlePayRel);
|
||||
|
||||
/**
|
||||
* 修改
|
||||
*
|
||||
* @param emisSettlePayRel
|
||||
* @return
|
||||
*/
|
||||
public int updateEmisSettlePayRel(EmisSettlePayRel emisSettlePayRel);
|
||||
|
||||
/**
|
||||
* 删除
|
||||
*
|
||||
* @param id 主键
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteEmisSettlePayRelById(Long id);
|
||||
|
||||
/**
|
||||
* 批量删除
|
||||
*
|
||||
* @param ids 需要删除的数据主键集合
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteEmisSettlePayRelByIds(Long[] ids);
|
||||
}
|
||||
@ -0,0 +1,78 @@
|
||||
/**
|
||||
* @Project: emis
|
||||
* @Title: EmisBaseInvoiceInfoService.java
|
||||
* @author linfso
|
||||
* @date 2024-07-21 13:31:27
|
||||
* @Copyright: ShangHai Duta 2022 All rights reserved.
|
||||
* @version v1.0
|
||||
* @Description: <p> 公司开票信息 服务类接口 </p>
|
||||
*/
|
||||
package com.xdadan.erp.emis.service;
|
||||
|
||||
import java.util.List;
|
||||
import com.xdadan.erp.emis.domain.EmisBaseInvoiceInfo;
|
||||
|
||||
/**
|
||||
* @ClassName EmisBaseInvoiceInfoService
|
||||
* @Description 公司开票信息
|
||||
* @author linfso
|
||||
* @date 2024-07-21 13:31:27
|
||||
*/
|
||||
public interface IEmisBaseInvoiceInfoService
|
||||
{
|
||||
/**
|
||||
* 主键查询
|
||||
* @param id
|
||||
* @return
|
||||
*/
|
||||
public EmisBaseInvoiceInfo selectEmisBaseInvoiceInfoById(Long id);
|
||||
|
||||
/**
|
||||
* 查询公司开票信息列表
|
||||
*
|
||||
* @param emisBaseInvoiceInfo 公司开票信息
|
||||
* @return 公司开票信息集合
|
||||
*/
|
||||
public List<EmisBaseInvoiceInfo> selectEmisBaseInvoiceInfoList(EmisBaseInvoiceInfo emisBaseInvoiceInfo);
|
||||
|
||||
|
||||
/**
|
||||
* 检查是否重复
|
||||
*
|
||||
* @param emisBaseInvoiceInfo
|
||||
* @return 数量
|
||||
*/
|
||||
public int checkUnique(EmisBaseInvoiceInfo emisBaseInvoiceInfo);
|
||||
|
||||
/**
|
||||
* 新增公司开票信息
|
||||
*
|
||||
* @param emisBaseInvoiceInfo 公司开票信息
|
||||
* @return 结果
|
||||
*/
|
||||
public int insertEmisBaseInvoiceInfo(EmisBaseInvoiceInfo emisBaseInvoiceInfo);
|
||||
|
||||
/**
|
||||
* 修改公司开票信息
|
||||
*
|
||||
* @param emisBaseInvoiceInfo 公司开票信息
|
||||
* @return 结果
|
||||
*/
|
||||
public int updateEmisBaseInvoiceInfo(EmisBaseInvoiceInfo emisBaseInvoiceInfo);
|
||||
|
||||
/**
|
||||
* 批量删除公司开票信息
|
||||
*
|
||||
* @param ids 需要删除的公司开票信息主键集合
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteEmisBaseInvoiceInfoByIds(Long[] ids);
|
||||
|
||||
/**
|
||||
* 删除公司开票信息信息
|
||||
*
|
||||
* @param id 公司开票信息主键
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteEmisBaseInvoiceInfoById(Long id);
|
||||
}
|
||||
@ -0,0 +1,78 @@
|
||||
/**
|
||||
* @Project: emis
|
||||
* @Title: EmisCustomerInvoiceInfoService.java
|
||||
* @author linfso
|
||||
* @date 2024-07-21 13:31:25
|
||||
* @Copyright: ShangHai Duta 2022 All rights reserved.
|
||||
* @version v1.0
|
||||
* @Description: <p> 客户开票信息记录表 服务类接口 </p>
|
||||
*/
|
||||
package com.xdadan.erp.emis.service;
|
||||
|
||||
import java.util.List;
|
||||
import com.xdadan.erp.emis.domain.EmisCustomerInvoiceInfo;
|
||||
|
||||
/**
|
||||
* @ClassName EmisCustomerInvoiceInfoService
|
||||
* @Description 客户开票信息记录表
|
||||
* @author linfso
|
||||
* @date 2024-07-21 13:31:25
|
||||
*/
|
||||
public interface IEmisCustomerInvoiceInfoService
|
||||
{
|
||||
/**
|
||||
* 主键查询
|
||||
* @param id
|
||||
* @return
|
||||
*/
|
||||
public EmisCustomerInvoiceInfo selectEmisCustomerInvoiceInfoById(Long id);
|
||||
|
||||
/**
|
||||
* 查询客户开票信息记录表列表
|
||||
*
|
||||
* @param emisCustomerInvoiceInfo 客户开票信息记录表
|
||||
* @return 客户开票信息记录表集合
|
||||
*/
|
||||
public List<EmisCustomerInvoiceInfo> selectEmisCustomerInvoiceInfoList(EmisCustomerInvoiceInfo emisCustomerInvoiceInfo);
|
||||
|
||||
|
||||
/**
|
||||
* 检查是否重复
|
||||
*
|
||||
* @param emisCustomerInvoiceInfo
|
||||
* @return 数量
|
||||
*/
|
||||
public int checkUnique(EmisCustomerInvoiceInfo emisCustomerInvoiceInfo);
|
||||
|
||||
/**
|
||||
* 新增客户开票信息记录表
|
||||
*
|
||||
* @param emisCustomerInvoiceInfo 客户开票信息记录表
|
||||
* @return 结果
|
||||
*/
|
||||
public int insertEmisCustomerInvoiceInfo(EmisCustomerInvoiceInfo emisCustomerInvoiceInfo);
|
||||
|
||||
/**
|
||||
* 修改客户开票信息记录表
|
||||
*
|
||||
* @param emisCustomerInvoiceInfo 客户开票信息记录表
|
||||
* @return 结果
|
||||
*/
|
||||
public int updateEmisCustomerInvoiceInfo(EmisCustomerInvoiceInfo emisCustomerInvoiceInfo);
|
||||
|
||||
/**
|
||||
* 批量删除客户开票信息记录表
|
||||
*
|
||||
* @param ids 需要删除的客户开票信息记录表主键集合
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteEmisCustomerInvoiceInfoByIds(Long[] ids);
|
||||
|
||||
/**
|
||||
* 删除客户开票信息记录表信息
|
||||
*
|
||||
* @param id 客户开票信息记录表主键
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteEmisCustomerInvoiceInfoById(Long id);
|
||||
}
|
||||
@ -0,0 +1,78 @@
|
||||
/**
|
||||
* @Project: emis
|
||||
* @Title: EmisSettleInvoiceRecordService.java
|
||||
* @author linfso
|
||||
* @date 2024-07-21 13:31:26
|
||||
* @Copyright: ShangHai Duta 2022 All rights reserved.
|
||||
* @version v1.0
|
||||
* @Description: <p> 开票记录表 服务类接口 </p>
|
||||
*/
|
||||
package com.xdadan.erp.emis.service;
|
||||
|
||||
import java.util.List;
|
||||
import com.xdadan.erp.emis.domain.EmisSettleInvoiceRecord;
|
||||
|
||||
/**
|
||||
* @ClassName EmisSettleInvoiceRecordService
|
||||
* @Description 开票记录表
|
||||
* @author linfso
|
||||
* @date 2024-07-21 13:31:26
|
||||
*/
|
||||
public interface IEmisSettleInvoiceRecordService
|
||||
{
|
||||
/**
|
||||
* 主键查询
|
||||
* @param id
|
||||
* @return
|
||||
*/
|
||||
public EmisSettleInvoiceRecord selectEmisSettleInvoiceRecordById(Long id);
|
||||
|
||||
/**
|
||||
* 查询开票记录表列表
|
||||
*
|
||||
* @param emisSettleInvoiceRecord 开票记录表
|
||||
* @return 开票记录表集合
|
||||
*/
|
||||
public List<EmisSettleInvoiceRecord> selectEmisSettleInvoiceRecordList(EmisSettleInvoiceRecord emisSettleInvoiceRecord);
|
||||
|
||||
|
||||
/**
|
||||
* 检查是否重复
|
||||
*
|
||||
* @param emisSettleInvoiceRecord
|
||||
* @return 数量
|
||||
*/
|
||||
public int checkUnique(EmisSettleInvoiceRecord emisSettleInvoiceRecord);
|
||||
|
||||
/**
|
||||
* 新增开票记录表
|
||||
*
|
||||
* @param emisSettleInvoiceRecord 开票记录表
|
||||
* @return 结果
|
||||
*/
|
||||
public int insertEmisSettleInvoiceRecord(EmisSettleInvoiceRecord emisSettleInvoiceRecord);
|
||||
|
||||
/**
|
||||
* 修改开票记录表
|
||||
*
|
||||
* @param emisSettleInvoiceRecord 开票记录表
|
||||
* @return 结果
|
||||
*/
|
||||
public int updateEmisSettleInvoiceRecord(EmisSettleInvoiceRecord emisSettleInvoiceRecord);
|
||||
|
||||
/**
|
||||
* 批量删除开票记录表
|
||||
*
|
||||
* @param ids 需要删除的开票记录表主键集合
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteEmisSettleInvoiceRecordByIds(Long[] ids);
|
||||
|
||||
/**
|
||||
* 删除开票记录表信息
|
||||
*
|
||||
* @param id 开票记录表主键
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteEmisSettleInvoiceRecordById(Long id);
|
||||
}
|
||||
@ -0,0 +1,78 @@
|
||||
/**
|
||||
* @Project: emis
|
||||
* @Title: EmisSettleInvoiceRelService.java
|
||||
* @author linfso
|
||||
* @date 2024-07-21 13:31:27
|
||||
* @Copyright: ShangHai Duta 2022 All rights reserved.
|
||||
* @version v1.0
|
||||
* @Description: <p> 开票子账单关联表 服务类接口 </p>
|
||||
*/
|
||||
package com.xdadan.erp.emis.service;
|
||||
|
||||
import java.util.List;
|
||||
import com.xdadan.erp.emis.domain.EmisSettleInvoiceRel;
|
||||
|
||||
/**
|
||||
* @ClassName EmisSettleInvoiceRelService
|
||||
* @Description 开票子账单关联表
|
||||
* @author linfso
|
||||
* @date 2024-07-21 13:31:27
|
||||
*/
|
||||
public interface IEmisSettleInvoiceRelService
|
||||
{
|
||||
/**
|
||||
* 主键查询
|
||||
* @param id
|
||||
* @return
|
||||
*/
|
||||
public EmisSettleInvoiceRel selectEmisSettleInvoiceRelById(Long id);
|
||||
|
||||
/**
|
||||
* 查询开票子账单关联表列表
|
||||
*
|
||||
* @param emisSettleInvoiceRel 开票子账单关联表
|
||||
* @return 开票子账单关联表集合
|
||||
*/
|
||||
public List<EmisSettleInvoiceRel> selectEmisSettleInvoiceRelList(EmisSettleInvoiceRel emisSettleInvoiceRel);
|
||||
|
||||
|
||||
/**
|
||||
* 检查是否重复
|
||||
*
|
||||
* @param emisSettleInvoiceRel
|
||||
* @return 数量
|
||||
*/
|
||||
public int checkUnique(EmisSettleInvoiceRel emisSettleInvoiceRel);
|
||||
|
||||
/**
|
||||
* 新增开票子账单关联表
|
||||
*
|
||||
* @param emisSettleInvoiceRel 开票子账单关联表
|
||||
* @return 结果
|
||||
*/
|
||||
public int insertEmisSettleInvoiceRel(EmisSettleInvoiceRel emisSettleInvoiceRel);
|
||||
|
||||
/**
|
||||
* 修改开票子账单关联表
|
||||
*
|
||||
* @param emisSettleInvoiceRel 开票子账单关联表
|
||||
* @return 结果
|
||||
*/
|
||||
public int updateEmisSettleInvoiceRel(EmisSettleInvoiceRel emisSettleInvoiceRel);
|
||||
|
||||
/**
|
||||
* 批量删除开票子账单关联表
|
||||
*
|
||||
* @param ids 需要删除的开票子账单关联表主键集合
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteEmisSettleInvoiceRelByIds(Long[] ids);
|
||||
|
||||
/**
|
||||
* 删除开票子账单关联表信息
|
||||
*
|
||||
* @param id 开票子账单关联表主键
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteEmisSettleInvoiceRelById(Long id);
|
||||
}
|
||||
@ -0,0 +1,78 @@
|
||||
/**
|
||||
* @Project: emis
|
||||
* @Title: EmisSettlePayRecordService.java
|
||||
* @author linfso
|
||||
* @date 2024-07-21 13:31:24
|
||||
* @Copyright: ShangHai Duta 2022 All rights reserved.
|
||||
* @version v1.0
|
||||
* @Description: <p> 账单收退款记录 服务类接口 </p>
|
||||
*/
|
||||
package com.xdadan.erp.emis.service;
|
||||
|
||||
import java.util.List;
|
||||
import com.xdadan.erp.emis.domain.EmisSettlePayRecord;
|
||||
|
||||
/**
|
||||
* @ClassName EmisSettlePayRecordService
|
||||
* @Description 账单收退款记录
|
||||
* @author linfso
|
||||
* @date 2024-07-21 13:31:24
|
||||
*/
|
||||
public interface IEmisSettlePayRecordService
|
||||
{
|
||||
/**
|
||||
* 主键查询
|
||||
* @param id
|
||||
* @return
|
||||
*/
|
||||
public EmisSettlePayRecord selectEmisSettlePayRecordById(Long id);
|
||||
|
||||
/**
|
||||
* 查询账单收退款记录列表
|
||||
*
|
||||
* @param emisSettlePayRecord 账单收退款记录
|
||||
* @return 账单收退款记录集合
|
||||
*/
|
||||
public List<EmisSettlePayRecord> selectEmisSettlePayRecordList(EmisSettlePayRecord emisSettlePayRecord);
|
||||
|
||||
|
||||
/**
|
||||
* 检查是否重复
|
||||
*
|
||||
* @param emisSettlePayRecord
|
||||
* @return 数量
|
||||
*/
|
||||
public int checkUnique(EmisSettlePayRecord emisSettlePayRecord);
|
||||
|
||||
/**
|
||||
* 新增账单收退款记录
|
||||
*
|
||||
* @param emisSettlePayRecord 账单收退款记录
|
||||
* @return 结果
|
||||
*/
|
||||
public int insertEmisSettlePayRecord(EmisSettlePayRecord emisSettlePayRecord);
|
||||
|
||||
/**
|
||||
* 修改账单收退款记录
|
||||
*
|
||||
* @param emisSettlePayRecord 账单收退款记录
|
||||
* @return 结果
|
||||
*/
|
||||
public int updateEmisSettlePayRecord(EmisSettlePayRecord emisSettlePayRecord);
|
||||
|
||||
/**
|
||||
* 批量删除账单收退款记录
|
||||
*
|
||||
* @param ids 需要删除的账单收退款记录主键集合
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteEmisSettlePayRecordByIds(Long[] ids);
|
||||
|
||||
/**
|
||||
* 删除账单收退款记录信息
|
||||
*
|
||||
* @param id 账单收退款记录主键
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteEmisSettlePayRecordById(Long id);
|
||||
}
|
||||
@ -0,0 +1,78 @@
|
||||
/**
|
||||
* @Project: emis
|
||||
* @Title: EmisSettlePayRelService.java
|
||||
* @author linfso
|
||||
* @date 2024-07-21 13:31:24
|
||||
* @Copyright: ShangHai Duta 2022 All rights reserved.
|
||||
* @version v1.0
|
||||
* @Description: <p> 支付子账单关联表 服务类接口 </p>
|
||||
*/
|
||||
package com.xdadan.erp.emis.service;
|
||||
|
||||
import java.util.List;
|
||||
import com.xdadan.erp.emis.domain.EmisSettlePayRel;
|
||||
|
||||
/**
|
||||
* @ClassName EmisSettlePayRelService
|
||||
* @Description 支付子账单关联表
|
||||
* @author linfso
|
||||
* @date 2024-07-21 13:31:24
|
||||
*/
|
||||
public interface IEmisSettlePayRelService
|
||||
{
|
||||
/**
|
||||
* 主键查询
|
||||
* @param id
|
||||
* @return
|
||||
*/
|
||||
public EmisSettlePayRel selectEmisSettlePayRelById(Long id);
|
||||
|
||||
/**
|
||||
* 查询支付子账单关联表列表
|
||||
*
|
||||
* @param emisSettlePayRel 支付子账单关联表
|
||||
* @return 支付子账单关联表集合
|
||||
*/
|
||||
public List<EmisSettlePayRel> selectEmisSettlePayRelList(EmisSettlePayRel emisSettlePayRel);
|
||||
|
||||
|
||||
/**
|
||||
* 检查是否重复
|
||||
*
|
||||
* @param emisSettlePayRel
|
||||
* @return 数量
|
||||
*/
|
||||
public int checkUnique(EmisSettlePayRel emisSettlePayRel);
|
||||
|
||||
/**
|
||||
* 新增支付子账单关联表
|
||||
*
|
||||
* @param emisSettlePayRel 支付子账单关联表
|
||||
* @return 结果
|
||||
*/
|
||||
public int insertEmisSettlePayRel(EmisSettlePayRel emisSettlePayRel);
|
||||
|
||||
/**
|
||||
* 修改支付子账单关联表
|
||||
*
|
||||
* @param emisSettlePayRel 支付子账单关联表
|
||||
* @return 结果
|
||||
*/
|
||||
public int updateEmisSettlePayRel(EmisSettlePayRel emisSettlePayRel);
|
||||
|
||||
/**
|
||||
* 批量删除支付子账单关联表
|
||||
*
|
||||
* @param ids 需要删除的支付子账单关联表主键集合
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteEmisSettlePayRelByIds(Long[] ids);
|
||||
|
||||
/**
|
||||
* 删除支付子账单关联表信息
|
||||
*
|
||||
* @param id 支付子账单关联表主键
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteEmisSettlePayRelById(Long id);
|
||||
}
|
||||
@ -0,0 +1,117 @@
|
||||
/**
|
||||
* @Project: emis
|
||||
* @Title: EmisBaseInvoiceInfoServiceImpl.java
|
||||
* @author linfso
|
||||
* @date 2024-07-21 13:31:27
|
||||
* @Copyright: ShangHai Duta 2022 All rights reserved.
|
||||
* @version v1.0
|
||||
* @Description: <p> 公司开票信息 实体类 </p>
|
||||
*/
|
||||
|
||||
package com.xdadan.erp.emis.service.impl;
|
||||
|
||||
import java.util.List;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Service;
|
||||
import com.xdadan.erp.emis.domain.EmisBaseInvoiceInfo;
|
||||
import com.xdadan.erp.emis.mapper.EmisBaseInvoiceInfoMapper;
|
||||
import com.xdadan.erp.emis.service.IEmisBaseInvoiceInfoService;
|
||||
|
||||
/**
|
||||
* 公司开票信息Service业务层处理
|
||||
*
|
||||
* @author linfso
|
||||
* @date 2024-07-21 13:31:27
|
||||
*/
|
||||
@Service
|
||||
public class EmisBaseInvoiceInfoServiceImpl implements IEmisBaseInvoiceInfoService
|
||||
{
|
||||
@Autowired
|
||||
private EmisBaseInvoiceInfoMapper emisBaseInvoiceInfoMapper;
|
||||
|
||||
/**
|
||||
* 查询公司开票信息
|
||||
*
|
||||
* @param id 公司开票信息主键
|
||||
* @return 公司开票信息
|
||||
*/
|
||||
@Override
|
||||
public EmisBaseInvoiceInfo selectEmisBaseInvoiceInfoById(Long id)
|
||||
{
|
||||
return emisBaseInvoiceInfoMapper.selectEmisBaseInvoiceInfoById(id);
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* 查询公司开票信息列表
|
||||
*
|
||||
* @param emisBaseInvoiceInfo 公司开票信息
|
||||
* @return 公司开票信息
|
||||
*/
|
||||
@Override
|
||||
public List<EmisBaseInvoiceInfo> selectEmisBaseInvoiceInfoList(EmisBaseInvoiceInfo emisBaseInvoiceInfo)
|
||||
{
|
||||
return emisBaseInvoiceInfoMapper.selectEmisBaseInvoiceInfoList(emisBaseInvoiceInfo);
|
||||
}
|
||||
|
||||
/**
|
||||
* 检查是否重复
|
||||
*
|
||||
* @param emisBaseInvoiceInfo
|
||||
* @return 数量
|
||||
*/
|
||||
@Override
|
||||
public int checkUnique(EmisBaseInvoiceInfo emisBaseInvoiceInfo)
|
||||
{
|
||||
return emisBaseInvoiceInfoMapper.checkUnique(emisBaseInvoiceInfo);
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增公司开票信息
|
||||
*
|
||||
* @param emisBaseInvoiceInfo 公司开票信息
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int insertEmisBaseInvoiceInfo(EmisBaseInvoiceInfo emisBaseInvoiceInfo)
|
||||
{
|
||||
return emisBaseInvoiceInfoMapper.insertEmisBaseInvoiceInfo(emisBaseInvoiceInfo);
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改公司开票信息
|
||||
*
|
||||
* @param emisBaseInvoiceInfo 公司开票信息
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int updateEmisBaseInvoiceInfo(EmisBaseInvoiceInfo emisBaseInvoiceInfo)
|
||||
{
|
||||
return emisBaseInvoiceInfoMapper.updateEmisBaseInvoiceInfo(emisBaseInvoiceInfo);
|
||||
}
|
||||
|
||||
/**
|
||||
* 批量删除公司开票信息
|
||||
*
|
||||
* @param ids 需要删除的公司开票信息主键
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int deleteEmisBaseInvoiceInfoByIds(Long[] ids)
|
||||
{
|
||||
return emisBaseInvoiceInfoMapper.deleteEmisBaseInvoiceInfoByIds(ids);
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除公司开票信息信息
|
||||
*
|
||||
* @param id 公司开票信息主键
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int deleteEmisBaseInvoiceInfoById(Long id)
|
||||
{
|
||||
return emisBaseInvoiceInfoMapper.deleteEmisBaseInvoiceInfoById(id);
|
||||
}
|
||||
|
||||
}
|
||||
@ -0,0 +1,117 @@
|
||||
/**
|
||||
* @Project: emis
|
||||
* @Title: EmisCustomerInvoiceInfoServiceImpl.java
|
||||
* @author linfso
|
||||
* @date 2024-07-21 13:31:25
|
||||
* @Copyright: ShangHai Duta 2022 All rights reserved.
|
||||
* @version v1.0
|
||||
* @Description: <p> 客户开票信息记录表 实体类 </p>
|
||||
*/
|
||||
|
||||
package com.xdadan.erp.emis.service.impl;
|
||||
|
||||
import java.util.List;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Service;
|
||||
import com.xdadan.erp.emis.domain.EmisCustomerInvoiceInfo;
|
||||
import com.xdadan.erp.emis.mapper.EmisCustomerInvoiceInfoMapper;
|
||||
import com.xdadan.erp.emis.service.IEmisCustomerInvoiceInfoService;
|
||||
|
||||
/**
|
||||
* 客户开票信息记录表Service业务层处理
|
||||
*
|
||||
* @author linfso
|
||||
* @date 2024-07-21 13:31:25
|
||||
*/
|
||||
@Service
|
||||
public class EmisCustomerInvoiceInfoServiceImpl implements IEmisCustomerInvoiceInfoService
|
||||
{
|
||||
@Autowired
|
||||
private EmisCustomerInvoiceInfoMapper emisCustomerInvoiceInfoMapper;
|
||||
|
||||
/**
|
||||
* 查询客户开票信息记录表
|
||||
*
|
||||
* @param id 客户开票信息记录表主键
|
||||
* @return 客户开票信息记录表
|
||||
*/
|
||||
@Override
|
||||
public EmisCustomerInvoiceInfo selectEmisCustomerInvoiceInfoById(Long id)
|
||||
{
|
||||
return emisCustomerInvoiceInfoMapper.selectEmisCustomerInvoiceInfoById(id);
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* 查询客户开票信息记录表列表
|
||||
*
|
||||
* @param emisCustomerInvoiceInfo 客户开票信息记录表
|
||||
* @return 客户开票信息记录表
|
||||
*/
|
||||
@Override
|
||||
public List<EmisCustomerInvoiceInfo> selectEmisCustomerInvoiceInfoList(EmisCustomerInvoiceInfo emisCustomerInvoiceInfo)
|
||||
{
|
||||
return emisCustomerInvoiceInfoMapper.selectEmisCustomerInvoiceInfoList(emisCustomerInvoiceInfo);
|
||||
}
|
||||
|
||||
/**
|
||||
* 检查是否重复
|
||||
*
|
||||
* @param emisCustomerInvoiceInfo
|
||||
* @return 数量
|
||||
*/
|
||||
@Override
|
||||
public int checkUnique(EmisCustomerInvoiceInfo emisCustomerInvoiceInfo)
|
||||
{
|
||||
return emisCustomerInvoiceInfoMapper.checkUnique(emisCustomerInvoiceInfo);
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增客户开票信息记录表
|
||||
*
|
||||
* @param emisCustomerInvoiceInfo 客户开票信息记录表
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int insertEmisCustomerInvoiceInfo(EmisCustomerInvoiceInfo emisCustomerInvoiceInfo)
|
||||
{
|
||||
return emisCustomerInvoiceInfoMapper.insertEmisCustomerInvoiceInfo(emisCustomerInvoiceInfo);
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改客户开票信息记录表
|
||||
*
|
||||
* @param emisCustomerInvoiceInfo 客户开票信息记录表
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int updateEmisCustomerInvoiceInfo(EmisCustomerInvoiceInfo emisCustomerInvoiceInfo)
|
||||
{
|
||||
return emisCustomerInvoiceInfoMapper.updateEmisCustomerInvoiceInfo(emisCustomerInvoiceInfo);
|
||||
}
|
||||
|
||||
/**
|
||||
* 批量删除客户开票信息记录表
|
||||
*
|
||||
* @param ids 需要删除的客户开票信息记录表主键
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int deleteEmisCustomerInvoiceInfoByIds(Long[] ids)
|
||||
{
|
||||
return emisCustomerInvoiceInfoMapper.deleteEmisCustomerInvoiceInfoByIds(ids);
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除客户开票信息记录表信息
|
||||
*
|
||||
* @param id 客户开票信息记录表主键
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int deleteEmisCustomerInvoiceInfoById(Long id)
|
||||
{
|
||||
return emisCustomerInvoiceInfoMapper.deleteEmisCustomerInvoiceInfoById(id);
|
||||
}
|
||||
|
||||
}
|
||||
@ -0,0 +1,117 @@
|
||||
/**
|
||||
* @Project: emis
|
||||
* @Title: EmisSettleInvoiceRecordServiceImpl.java
|
||||
* @author linfso
|
||||
* @date 2024-07-21 13:31:26
|
||||
* @Copyright: ShangHai Duta 2022 All rights reserved.
|
||||
* @version v1.0
|
||||
* @Description: <p> 开票记录表 实体类 </p>
|
||||
*/
|
||||
|
||||
package com.xdadan.erp.emis.service.impl;
|
||||
|
||||
import java.util.List;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Service;
|
||||
import com.xdadan.erp.emis.domain.EmisSettleInvoiceRecord;
|
||||
import com.xdadan.erp.emis.mapper.EmisSettleInvoiceRecordMapper;
|
||||
import com.xdadan.erp.emis.service.IEmisSettleInvoiceRecordService;
|
||||
|
||||
/**
|
||||
* 开票记录表Service业务层处理
|
||||
*
|
||||
* @author linfso
|
||||
* @date 2024-07-21 13:31:26
|
||||
*/
|
||||
@Service
|
||||
public class EmisSettleInvoiceRecordServiceImpl implements IEmisSettleInvoiceRecordService
|
||||
{
|
||||
@Autowired
|
||||
private EmisSettleInvoiceRecordMapper emisSettleInvoiceRecordMapper;
|
||||
|
||||
/**
|
||||
* 查询开票记录表
|
||||
*
|
||||
* @param id 开票记录表主键
|
||||
* @return 开票记录表
|
||||
*/
|
||||
@Override
|
||||
public EmisSettleInvoiceRecord selectEmisSettleInvoiceRecordById(Long id)
|
||||
{
|
||||
return emisSettleInvoiceRecordMapper.selectEmisSettleInvoiceRecordById(id);
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* 查询开票记录表列表
|
||||
*
|
||||
* @param emisSettleInvoiceRecord 开票记录表
|
||||
* @return 开票记录表
|
||||
*/
|
||||
@Override
|
||||
public List<EmisSettleInvoiceRecord> selectEmisSettleInvoiceRecordList(EmisSettleInvoiceRecord emisSettleInvoiceRecord)
|
||||
{
|
||||
return emisSettleInvoiceRecordMapper.selectEmisSettleInvoiceRecordList(emisSettleInvoiceRecord);
|
||||
}
|
||||
|
||||
/**
|
||||
* 检查是否重复
|
||||
*
|
||||
* @param emisSettleInvoiceRecord
|
||||
* @return 数量
|
||||
*/
|
||||
@Override
|
||||
public int checkUnique(EmisSettleInvoiceRecord emisSettleInvoiceRecord)
|
||||
{
|
||||
return emisSettleInvoiceRecordMapper.checkUnique(emisSettleInvoiceRecord);
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增开票记录表
|
||||
*
|
||||
* @param emisSettleInvoiceRecord 开票记录表
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int insertEmisSettleInvoiceRecord(EmisSettleInvoiceRecord emisSettleInvoiceRecord)
|
||||
{
|
||||
return emisSettleInvoiceRecordMapper.insertEmisSettleInvoiceRecord(emisSettleInvoiceRecord);
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改开票记录表
|
||||
*
|
||||
* @param emisSettleInvoiceRecord 开票记录表
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int updateEmisSettleInvoiceRecord(EmisSettleInvoiceRecord emisSettleInvoiceRecord)
|
||||
{
|
||||
return emisSettleInvoiceRecordMapper.updateEmisSettleInvoiceRecord(emisSettleInvoiceRecord);
|
||||
}
|
||||
|
||||
/**
|
||||
* 批量删除开票记录表
|
||||
*
|
||||
* @param ids 需要删除的开票记录表主键
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int deleteEmisSettleInvoiceRecordByIds(Long[] ids)
|
||||
{
|
||||
return emisSettleInvoiceRecordMapper.deleteEmisSettleInvoiceRecordByIds(ids);
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除开票记录表信息
|
||||
*
|
||||
* @param id 开票记录表主键
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int deleteEmisSettleInvoiceRecordById(Long id)
|
||||
{
|
||||
return emisSettleInvoiceRecordMapper.deleteEmisSettleInvoiceRecordById(id);
|
||||
}
|
||||
|
||||
}
|
||||
@ -0,0 +1,117 @@
|
||||
/**
|
||||
* @Project: emis
|
||||
* @Title: EmisSettleInvoiceRelServiceImpl.java
|
||||
* @author linfso
|
||||
* @date 2024-07-21 13:31:27
|
||||
* @Copyright: ShangHai Duta 2022 All rights reserved.
|
||||
* @version v1.0
|
||||
* @Description: <p> 开票子账单关联表 实体类 </p>
|
||||
*/
|
||||
|
||||
package com.xdadan.erp.emis.service.impl;
|
||||
|
||||
import java.util.List;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Service;
|
||||
import com.xdadan.erp.emis.domain.EmisSettleInvoiceRel;
|
||||
import com.xdadan.erp.emis.mapper.EmisSettleInvoiceRelMapper;
|
||||
import com.xdadan.erp.emis.service.IEmisSettleInvoiceRelService;
|
||||
|
||||
/**
|
||||
* 开票子账单关联表Service业务层处理
|
||||
*
|
||||
* @author linfso
|
||||
* @date 2024-07-21 13:31:27
|
||||
*/
|
||||
@Service
|
||||
public class EmisSettleInvoiceRelServiceImpl implements IEmisSettleInvoiceRelService
|
||||
{
|
||||
@Autowired
|
||||
private EmisSettleInvoiceRelMapper emisSettleInvoiceRelMapper;
|
||||
|
||||
/**
|
||||
* 查询开票子账单关联表
|
||||
*
|
||||
* @param id 开票子账单关联表主键
|
||||
* @return 开票子账单关联表
|
||||
*/
|
||||
@Override
|
||||
public EmisSettleInvoiceRel selectEmisSettleInvoiceRelById(Long id)
|
||||
{
|
||||
return emisSettleInvoiceRelMapper.selectEmisSettleInvoiceRelById(id);
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* 查询开票子账单关联表列表
|
||||
*
|
||||
* @param emisSettleInvoiceRel 开票子账单关联表
|
||||
* @return 开票子账单关联表
|
||||
*/
|
||||
@Override
|
||||
public List<EmisSettleInvoiceRel> selectEmisSettleInvoiceRelList(EmisSettleInvoiceRel emisSettleInvoiceRel)
|
||||
{
|
||||
return emisSettleInvoiceRelMapper.selectEmisSettleInvoiceRelList(emisSettleInvoiceRel);
|
||||
}
|
||||
|
||||
/**
|
||||
* 检查是否重复
|
||||
*
|
||||
* @param emisSettleInvoiceRel
|
||||
* @return 数量
|
||||
*/
|
||||
@Override
|
||||
public int checkUnique(EmisSettleInvoiceRel emisSettleInvoiceRel)
|
||||
{
|
||||
return emisSettleInvoiceRelMapper.checkUnique(emisSettleInvoiceRel);
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增开票子账单关联表
|
||||
*
|
||||
* @param emisSettleInvoiceRel 开票子账单关联表
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int insertEmisSettleInvoiceRel(EmisSettleInvoiceRel emisSettleInvoiceRel)
|
||||
{
|
||||
return emisSettleInvoiceRelMapper.insertEmisSettleInvoiceRel(emisSettleInvoiceRel);
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改开票子账单关联表
|
||||
*
|
||||
* @param emisSettleInvoiceRel 开票子账单关联表
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int updateEmisSettleInvoiceRel(EmisSettleInvoiceRel emisSettleInvoiceRel)
|
||||
{
|
||||
return emisSettleInvoiceRelMapper.updateEmisSettleInvoiceRel(emisSettleInvoiceRel);
|
||||
}
|
||||
|
||||
/**
|
||||
* 批量删除开票子账单关联表
|
||||
*
|
||||
* @param ids 需要删除的开票子账单关联表主键
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int deleteEmisSettleInvoiceRelByIds(Long[] ids)
|
||||
{
|
||||
return emisSettleInvoiceRelMapper.deleteEmisSettleInvoiceRelByIds(ids);
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除开票子账单关联表信息
|
||||
*
|
||||
* @param id 开票子账单关联表主键
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int deleteEmisSettleInvoiceRelById(Long id)
|
||||
{
|
||||
return emisSettleInvoiceRelMapper.deleteEmisSettleInvoiceRelById(id);
|
||||
}
|
||||
|
||||
}
|
||||
@ -0,0 +1,117 @@
|
||||
/**
|
||||
* @Project: emis
|
||||
* @Title: EmisSettlePayRecordServiceImpl.java
|
||||
* @author linfso
|
||||
* @date 2024-07-21 13:31:24
|
||||
* @Copyright: ShangHai Duta 2022 All rights reserved.
|
||||
* @version v1.0
|
||||
* @Description: <p> 账单收退款记录 实体类 </p>
|
||||
*/
|
||||
|
||||
package com.xdadan.erp.emis.service.impl;
|
||||
|
||||
import java.util.List;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Service;
|
||||
import com.xdadan.erp.emis.domain.EmisSettlePayRecord;
|
||||
import com.xdadan.erp.emis.mapper.EmisSettlePayRecordMapper;
|
||||
import com.xdadan.erp.emis.service.IEmisSettlePayRecordService;
|
||||
|
||||
/**
|
||||
* 账单收退款记录Service业务层处理
|
||||
*
|
||||
* @author linfso
|
||||
* @date 2024-07-21 13:31:24
|
||||
*/
|
||||
@Service
|
||||
public class EmisSettlePayRecordServiceImpl implements IEmisSettlePayRecordService
|
||||
{
|
||||
@Autowired
|
||||
private EmisSettlePayRecordMapper emisSettlePayRecordMapper;
|
||||
|
||||
/**
|
||||
* 查询账单收退款记录
|
||||
*
|
||||
* @param id 账单收退款记录主键
|
||||
* @return 账单收退款记录
|
||||
*/
|
||||
@Override
|
||||
public EmisSettlePayRecord selectEmisSettlePayRecordById(Long id)
|
||||
{
|
||||
return emisSettlePayRecordMapper.selectEmisSettlePayRecordById(id);
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* 查询账单收退款记录列表
|
||||
*
|
||||
* @param emisSettlePayRecord 账单收退款记录
|
||||
* @return 账单收退款记录
|
||||
*/
|
||||
@Override
|
||||
public List<EmisSettlePayRecord> selectEmisSettlePayRecordList(EmisSettlePayRecord emisSettlePayRecord)
|
||||
{
|
||||
return emisSettlePayRecordMapper.selectEmisSettlePayRecordList(emisSettlePayRecord);
|
||||
}
|
||||
|
||||
/**
|
||||
* 检查是否重复
|
||||
*
|
||||
* @param emisSettlePayRecord
|
||||
* @return 数量
|
||||
*/
|
||||
@Override
|
||||
public int checkUnique(EmisSettlePayRecord emisSettlePayRecord)
|
||||
{
|
||||
return emisSettlePayRecordMapper.checkUnique(emisSettlePayRecord);
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增账单收退款记录
|
||||
*
|
||||
* @param emisSettlePayRecord 账单收退款记录
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int insertEmisSettlePayRecord(EmisSettlePayRecord emisSettlePayRecord)
|
||||
{
|
||||
return emisSettlePayRecordMapper.insertEmisSettlePayRecord(emisSettlePayRecord);
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改账单收退款记录
|
||||
*
|
||||
* @param emisSettlePayRecord 账单收退款记录
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int updateEmisSettlePayRecord(EmisSettlePayRecord emisSettlePayRecord)
|
||||
{
|
||||
return emisSettlePayRecordMapper.updateEmisSettlePayRecord(emisSettlePayRecord);
|
||||
}
|
||||
|
||||
/**
|
||||
* 批量删除账单收退款记录
|
||||
*
|
||||
* @param ids 需要删除的账单收退款记录主键
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int deleteEmisSettlePayRecordByIds(Long[] ids)
|
||||
{
|
||||
return emisSettlePayRecordMapper.deleteEmisSettlePayRecordByIds(ids);
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除账单收退款记录信息
|
||||
*
|
||||
* @param id 账单收退款记录主键
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int deleteEmisSettlePayRecordById(Long id)
|
||||
{
|
||||
return emisSettlePayRecordMapper.deleteEmisSettlePayRecordById(id);
|
||||
}
|
||||
|
||||
}
|
||||
@ -0,0 +1,117 @@
|
||||
/**
|
||||
* @Project: emis
|
||||
* @Title: EmisSettlePayRelServiceImpl.java
|
||||
* @author linfso
|
||||
* @date 2024-07-21 13:31:25
|
||||
* @Copyright: ShangHai Duta 2022 All rights reserved.
|
||||
* @version v1.0
|
||||
* @Description: <p> 支付子账单关联表 实体类 </p>
|
||||
*/
|
||||
|
||||
package com.xdadan.erp.emis.service.impl;
|
||||
|
||||
import java.util.List;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Service;
|
||||
import com.xdadan.erp.emis.domain.EmisSettlePayRel;
|
||||
import com.xdadan.erp.emis.mapper.EmisSettlePayRelMapper;
|
||||
import com.xdadan.erp.emis.service.IEmisSettlePayRelService;
|
||||
|
||||
/**
|
||||
* 支付子账单关联表Service业务层处理
|
||||
*
|
||||
* @author linfso
|
||||
* @date 2024-07-21 13:31:25
|
||||
*/
|
||||
@Service
|
||||
public class EmisSettlePayRelServiceImpl implements IEmisSettlePayRelService
|
||||
{
|
||||
@Autowired
|
||||
private EmisSettlePayRelMapper emisSettlePayRelMapper;
|
||||
|
||||
/**
|
||||
* 查询支付子账单关联表
|
||||
*
|
||||
* @param id 支付子账单关联表主键
|
||||
* @return 支付子账单关联表
|
||||
*/
|
||||
@Override
|
||||
public EmisSettlePayRel selectEmisSettlePayRelById(Long id)
|
||||
{
|
||||
return emisSettlePayRelMapper.selectEmisSettlePayRelById(id);
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* 查询支付子账单关联表列表
|
||||
*
|
||||
* @param emisSettlePayRel 支付子账单关联表
|
||||
* @return 支付子账单关联表
|
||||
*/
|
||||
@Override
|
||||
public List<EmisSettlePayRel> selectEmisSettlePayRelList(EmisSettlePayRel emisSettlePayRel)
|
||||
{
|
||||
return emisSettlePayRelMapper.selectEmisSettlePayRelList(emisSettlePayRel);
|
||||
}
|
||||
|
||||
/**
|
||||
* 检查是否重复
|
||||
*
|
||||
* @param emisSettlePayRel
|
||||
* @return 数量
|
||||
*/
|
||||
@Override
|
||||
public int checkUnique(EmisSettlePayRel emisSettlePayRel)
|
||||
{
|
||||
return emisSettlePayRelMapper.checkUnique(emisSettlePayRel);
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增支付子账单关联表
|
||||
*
|
||||
* @param emisSettlePayRel 支付子账单关联表
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int insertEmisSettlePayRel(EmisSettlePayRel emisSettlePayRel)
|
||||
{
|
||||
return emisSettlePayRelMapper.insertEmisSettlePayRel(emisSettlePayRel);
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改支付子账单关联表
|
||||
*
|
||||
* @param emisSettlePayRel 支付子账单关联表
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int updateEmisSettlePayRel(EmisSettlePayRel emisSettlePayRel)
|
||||
{
|
||||
return emisSettlePayRelMapper.updateEmisSettlePayRel(emisSettlePayRel);
|
||||
}
|
||||
|
||||
/**
|
||||
* 批量删除支付子账单关联表
|
||||
*
|
||||
* @param ids 需要删除的支付子账单关联表主键
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int deleteEmisSettlePayRelByIds(Long[] ids)
|
||||
{
|
||||
return emisSettlePayRelMapper.deleteEmisSettlePayRelByIds(ids);
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除支付子账单关联表信息
|
||||
*
|
||||
* @param id 支付子账单关联表主键
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int deleteEmisSettlePayRelById(Long id)
|
||||
{
|
||||
return emisSettlePayRelMapper.deleteEmisSettlePayRelById(id);
|
||||
}
|
||||
|
||||
}
|
||||
164
emis-biz/src/main/resources/mapper/EmisBaseInvoiceInfoMapper.xml
Normal file
164
emis-biz/src/main/resources/mapper/EmisBaseInvoiceInfoMapper.xml
Normal file
@ -0,0 +1,164 @@
|
||||
<?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.xdadan.erp.emis.mapper.EmisBaseInvoiceInfoMapper">
|
||||
|
||||
<resultMap type="EmisBaseInvoiceInfo" id="EmisBaseInvoiceInfoResult">
|
||||
<result property="id" column="id" />
|
||||
<result property="comCode" column="com_code" />
|
||||
<result property="companyName" column="company_name" />
|
||||
<result property="companyTaxNo" column="company_tax_no" />
|
||||
<result property="companyTel" column="company_tel" />
|
||||
<result property="companyAddress" column="company_address" />
|
||||
<result property="invoiceType" column="invoice_type" />
|
||||
<result property="contact" column="contact" />
|
||||
<result property="phone" column="phone" />
|
||||
<result property="recieveAddress" column="recieve_address" />
|
||||
<result property="email" column="email" />
|
||||
</resultMap>
|
||||
|
||||
<sql id="selectEmisBaseInvoiceInfoVo">
|
||||
select id, com_code, company_name, company_tax_no, company_tel, company_address, invoice_type, contact, phone, recieve_address, email, remark, del_flag, create_by, create_time, update_by, update_time, create_site, update_site from emis_base_invoice_info
|
||||
</sql>
|
||||
|
||||
<select id="selectEmisBaseInvoiceInfoList" parameterType="EmisBaseInvoiceInfo" resultMap="EmisBaseInvoiceInfoResult">
|
||||
<include refid="selectEmisBaseInvoiceInfoVo"/>
|
||||
<where>
|
||||
del_flag='0'
|
||||
<if test="id != null "> and id = #{id}</if>
|
||||
<if test="comCode != null and comCode != ''"> and com_code = #{comCode}</if>
|
||||
<if test="companyName != null and companyName != ''"> and company_name like concat('%', #{companyName}, '%')</if>
|
||||
<if test="companyTaxNo != null and companyTaxNo != ''"> and company_tax_no like concat('%', #{companyTaxNo}, '%')</if>
|
||||
<if test="companyTel != null and companyTel != ''"> and company_tel like concat('%', #{companyTel}, '%')</if>
|
||||
<if test="companyAddress != null and companyAddress != ''"> and company_address like concat('%', #{companyAddress}, '%')</if>
|
||||
<if test="invoiceType != null and invoiceType != ''"> and invoice_type like concat('%', #{invoiceType}, '%')</if>
|
||||
<if test="contact != null and contact != ''"> and contact like concat('%', #{contact}, '%')</if>
|
||||
<if test="phone != null and phone != ''"> and phone like concat('%', #{phone}, '%')</if>
|
||||
<if test="recieveAddress != null and recieveAddress != ''"> and recieve_address like concat('%', #{recieveAddress}, '%')</if>
|
||||
<if test="email != null and email != ''"> and email like concat('%', #{email}, '%')</if>
|
||||
<if test="remark != null and remark != ''"> and remark like concat('%', #{remark}, '%')</if>
|
||||
<if test="delFlag != null and delFlag != ''"> and del_flag like concat('%', #{delFlag}, '%')</if>
|
||||
<if test="createBy != null and createBy != ''"> and create_by like concat('%', #{createBy}, '%')</if>
|
||||
<if test="createTime != null "> and create_time = #{createTime}</if>
|
||||
<if test="updateBy != null and updateBy != ''"> and update_by like concat('%', #{updateBy}, '%')</if>
|
||||
<if test="updateTime != null "> and update_time = #{updateTime}</if>
|
||||
<if test="createSite != null and createSite != ''"> and create_site like concat('%', #{createSite}, '%')</if>
|
||||
<if test="updateSite != null and updateSite != ''"> and update_site like concat('%', #{updateSite}, '%')</if>
|
||||
</where>
|
||||
order by create_time desc
|
||||
</select>
|
||||
|
||||
<select id="checkUnique" parameterType="EmisBaseInvoiceInfo" resultType="int">
|
||||
select count(1) from emis_base_invoice_info
|
||||
where del_flag='0'
|
||||
and id = #{id}
|
||||
and com_code = #{comCode}
|
||||
and company_name = #{companyName}
|
||||
and company_tax_no = #{companyTaxNo}
|
||||
and company_tel = #{companyTel}
|
||||
and company_address = #{companyAddress}
|
||||
and invoice_type = #{invoiceType}
|
||||
and contact = #{contact}
|
||||
and phone = #{phone}
|
||||
and recieve_address = #{recieveAddress}
|
||||
and email = #{email}
|
||||
and remark = #{remark}
|
||||
and del_flag = #{delFlag}
|
||||
and create_by = #{createBy}
|
||||
and create_time = #{createTime}
|
||||
and update_by = #{updateBy}
|
||||
and update_time = #{updateTime}
|
||||
and create_site = #{createSite}
|
||||
and update_site = #{updateSite}
|
||||
limit 1
|
||||
</select>
|
||||
|
||||
<select id="selectEmisBaseInvoiceInfoById" parameterType="Long" resultMap="EmisBaseInvoiceInfoResult">
|
||||
select id, com_code, company_name, company_tax_no, company_tel, company_address, invoice_type, contact, phone, recieve_address, email, remark, del_flag, create_by, create_time, update_by, update_time, create_site, update_site
|
||||
from emis_base_invoice_info a
|
||||
where a.id = #{id}
|
||||
</select>
|
||||
|
||||
<insert id="insertEmisBaseInvoiceInfo" parameterType="EmisBaseInvoiceInfo" useGeneratedKeys="true" keyProperty="id">
|
||||
insert into emis_base_invoice_info
|
||||
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||
<if test="id != null">id,</if>
|
||||
<if test="comCode != null and comCode != ''">com_code,</if>
|
||||
<if test="companyName != null and companyName != ''">company_name,</if>
|
||||
<if test="companyTaxNo != null and companyTaxNo != ''">company_tax_no,</if>
|
||||
<if test="companyTel != null and companyTel != ''">company_tel,</if>
|
||||
<if test="companyAddress != null and companyAddress != ''">company_address,</if>
|
||||
<if test="invoiceType != null and invoiceType != ''">invoice_type,</if>
|
||||
<if test="contact != null and contact != ''">contact,</if>
|
||||
<if test="phone != null and phone != ''">phone,</if>
|
||||
<if test="recieveAddress != null and recieveAddress != ''">recieve_address,</if>
|
||||
<if test="email != null and email != ''">email,</if>
|
||||
<if test="remark != null and remark != ''">remark,</if>
|
||||
<if test="delFlag != null and delFlag != ''">del_flag,</if>
|
||||
<if test="createBy != null and createBy != ''">create_by,</if>
|
||||
<if test="createTime != null">create_time,</if>
|
||||
<if test="updateBy != null and updateBy != ''">update_by,</if>
|
||||
<if test="updateTime != null">update_time,</if>
|
||||
<if test="createSite != null and createSite != ''">create_site,</if>
|
||||
<if test="updateSite != null and updateSite != ''">update_site,</if>
|
||||
</trim>
|
||||
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
||||
<if test="id != null">#{id},</if>
|
||||
<if test="comCode != null and comCode != ''">#{comCode},</if>
|
||||
<if test="companyName != null and companyName != ''">#{companyName},</if>
|
||||
<if test="companyTaxNo != null and companyTaxNo != ''">#{companyTaxNo},</if>
|
||||
<if test="companyTel != null and companyTel != ''">#{companyTel},</if>
|
||||
<if test="companyAddress != null and companyAddress != ''">#{companyAddress},</if>
|
||||
<if test="invoiceType != null and invoiceType != ''">#{invoiceType},</if>
|
||||
<if test="contact != null and contact != ''">#{contact},</if>
|
||||
<if test="phone != null and phone != ''">#{phone},</if>
|
||||
<if test="recieveAddress != null and recieveAddress != ''">#{recieveAddress},</if>
|
||||
<if test="email != null and email != ''">#{email},</if>
|
||||
<if test="remark != null and remark != ''">#{remark},</if>
|
||||
<if test="delFlag != null and delFlag != ''">#{delFlag},</if>
|
||||
<if test="createBy != null and createBy != ''">#{createBy},</if>
|
||||
<if test="createTime != null">#{createTime},</if>
|
||||
<if test="updateBy != null and updateBy != ''">#{updateBy},</if>
|
||||
<if test="updateTime != null">#{updateTime},</if>
|
||||
<if test="createSite != null and createSite != ''">#{createSite},</if>
|
||||
<if test="updateSite != null and updateSite != ''">#{updateSite},</if>
|
||||
</trim>
|
||||
</insert>
|
||||
|
||||
<update id="updateEmisBaseInvoiceInfo" parameterType="EmisBaseInvoiceInfo">
|
||||
update emis_base_invoice_info
|
||||
<trim prefix="SET" suffixOverrides=",">
|
||||
<if test="comCode != null and comCode != ''">com_code = #{comCode},</if>
|
||||
<if test="companyName != null and companyName != ''">company_name = #{companyName},</if>
|
||||
<if test="companyTaxNo != null and companyTaxNo != ''">company_tax_no = #{companyTaxNo},</if>
|
||||
<if test="companyTel != null and companyTel != ''">company_tel = #{companyTel},</if>
|
||||
<if test="companyAddress != null and companyAddress != ''">company_address = #{companyAddress},</if>
|
||||
<if test="invoiceType != null and invoiceType != ''">invoice_type = #{invoiceType},</if>
|
||||
<if test="contact != null and contact != ''">contact = #{contact},</if>
|
||||
<if test="phone != null and phone != ''">phone = #{phone},</if>
|
||||
<if test="recieveAddress != null and recieveAddress != ''">recieve_address = #{recieveAddress},</if>
|
||||
<if test="email != null and email != ''">email = #{email},</if>
|
||||
<if test="remark != null and remark != ''">remark = #{remark},</if>
|
||||
<if test="delFlag != null and delFlag != ''">del_flag = #{delFlag},</if>
|
||||
<if test="createBy != null and createBy != ''">create_by = #{createBy},</if>
|
||||
<if test="createTime != null">create_time = #{createTime},</if>
|
||||
<if test="updateBy != null and updateBy != ''">update_by = #{updateBy},</if>
|
||||
<if test="updateTime != null">update_time = #{updateTime},</if>
|
||||
<if test="createSite != null and createSite != ''">create_site = #{createSite},</if>
|
||||
<if test="updateSite != null and updateSite != ''">update_site = #{updateSite},</if>
|
||||
</trim>
|
||||
where id = #{id}
|
||||
</update>
|
||||
|
||||
<delete id="deleteEmisBaseInvoiceInfoById" parameterType="Long">
|
||||
delete from emis_base_invoice_info where id = #{id}
|
||||
</delete>
|
||||
|
||||
<delete id="deleteEmisBaseInvoiceInfoByIds" parameterType="String">
|
||||
delete from emis_base_invoice_info where id in
|
||||
<foreach item="id" collection="array" open="(" separator="," close=")">
|
||||
#{id}
|
||||
</foreach>
|
||||
</delete>
|
||||
</mapper>
|
||||
@ -0,0 +1,170 @@
|
||||
<?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.xdadan.erp.emis.mapper.EmisCustomerInvoiceInfoMapper">
|
||||
|
||||
<resultMap type="EmisCustomerInvoiceInfo" id="EmisCustomerInvoiceInfoResult">
|
||||
<result property="id" column="id" />
|
||||
<result property="companyName" column="company_name" />
|
||||
<result property="companyTaxNo" column="company_tax_no" />
|
||||
<result property="companyTel" column="company_tel" />
|
||||
<result property="companyAddress" column="company_address" />
|
||||
<result property="invoiceType" column="invoice_type" />
|
||||
<result property="customerCode" column="customer_code" />
|
||||
<result property="customerName" column="customer_name" />
|
||||
<result property="contact" column="contact" />
|
||||
<result property="phone" column="phone" />
|
||||
<result property="recieveAddress" column="recieve_address" />
|
||||
<result property="email" column="email" />
|
||||
</resultMap>
|
||||
|
||||
<sql id="selectEmisCustomerInvoiceInfoVo">
|
||||
select id, company_name, company_tax_no, company_tel, company_address, invoice_type, customer_code, customer_name, contact, phone, recieve_address, email, remark, del_flag, create_by, create_time, update_by, update_time, create_site, update_site from emis_customer_invoice_info
|
||||
</sql>
|
||||
|
||||
<select id="selectEmisCustomerInvoiceInfoList" parameterType="EmisCustomerInvoiceInfo" resultMap="EmisCustomerInvoiceInfoResult">
|
||||
<include refid="selectEmisCustomerInvoiceInfoVo"/>
|
||||
<where>
|
||||
del_flag='0'
|
||||
<if test="id != null "> and id = #{id}</if>
|
||||
<if test="companyName != null and companyName != ''"> and company_name like concat('%', #{companyName}, '%')</if>
|
||||
<if test="companyTaxNo != null and companyTaxNo != ''"> and company_tax_no like concat('%', #{companyTaxNo}, '%')</if>
|
||||
<if test="companyTel != null and companyTel != ''"> and company_tel like concat('%', #{companyTel}, '%')</if>
|
||||
<if test="companyAddress != null and companyAddress != ''"> and company_address like concat('%', #{companyAddress}, '%')</if>
|
||||
<if test="invoiceType != null and invoiceType != ''"> and invoice_type like concat('%', #{invoiceType}, '%')</if>
|
||||
<if test="customerCode != null and customerCode != ''"> and customer_code like concat('%', #{customerCode}, '%')</if>
|
||||
<if test="customerName != null and customerName != ''"> and customer_name like concat('%', #{customerName}, '%')</if>
|
||||
<if test="contact != null and contact != ''"> and contact like concat('%', #{contact}, '%')</if>
|
||||
<if test="phone != null and phone != ''"> and phone like concat('%', #{phone}, '%')</if>
|
||||
<if test="recieveAddress != null and recieveAddress != ''"> and recieve_address like concat('%', #{recieveAddress}, '%')</if>
|
||||
<if test="email != null and email != ''"> and email like concat('%', #{email}, '%')</if>
|
||||
<if test="remark != null and remark != ''"> and remark like concat('%', #{remark}, '%')</if>
|
||||
<if test="delFlag != null and delFlag != ''"> and del_flag like concat('%', #{delFlag}, '%')</if>
|
||||
<if test="createBy != null and createBy != ''"> and create_by like concat('%', #{createBy}, '%')</if>
|
||||
<if test="createTime != null "> and create_time = #{createTime}</if>
|
||||
<if test="updateBy != null and updateBy != ''"> and update_by like concat('%', #{updateBy}, '%')</if>
|
||||
<if test="updateTime != null "> and update_time = #{updateTime}</if>
|
||||
<if test="createSite != null and createSite != ''"> and create_site like concat('%', #{createSite}, '%')</if>
|
||||
<if test="updateSite != null and updateSite != ''"> and update_site like concat('%', #{updateSite}, '%')</if>
|
||||
</where>
|
||||
order by create_time desc
|
||||
</select>
|
||||
|
||||
<select id="checkUnique" parameterType="EmisCustomerInvoiceInfo" resultType="int">
|
||||
select count(1) from emis_customer_invoice_info
|
||||
where del_flag='0'
|
||||
and id = #{id}
|
||||
and company_name = #{companyName}
|
||||
and company_tax_no = #{companyTaxNo}
|
||||
and company_tel = #{companyTel}
|
||||
and company_address = #{companyAddress}
|
||||
and invoice_type = #{invoiceType}
|
||||
and customer_code = #{customerCode}
|
||||
and customer_name = #{customerName}
|
||||
and contact = #{contact}
|
||||
and phone = #{phone}
|
||||
and recieve_address = #{recieveAddress}
|
||||
and email = #{email}
|
||||
and remark = #{remark}
|
||||
and del_flag = #{delFlag}
|
||||
and create_by = #{createBy}
|
||||
and create_time = #{createTime}
|
||||
and update_by = #{updateBy}
|
||||
and update_time = #{updateTime}
|
||||
and create_site = #{createSite}
|
||||
and update_site = #{updateSite}
|
||||
limit 1
|
||||
</select>
|
||||
|
||||
<select id="selectEmisCustomerInvoiceInfoById" parameterType="Long" resultMap="EmisCustomerInvoiceInfoResult">
|
||||
select id, company_name, company_tax_no, company_tel, company_address, invoice_type, customer_code, customer_name, contact, phone, recieve_address, email, remark, del_flag, create_by, create_time, update_by, update_time, create_site, update_site
|
||||
from emis_customer_invoice_info a
|
||||
where a.id = #{id}
|
||||
</select>
|
||||
|
||||
<insert id="insertEmisCustomerInvoiceInfo" parameterType="EmisCustomerInvoiceInfo" useGeneratedKeys="true" keyProperty="id">
|
||||
insert into emis_customer_invoice_info
|
||||
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||
<if test="id != null">id,</if>
|
||||
<if test="companyName != null and companyName != ''">company_name,</if>
|
||||
<if test="companyTaxNo != null and companyTaxNo != ''">company_tax_no,</if>
|
||||
<if test="companyTel != null and companyTel != ''">company_tel,</if>
|
||||
<if test="companyAddress != null and companyAddress != ''">company_address,</if>
|
||||
<if test="invoiceType != null and invoiceType != ''">invoice_type,</if>
|
||||
<if test="customerCode != null and customerCode != ''">customer_code,</if>
|
||||
<if test="customerName != null and customerName != ''">customer_name,</if>
|
||||
<if test="contact != null and contact != ''">contact,</if>
|
||||
<if test="phone != null and phone != ''">phone,</if>
|
||||
<if test="recieveAddress != null and recieveAddress != ''">recieve_address,</if>
|
||||
<if test="email != null and email != ''">email,</if>
|
||||
<if test="remark != null and remark != ''">remark,</if>
|
||||
<if test="delFlag != null and delFlag != ''">del_flag,</if>
|
||||
<if test="createBy != null and createBy != ''">create_by,</if>
|
||||
<if test="createTime != null">create_time,</if>
|
||||
<if test="updateBy != null and updateBy != ''">update_by,</if>
|
||||
<if test="updateTime != null">update_time,</if>
|
||||
<if test="createSite != null and createSite != ''">create_site,</if>
|
||||
<if test="updateSite != null and updateSite != ''">update_site,</if>
|
||||
</trim>
|
||||
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
||||
<if test="id != null">#{id},</if>
|
||||
<if test="companyName != null and companyName != ''">#{companyName},</if>
|
||||
<if test="companyTaxNo != null and companyTaxNo != ''">#{companyTaxNo},</if>
|
||||
<if test="companyTel != null and companyTel != ''">#{companyTel},</if>
|
||||
<if test="companyAddress != null and companyAddress != ''">#{companyAddress},</if>
|
||||
<if test="invoiceType != null and invoiceType != ''">#{invoiceType},</if>
|
||||
<if test="customerCode != null and customerCode != ''">#{customerCode},</if>
|
||||
<if test="customerName != null and customerName != ''">#{customerName},</if>
|
||||
<if test="contact != null and contact != ''">#{contact},</if>
|
||||
<if test="phone != null and phone != ''">#{phone},</if>
|
||||
<if test="recieveAddress != null and recieveAddress != ''">#{recieveAddress},</if>
|
||||
<if test="email != null and email != ''">#{email},</if>
|
||||
<if test="remark != null and remark != ''">#{remark},</if>
|
||||
<if test="delFlag != null and delFlag != ''">#{delFlag},</if>
|
||||
<if test="createBy != null and createBy != ''">#{createBy},</if>
|
||||
<if test="createTime != null">#{createTime},</if>
|
||||
<if test="updateBy != null and updateBy != ''">#{updateBy},</if>
|
||||
<if test="updateTime != null">#{updateTime},</if>
|
||||
<if test="createSite != null and createSite != ''">#{createSite},</if>
|
||||
<if test="updateSite != null and updateSite != ''">#{updateSite},</if>
|
||||
</trim>
|
||||
</insert>
|
||||
|
||||
<update id="updateEmisCustomerInvoiceInfo" parameterType="EmisCustomerInvoiceInfo">
|
||||
update emis_customer_invoice_info
|
||||
<trim prefix="SET" suffixOverrides=",">
|
||||
<if test="companyName != null and companyName != ''">company_name = #{companyName},</if>
|
||||
<if test="companyTaxNo != null and companyTaxNo != ''">company_tax_no = #{companyTaxNo},</if>
|
||||
<if test="companyTel != null and companyTel != ''">company_tel = #{companyTel},</if>
|
||||
<if test="companyAddress != null and companyAddress != ''">company_address = #{companyAddress},</if>
|
||||
<if test="invoiceType != null and invoiceType != ''">invoice_type = #{invoiceType},</if>
|
||||
<if test="customerCode != null and customerCode != ''">customer_code = #{customerCode},</if>
|
||||
<if test="customerName != null and customerName != ''">customer_name = #{customerName},</if>
|
||||
<if test="contact != null and contact != ''">contact = #{contact},</if>
|
||||
<if test="phone != null and phone != ''">phone = #{phone},</if>
|
||||
<if test="recieveAddress != null and recieveAddress != ''">recieve_address = #{recieveAddress},</if>
|
||||
<if test="email != null and email != ''">email = #{email},</if>
|
||||
<if test="remark != null and remark != ''">remark = #{remark},</if>
|
||||
<if test="delFlag != null and delFlag != ''">del_flag = #{delFlag},</if>
|
||||
<if test="createBy != null and createBy != ''">create_by = #{createBy},</if>
|
||||
<if test="createTime != null">create_time = #{createTime},</if>
|
||||
<if test="updateBy != null and updateBy != ''">update_by = #{updateBy},</if>
|
||||
<if test="updateTime != null">update_time = #{updateTime},</if>
|
||||
<if test="createSite != null and createSite != ''">create_site = #{createSite},</if>
|
||||
<if test="updateSite != null and updateSite != ''">update_site = #{updateSite},</if>
|
||||
</trim>
|
||||
where id = #{id}
|
||||
</update>
|
||||
|
||||
<delete id="deleteEmisCustomerInvoiceInfoById" parameterType="Long">
|
||||
delete from emis_customer_invoice_info where id = #{id}
|
||||
</delete>
|
||||
|
||||
<delete id="deleteEmisCustomerInvoiceInfoByIds" parameterType="String">
|
||||
delete from emis_customer_invoice_info where id in
|
||||
<foreach item="id" collection="array" open="(" separator="," close=")">
|
||||
#{id}
|
||||
</foreach>
|
||||
</delete>
|
||||
</mapper>
|
||||
@ -0,0 +1,320 @@
|
||||
<?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.xdadan.erp.emis.mapper.EmisSettleInvoiceRecordMapper">
|
||||
|
||||
<resultMap type="EmisSettleInvoiceRecord" id="EmisSettleInvoiceRecordResult">
|
||||
<result property="id" column="id" />
|
||||
<result property="applySeqNo" column="apply_seq_no" />
|
||||
<result property="applyDate" column="apply_date" />
|
||||
<result property="applyManCode" column="apply_man_code" />
|
||||
<result property="applySiteCode" column="apply_site_code" />
|
||||
<result property="customerCode" column="customer_code" />
|
||||
<result property="customerName" column="customer_name" />
|
||||
<result property="settleBillNo" column="settle_bill_no" />
|
||||
<result property="settleBillName" column="settle_bill_name" />
|
||||
<result property="applyMoney" column="apply_money" />
|
||||
<result property="invoiceType" column="invoice_type" />
|
||||
<result property="companyName" column="company_name" />
|
||||
<result property="companyTaxNo" column="company_tax_no" />
|
||||
<result property="companyTel" column="company_tel" />
|
||||
<result property="companyAddress" column="company_address" />
|
||||
<result property="contact" column="contact" />
|
||||
<result property="phone" column="phone" />
|
||||
<result property="realTaxType" column="real_tax_type" />
|
||||
<result property="openMoneyMax" column="open_money_max" />
|
||||
<result property="openMoney" column="open_money" />
|
||||
<result property="invoiceNo" column="invoice_no" />
|
||||
<result property="invoiceStatus" column="invoice_status" />
|
||||
<result property="invoiceStatusDesc" column="invoice_status_desc" />
|
||||
<result property="recieveAddress" column="recieve_address" />
|
||||
<result property="email" column="email" />
|
||||
<result property="filePath" column="file_path" />
|
||||
<result property="blAudit" column="bl_audit" />
|
||||
<result property="auditDate" column="audit_date" />
|
||||
<result property="auditManCode" column="audit_man_code" />
|
||||
<result property="auditSiteCode" column="audit_site_code" />
|
||||
<result property="opManCode" column="op_man_code" />
|
||||
<result property="opDate" column="op_date" />
|
||||
<result property="opSiteCode" column="op_site_code" />
|
||||
<result property="openChId" column="open_ch_id" />
|
||||
<result property="openChStatus" column="open_ch_status" />
|
||||
<result property="openChStatusDesc" column="open_ch_status_desc" />
|
||||
<result property="openComCode" column="open_com_code" />
|
||||
</resultMap>
|
||||
|
||||
<sql id="selectEmisSettleInvoiceRecordVo">
|
||||
select id, apply_seq_no, apply_date, apply_man_code, apply_site_code, customer_code, customer_name, settle_bill_no, settle_bill_name, apply_money, invoice_type, company_name, company_tax_no, company_tel, company_address, contact, phone, real_tax_type, open_money_max, open_money, invoice_no, invoice_status, invoice_status_desc, recieve_address, email, file_path, remark, bl_audit, audit_date, audit_man_code, audit_site_code, op_man_code, op_date, op_site_code, open_ch_id, open_ch_status, open_ch_status_desc, open_com_code, del_flag, create_by, create_time, update_by, update_time, create_site, update_site from emis_settle_invoice_record
|
||||
</sql>
|
||||
|
||||
<select id="selectEmisSettleInvoiceRecordList" parameterType="EmisSettleInvoiceRecord" resultMap="EmisSettleInvoiceRecordResult">
|
||||
<include refid="selectEmisSettleInvoiceRecordVo"/>
|
||||
<where>
|
||||
del_flag='0'
|
||||
<if test="id != null "> and id = #{id}</if>
|
||||
<if test="applySeqNo != null and applySeqNo != ''"> and apply_seq_no = #{applySeqNo}</if>
|
||||
<if test="applyDate != null "> and apply_date = #{applyDate}</if>
|
||||
<if test="applyManCode != null and applyManCode != ''"> and apply_man_code = #{applyManCode}</if>
|
||||
<if test="applySiteCode != null and applySiteCode != ''"> and apply_site_code = #{applySiteCode}</if>
|
||||
<if test="customerCode != null and customerCode != ''"> and customer_code = #{customerCode}</if>
|
||||
<if test="customerName != null and customerName != ''"> and customer_name like concat('%', #{customerName}, '%')</if>
|
||||
<if test="settleBillNo != null and settleBillNo != ''"> and settle_bill_no = #{settleBillNo}</if>
|
||||
<if test="settleBillName != null and settleBillName != ''"> and settle_bill_name like concat('%', #{settleBillName}, '%')</if>
|
||||
<if test="applyMoney != null "> and apply_money = #{applyMoney}</if>
|
||||
<if test="invoiceType != null and invoiceType != ''"> and invoice_type = #{invoiceType}</if>
|
||||
<if test="companyName != null and companyName != ''"> and company_name like concat('%', #{companyName}, '%')</if>
|
||||
<if test="companyTaxNo != null and companyTaxNo != ''"> and company_tax_no = #{companyTaxNo}</if>
|
||||
<if test="companyTel != null and companyTel != ''"> and company_tel like concat('%', #{companyTel}, '%')</if>
|
||||
<if test="companyAddress != null and companyAddress != ''"> and company_address like concat('%', #{companyAddress}, '%')</if>
|
||||
<if test="contact != null and contact != ''"> and contact like concat('%', #{contact}, '%')</if>
|
||||
<if test="phone != null and phone != ''"> and phone like concat('%', #{phone}, '%')</if>
|
||||
<if test="realTaxType != null and realTaxType != ''"> and real_tax_type = #{realTaxType}</if>
|
||||
<if test="openMoneyMax != null "> and open_money_max = #{openMoneyMax}</if>
|
||||
<if test="openMoney != null "> and open_money = #{openMoney}</if>
|
||||
<if test="invoiceNo != null and invoiceNo != ''"> and invoice_no = #{invoiceNo}</if>
|
||||
<if test="invoiceStatus != null and invoiceStatus != ''"> and invoice_status = #{invoiceStatus}</if>
|
||||
<if test="invoiceStatusDesc != null and invoiceStatusDesc != ''"> and invoice_status_desc like concat('%', #{invoiceStatusDesc}, '%')</if>
|
||||
<if test="recieveAddress != null and recieveAddress != ''"> and recieve_address like concat('%', #{recieveAddress}, '%')</if>
|
||||
<if test="email != null and email != ''"> and email like concat('%', #{email}, '%')</if>
|
||||
<if test="filePath != null and filePath != ''"> and file_path like concat('%', #{filePath}, '%')</if>
|
||||
<if test="remark != null and remark != ''"> and remark like concat('%', #{remark}, '%')</if>
|
||||
<if test="blAudit != null and blAudit != ''"> and bl_audit = #{blAudit}</if>
|
||||
<if test="auditDate != null "> and audit_date = #{auditDate}</if>
|
||||
<if test="auditManCode != null and auditManCode != ''"> and audit_man_code like concat('%', #{auditManCode}, '%')</if>
|
||||
<if test="auditSiteCode != null and auditSiteCode != ''"> and audit_site_code like concat('%', #{auditSiteCode}, '%')</if>
|
||||
<if test="opManCode != null and opManCode != ''"> and op_man_code like concat('%', #{opManCode}, '%')</if>
|
||||
<if test="opDate != null "> and op_date = #{opDate}</if>
|
||||
<if test="opSiteCode != null and opSiteCode != ''"> and op_site_code = #{opSiteCode}</if>
|
||||
<if test="openChId != null and openChId != ''"> and open_ch_id = #{openChId}</if>
|
||||
<if test="openChStatus != null and openChStatus != ''"> and open_ch_status = #{openChStatus}</if>
|
||||
<if test="openChStatusDesc != null and openChStatusDesc != ''"> and open_ch_status_desc = #{openChStatusDesc}</if>
|
||||
<if test="openComCode != null and openComCode != ''"> and open_com_code = #{openComCode}</if>
|
||||
<if test="delFlag != null and delFlag != ''"> and del_flag like concat('%', #{delFlag}, '%')</if>
|
||||
<if test="createBy != null and createBy != ''"> and create_by like concat('%', #{createBy}, '%')</if>
|
||||
<if test="createTime != null "> and create_time = #{createTime}</if>
|
||||
<if test="updateBy != null and updateBy != ''"> and update_by like concat('%', #{updateBy}, '%')</if>
|
||||
<if test="updateTime != null "> and update_time = #{updateTime}</if>
|
||||
<if test="createSite != null and createSite != ''"> and create_site like concat('%', #{createSite}, '%')</if>
|
||||
<if test="updateSite != null and updateSite != ''"> and update_site like concat('%', #{updateSite}, '%')</if>
|
||||
</where>
|
||||
order by create_time desc
|
||||
</select>
|
||||
|
||||
<select id="checkUnique" parameterType="EmisSettleInvoiceRecord" resultType="int">
|
||||
select count(1) from emis_settle_invoice_record
|
||||
where del_flag='0'
|
||||
and id = #{id}
|
||||
and apply_seq_no = #{applySeqNo}
|
||||
and apply_date = #{applyDate}
|
||||
and apply_man_code = #{applyManCode}
|
||||
and apply_site_code = #{applySiteCode}
|
||||
and customer_code = #{customerCode}
|
||||
and customer_name = #{customerName}
|
||||
and settle_bill_no = #{settleBillNo}
|
||||
and settle_bill_name = #{settleBillName}
|
||||
and apply_money = #{applyMoney}
|
||||
and invoice_type = #{invoiceType}
|
||||
and company_name = #{companyName}
|
||||
and company_tax_no = #{companyTaxNo}
|
||||
and company_tel = #{companyTel}
|
||||
and company_address = #{companyAddress}
|
||||
and contact = #{contact}
|
||||
and phone = #{phone}
|
||||
and real_tax_type = #{realTaxType}
|
||||
and open_money_max = #{openMoneyMax}
|
||||
and open_money = #{openMoney}
|
||||
and invoice_no = #{invoiceNo}
|
||||
and invoice_status = #{invoiceStatus}
|
||||
and invoice_status_desc = #{invoiceStatusDesc}
|
||||
and recieve_address = #{recieveAddress}
|
||||
and email = #{email}
|
||||
and file_path = #{filePath}
|
||||
and remark = #{remark}
|
||||
and bl_audit = #{blAudit}
|
||||
and audit_date = #{auditDate}
|
||||
and audit_man_code = #{auditManCode}
|
||||
and audit_site_code = #{auditSiteCode}
|
||||
and op_man_code = #{opManCode}
|
||||
and op_date = #{opDate}
|
||||
and op_site_code = #{opSiteCode}
|
||||
and open_ch_id = #{openChId}
|
||||
and open_ch_status = #{openChStatus}
|
||||
and open_ch_status_desc = #{openChStatusDesc}
|
||||
and open_com_code = #{openComCode}
|
||||
and del_flag = #{delFlag}
|
||||
and create_by = #{createBy}
|
||||
and create_time = #{createTime}
|
||||
and update_by = #{updateBy}
|
||||
and update_time = #{updateTime}
|
||||
and create_site = #{createSite}
|
||||
and update_site = #{updateSite}
|
||||
limit 1
|
||||
</select>
|
||||
|
||||
<select id="selectEmisSettleInvoiceRecordById" parameterType="Long" resultMap="EmisSettleInvoiceRecordResult">
|
||||
select id, apply_seq_no, apply_date, apply_man_code, apply_site_code, customer_code, customer_name, settle_bill_no, settle_bill_name, apply_money, invoice_type, company_name, company_tax_no, company_tel, company_address, contact, phone, real_tax_type, open_money_max, open_money, invoice_no, invoice_status, invoice_status_desc, recieve_address, email, file_path, remark, bl_audit, audit_date, audit_man_code, audit_site_code, op_man_code, op_date, op_site_code, open_ch_id, open_ch_status, open_ch_status_desc, open_com_code, del_flag, create_by, create_time, update_by, update_time, create_site, update_site
|
||||
from emis_settle_invoice_record a
|
||||
where a.id = #{id}
|
||||
</select>
|
||||
|
||||
<insert id="insertEmisSettleInvoiceRecord" parameterType="EmisSettleInvoiceRecord" useGeneratedKeys="true" keyProperty="id">
|
||||
insert into emis_settle_invoice_record
|
||||
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||
<if test="id != null">id,</if>
|
||||
<if test="applySeqNo != null and applySeqNo != ''">apply_seq_no,</if>
|
||||
<if test="applyDate != null">apply_date,</if>
|
||||
<if test="applyManCode != null and applyManCode != ''">apply_man_code,</if>
|
||||
<if test="applySiteCode != null and applySiteCode != ''">apply_site_code,</if>
|
||||
<if test="customerCode != null and customerCode != ''">customer_code,</if>
|
||||
<if test="customerName != null and customerName != ''">customer_name,</if>
|
||||
<if test="settleBillNo != null and settleBillNo != ''">settle_bill_no,</if>
|
||||
<if test="settleBillName != null and settleBillName != ''">settle_bill_name,</if>
|
||||
<if test="applyMoney != null">apply_money,</if>
|
||||
<if test="invoiceType != null and invoiceType != ''">invoice_type,</if>
|
||||
<if test="companyName != null and companyName != ''">company_name,</if>
|
||||
<if test="companyTaxNo != null and companyTaxNo != ''">company_tax_no,</if>
|
||||
<if test="companyTel != null and companyTel != ''">company_tel,</if>
|
||||
<if test="companyAddress != null and companyAddress != ''">company_address,</if>
|
||||
<if test="contact != null and contact != ''">contact,</if>
|
||||
<if test="phone != null and phone != ''">phone,</if>
|
||||
<if test="realTaxType != null and realTaxType != ''">real_tax_type,</if>
|
||||
<if test="openMoneyMax != null">open_money_max,</if>
|
||||
<if test="openMoney != null">open_money,</if>
|
||||
<if test="invoiceNo != null and invoiceNo != ''">invoice_no,</if>
|
||||
<if test="invoiceStatus != null and invoiceStatus != ''">invoice_status,</if>
|
||||
<if test="invoiceStatusDesc != null and invoiceStatusDesc != ''">invoice_status_desc,</if>
|
||||
<if test="recieveAddress != null and recieveAddress != ''">recieve_address,</if>
|
||||
<if test="email != null and email != ''">email,</if>
|
||||
<if test="filePath != null and filePath != ''">file_path,</if>
|
||||
<if test="remark != null and remark != ''">remark,</if>
|
||||
<if test="blAudit != null and blAudit != ''">bl_audit,</if>
|
||||
<if test="auditDate != null">audit_date,</if>
|
||||
<if test="auditManCode != null and auditManCode != ''">audit_man_code,</if>
|
||||
<if test="auditSiteCode != null and auditSiteCode != ''">audit_site_code,</if>
|
||||
<if test="opManCode != null and opManCode != ''">op_man_code,</if>
|
||||
<if test="opDate != null">op_date,</if>
|
||||
<if test="opSiteCode != null and opSiteCode != ''">op_site_code,</if>
|
||||
<if test="openChId != null and openChId != ''">open_ch_id,</if>
|
||||
<if test="openChStatus != null and openChStatus != ''">open_ch_status,</if>
|
||||
<if test="openChStatusDesc != null and openChStatusDesc != ''">open_ch_status_desc,</if>
|
||||
<if test="openComCode != null and openComCode != ''">open_com_code,</if>
|
||||
<if test="delFlag != null and delFlag != ''">del_flag,</if>
|
||||
<if test="createBy != null and createBy != ''">create_by,</if>
|
||||
<if test="createTime != null">create_time,</if>
|
||||
<if test="updateBy != null and updateBy != ''">update_by,</if>
|
||||
<if test="updateTime != null">update_time,</if>
|
||||
<if test="createSite != null and createSite != ''">create_site,</if>
|
||||
<if test="updateSite != null and updateSite != ''">update_site,</if>
|
||||
</trim>
|
||||
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
||||
<if test="id != null">#{id},</if>
|
||||
<if test="applySeqNo != null and applySeqNo != ''">#{applySeqNo},</if>
|
||||
<if test="applyDate != null">#{applyDate},</if>
|
||||
<if test="applyManCode != null and applyManCode != ''">#{applyManCode},</if>
|
||||
<if test="applySiteCode != null and applySiteCode != ''">#{applySiteCode},</if>
|
||||
<if test="customerCode != null and customerCode != ''">#{customerCode},</if>
|
||||
<if test="customerName != null and customerName != ''">#{customerName},</if>
|
||||
<if test="settleBillNo != null and settleBillNo != ''">#{settleBillNo},</if>
|
||||
<if test="settleBillName != null and settleBillName != ''">#{settleBillName},</if>
|
||||
<if test="applyMoney != null">#{applyMoney},</if>
|
||||
<if test="invoiceType != null and invoiceType != ''">#{invoiceType},</if>
|
||||
<if test="companyName != null and companyName != ''">#{companyName},</if>
|
||||
<if test="companyTaxNo != null and companyTaxNo != ''">#{companyTaxNo},</if>
|
||||
<if test="companyTel != null and companyTel != ''">#{companyTel},</if>
|
||||
<if test="companyAddress != null and companyAddress != ''">#{companyAddress},</if>
|
||||
<if test="contact != null and contact != ''">#{contact},</if>
|
||||
<if test="phone != null and phone != ''">#{phone},</if>
|
||||
<if test="realTaxType != null and realTaxType != ''">#{realTaxType},</if>
|
||||
<if test="openMoneyMax != null">#{openMoneyMax},</if>
|
||||
<if test="openMoney != null">#{openMoney},</if>
|
||||
<if test="invoiceNo != null and invoiceNo != ''">#{invoiceNo},</if>
|
||||
<if test="invoiceStatus != null and invoiceStatus != ''">#{invoiceStatus},</if>
|
||||
<if test="invoiceStatusDesc != null and invoiceStatusDesc != ''">#{invoiceStatusDesc},</if>
|
||||
<if test="recieveAddress != null and recieveAddress != ''">#{recieveAddress},</if>
|
||||
<if test="email != null and email != ''">#{email},</if>
|
||||
<if test="filePath != null and filePath != ''">#{filePath},</if>
|
||||
<if test="remark != null and remark != ''">#{remark},</if>
|
||||
<if test="blAudit != null and blAudit != ''">#{blAudit},</if>
|
||||
<if test="auditDate != null">#{auditDate},</if>
|
||||
<if test="auditManCode != null and auditManCode != ''">#{auditManCode},</if>
|
||||
<if test="auditSiteCode != null and auditSiteCode != ''">#{auditSiteCode},</if>
|
||||
<if test="opManCode != null and opManCode != ''">#{opManCode},</if>
|
||||
<if test="opDate != null">#{opDate},</if>
|
||||
<if test="opSiteCode != null and opSiteCode != ''">#{opSiteCode},</if>
|
||||
<if test="openChId != null and openChId != ''">#{openChId},</if>
|
||||
<if test="openChStatus != null and openChStatus != ''">#{openChStatus},</if>
|
||||
<if test="openChStatusDesc != null and openChStatusDesc != ''">#{openChStatusDesc},</if>
|
||||
<if test="openComCode != null and openComCode != ''">#{openComCode},</if>
|
||||
<if test="delFlag != null and delFlag != ''">#{delFlag},</if>
|
||||
<if test="createBy != null and createBy != ''">#{createBy},</if>
|
||||
<if test="createTime != null">#{createTime},</if>
|
||||
<if test="updateBy != null and updateBy != ''">#{updateBy},</if>
|
||||
<if test="updateTime != null">#{updateTime},</if>
|
||||
<if test="createSite != null and createSite != ''">#{createSite},</if>
|
||||
<if test="updateSite != null and updateSite != ''">#{updateSite},</if>
|
||||
</trim>
|
||||
</insert>
|
||||
|
||||
<update id="updateEmisSettleInvoiceRecord" parameterType="EmisSettleInvoiceRecord">
|
||||
update emis_settle_invoice_record
|
||||
<trim prefix="SET" suffixOverrides=",">
|
||||
<if test="applySeqNo != null and applySeqNo != ''">apply_seq_no = #{applySeqNo},</if>
|
||||
<if test="applyDate != null">apply_date = #{applyDate},</if>
|
||||
<if test="applyManCode != null and applyManCode != ''">apply_man_code = #{applyManCode},</if>
|
||||
<if test="applySiteCode != null and applySiteCode != ''">apply_site_code = #{applySiteCode},</if>
|
||||
<if test="customerCode != null and customerCode != ''">customer_code = #{customerCode},</if>
|
||||
<if test="customerName != null and customerName != ''">customer_name = #{customerName},</if>
|
||||
<if test="settleBillNo != null and settleBillNo != ''">settle_bill_no = #{settleBillNo},</if>
|
||||
<if test="settleBillName != null and settleBillName != ''">settle_bill_name = #{settleBillName},</if>
|
||||
<if test="applyMoney != null">apply_money = #{applyMoney},</if>
|
||||
<if test="invoiceType != null and invoiceType != ''">invoice_type = #{invoiceType},</if>
|
||||
<if test="companyName != null and companyName != ''">company_name = #{companyName},</if>
|
||||
<if test="companyTaxNo != null and companyTaxNo != ''">company_tax_no = #{companyTaxNo},</if>
|
||||
<if test="companyTel != null and companyTel != ''">company_tel = #{companyTel},</if>
|
||||
<if test="companyAddress != null and companyAddress != ''">company_address = #{companyAddress},</if>
|
||||
<if test="contact != null and contact != ''">contact = #{contact},</if>
|
||||
<if test="phone != null and phone != ''">phone = #{phone},</if>
|
||||
<if test="realTaxType != null and realTaxType != ''">real_tax_type = #{realTaxType},</if>
|
||||
<if test="openMoneyMax != null">open_money_max = #{openMoneyMax},</if>
|
||||
<if test="openMoney != null">open_money = #{openMoney},</if>
|
||||
<if test="invoiceNo != null and invoiceNo != ''">invoice_no = #{invoiceNo},</if>
|
||||
<if test="invoiceStatus != null and invoiceStatus != ''">invoice_status = #{invoiceStatus},</if>
|
||||
<if test="invoiceStatusDesc != null and invoiceStatusDesc != ''">invoice_status_desc = #{invoiceStatusDesc},</if>
|
||||
<if test="recieveAddress != null and recieveAddress != ''">recieve_address = #{recieveAddress},</if>
|
||||
<if test="email != null and email != ''">email = #{email},</if>
|
||||
<if test="filePath != null and filePath != ''">file_path = #{filePath},</if>
|
||||
<if test="remark != null and remark != ''">remark = #{remark},</if>
|
||||
<if test="blAudit != null and blAudit != ''">bl_audit = #{blAudit},</if>
|
||||
<if test="auditDate != null">audit_date = #{auditDate},</if>
|
||||
<if test="auditManCode != null and auditManCode != ''">audit_man_code = #{auditManCode},</if>
|
||||
<if test="auditSiteCode != null and auditSiteCode != ''">audit_site_code = #{auditSiteCode},</if>
|
||||
<if test="opManCode != null and opManCode != ''">op_man_code = #{opManCode},</if>
|
||||
<if test="opDate != null">op_date = #{opDate},</if>
|
||||
<if test="opSiteCode != null and opSiteCode != ''">op_site_code = #{opSiteCode},</if>
|
||||
<if test="openChId != null and openChId != ''">open_ch_id = #{openChId},</if>
|
||||
<if test="openChStatus != null and openChStatus != ''">open_ch_status = #{openChStatus},</if>
|
||||
<if test="openChStatusDesc != null and openChStatusDesc != ''">open_ch_status_desc = #{openChStatusDesc},</if>
|
||||
<if test="openComCode != null and openComCode != ''">open_com_code = #{openComCode},</if>
|
||||
<if test="delFlag != null and delFlag != ''">del_flag = #{delFlag},</if>
|
||||
<if test="createBy != null and createBy != ''">create_by = #{createBy},</if>
|
||||
<if test="createTime != null">create_time = #{createTime},</if>
|
||||
<if test="updateBy != null and updateBy != ''">update_by = #{updateBy},</if>
|
||||
<if test="updateTime != null">update_time = #{updateTime},</if>
|
||||
<if test="createSite != null and createSite != ''">create_site = #{createSite},</if>
|
||||
<if test="updateSite != null and updateSite != ''">update_site = #{updateSite},</if>
|
||||
</trim>
|
||||
where id = #{id}
|
||||
</update>
|
||||
|
||||
<delete id="deleteEmisSettleInvoiceRecordById" parameterType="Long">
|
||||
delete from emis_settle_invoice_record where id = #{id}
|
||||
</delete>
|
||||
|
||||
<delete id="deleteEmisSettleInvoiceRecordByIds" parameterType="String">
|
||||
delete from emis_settle_invoice_record where id in
|
||||
<foreach item="id" collection="array" open="(" separator="," close=")">
|
||||
#{id}
|
||||
</foreach>
|
||||
</delete>
|
||||
</mapper>
|
||||
@ -0,0 +1,123 @@
|
||||
<?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.xdadan.erp.emis.mapper.EmisSettleInvoiceRelMapper">
|
||||
|
||||
<resultMap type="EmisSettleInvoiceRel" id="EmisSettleInvoiceRelResult">
|
||||
<result property="id" column="id" />
|
||||
<result property="applySeqNo" column="apply_seq_no" />
|
||||
<result property="payId" column="pay_id" />
|
||||
<result property="billNo" column="bill_no" />
|
||||
<result property="money" column="money" />
|
||||
</resultMap>
|
||||
|
||||
<sql id="selectEmisSettleInvoiceRelVo">
|
||||
select id, apply_seq_no, pay_id, bill_no, money, del_flag, create_by, create_time, update_by, update_time, create_site, update_site from emis_settle_invoice_rel
|
||||
</sql>
|
||||
|
||||
<select id="selectEmisSettleInvoiceRelList" parameterType="EmisSettleInvoiceRel" resultMap="EmisSettleInvoiceRelResult">
|
||||
<include refid="selectEmisSettleInvoiceRelVo"/>
|
||||
<where>
|
||||
del_flag='0'
|
||||
<if test="id != null "> and id = #{id}</if>
|
||||
<if test="applySeqNo != null and applySeqNo != ''"> and apply_seq_no like concat('%', #{applySeqNo}, '%')</if>
|
||||
<if test="payId != null and payId != ''"> and pay_id like concat('%', #{payId}, '%')</if>
|
||||
<if test="billNo != null and billNo != ''"> and bill_no like concat('%', #{billNo}, '%')</if>
|
||||
<if test="money != null "> and money = #{money}</if>
|
||||
<if test="delFlag != null and delFlag != ''"> and del_flag like concat('%', #{delFlag}, '%')</if>
|
||||
<if test="createBy != null and createBy != ''"> and create_by like concat('%', #{createBy}, '%')</if>
|
||||
<if test="createTime != null "> and create_time = #{createTime}</if>
|
||||
<if test="updateBy != null and updateBy != ''"> and update_by like concat('%', #{updateBy}, '%')</if>
|
||||
<if test="updateTime != null "> and update_time = #{updateTime}</if>
|
||||
<if test="createSite != null and createSite != ''"> and create_site like concat('%', #{createSite}, '%')</if>
|
||||
<if test="updateSite != null and updateSite != ''"> and update_site like concat('%', #{updateSite}, '%')</if>
|
||||
</where>
|
||||
order by create_time desc
|
||||
</select>
|
||||
|
||||
<select id="checkUnique" parameterType="EmisSettleInvoiceRel" resultType="int">
|
||||
select count(1) from emis_settle_invoice_rel
|
||||
where del_flag='0'
|
||||
and id = #{id}
|
||||
and apply_seq_no = #{applySeqNo}
|
||||
and pay_id = #{payId}
|
||||
and bill_no = #{billNo}
|
||||
and money = #{money}
|
||||
and del_flag = #{delFlag}
|
||||
and create_by = #{createBy}
|
||||
and create_time = #{createTime}
|
||||
and update_by = #{updateBy}
|
||||
and update_time = #{updateTime}
|
||||
and create_site = #{createSite}
|
||||
and update_site = #{updateSite}
|
||||
limit 1
|
||||
</select>
|
||||
|
||||
<select id="selectEmisSettleInvoiceRelById" parameterType="Long" resultMap="EmisSettleInvoiceRelResult">
|
||||
select id, apply_seq_no, pay_id, bill_no, money, del_flag, create_by, create_time, update_by, update_time, create_site, update_site
|
||||
from emis_settle_invoice_rel a
|
||||
where a.id = #{id}
|
||||
</select>
|
||||
|
||||
<insert id="insertEmisSettleInvoiceRel" parameterType="EmisSettleInvoiceRel" useGeneratedKeys="true" keyProperty="id">
|
||||
insert into emis_settle_invoice_rel
|
||||
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||
<if test="id != null">id,</if>
|
||||
<if test="applySeqNo != null and applySeqNo != ''">apply_seq_no,</if>
|
||||
<if test="payId != null and payId != ''">pay_id,</if>
|
||||
<if test="billNo != null and billNo != ''">bill_no,</if>
|
||||
<if test="money != null">money,</if>
|
||||
<if test="delFlag != null and delFlag != ''">del_flag,</if>
|
||||
<if test="createBy != null and createBy != ''">create_by,</if>
|
||||
<if test="createTime != null">create_time,</if>
|
||||
<if test="updateBy != null and updateBy != ''">update_by,</if>
|
||||
<if test="updateTime != null">update_time,</if>
|
||||
<if test="createSite != null and createSite != ''">create_site,</if>
|
||||
<if test="updateSite != null and updateSite != ''">update_site,</if>
|
||||
</trim>
|
||||
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
||||
<if test="id != null">#{id},</if>
|
||||
<if test="applySeqNo != null and applySeqNo != ''">#{applySeqNo},</if>
|
||||
<if test="payId != null and payId != ''">#{payId},</if>
|
||||
<if test="billNo != null and billNo != ''">#{billNo},</if>
|
||||
<if test="money != null">#{money},</if>
|
||||
<if test="delFlag != null and delFlag != ''">#{delFlag},</if>
|
||||
<if test="createBy != null and createBy != ''">#{createBy},</if>
|
||||
<if test="createTime != null">#{createTime},</if>
|
||||
<if test="updateBy != null and updateBy != ''">#{updateBy},</if>
|
||||
<if test="updateTime != null">#{updateTime},</if>
|
||||
<if test="createSite != null and createSite != ''">#{createSite},</if>
|
||||
<if test="updateSite != null and updateSite != ''">#{updateSite},</if>
|
||||
</trim>
|
||||
</insert>
|
||||
|
||||
<update id="updateEmisSettleInvoiceRel" parameterType="EmisSettleInvoiceRel">
|
||||
update emis_settle_invoice_rel
|
||||
<trim prefix="SET" suffixOverrides=",">
|
||||
<if test="applySeqNo != null and applySeqNo != ''">apply_seq_no = #{applySeqNo},</if>
|
||||
<if test="payId != null and payId != ''">pay_id = #{payId},</if>
|
||||
<if test="billNo != null and billNo != ''">bill_no = #{billNo},</if>
|
||||
<if test="money != null">money = #{money},</if>
|
||||
<if test="delFlag != null and delFlag != ''">del_flag = #{delFlag},</if>
|
||||
<if test="createBy != null and createBy != ''">create_by = #{createBy},</if>
|
||||
<if test="createTime != null">create_time = #{createTime},</if>
|
||||
<if test="updateBy != null and updateBy != ''">update_by = #{updateBy},</if>
|
||||
<if test="updateTime != null">update_time = #{updateTime},</if>
|
||||
<if test="createSite != null and createSite != ''">create_site = #{createSite},</if>
|
||||
<if test="updateSite != null and updateSite != ''">update_site = #{updateSite},</if>
|
||||
</trim>
|
||||
where id = #{id}
|
||||
</update>
|
||||
|
||||
<delete id="deleteEmisSettleInvoiceRelById" parameterType="Long">
|
||||
delete from emis_settle_invoice_rel where id = #{id}
|
||||
</delete>
|
||||
|
||||
<delete id="deleteEmisSettleInvoiceRelByIds" parameterType="String">
|
||||
delete from emis_settle_invoice_rel where id in
|
||||
<foreach item="id" collection="array" open="(" separator="," close=")">
|
||||
#{id}
|
||||
</foreach>
|
||||
</delete>
|
||||
</mapper>
|
||||
338
emis-biz/src/main/resources/mapper/EmisSettlePayRecordMapper.xml
Normal file
338
emis-biz/src/main/resources/mapper/EmisSettlePayRecordMapper.xml
Normal file
@ -0,0 +1,338 @@
|
||||
<?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.xdadan.erp.emis.mapper.EmisSettlePayRecordMapper">
|
||||
|
||||
<resultMap type="EmisSettlePayRecord" id="EmisSettlePayRecordResult">
|
||||
<result property="id" column="id" />
|
||||
<result property="payId" column="pay_id" />
|
||||
<result property="payType" column="pay_type" />
|
||||
<result property="recType" column="rec_type" />
|
||||
<result property="payMan" column="pay_man" />
|
||||
<result property="payManCode" column="pay_man_code" />
|
||||
<result property="settleBillNo" column="settle_bill_no" />
|
||||
<result property="blAudit" column="bl_audit" />
|
||||
<result property="auditDate" column="audit_date" />
|
||||
<result property="auditManCode" column="audit_man_code" />
|
||||
<result property="auditSiteCode" column="audit_site_code" />
|
||||
<result property="customerCode" column="customer_code" />
|
||||
<result property="customerName" column="customer_name" />
|
||||
<result property="payMoney" column="pay_money" />
|
||||
<result property="payStatus" column="pay_status" />
|
||||
<result property="payStatusDesc" column="pay_status_desc" />
|
||||
<result property="breakType" column="break_type" />
|
||||
<result property="breakReason" column="break_reason" />
|
||||
<result property="breakEmpCode" column="break_emp_code" />
|
||||
<result property="recManCode" column="rec_man_code" />
|
||||
<result property="settleType" column="settle_type" />
|
||||
<result property="refundDate" column="refund_date" />
|
||||
<result property="refundManCode" column="refund_man_code" />
|
||||
<result property="refundSeq" column="refund_seq" />
|
||||
<result property="refundMode" column="refund_mode" />
|
||||
<result property="refundMoney" column="refund_money" />
|
||||
<result property="refundReason" column="refund_reason" />
|
||||
<result property="refundRemark" column="refund_remark" />
|
||||
<result property="refundOpManCode" column="refund_op_man_code" />
|
||||
<result property="refundRegisterSiteCode" column="refund_register_site_code" />
|
||||
<result property="refundRegisterManCode" column="refund_register_man_code" />
|
||||
<result property="satisfyMoney" column="satisfy_money" />
|
||||
<result property="satisfyReason" column="satisfy_reason" />
|
||||
<result property="allowanceMoney" column="allowance_money" />
|
||||
<result property="allowanceReason" column="allowance_reason" />
|
||||
<result property="deductionMoney" column="deduction_money" />
|
||||
<result property="deductionReason" column="deduction_reason" />
|
||||
<result property="otherMoney" column="other_money" />
|
||||
<result property="otherReason" column="other_reason" />
|
||||
<result property="tradeDate" column="trade_date" />
|
||||
</resultMap>
|
||||
|
||||
<sql id="selectEmisSettlePayRecordVo">
|
||||
select id, pay_id, pay_type, rec_type, pay_man, pay_man_code, settle_bill_no, bl_audit, audit_date, audit_man_code, audit_site_code, customer_code, customer_name, pay_money, pay_status, pay_status_desc, break_type, break_reason, break_emp_code, rec_man_code, settle_type, refund_date, refund_man_code, refund_seq, refund_mode, refund_money, refund_reason, refund_remark, refund_op_man_code, refund_register_site_code, refund_register_man_code, satisfy_money, satisfy_reason, allowance_money, allowance_reason, deduction_money, deduction_reason, other_money, other_reason, trade_date, remark, del_flag, create_by, create_time, update_by, update_time, create_site, update_site from emis_settle_pay_record
|
||||
</sql>
|
||||
|
||||
<select id="selectEmisSettlePayRecordList" parameterType="EmisSettlePayRecord" resultMap="EmisSettlePayRecordResult">
|
||||
<include refid="selectEmisSettlePayRecordVo"/>
|
||||
<where>
|
||||
del_flag='0'
|
||||
<if test="id != null "> and id = #{id}</if>
|
||||
<if test="payId != null and payId != ''"> and pay_id = #{payId}</if>
|
||||
<if test="payType != null and payType != ''"> and pay_type = #{payType}</if>
|
||||
<if test="recType != null and recType != ''"> and rec_type = #{recType}</if>
|
||||
<if test="payMan != null and payMan != ''"> and pay_man like concat('%', #{payMan}, '%')</if>
|
||||
<if test="payManCode != null and payManCode != ''"> and pay_man_code like concat('%', #{payManCode}, '%')</if>
|
||||
<if test="settleBillNo != null and settleBillNo != ''"> and settle_bill_no = #{settleBillNo}</if>
|
||||
<if test="blAudit != null and blAudit != ''"> and bl_audit = #{blAudit}</if>
|
||||
<if test="auditDate != null "> and audit_date = #{auditDate}</if>
|
||||
<if test="auditManCode != null and auditManCode != ''"> and audit_man_code = #{auditManCode}</if>
|
||||
<if test="auditSiteCode != null and auditSiteCode != ''"> and audit_site_code = #{auditSiteCode}</if>
|
||||
<if test="customerCode != null and customerCode != ''"> and customer_code = #{customerCode}</if>
|
||||
<if test="customerName != null and customerName != ''"> and customer_name like concat('%', #{customerName}, '%')</if>
|
||||
<if test="payMoney != null "> and pay_money = #{payMoney}</if>
|
||||
<if test="payStatus != null and payStatus != ''"> and pay_status = #{payStatus}</if>
|
||||
<if test="payStatusDesc != null and payStatusDesc != ''"> and pay_status_desc like concat('%', #{payStatusDesc}, '%')</if>
|
||||
<if test="breakType != null and breakType != ''"> and break_type = #{breakType}</if>
|
||||
<if test="breakReason != null and breakReason != ''"> and break_reason like concat('%', #{breakReason}, '%')</if>
|
||||
<if test="breakEmpCode != null and breakEmpCode != ''"> and break_emp_code = #{breakEmpCode}</if>
|
||||
<if test="recManCode != null and recManCode != ''"> and rec_man_code = #{recManCode}</if>
|
||||
<if test="settleType != null and settleType != ''"> and settle_type = #{settleType}</if>
|
||||
<if test="refundDate != null "> and refund_date = #{refundDate}</if>
|
||||
<if test="refundManCode != null and refundManCode != ''"> and refund_man_code = #{refundManCode}</if>
|
||||
<if test="refundSeq != null and refundSeq != ''"> and refund_seq = #{refundSeq}</if>
|
||||
<if test="refundMode != null and refundMode != ''"> and refund_mode = #{refundMode}</if>
|
||||
<if test="refundMoney != null "> and refund_money = #{refundMoney}</if>
|
||||
<if test="refundReason != null and refundReason != ''"> and refund_reason like concat('%', #{refundReason}, '%')</if>
|
||||
<if test="refundRemark != null and refundRemark != ''"> and refund_remark like concat('%', #{refundRemark}, '%')</if>
|
||||
<if test="refundOpManCode != null and refundOpManCode != ''"> and refund_op_man_code = #{refundOpManCode}</if>
|
||||
<if test="refundRegisterSiteCode != null and refundRegisterSiteCode != ''"> and refund_register_site_code = #{refundRegisterSiteCode}</if>
|
||||
<if test="refundRegisterManCode != null and refundRegisterManCode != ''"> and refund_register_man_code = #{refundRegisterManCode}</if>
|
||||
<if test="satisfyMoney != null "> and satisfy_money = #{satisfyMoney}</if>
|
||||
<if test="satisfyReason != null and satisfyReason != ''"> and satisfy_reason like concat('%', #{satisfyReason}, '%')</if>
|
||||
<if test="allowanceMoney != null "> and allowance_money = #{allowanceMoney}</if>
|
||||
<if test="allowanceReason != null and allowanceReason != ''"> and allowance_reason = #{allowanceReason}</if>
|
||||
<if test="deductionMoney != null "> and deduction_money = #{deductionMoney}</if>
|
||||
<if test="deductionReason != null and deductionReason != ''"> and deduction_reason = #{deductionReason}</if>
|
||||
<if test="otherMoney != null "> and other_money = #{otherMoney}</if>
|
||||
<if test="otherReason != null and otherReason != ''"> and other_reason like concat('%', #{otherReason}, '%')</if>
|
||||
<if test="tradeDate != null "> and trade_date = #{tradeDate}</if>
|
||||
<if test="remark != null and remark != ''"> and remark like concat('%', #{remark}, '%')</if>
|
||||
<if test="delFlag != null and delFlag != ''"> and del_flag like concat('%', #{delFlag}, '%')</if>
|
||||
<if test="createBy != null and createBy != ''"> and create_by like concat('%', #{createBy}, '%')</if>
|
||||
<if test="createTime != null "> and create_time = #{createTime}</if>
|
||||
<if test="updateBy != null and updateBy != ''"> and update_by like concat('%', #{updateBy}, '%')</if>
|
||||
<if test="updateTime != null "> and update_time = #{updateTime}</if>
|
||||
<if test="createSite != null and createSite != ''"> and create_site like concat('%', #{createSite}, '%')</if>
|
||||
<if test="updateSite != null and updateSite != ''"> and update_site like concat('%', #{updateSite}, '%')</if>
|
||||
</where>
|
||||
order by create_time desc
|
||||
</select>
|
||||
|
||||
<select id="checkUnique" parameterType="EmisSettlePayRecord" resultType="int">
|
||||
select count(1) from emis_settle_pay_record
|
||||
where del_flag='0'
|
||||
and id = #{id}
|
||||
and pay_id = #{payId}
|
||||
and pay_type = #{payType}
|
||||
and rec_type = #{recType}
|
||||
and pay_man = #{payMan}
|
||||
and pay_man_code = #{payManCode}
|
||||
and settle_bill_no = #{settleBillNo}
|
||||
and bl_audit = #{blAudit}
|
||||
and audit_date = #{auditDate}
|
||||
and audit_man_code = #{auditManCode}
|
||||
and audit_site_code = #{auditSiteCode}
|
||||
and customer_code = #{customerCode}
|
||||
and customer_name = #{customerName}
|
||||
and pay_money = #{payMoney}
|
||||
and pay_status = #{payStatus}
|
||||
and pay_status_desc = #{payStatusDesc}
|
||||
and break_type = #{breakType}
|
||||
and break_reason = #{breakReason}
|
||||
and break_emp_code = #{breakEmpCode}
|
||||
and rec_man_code = #{recManCode}
|
||||
and settle_type = #{settleType}
|
||||
and refund_date = #{refundDate}
|
||||
and refund_man_code = #{refundManCode}
|
||||
and refund_seq = #{refundSeq}
|
||||
and refund_mode = #{refundMode}
|
||||
and refund_money = #{refundMoney}
|
||||
and refund_reason = #{refundReason}
|
||||
and refund_remark = #{refundRemark}
|
||||
and refund_op_man_code = #{refundOpManCode}
|
||||
and refund_register_site_code = #{refundRegisterSiteCode}
|
||||
and refund_register_man_code = #{refundRegisterManCode}
|
||||
and satisfy_money = #{satisfyMoney}
|
||||
and satisfy_reason = #{satisfyReason}
|
||||
and allowance_money = #{allowanceMoney}
|
||||
and allowance_reason = #{allowanceReason}
|
||||
and deduction_money = #{deductionMoney}
|
||||
and deduction_reason = #{deductionReason}
|
||||
and other_money = #{otherMoney}
|
||||
and other_reason = #{otherReason}
|
||||
and trade_date = #{tradeDate}
|
||||
and remark = #{remark}
|
||||
and del_flag = #{delFlag}
|
||||
and create_by = #{createBy}
|
||||
and create_time = #{createTime}
|
||||
and update_by = #{updateBy}
|
||||
and update_time = #{updateTime}
|
||||
and create_site = #{createSite}
|
||||
and update_site = #{updateSite}
|
||||
limit 1
|
||||
</select>
|
||||
|
||||
<select id="selectEmisSettlePayRecordById" parameterType="Long" resultMap="EmisSettlePayRecordResult">
|
||||
select id, pay_id, pay_type, rec_type, pay_man, pay_man_code, settle_bill_no, bl_audit, audit_date, audit_man_code, audit_site_code, customer_code, customer_name, pay_money, pay_status, pay_status_desc, break_type, break_reason, break_emp_code, rec_man_code, settle_type, refund_date, refund_man_code, refund_seq, refund_mode, refund_money, refund_reason, refund_remark, refund_op_man_code, refund_register_site_code, refund_register_man_code, satisfy_money, satisfy_reason, allowance_money, allowance_reason, deduction_money, deduction_reason, other_money, other_reason, trade_date, remark, del_flag, create_by, create_time, update_by, update_time, create_site, update_site
|
||||
from emis_settle_pay_record a
|
||||
where a.id = #{id}
|
||||
</select>
|
||||
|
||||
<insert id="insertEmisSettlePayRecord" parameterType="EmisSettlePayRecord" useGeneratedKeys="true" keyProperty="id">
|
||||
insert into emis_settle_pay_record
|
||||
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||
<if test="id != null">id,</if>
|
||||
<if test="payId != null and payId != ''">pay_id,</if>
|
||||
<if test="payType != null and payType != ''">pay_type,</if>
|
||||
<if test="recType != null and recType != ''">rec_type,</if>
|
||||
<if test="payMan != null and payMan != ''">pay_man,</if>
|
||||
<if test="payManCode != null and payManCode != ''">pay_man_code,</if>
|
||||
<if test="settleBillNo != null and settleBillNo != ''">settle_bill_no,</if>
|
||||
<if test="blAudit != null and blAudit != ''">bl_audit,</if>
|
||||
<if test="auditDate != null">audit_date,</if>
|
||||
<if test="auditManCode != null and auditManCode != ''">audit_man_code,</if>
|
||||
<if test="auditSiteCode != null and auditSiteCode != ''">audit_site_code,</if>
|
||||
<if test="customerCode != null and customerCode != ''">customer_code,</if>
|
||||
<if test="customerName != null and customerName != ''">customer_name,</if>
|
||||
<if test="payMoney != null">pay_money,</if>
|
||||
<if test="payStatus != null and payStatus != ''">pay_status,</if>
|
||||
<if test="payStatusDesc != null and payStatusDesc != ''">pay_status_desc,</if>
|
||||
<if test="breakType != null and breakType != ''">break_type,</if>
|
||||
<if test="breakReason != null and breakReason != ''">break_reason,</if>
|
||||
<if test="breakEmpCode != null and breakEmpCode != ''">break_emp_code,</if>
|
||||
<if test="recManCode != null and recManCode != ''">rec_man_code,</if>
|
||||
<if test="settleType != null and settleType != ''">settle_type,</if>
|
||||
<if test="refundDate != null">refund_date,</if>
|
||||
<if test="refundManCode != null and refundManCode != ''">refund_man_code,</if>
|
||||
<if test="refundSeq != null and refundSeq != ''">refund_seq,</if>
|
||||
<if test="refundMode != null and refundMode != ''">refund_mode,</if>
|
||||
<if test="refundMoney != null">refund_money,</if>
|
||||
<if test="refundReason != null and refundReason != ''">refund_reason,</if>
|
||||
<if test="refundRemark != null and refundRemark != ''">refund_remark,</if>
|
||||
<if test="refundOpManCode != null and refundOpManCode != ''">refund_op_man_code,</if>
|
||||
<if test="refundRegisterSiteCode != null and refundRegisterSiteCode != ''">refund_register_site_code,</if>
|
||||
<if test="refundRegisterManCode != null and refundRegisterManCode != ''">refund_register_man_code,</if>
|
||||
<if test="satisfyMoney != null">satisfy_money,</if>
|
||||
<if test="satisfyReason != null and satisfyReason != ''">satisfy_reason,</if>
|
||||
<if test="allowanceMoney != null">allowance_money,</if>
|
||||
<if test="allowanceReason != null and allowanceReason != ''">allowance_reason,</if>
|
||||
<if test="deductionMoney != null">deduction_money,</if>
|
||||
<if test="deductionReason != null and deductionReason != ''">deduction_reason,</if>
|
||||
<if test="otherMoney != null">other_money,</if>
|
||||
<if test="otherReason != null and otherReason != ''">other_reason,</if>
|
||||
<if test="tradeDate != null">trade_date,</if>
|
||||
<if test="remark != null and remark != ''">remark,</if>
|
||||
<if test="delFlag != null and delFlag != ''">del_flag,</if>
|
||||
<if test="createBy != null and createBy != ''">create_by,</if>
|
||||
<if test="createTime != null">create_time,</if>
|
||||
<if test="updateBy != null and updateBy != ''">update_by,</if>
|
||||
<if test="updateTime != null">update_time,</if>
|
||||
<if test="createSite != null and createSite != ''">create_site,</if>
|
||||
<if test="updateSite != null and updateSite != ''">update_site,</if>
|
||||
</trim>
|
||||
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
||||
<if test="id != null">#{id},</if>
|
||||
<if test="payId != null and payId != ''">#{payId},</if>
|
||||
<if test="payType != null and payType != ''">#{payType},</if>
|
||||
<if test="recType != null and recType != ''">#{recType},</if>
|
||||
<if test="payMan != null and payMan != ''">#{payMan},</if>
|
||||
<if test="payManCode != null and payManCode != ''">#{payManCode},</if>
|
||||
<if test="settleBillNo != null and settleBillNo != ''">#{settleBillNo},</if>
|
||||
<if test="blAudit != null and blAudit != ''">#{blAudit},</if>
|
||||
<if test="auditDate != null">#{auditDate},</if>
|
||||
<if test="auditManCode != null and auditManCode != ''">#{auditManCode},</if>
|
||||
<if test="auditSiteCode != null and auditSiteCode != ''">#{auditSiteCode},</if>
|
||||
<if test="customerCode != null and customerCode != ''">#{customerCode},</if>
|
||||
<if test="customerName != null and customerName != ''">#{customerName},</if>
|
||||
<if test="payMoney != null">#{payMoney},</if>
|
||||
<if test="payStatus != null and payStatus != ''">#{payStatus},</if>
|
||||
<if test="payStatusDesc != null and payStatusDesc != ''">#{payStatusDesc},</if>
|
||||
<if test="breakType != null and breakType != ''">#{breakType},</if>
|
||||
<if test="breakReason != null and breakReason != ''">#{breakReason},</if>
|
||||
<if test="breakEmpCode != null and breakEmpCode != ''">#{breakEmpCode},</if>
|
||||
<if test="recManCode != null and recManCode != ''">#{recManCode},</if>
|
||||
<if test="settleType != null and settleType != ''">#{settleType},</if>
|
||||
<if test="refundDate != null">#{refundDate},</if>
|
||||
<if test="refundManCode != null and refundManCode != ''">#{refundManCode},</if>
|
||||
<if test="refundSeq != null and refundSeq != ''">#{refundSeq},</if>
|
||||
<if test="refundMode != null and refundMode != ''">#{refundMode},</if>
|
||||
<if test="refundMoney != null">#{refundMoney},</if>
|
||||
<if test="refundReason != null and refundReason != ''">#{refundReason},</if>
|
||||
<if test="refundRemark != null and refundRemark != ''">#{refundRemark},</if>
|
||||
<if test="refundOpManCode != null and refundOpManCode != ''">#{refundOpManCode},</if>
|
||||
<if test="refundRegisterSiteCode != null and refundRegisterSiteCode != ''">#{refundRegisterSiteCode},</if>
|
||||
<if test="refundRegisterManCode != null and refundRegisterManCode != ''">#{refundRegisterManCode},</if>
|
||||
<if test="satisfyMoney != null">#{satisfyMoney},</if>
|
||||
<if test="satisfyReason != null and satisfyReason != ''">#{satisfyReason},</if>
|
||||
<if test="allowanceMoney != null">#{allowanceMoney},</if>
|
||||
<if test="allowanceReason != null and allowanceReason != ''">#{allowanceReason},</if>
|
||||
<if test="deductionMoney != null">#{deductionMoney},</if>
|
||||
<if test="deductionReason != null and deductionReason != ''">#{deductionReason},</if>
|
||||
<if test="otherMoney != null">#{otherMoney},</if>
|
||||
<if test="otherReason != null and otherReason != ''">#{otherReason},</if>
|
||||
<if test="tradeDate != null">#{tradeDate},</if>
|
||||
<if test="remark != null and remark != ''">#{remark},</if>
|
||||
<if test="delFlag != null and delFlag != ''">#{delFlag},</if>
|
||||
<if test="createBy != null and createBy != ''">#{createBy},</if>
|
||||
<if test="createTime != null">#{createTime},</if>
|
||||
<if test="updateBy != null and updateBy != ''">#{updateBy},</if>
|
||||
<if test="updateTime != null">#{updateTime},</if>
|
||||
<if test="createSite != null and createSite != ''">#{createSite},</if>
|
||||
<if test="updateSite != null and updateSite != ''">#{updateSite},</if>
|
||||
</trim>
|
||||
</insert>
|
||||
|
||||
<update id="updateEmisSettlePayRecord" parameterType="EmisSettlePayRecord">
|
||||
update emis_settle_pay_record
|
||||
<trim prefix="SET" suffixOverrides=",">
|
||||
<if test="payId != null and payId != ''">pay_id = #{payId},</if>
|
||||
<if test="payType != null and payType != ''">pay_type = #{payType},</if>
|
||||
<if test="recType != null and recType != ''">rec_type = #{recType},</if>
|
||||
<if test="payMan != null and payMan != ''">pay_man = #{payMan},</if>
|
||||
<if test="payManCode != null and payManCode != ''">pay_man_code = #{payManCode},</if>
|
||||
<if test="settleBillNo != null and settleBillNo != ''">settle_bill_no = #{settleBillNo},</if>
|
||||
<if test="blAudit != null and blAudit != ''">bl_audit = #{blAudit},</if>
|
||||
<if test="auditDate != null">audit_date = #{auditDate},</if>
|
||||
<if test="auditManCode != null and auditManCode != ''">audit_man_code = #{auditManCode},</if>
|
||||
<if test="auditSiteCode != null and auditSiteCode != ''">audit_site_code = #{auditSiteCode},</if>
|
||||
<if test="customerCode != null and customerCode != ''">customer_code = #{customerCode},</if>
|
||||
<if test="customerName != null and customerName != ''">customer_name = #{customerName},</if>
|
||||
<if test="payMoney != null">pay_money = #{payMoney},</if>
|
||||
<if test="payStatus != null and payStatus != ''">pay_status = #{payStatus},</if>
|
||||
<if test="payStatusDesc != null and payStatusDesc != ''">pay_status_desc = #{payStatusDesc},</if>
|
||||
<if test="breakType != null and breakType != ''">break_type = #{breakType},</if>
|
||||
<if test="breakReason != null and breakReason != ''">break_reason = #{breakReason},</if>
|
||||
<if test="breakEmpCode != null and breakEmpCode != ''">break_emp_code = #{breakEmpCode},</if>
|
||||
<if test="recManCode != null and recManCode != ''">rec_man_code = #{recManCode},</if>
|
||||
<if test="settleType != null and settleType != ''">settle_type = #{settleType},</if>
|
||||
<if test="refundDate != null">refund_date = #{refundDate},</if>
|
||||
<if test="refundManCode != null and refundManCode != ''">refund_man_code = #{refundManCode},</if>
|
||||
<if test="refundSeq != null and refundSeq != ''">refund_seq = #{refundSeq},</if>
|
||||
<if test="refundMode != null and refundMode != ''">refund_mode = #{refundMode},</if>
|
||||
<if test="refundMoney != null">refund_money = #{refundMoney},</if>
|
||||
<if test="refundReason != null and refundReason != ''">refund_reason = #{refundReason},</if>
|
||||
<if test="refundRemark != null and refundRemark != ''">refund_remark = #{refundRemark},</if>
|
||||
<if test="refundOpManCode != null and refundOpManCode != ''">refund_op_man_code = #{refundOpManCode},</if>
|
||||
<if test="refundRegisterSiteCode != null and refundRegisterSiteCode != ''">refund_register_site_code = #{refundRegisterSiteCode},</if>
|
||||
<if test="refundRegisterManCode != null and refundRegisterManCode != ''">refund_register_man_code = #{refundRegisterManCode},</if>
|
||||
<if test="satisfyMoney != null">satisfy_money = #{satisfyMoney},</if>
|
||||
<if test="satisfyReason != null and satisfyReason != ''">satisfy_reason = #{satisfyReason},</if>
|
||||
<if test="allowanceMoney != null">allowance_money = #{allowanceMoney},</if>
|
||||
<if test="allowanceReason != null and allowanceReason != ''">allowance_reason = #{allowanceReason},</if>
|
||||
<if test="deductionMoney != null">deduction_money = #{deductionMoney},</if>
|
||||
<if test="deductionReason != null and deductionReason != ''">deduction_reason = #{deductionReason},</if>
|
||||
<if test="otherMoney != null">other_money = #{otherMoney},</if>
|
||||
<if test="otherReason != null and otherReason != ''">other_reason = #{otherReason},</if>
|
||||
<if test="tradeDate != null">trade_date = #{tradeDate},</if>
|
||||
<if test="remark != null and remark != ''">remark = #{remark},</if>
|
||||
<if test="delFlag != null and delFlag != ''">del_flag = #{delFlag},</if>
|
||||
<if test="createBy != null and createBy != ''">create_by = #{createBy},</if>
|
||||
<if test="createTime != null">create_time = #{createTime},</if>
|
||||
<if test="updateBy != null and updateBy != ''">update_by = #{updateBy},</if>
|
||||
<if test="updateTime != null">update_time = #{updateTime},</if>
|
||||
<if test="createSite != null and createSite != ''">create_site = #{createSite},</if>
|
||||
<if test="updateSite != null and updateSite != ''">update_site = #{updateSite},</if>
|
||||
</trim>
|
||||
where id = #{id}
|
||||
</update>
|
||||
|
||||
<delete id="deleteEmisSettlePayRecordById" parameterType="Long">
|
||||
delete from emis_settle_pay_record where id = #{id}
|
||||
</delete>
|
||||
|
||||
<delete id="deleteEmisSettlePayRecordByIds" parameterType="String">
|
||||
delete from emis_settle_pay_record where id in
|
||||
<foreach item="id" collection="array" open="(" separator="," close=")">
|
||||
#{id}
|
||||
</foreach>
|
||||
</delete>
|
||||
</mapper>
|
||||
117
emis-biz/src/main/resources/mapper/EmisSettlePayRelMapper.xml
Normal file
117
emis-biz/src/main/resources/mapper/EmisSettlePayRelMapper.xml
Normal file
@ -0,0 +1,117 @@
|
||||
<?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.xdadan.erp.emis.mapper.EmisSettlePayRelMapper">
|
||||
|
||||
<resultMap type="EmisSettlePayRel" id="EmisSettlePayRelResult">
|
||||
<result property="id" column="id" />
|
||||
<result property="payId" column="pay_id" />
|
||||
<result property="billNo" column="bill_no" />
|
||||
<result property="payMoney" column="pay_money" />
|
||||
</resultMap>
|
||||
|
||||
<sql id="selectEmisSettlePayRelVo">
|
||||
select id, pay_id, bill_no, pay_money, del_flag, create_by, create_time, update_by, update_time, create_site, update_site from emis_settle_pay_rel
|
||||
</sql>
|
||||
|
||||
<select id="selectEmisSettlePayRelList" parameterType="EmisSettlePayRel" resultMap="EmisSettlePayRelResult">
|
||||
<include refid="selectEmisSettlePayRelVo"/>
|
||||
<where>
|
||||
del_flag='0'
|
||||
<if test="id != null "> and id = #{id}</if>
|
||||
<if test="payId != null and payId != ''"> and pay_id = #{payId}</if>
|
||||
<if test="billNo != null and billNo != ''"> and bill_no = #{billNo}</if>
|
||||
<if test="payMoney != null "> and pay_money = #{payMoney}</if>
|
||||
<if test="delFlag != null and delFlag != ''"> and del_flag like concat('%', #{delFlag}, '%')</if>
|
||||
<if test="createBy != null and createBy != ''"> and create_by like concat('%', #{createBy}, '%')</if>
|
||||
<if test="createTime != null "> and create_time = #{createTime}</if>
|
||||
<if test="updateBy != null and updateBy != ''"> and update_by like concat('%', #{updateBy}, '%')</if>
|
||||
<if test="updateTime != null "> and update_time = #{updateTime}</if>
|
||||
<if test="createSite != null and createSite != ''"> and create_site like concat('%', #{createSite}, '%')</if>
|
||||
<if test="updateSite != null and updateSite != ''"> and update_site like concat('%', #{updateSite}, '%')</if>
|
||||
</where>
|
||||
order by create_time desc
|
||||
</select>
|
||||
|
||||
<select id="checkUnique" parameterType="EmisSettlePayRel" resultType="int">
|
||||
select count(1) from emis_settle_pay_rel
|
||||
where del_flag='0'
|
||||
and id = #{id}
|
||||
and pay_id = #{payId}
|
||||
and bill_no = #{billNo}
|
||||
and pay_money = #{payMoney}
|
||||
and del_flag = #{delFlag}
|
||||
and create_by = #{createBy}
|
||||
and create_time = #{createTime}
|
||||
and update_by = #{updateBy}
|
||||
and update_time = #{updateTime}
|
||||
and create_site = #{createSite}
|
||||
and update_site = #{updateSite}
|
||||
limit 1
|
||||
</select>
|
||||
|
||||
<select id="selectEmisSettlePayRelById" parameterType="Long" resultMap="EmisSettlePayRelResult">
|
||||
select id, pay_id, bill_no, pay_money, del_flag, create_by, create_time, update_by, update_time, create_site, update_site
|
||||
from emis_settle_pay_rel a
|
||||
where a.id = #{id}
|
||||
</select>
|
||||
|
||||
<insert id="insertEmisSettlePayRel" parameterType="EmisSettlePayRel" useGeneratedKeys="true" keyProperty="id">
|
||||
insert into emis_settle_pay_rel
|
||||
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||
<if test="id != null">id,</if>
|
||||
<if test="payId != null and payId != ''">pay_id,</if>
|
||||
<if test="billNo != null and billNo != ''">bill_no,</if>
|
||||
<if test="payMoney != null">pay_money,</if>
|
||||
<if test="delFlag != null and delFlag != ''">del_flag,</if>
|
||||
<if test="createBy != null and createBy != ''">create_by,</if>
|
||||
<if test="createTime != null">create_time,</if>
|
||||
<if test="updateBy != null and updateBy != ''">update_by,</if>
|
||||
<if test="updateTime != null">update_time,</if>
|
||||
<if test="createSite != null and createSite != ''">create_site,</if>
|
||||
<if test="updateSite != null and updateSite != ''">update_site,</if>
|
||||
</trim>
|
||||
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
||||
<if test="id != null">#{id},</if>
|
||||
<if test="payId != null and payId != ''">#{payId},</if>
|
||||
<if test="billNo != null and billNo != ''">#{billNo},</if>
|
||||
<if test="payMoney != null">#{payMoney},</if>
|
||||
<if test="delFlag != null and delFlag != ''">#{delFlag},</if>
|
||||
<if test="createBy != null and createBy != ''">#{createBy},</if>
|
||||
<if test="createTime != null">#{createTime},</if>
|
||||
<if test="updateBy != null and updateBy != ''">#{updateBy},</if>
|
||||
<if test="updateTime != null">#{updateTime},</if>
|
||||
<if test="createSite != null and createSite != ''">#{createSite},</if>
|
||||
<if test="updateSite != null and updateSite != ''">#{updateSite},</if>
|
||||
</trim>
|
||||
</insert>
|
||||
|
||||
<update id="updateEmisSettlePayRel" parameterType="EmisSettlePayRel">
|
||||
update emis_settle_pay_rel
|
||||
<trim prefix="SET" suffixOverrides=",">
|
||||
<if test="payId != null and payId != ''">pay_id = #{payId},</if>
|
||||
<if test="billNo != null and billNo != ''">bill_no = #{billNo},</if>
|
||||
<if test="payMoney != null">pay_money = #{payMoney},</if>
|
||||
<if test="delFlag != null and delFlag != ''">del_flag = #{delFlag},</if>
|
||||
<if test="createBy != null and createBy != ''">create_by = #{createBy},</if>
|
||||
<if test="createTime != null">create_time = #{createTime},</if>
|
||||
<if test="updateBy != null and updateBy != ''">update_by = #{updateBy},</if>
|
||||
<if test="updateTime != null">update_time = #{updateTime},</if>
|
||||
<if test="createSite != null and createSite != ''">create_site = #{createSite},</if>
|
||||
<if test="updateSite != null and updateSite != ''">update_site = #{updateSite},</if>
|
||||
</trim>
|
||||
where id = #{id}
|
||||
</update>
|
||||
|
||||
<delete id="deleteEmisSettlePayRelById" parameterType="Long">
|
||||
delete from emis_settle_pay_rel where id = #{id}
|
||||
</delete>
|
||||
|
||||
<delete id="deleteEmisSettlePayRelByIds" parameterType="String">
|
||||
delete from emis_settle_pay_rel where id in
|
||||
<foreach item="id" collection="array" open="(" separator="," close=")">
|
||||
#{id}
|
||||
</foreach>
|
||||
</delete>
|
||||
</mapper>
|
||||
Loading…
Reference in New Issue
Block a user