md
This commit is contained in:
parent
33c6bc829f
commit
ae3c354d5d
@ -0,0 +1,134 @@
|
||||
|
||||
/**
|
||||
* @Project: emis
|
||||
* @Title: EmisCreditCustomerController.java
|
||||
* @author linfso
|
||||
* @date 2025-03-08 16:17:55
|
||||
* @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.EmisCreditCustomer;
|
||||
import com.xdadan.erp.emis.service.IEmisCreditCustomerService;
|
||||
|
||||
/**
|
||||
* 客户信用额度表Controller
|
||||
*
|
||||
* @author linfso
|
||||
* @date 2025-03-08 16:17:55
|
||||
*/
|
||||
@RestController
|
||||
@RequestMapping("/emis/emisCreditCustomer")
|
||||
public class EmisCreditCustomerController extends BaseController
|
||||
{
|
||||
@Autowired
|
||||
private IEmisCreditCustomerService emisCreditCustomerService;
|
||||
|
||||
/**
|
||||
* 查询客户信用额度表列表
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('emis:emisCreditCustomer:list')")
|
||||
@GetMapping("/list")
|
||||
public TableDataInfo list(EmisCreditCustomer emisCreditCustomer)
|
||||
{
|
||||
startPage();
|
||||
List<EmisCreditCustomer> list = emisCreditCustomerService.selectEmisCreditCustomerList(emisCreditCustomer);
|
||||
return getDataTable(list);
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* 检查是否重复
|
||||
*
|
||||
* @param emisCreditCustomer
|
||||
* @return 数量
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('emis:emisCreditCustomer:list')")
|
||||
@GetMapping("/checkUnique")
|
||||
public AjaxResult checkUnique(EmisCreditCustomer emisCreditCustomer)
|
||||
{
|
||||
int cnt=emisCreditCustomerService.checkUnique(emisCreditCustomer);
|
||||
return AjaxResult.success("检查成功",cnt);
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* 导出客户信用额度表列表
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('emis:emisCreditCustomer:export')")
|
||||
@Log(title = "客户信用额度表", businessType = BusinessType.EXPORT)
|
||||
@PostMapping("/export")
|
||||
public void export(HttpServletResponse response, EmisCreditCustomer emisCreditCustomer)
|
||||
{
|
||||
List<EmisCreditCustomer> list = emisCreditCustomerService.selectEmisCreditCustomerList(emisCreditCustomer);
|
||||
ExcelUtil<EmisCreditCustomer> util = new ExcelUtil<EmisCreditCustomer>(EmisCreditCustomer.class);
|
||||
util.exportExcel(response, list, "客户信用额度表数据");
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取客户信用额度表详细信息
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('emis:emisCreditCustomer:query')")
|
||||
@GetMapping(value = "/{id}")
|
||||
public AjaxResult getInfo(@PathVariable("id") Long id)
|
||||
{
|
||||
return AjaxResult.success(emisCreditCustomerService.selectEmisCreditCustomerById(id));
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增客户信用额度表
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('emis:emisCreditCustomer:add')")
|
||||
@Log(title = "客户信用额度表", businessType = BusinessType.INSERT)
|
||||
@PostMapping
|
||||
public AjaxResult add(@RequestBody EmisCreditCustomer emisCreditCustomer)
|
||||
{
|
||||
return toAjax(emisCreditCustomerService.insertEmisCreditCustomer(emisCreditCustomer));
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改客户信用额度表
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('emis:emisCreditCustomer:edit')")
|
||||
@Log(title = "客户信用额度表", businessType = BusinessType.UPDATE)
|
||||
@PutMapping
|
||||
public AjaxResult edit(@RequestBody EmisCreditCustomer emisCreditCustomer)
|
||||
{
|
||||
return toAjax(emisCreditCustomerService.updateEmisCreditCustomer(emisCreditCustomer));
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除客户信用额度表
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('emis:emisCreditCustomer:remove')")
|
||||
@Log(title = "客户信用额度表", businessType = BusinessType.DELETE)
|
||||
@DeleteMapping("/{ids}")
|
||||
public AjaxResult remove(@PathVariable Long[] ids)
|
||||
{
|
||||
return toAjax(emisCreditCustomerService.deleteEmisCreditCustomerByIds(ids));
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,134 @@
|
||||
|
||||
/**
|
||||
* @Project: emis
|
||||
* @Title: EmisCreditCustomerRecordController.java
|
||||
* @author linfso
|
||||
* @date 2025-03-08 16:17:55
|
||||
* @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.EmisCreditCustomerRecord;
|
||||
import com.xdadan.erp.emis.service.IEmisCreditCustomerRecordService;
|
||||
|
||||
/**
|
||||
* 客户信用额度记录Controller
|
||||
*
|
||||
* @author linfso
|
||||
* @date 2025-03-08 16:17:55
|
||||
*/
|
||||
@RestController
|
||||
@RequestMapping("/emis/emisCreditCustomerRecord")
|
||||
public class EmisCreditCustomerRecordController extends BaseController
|
||||
{
|
||||
@Autowired
|
||||
private IEmisCreditCustomerRecordService emisCreditCustomerRecordService;
|
||||
|
||||
/**
|
||||
* 查询客户信用额度记录列表
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('emis:emisCreditCustomerRecord:list')")
|
||||
@GetMapping("/list")
|
||||
public TableDataInfo list(EmisCreditCustomerRecord emisCreditCustomerRecord)
|
||||
{
|
||||
startPage();
|
||||
List<EmisCreditCustomerRecord> list = emisCreditCustomerRecordService.selectEmisCreditCustomerRecordList(emisCreditCustomerRecord);
|
||||
return getDataTable(list);
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* 检查是否重复
|
||||
*
|
||||
* @param emisCreditCustomerRecord
|
||||
* @return 数量
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('emis:emisCreditCustomerRecord:list')")
|
||||
@GetMapping("/checkUnique")
|
||||
public AjaxResult checkUnique(EmisCreditCustomerRecord emisCreditCustomerRecord)
|
||||
{
|
||||
int cnt=emisCreditCustomerRecordService.checkUnique(emisCreditCustomerRecord);
|
||||
return AjaxResult.success("检查成功",cnt);
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* 导出客户信用额度记录列表
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('emis:emisCreditCustomerRecord:export')")
|
||||
@Log(title = "客户信用额度记录", businessType = BusinessType.EXPORT)
|
||||
@PostMapping("/export")
|
||||
public void export(HttpServletResponse response, EmisCreditCustomerRecord emisCreditCustomerRecord)
|
||||
{
|
||||
List<EmisCreditCustomerRecord> list = emisCreditCustomerRecordService.selectEmisCreditCustomerRecordList(emisCreditCustomerRecord);
|
||||
ExcelUtil<EmisCreditCustomerRecord> util = new ExcelUtil<EmisCreditCustomerRecord>(EmisCreditCustomerRecord.class);
|
||||
util.exportExcel(response, list, "客户信用额度记录数据");
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取客户信用额度记录详细信息
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('emis:emisCreditCustomerRecord:query')")
|
||||
@GetMapping(value = "/{id}")
|
||||
public AjaxResult getInfo(@PathVariable("id") Long id)
|
||||
{
|
||||
return AjaxResult.success(emisCreditCustomerRecordService.selectEmisCreditCustomerRecordById(id));
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增客户信用额度记录
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('emis:emisCreditCustomerRecord:add')")
|
||||
@Log(title = "客户信用额度记录", businessType = BusinessType.INSERT)
|
||||
@PostMapping
|
||||
public AjaxResult add(@RequestBody EmisCreditCustomerRecord emisCreditCustomerRecord)
|
||||
{
|
||||
return toAjax(emisCreditCustomerRecordService.insertEmisCreditCustomerRecord(emisCreditCustomerRecord));
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改客户信用额度记录
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('emis:emisCreditCustomerRecord:edit')")
|
||||
@Log(title = "客户信用额度记录", businessType = BusinessType.UPDATE)
|
||||
@PutMapping
|
||||
public AjaxResult edit(@RequestBody EmisCreditCustomerRecord emisCreditCustomerRecord)
|
||||
{
|
||||
return toAjax(emisCreditCustomerRecordService.updateEmisCreditCustomerRecord(emisCreditCustomerRecord));
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除客户信用额度记录
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('emis:emisCreditCustomerRecord:remove')")
|
||||
@Log(title = "客户信用额度记录", businessType = BusinessType.DELETE)
|
||||
@DeleteMapping("/{ids}")
|
||||
public AjaxResult remove(@PathVariable Long[] ids)
|
||||
{
|
||||
return toAjax(emisCreditCustomerRecordService.deleteEmisCreditCustomerRecordByIds(ids));
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,134 @@
|
||||
|
||||
/**
|
||||
* @Project: emis
|
||||
* @Title: EmisCreditSalesmenController.java
|
||||
* @author linfso
|
||||
* @date 2025-03-08 16:17:56
|
||||
* @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.EmisCreditSalesmen;
|
||||
import com.xdadan.erp.emis.service.IEmisCreditSalesmenService;
|
||||
|
||||
/**
|
||||
* 销售信用额度Controller
|
||||
*
|
||||
* @author linfso
|
||||
* @date 2025-03-08 16:17:56
|
||||
*/
|
||||
@RestController
|
||||
@RequestMapping("/emis/emisCreditSalesmen")
|
||||
public class EmisCreditSalesmenController extends BaseController
|
||||
{
|
||||
@Autowired
|
||||
private IEmisCreditSalesmenService emisCreditSalesmenService;
|
||||
|
||||
/**
|
||||
* 查询销售信用额度列表
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('emis:emisCreditSalesmen:list')")
|
||||
@GetMapping("/list")
|
||||
public TableDataInfo list(EmisCreditSalesmen emisCreditSalesmen)
|
||||
{
|
||||
startPage();
|
||||
List<EmisCreditSalesmen> list = emisCreditSalesmenService.selectEmisCreditSalesmenList(emisCreditSalesmen);
|
||||
return getDataTable(list);
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* 检查是否重复
|
||||
*
|
||||
* @param emisCreditSalesmen
|
||||
* @return 数量
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('emis:emisCreditSalesmen:list')")
|
||||
@GetMapping("/checkUnique")
|
||||
public AjaxResult checkUnique(EmisCreditSalesmen emisCreditSalesmen)
|
||||
{
|
||||
int cnt=emisCreditSalesmenService.checkUnique(emisCreditSalesmen);
|
||||
return AjaxResult.success("检查成功",cnt);
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* 导出销售信用额度列表
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('emis:emisCreditSalesmen:export')")
|
||||
@Log(title = "销售信用额度", businessType = BusinessType.EXPORT)
|
||||
@PostMapping("/export")
|
||||
public void export(HttpServletResponse response, EmisCreditSalesmen emisCreditSalesmen)
|
||||
{
|
||||
List<EmisCreditSalesmen> list = emisCreditSalesmenService.selectEmisCreditSalesmenList(emisCreditSalesmen);
|
||||
ExcelUtil<EmisCreditSalesmen> util = new ExcelUtil<EmisCreditSalesmen>(EmisCreditSalesmen.class);
|
||||
util.exportExcel(response, list, "销售信用额度数据");
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取销售信用额度详细信息
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('emis:emisCreditSalesmen:query')")
|
||||
@GetMapping(value = "/{id}")
|
||||
public AjaxResult getInfo(@PathVariable("id") Long id)
|
||||
{
|
||||
return AjaxResult.success(emisCreditSalesmenService.selectEmisCreditSalesmenById(id));
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增销售信用额度
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('emis:emisCreditSalesmen:add')")
|
||||
@Log(title = "销售信用额度", businessType = BusinessType.INSERT)
|
||||
@PostMapping
|
||||
public AjaxResult add(@RequestBody EmisCreditSalesmen emisCreditSalesmen)
|
||||
{
|
||||
return toAjax(emisCreditSalesmenService.insertEmisCreditSalesmen(emisCreditSalesmen));
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改销售信用额度
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('emis:emisCreditSalesmen:edit')")
|
||||
@Log(title = "销售信用额度", businessType = BusinessType.UPDATE)
|
||||
@PutMapping
|
||||
public AjaxResult edit(@RequestBody EmisCreditSalesmen emisCreditSalesmen)
|
||||
{
|
||||
return toAjax(emisCreditSalesmenService.updateEmisCreditSalesmen(emisCreditSalesmen));
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除销售信用额度
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('emis:emisCreditSalesmen:remove')")
|
||||
@Log(title = "销售信用额度", businessType = BusinessType.DELETE)
|
||||
@DeleteMapping("/{ids}")
|
||||
public AjaxResult remove(@PathVariable Long[] ids)
|
||||
{
|
||||
return toAjax(emisCreditSalesmenService.deleteEmisCreditSalesmenByIds(ids));
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,134 @@
|
||||
|
||||
/**
|
||||
* @Project: emis
|
||||
* @Title: EmisCreditSalesmenRecordController.java
|
||||
* @author linfso
|
||||
* @date 2025-03-08 16:17:57
|
||||
* @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.EmisCreditSalesmenRecord;
|
||||
import com.xdadan.erp.emis.service.IEmisCreditSalesmenRecordService;
|
||||
|
||||
/**
|
||||
* 销售信用额度记录Controller
|
||||
*
|
||||
* @author linfso
|
||||
* @date 2025-03-08 16:17:57
|
||||
*/
|
||||
@RestController
|
||||
@RequestMapping("/emis/emisCreditSalesmenRecord")
|
||||
public class EmisCreditSalesmenRecordController extends BaseController
|
||||
{
|
||||
@Autowired
|
||||
private IEmisCreditSalesmenRecordService emisCreditSalesmenRecordService;
|
||||
|
||||
/**
|
||||
* 查询销售信用额度记录列表
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('emis:emisCreditSalesmenRecord:list')")
|
||||
@GetMapping("/list")
|
||||
public TableDataInfo list(EmisCreditSalesmenRecord emisCreditSalesmenRecord)
|
||||
{
|
||||
startPage();
|
||||
List<EmisCreditSalesmenRecord> list = emisCreditSalesmenRecordService.selectEmisCreditSalesmenRecordList(emisCreditSalesmenRecord);
|
||||
return getDataTable(list);
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* 检查是否重复
|
||||
*
|
||||
* @param emisCreditSalesmenRecord
|
||||
* @return 数量
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('emis:emisCreditSalesmenRecord:list')")
|
||||
@GetMapping("/checkUnique")
|
||||
public AjaxResult checkUnique(EmisCreditSalesmenRecord emisCreditSalesmenRecord)
|
||||
{
|
||||
int cnt=emisCreditSalesmenRecordService.checkUnique(emisCreditSalesmenRecord);
|
||||
return AjaxResult.success("检查成功",cnt);
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* 导出销售信用额度记录列表
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('emis:emisCreditSalesmenRecord:export')")
|
||||
@Log(title = "销售信用额度记录", businessType = BusinessType.EXPORT)
|
||||
@PostMapping("/export")
|
||||
public void export(HttpServletResponse response, EmisCreditSalesmenRecord emisCreditSalesmenRecord)
|
||||
{
|
||||
List<EmisCreditSalesmenRecord> list = emisCreditSalesmenRecordService.selectEmisCreditSalesmenRecordList(emisCreditSalesmenRecord);
|
||||
ExcelUtil<EmisCreditSalesmenRecord> util = new ExcelUtil<EmisCreditSalesmenRecord>(EmisCreditSalesmenRecord.class);
|
||||
util.exportExcel(response, list, "销售信用额度记录数据");
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取销售信用额度记录详细信息
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('emis:emisCreditSalesmenRecord:query')")
|
||||
@GetMapping(value = "/{id}")
|
||||
public AjaxResult getInfo(@PathVariable("id") Long id)
|
||||
{
|
||||
return AjaxResult.success(emisCreditSalesmenRecordService.selectEmisCreditSalesmenRecordById(id));
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增销售信用额度记录
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('emis:emisCreditSalesmenRecord:add')")
|
||||
@Log(title = "销售信用额度记录", businessType = BusinessType.INSERT)
|
||||
@PostMapping
|
||||
public AjaxResult add(@RequestBody EmisCreditSalesmenRecord emisCreditSalesmenRecord)
|
||||
{
|
||||
return toAjax(emisCreditSalesmenRecordService.insertEmisCreditSalesmenRecord(emisCreditSalesmenRecord));
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改销售信用额度记录
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('emis:emisCreditSalesmenRecord:edit')")
|
||||
@Log(title = "销售信用额度记录", businessType = BusinessType.UPDATE)
|
||||
@PutMapping
|
||||
public AjaxResult edit(@RequestBody EmisCreditSalesmenRecord emisCreditSalesmenRecord)
|
||||
{
|
||||
return toAjax(emisCreditSalesmenRecordService.updateEmisCreditSalesmenRecord(emisCreditSalesmenRecord));
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除销售信用额度记录
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('emis:emisCreditSalesmenRecord:remove')")
|
||||
@Log(title = "销售信用额度记录", businessType = BusinessType.DELETE)
|
||||
@DeleteMapping("/{ids}")
|
||||
public AjaxResult remove(@PathVariable Long[] ids)
|
||||
{
|
||||
return toAjax(emisCreditSalesmenRecordService.deleteEmisCreditSalesmenRecordByIds(ids));
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,59 @@
|
||||
/**
|
||||
* @Project: emis
|
||||
* @Title: EmisCreditCustomer.java
|
||||
* @author linfso
|
||||
* @date 2025-03-08 16:17:54
|
||||
* @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 EmisCreditCustomer
|
||||
* @Description 客户信用额度表
|
||||
* @author linfso
|
||||
* @date 2025-03-08 16:17:54
|
||||
*/
|
||||
@Data
|
||||
public class EmisCreditCustomer extends BaseEntity
|
||||
{
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/* id */
|
||||
private Long id;
|
||||
/* 客户编码 */
|
||||
private String customerCode;
|
||||
/* 当前余额 */
|
||||
private BigDecimal curMoney;
|
||||
/* 余额比率 */
|
||||
private BigDecimal curMoneyRate;
|
||||
/* 信用额度 */
|
||||
private BigDecimal creditMoney;
|
||||
/* 币种 */
|
||||
private String currency;
|
||||
/* 运输方式 */
|
||||
private String transType;
|
||||
/* 开始日期 */
|
||||
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
|
||||
private Date startDate;
|
||||
/* 结束日期 */
|
||||
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
|
||||
private Date endDate;
|
||||
/* 是否启用 1-启用 0-未启用 */
|
||||
private String blOpen;
|
||||
|
||||
}
|
||||
@ -0,0 +1,53 @@
|
||||
/**
|
||||
* @Project: emis
|
||||
* @Title: EmisCreditCustomerRecord.java
|
||||
* @author linfso
|
||||
* @date 2025-03-08 16:17:55
|
||||
* @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 EmisCreditCustomerRecord
|
||||
* @Description 客户信用额度记录
|
||||
* @author linfso
|
||||
* @date 2025-03-08 16:17:55
|
||||
*/
|
||||
@Data
|
||||
public class EmisCreditCustomerRecord extends BaseEntity
|
||||
{
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/* id */
|
||||
private Long id;
|
||||
/* 客户编码 */
|
||||
private String customerCode;
|
||||
/* 运单号 */
|
||||
private String billCode;
|
||||
/* 操作类型 加,减 1-加 2-减 */
|
||||
private String changeType;
|
||||
/* 当前操作金额 */
|
||||
private BigDecimal changeMoney;
|
||||
/* 前余额 */
|
||||
private BigDecimal preBalance;
|
||||
/* 变动后余额 */
|
||||
private BigDecimal backBalance;
|
||||
/* 币种 */
|
||||
private String currency;
|
||||
|
||||
}
|
||||
@ -0,0 +1,61 @@
|
||||
/**
|
||||
* @Project: emis
|
||||
* @Title: EmisCreditSalesmen.java
|
||||
* @author linfso
|
||||
* @date 2025-03-08 16:17:56
|
||||
* @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 EmisCreditSalesmen
|
||||
* @Description 销售信用额度
|
||||
* @author linfso
|
||||
* @date 2025-03-08 16:17:56
|
||||
*/
|
||||
@Data
|
||||
public class EmisCreditSalesmen extends BaseEntity
|
||||
{
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/* id */
|
||||
private Long id;
|
||||
/* 销售名称 */
|
||||
private String salesmen;
|
||||
/* 当前余额 */
|
||||
private BigDecimal curMoney;
|
||||
/* 余额比率 */
|
||||
private BigDecimal curMoneyRate;
|
||||
/* 信用额度 */
|
||||
private BigDecimal creditMoney;
|
||||
/* 币种 */
|
||||
private String currency;
|
||||
/* 运输方式 */
|
||||
private String transType;
|
||||
/* 开始日期 */
|
||||
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
|
||||
private Date startDate;
|
||||
/* 结束日期 */
|
||||
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
|
||||
private Date endDate;
|
||||
/* 是否启用 1-启用 0-未启用 */
|
||||
private String blOpen;
|
||||
/* 是否锁定 0-否 1-是 */
|
||||
private String blLock;
|
||||
|
||||
}
|
||||
@ -0,0 +1,53 @@
|
||||
/**
|
||||
* @Project: emis
|
||||
* @Title: EmisCreditSalesmenRecord.java
|
||||
* @author linfso
|
||||
* @date 2025-03-08 16:17:56
|
||||
* @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 EmisCreditSalesmenRecord
|
||||
* @Description 销售信用额度记录
|
||||
* @author linfso
|
||||
* @date 2025-03-08 16:17:56
|
||||
*/
|
||||
@Data
|
||||
public class EmisCreditSalesmenRecord extends BaseEntity
|
||||
{
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/* id */
|
||||
private Long id;
|
||||
/* 销售名称 */
|
||||
private String salesmen;
|
||||
/* 运单号 */
|
||||
private String billCode;
|
||||
/* 操作类型 加,减 1-加 2-减 */
|
||||
private String changeType;
|
||||
/* 操作金额 */
|
||||
private BigDecimal changeMoney;
|
||||
/* 前余额 */
|
||||
private BigDecimal preBalance;
|
||||
/* 变动后余额 */
|
||||
private BigDecimal backBalance;
|
||||
/* 币种 */
|
||||
private String currency;
|
||||
|
||||
}
|
||||
@ -0,0 +1,80 @@
|
||||
/**
|
||||
* @Project: emis
|
||||
* @Title: EmisCreditCustomerMapper.java
|
||||
* @author linfso
|
||||
* @date 2025-03-08 16:17:54
|
||||
* @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.EmisCreditCustomer;
|
||||
/**
|
||||
* @ClassName EmisCreditCustomerMapper
|
||||
* @Description <p> 客户信用额度表 Mapper 接口 </p>
|
||||
* @author linfso
|
||||
* @date 2025-03-08 16:17:54
|
||||
*/
|
||||
public interface EmisCreditCustomerMapper extends BaseMapper<EmisCreditCustomer>
|
||||
{
|
||||
/**
|
||||
* 主键查询
|
||||
* @param id
|
||||
* @return
|
||||
*/
|
||||
public EmisCreditCustomer selectEmisCreditCustomerById(Long id);
|
||||
|
||||
/**
|
||||
* 查询列表
|
||||
*
|
||||
* @param emisCreditCustomer
|
||||
* @return 集合
|
||||
*/
|
||||
public List<EmisCreditCustomer> selectEmisCreditCustomerList(EmisCreditCustomer emisCreditCustomer);
|
||||
|
||||
|
||||
/**
|
||||
* 检查是否重复
|
||||
*
|
||||
* @param emisCreditCustomer
|
||||
* @return 数量
|
||||
*/
|
||||
public int checkUnique(EmisCreditCustomer emisCreditCustomer);
|
||||
|
||||
|
||||
/**
|
||||
* 新增
|
||||
*
|
||||
* @param emisCreditCustomer
|
||||
* @return
|
||||
*/
|
||||
public int insertEmisCreditCustomer(EmisCreditCustomer emisCreditCustomer);
|
||||
|
||||
/**
|
||||
* 修改
|
||||
*
|
||||
* @param emisCreditCustomer
|
||||
* @return
|
||||
*/
|
||||
public int updateEmisCreditCustomer(EmisCreditCustomer emisCreditCustomer);
|
||||
|
||||
/**
|
||||
* 删除
|
||||
*
|
||||
* @param id 主键
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteEmisCreditCustomerById(Long id);
|
||||
|
||||
/**
|
||||
* 批量删除
|
||||
*
|
||||
* @param ids 需要删除的数据主键集合
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteEmisCreditCustomerByIds(Long[] ids);
|
||||
}
|
||||
@ -0,0 +1,80 @@
|
||||
/**
|
||||
* @Project: emis
|
||||
* @Title: EmisCreditCustomerRecordMapper.java
|
||||
* @author linfso
|
||||
* @date 2025-03-08 16:17:55
|
||||
* @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.EmisCreditCustomerRecord;
|
||||
/**
|
||||
* @ClassName EmisCreditCustomerRecordMapper
|
||||
* @Description <p> 客户信用额度记录 Mapper 接口 </p>
|
||||
* @author linfso
|
||||
* @date 2025-03-08 16:17:55
|
||||
*/
|
||||
public interface EmisCreditCustomerRecordMapper extends BaseMapper<EmisCreditCustomerRecord>
|
||||
{
|
||||
/**
|
||||
* 主键查询
|
||||
* @param id
|
||||
* @return
|
||||
*/
|
||||
public EmisCreditCustomerRecord selectEmisCreditCustomerRecordById(Long id);
|
||||
|
||||
/**
|
||||
* 查询列表
|
||||
*
|
||||
* @param emisCreditCustomerRecord
|
||||
* @return 集合
|
||||
*/
|
||||
public List<EmisCreditCustomerRecord> selectEmisCreditCustomerRecordList(EmisCreditCustomerRecord emisCreditCustomerRecord);
|
||||
|
||||
|
||||
/**
|
||||
* 检查是否重复
|
||||
*
|
||||
* @param emisCreditCustomerRecord
|
||||
* @return 数量
|
||||
*/
|
||||
public int checkUnique(EmisCreditCustomerRecord emisCreditCustomerRecord);
|
||||
|
||||
|
||||
/**
|
||||
* 新增
|
||||
*
|
||||
* @param emisCreditCustomerRecord
|
||||
* @return
|
||||
*/
|
||||
public int insertEmisCreditCustomerRecord(EmisCreditCustomerRecord emisCreditCustomerRecord);
|
||||
|
||||
/**
|
||||
* 修改
|
||||
*
|
||||
* @param emisCreditCustomerRecord
|
||||
* @return
|
||||
*/
|
||||
public int updateEmisCreditCustomerRecord(EmisCreditCustomerRecord emisCreditCustomerRecord);
|
||||
|
||||
/**
|
||||
* 删除
|
||||
*
|
||||
* @param id 主键
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteEmisCreditCustomerRecordById(Long id);
|
||||
|
||||
/**
|
||||
* 批量删除
|
||||
*
|
||||
* @param ids 需要删除的数据主键集合
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteEmisCreditCustomerRecordByIds(Long[] ids);
|
||||
}
|
||||
@ -0,0 +1,80 @@
|
||||
/**
|
||||
* @Project: emis
|
||||
* @Title: EmisCreditSalesmenMapper.java
|
||||
* @author linfso
|
||||
* @date 2025-03-08 16:17:56
|
||||
* @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.EmisCreditSalesmen;
|
||||
/**
|
||||
* @ClassName EmisCreditSalesmenMapper
|
||||
* @Description <p> 销售信用额度 Mapper 接口 </p>
|
||||
* @author linfso
|
||||
* @date 2025-03-08 16:17:56
|
||||
*/
|
||||
public interface EmisCreditSalesmenMapper extends BaseMapper<EmisCreditSalesmen>
|
||||
{
|
||||
/**
|
||||
* 主键查询
|
||||
* @param id
|
||||
* @return
|
||||
*/
|
||||
public EmisCreditSalesmen selectEmisCreditSalesmenById(Long id);
|
||||
|
||||
/**
|
||||
* 查询列表
|
||||
*
|
||||
* @param emisCreditSalesmen
|
||||
* @return 集合
|
||||
*/
|
||||
public List<EmisCreditSalesmen> selectEmisCreditSalesmenList(EmisCreditSalesmen emisCreditSalesmen);
|
||||
|
||||
|
||||
/**
|
||||
* 检查是否重复
|
||||
*
|
||||
* @param emisCreditSalesmen
|
||||
* @return 数量
|
||||
*/
|
||||
public int checkUnique(EmisCreditSalesmen emisCreditSalesmen);
|
||||
|
||||
|
||||
/**
|
||||
* 新增
|
||||
*
|
||||
* @param emisCreditSalesmen
|
||||
* @return
|
||||
*/
|
||||
public int insertEmisCreditSalesmen(EmisCreditSalesmen emisCreditSalesmen);
|
||||
|
||||
/**
|
||||
* 修改
|
||||
*
|
||||
* @param emisCreditSalesmen
|
||||
* @return
|
||||
*/
|
||||
public int updateEmisCreditSalesmen(EmisCreditSalesmen emisCreditSalesmen);
|
||||
|
||||
/**
|
||||
* 删除
|
||||
*
|
||||
* @param id 主键
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteEmisCreditSalesmenById(Long id);
|
||||
|
||||
/**
|
||||
* 批量删除
|
||||
*
|
||||
* @param ids 需要删除的数据主键集合
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteEmisCreditSalesmenByIds(Long[] ids);
|
||||
}
|
||||
@ -0,0 +1,80 @@
|
||||
/**
|
||||
* @Project: emis
|
||||
* @Title: EmisCreditSalesmenRecordMapper.java
|
||||
* @author linfso
|
||||
* @date 2025-03-08 16:17:57
|
||||
* @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.EmisCreditSalesmenRecord;
|
||||
/**
|
||||
* @ClassName EmisCreditSalesmenRecordMapper
|
||||
* @Description <p> 销售信用额度记录 Mapper 接口 </p>
|
||||
* @author linfso
|
||||
* @date 2025-03-08 16:17:57
|
||||
*/
|
||||
public interface EmisCreditSalesmenRecordMapper extends BaseMapper<EmisCreditSalesmenRecord>
|
||||
{
|
||||
/**
|
||||
* 主键查询
|
||||
* @param id
|
||||
* @return
|
||||
*/
|
||||
public EmisCreditSalesmenRecord selectEmisCreditSalesmenRecordById(Long id);
|
||||
|
||||
/**
|
||||
* 查询列表
|
||||
*
|
||||
* @param emisCreditSalesmenRecord
|
||||
* @return 集合
|
||||
*/
|
||||
public List<EmisCreditSalesmenRecord> selectEmisCreditSalesmenRecordList(EmisCreditSalesmenRecord emisCreditSalesmenRecord);
|
||||
|
||||
|
||||
/**
|
||||
* 检查是否重复
|
||||
*
|
||||
* @param emisCreditSalesmenRecord
|
||||
* @return 数量
|
||||
*/
|
||||
public int checkUnique(EmisCreditSalesmenRecord emisCreditSalesmenRecord);
|
||||
|
||||
|
||||
/**
|
||||
* 新增
|
||||
*
|
||||
* @param emisCreditSalesmenRecord
|
||||
* @return
|
||||
*/
|
||||
public int insertEmisCreditSalesmenRecord(EmisCreditSalesmenRecord emisCreditSalesmenRecord);
|
||||
|
||||
/**
|
||||
* 修改
|
||||
*
|
||||
* @param emisCreditSalesmenRecord
|
||||
* @return
|
||||
*/
|
||||
public int updateEmisCreditSalesmenRecord(EmisCreditSalesmenRecord emisCreditSalesmenRecord);
|
||||
|
||||
/**
|
||||
* 删除
|
||||
*
|
||||
* @param id 主键
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteEmisCreditSalesmenRecordById(Long id);
|
||||
|
||||
/**
|
||||
* 批量删除
|
||||
*
|
||||
* @param ids 需要删除的数据主键集合
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteEmisCreditSalesmenRecordByIds(Long[] ids);
|
||||
}
|
||||
@ -0,0 +1,78 @@
|
||||
/**
|
||||
* @Project: emis
|
||||
* @Title: EmisCreditCustomerRecordService.java
|
||||
* @author linfso
|
||||
* @date 2025-03-08 16:17:55
|
||||
* @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.EmisCreditCustomerRecord;
|
||||
|
||||
/**
|
||||
* @ClassName EmisCreditCustomerRecordService
|
||||
* @Description 客户信用额度记录
|
||||
* @author linfso
|
||||
* @date 2025-03-08 16:17:55
|
||||
*/
|
||||
public interface IEmisCreditCustomerRecordService
|
||||
{
|
||||
/**
|
||||
* 主键查询
|
||||
* @param id
|
||||
* @return
|
||||
*/
|
||||
public EmisCreditCustomerRecord selectEmisCreditCustomerRecordById(Long id);
|
||||
|
||||
/**
|
||||
* 查询客户信用额度记录列表
|
||||
*
|
||||
* @param emisCreditCustomerRecord 客户信用额度记录
|
||||
* @return 客户信用额度记录集合
|
||||
*/
|
||||
public List<EmisCreditCustomerRecord> selectEmisCreditCustomerRecordList(EmisCreditCustomerRecord emisCreditCustomerRecord);
|
||||
|
||||
|
||||
/**
|
||||
* 检查是否重复
|
||||
*
|
||||
* @param emisCreditCustomerRecord
|
||||
* @return 数量
|
||||
*/
|
||||
public int checkUnique(EmisCreditCustomerRecord emisCreditCustomerRecord);
|
||||
|
||||
/**
|
||||
* 新增客户信用额度记录
|
||||
*
|
||||
* @param emisCreditCustomerRecord 客户信用额度记录
|
||||
* @return 结果
|
||||
*/
|
||||
public int insertEmisCreditCustomerRecord(EmisCreditCustomerRecord emisCreditCustomerRecord);
|
||||
|
||||
/**
|
||||
* 修改客户信用额度记录
|
||||
*
|
||||
* @param emisCreditCustomerRecord 客户信用额度记录
|
||||
* @return 结果
|
||||
*/
|
||||
public int updateEmisCreditCustomerRecord(EmisCreditCustomerRecord emisCreditCustomerRecord);
|
||||
|
||||
/**
|
||||
* 批量删除客户信用额度记录
|
||||
*
|
||||
* @param ids 需要删除的客户信用额度记录主键集合
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteEmisCreditCustomerRecordByIds(Long[] ids);
|
||||
|
||||
/**
|
||||
* 删除客户信用额度记录信息
|
||||
*
|
||||
* @param id 客户信用额度记录主键
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteEmisCreditCustomerRecordById(Long id);
|
||||
}
|
||||
@ -0,0 +1,78 @@
|
||||
/**
|
||||
* @Project: emis
|
||||
* @Title: EmisCreditCustomerService.java
|
||||
* @author linfso
|
||||
* @date 2025-03-08 16:17:54
|
||||
* @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.EmisCreditCustomer;
|
||||
|
||||
/**
|
||||
* @ClassName EmisCreditCustomerService
|
||||
* @Description 客户信用额度表
|
||||
* @author linfso
|
||||
* @date 2025-03-08 16:17:54
|
||||
*/
|
||||
public interface IEmisCreditCustomerService
|
||||
{
|
||||
/**
|
||||
* 主键查询
|
||||
* @param id
|
||||
* @return
|
||||
*/
|
||||
public EmisCreditCustomer selectEmisCreditCustomerById(Long id);
|
||||
|
||||
/**
|
||||
* 查询客户信用额度表列表
|
||||
*
|
||||
* @param emisCreditCustomer 客户信用额度表
|
||||
* @return 客户信用额度表集合
|
||||
*/
|
||||
public List<EmisCreditCustomer> selectEmisCreditCustomerList(EmisCreditCustomer emisCreditCustomer);
|
||||
|
||||
|
||||
/**
|
||||
* 检查是否重复
|
||||
*
|
||||
* @param emisCreditCustomer
|
||||
* @return 数量
|
||||
*/
|
||||
public int checkUnique(EmisCreditCustomer emisCreditCustomer);
|
||||
|
||||
/**
|
||||
* 新增客户信用额度表
|
||||
*
|
||||
* @param emisCreditCustomer 客户信用额度表
|
||||
* @return 结果
|
||||
*/
|
||||
public int insertEmisCreditCustomer(EmisCreditCustomer emisCreditCustomer);
|
||||
|
||||
/**
|
||||
* 修改客户信用额度表
|
||||
*
|
||||
* @param emisCreditCustomer 客户信用额度表
|
||||
* @return 结果
|
||||
*/
|
||||
public int updateEmisCreditCustomer(EmisCreditCustomer emisCreditCustomer);
|
||||
|
||||
/**
|
||||
* 批量删除客户信用额度表
|
||||
*
|
||||
* @param ids 需要删除的客户信用额度表主键集合
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteEmisCreditCustomerByIds(Long[] ids);
|
||||
|
||||
/**
|
||||
* 删除客户信用额度表信息
|
||||
*
|
||||
* @param id 客户信用额度表主键
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteEmisCreditCustomerById(Long id);
|
||||
}
|
||||
@ -0,0 +1,78 @@
|
||||
/**
|
||||
* @Project: emis
|
||||
* @Title: EmisCreditSalesmenRecordService.java
|
||||
* @author linfso
|
||||
* @date 2025-03-08 16:17:57
|
||||
* @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.EmisCreditSalesmenRecord;
|
||||
|
||||
/**
|
||||
* @ClassName EmisCreditSalesmenRecordService
|
||||
* @Description 销售信用额度记录
|
||||
* @author linfso
|
||||
* @date 2025-03-08 16:17:57
|
||||
*/
|
||||
public interface IEmisCreditSalesmenRecordService
|
||||
{
|
||||
/**
|
||||
* 主键查询
|
||||
* @param id
|
||||
* @return
|
||||
*/
|
||||
public EmisCreditSalesmenRecord selectEmisCreditSalesmenRecordById(Long id);
|
||||
|
||||
/**
|
||||
* 查询销售信用额度记录列表
|
||||
*
|
||||
* @param emisCreditSalesmenRecord 销售信用额度记录
|
||||
* @return 销售信用额度记录集合
|
||||
*/
|
||||
public List<EmisCreditSalesmenRecord> selectEmisCreditSalesmenRecordList(EmisCreditSalesmenRecord emisCreditSalesmenRecord);
|
||||
|
||||
|
||||
/**
|
||||
* 检查是否重复
|
||||
*
|
||||
* @param emisCreditSalesmenRecord
|
||||
* @return 数量
|
||||
*/
|
||||
public int checkUnique(EmisCreditSalesmenRecord emisCreditSalesmenRecord);
|
||||
|
||||
/**
|
||||
* 新增销售信用额度记录
|
||||
*
|
||||
* @param emisCreditSalesmenRecord 销售信用额度记录
|
||||
* @return 结果
|
||||
*/
|
||||
public int insertEmisCreditSalesmenRecord(EmisCreditSalesmenRecord emisCreditSalesmenRecord);
|
||||
|
||||
/**
|
||||
* 修改销售信用额度记录
|
||||
*
|
||||
* @param emisCreditSalesmenRecord 销售信用额度记录
|
||||
* @return 结果
|
||||
*/
|
||||
public int updateEmisCreditSalesmenRecord(EmisCreditSalesmenRecord emisCreditSalesmenRecord);
|
||||
|
||||
/**
|
||||
* 批量删除销售信用额度记录
|
||||
*
|
||||
* @param ids 需要删除的销售信用额度记录主键集合
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteEmisCreditSalesmenRecordByIds(Long[] ids);
|
||||
|
||||
/**
|
||||
* 删除销售信用额度记录信息
|
||||
*
|
||||
* @param id 销售信用额度记录主键
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteEmisCreditSalesmenRecordById(Long id);
|
||||
}
|
||||
@ -0,0 +1,78 @@
|
||||
/**
|
||||
* @Project: emis
|
||||
* @Title: EmisCreditSalesmenService.java
|
||||
* @author linfso
|
||||
* @date 2025-03-08 16:17:56
|
||||
* @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.EmisCreditSalesmen;
|
||||
|
||||
/**
|
||||
* @ClassName EmisCreditSalesmenService
|
||||
* @Description 销售信用额度
|
||||
* @author linfso
|
||||
* @date 2025-03-08 16:17:56
|
||||
*/
|
||||
public interface IEmisCreditSalesmenService
|
||||
{
|
||||
/**
|
||||
* 主键查询
|
||||
* @param id
|
||||
* @return
|
||||
*/
|
||||
public EmisCreditSalesmen selectEmisCreditSalesmenById(Long id);
|
||||
|
||||
/**
|
||||
* 查询销售信用额度列表
|
||||
*
|
||||
* @param emisCreditSalesmen 销售信用额度
|
||||
* @return 销售信用额度集合
|
||||
*/
|
||||
public List<EmisCreditSalesmen> selectEmisCreditSalesmenList(EmisCreditSalesmen emisCreditSalesmen);
|
||||
|
||||
|
||||
/**
|
||||
* 检查是否重复
|
||||
*
|
||||
* @param emisCreditSalesmen
|
||||
* @return 数量
|
||||
*/
|
||||
public int checkUnique(EmisCreditSalesmen emisCreditSalesmen);
|
||||
|
||||
/**
|
||||
* 新增销售信用额度
|
||||
*
|
||||
* @param emisCreditSalesmen 销售信用额度
|
||||
* @return 结果
|
||||
*/
|
||||
public int insertEmisCreditSalesmen(EmisCreditSalesmen emisCreditSalesmen);
|
||||
|
||||
/**
|
||||
* 修改销售信用额度
|
||||
*
|
||||
* @param emisCreditSalesmen 销售信用额度
|
||||
* @return 结果
|
||||
*/
|
||||
public int updateEmisCreditSalesmen(EmisCreditSalesmen emisCreditSalesmen);
|
||||
|
||||
/**
|
||||
* 批量删除销售信用额度
|
||||
*
|
||||
* @param ids 需要删除的销售信用额度主键集合
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteEmisCreditSalesmenByIds(Long[] ids);
|
||||
|
||||
/**
|
||||
* 删除销售信用额度信息
|
||||
*
|
||||
* @param id 销售信用额度主键
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteEmisCreditSalesmenById(Long id);
|
||||
}
|
||||
@ -0,0 +1,117 @@
|
||||
/**
|
||||
* @Project: emis
|
||||
* @Title: EmisCreditCustomerRecordServiceImpl.java
|
||||
* @author linfso
|
||||
* @date 2025-03-08 16:17:55
|
||||
* @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.EmisCreditCustomerRecord;
|
||||
import com.xdadan.erp.emis.mapper.EmisCreditCustomerRecordMapper;
|
||||
import com.xdadan.erp.emis.service.IEmisCreditCustomerRecordService;
|
||||
|
||||
/**
|
||||
* 客户信用额度记录Service业务层处理
|
||||
*
|
||||
* @author linfso
|
||||
* @date 2025-03-08 16:17:55
|
||||
*/
|
||||
@Service
|
||||
public class EmisCreditCustomerRecordServiceImpl implements IEmisCreditCustomerRecordService
|
||||
{
|
||||
@Autowired
|
||||
private EmisCreditCustomerRecordMapper emisCreditCustomerRecordMapper;
|
||||
|
||||
/**
|
||||
* 查询客户信用额度记录
|
||||
*
|
||||
* @param id 客户信用额度记录主键
|
||||
* @return 客户信用额度记录
|
||||
*/
|
||||
@Override
|
||||
public EmisCreditCustomerRecord selectEmisCreditCustomerRecordById(Long id)
|
||||
{
|
||||
return emisCreditCustomerRecordMapper.selectEmisCreditCustomerRecordById(id);
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* 查询客户信用额度记录列表
|
||||
*
|
||||
* @param emisCreditCustomerRecord 客户信用额度记录
|
||||
* @return 客户信用额度记录
|
||||
*/
|
||||
@Override
|
||||
public List<EmisCreditCustomerRecord> selectEmisCreditCustomerRecordList(EmisCreditCustomerRecord emisCreditCustomerRecord)
|
||||
{
|
||||
return emisCreditCustomerRecordMapper.selectEmisCreditCustomerRecordList(emisCreditCustomerRecord);
|
||||
}
|
||||
|
||||
/**
|
||||
* 检查是否重复
|
||||
*
|
||||
* @param emisCreditCustomerRecord
|
||||
* @return 数量
|
||||
*/
|
||||
@Override
|
||||
public int checkUnique(EmisCreditCustomerRecord emisCreditCustomerRecord)
|
||||
{
|
||||
return emisCreditCustomerRecordMapper.checkUnique(emisCreditCustomerRecord);
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增客户信用额度记录
|
||||
*
|
||||
* @param emisCreditCustomerRecord 客户信用额度记录
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int insertEmisCreditCustomerRecord(EmisCreditCustomerRecord emisCreditCustomerRecord)
|
||||
{
|
||||
return emisCreditCustomerRecordMapper.insertEmisCreditCustomerRecord(emisCreditCustomerRecord);
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改客户信用额度记录
|
||||
*
|
||||
* @param emisCreditCustomerRecord 客户信用额度记录
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int updateEmisCreditCustomerRecord(EmisCreditCustomerRecord emisCreditCustomerRecord)
|
||||
{
|
||||
return emisCreditCustomerRecordMapper.updateEmisCreditCustomerRecord(emisCreditCustomerRecord);
|
||||
}
|
||||
|
||||
/**
|
||||
* 批量删除客户信用额度记录
|
||||
*
|
||||
* @param ids 需要删除的客户信用额度记录主键
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int deleteEmisCreditCustomerRecordByIds(Long[] ids)
|
||||
{
|
||||
return emisCreditCustomerRecordMapper.deleteEmisCreditCustomerRecordByIds(ids);
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除客户信用额度记录信息
|
||||
*
|
||||
* @param id 客户信用额度记录主键
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int deleteEmisCreditCustomerRecordById(Long id)
|
||||
{
|
||||
return emisCreditCustomerRecordMapper.deleteEmisCreditCustomerRecordById(id);
|
||||
}
|
||||
|
||||
}
|
||||
@ -0,0 +1,117 @@
|
||||
/**
|
||||
* @Project: emis
|
||||
* @Title: EmisCreditCustomerServiceImpl.java
|
||||
* @author linfso
|
||||
* @date 2025-03-08 16:17:54
|
||||
* @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.EmisCreditCustomer;
|
||||
import com.xdadan.erp.emis.mapper.EmisCreditCustomerMapper;
|
||||
import com.xdadan.erp.emis.service.IEmisCreditCustomerService;
|
||||
|
||||
/**
|
||||
* 客户信用额度表Service业务层处理
|
||||
*
|
||||
* @author linfso
|
||||
* @date 2025-03-08 16:17:54
|
||||
*/
|
||||
@Service
|
||||
public class EmisCreditCustomerServiceImpl implements IEmisCreditCustomerService
|
||||
{
|
||||
@Autowired
|
||||
private EmisCreditCustomerMapper emisCreditCustomerMapper;
|
||||
|
||||
/**
|
||||
* 查询客户信用额度表
|
||||
*
|
||||
* @param id 客户信用额度表主键
|
||||
* @return 客户信用额度表
|
||||
*/
|
||||
@Override
|
||||
public EmisCreditCustomer selectEmisCreditCustomerById(Long id)
|
||||
{
|
||||
return emisCreditCustomerMapper.selectEmisCreditCustomerById(id);
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* 查询客户信用额度表列表
|
||||
*
|
||||
* @param emisCreditCustomer 客户信用额度表
|
||||
* @return 客户信用额度表
|
||||
*/
|
||||
@Override
|
||||
public List<EmisCreditCustomer> selectEmisCreditCustomerList(EmisCreditCustomer emisCreditCustomer)
|
||||
{
|
||||
return emisCreditCustomerMapper.selectEmisCreditCustomerList(emisCreditCustomer);
|
||||
}
|
||||
|
||||
/**
|
||||
* 检查是否重复
|
||||
*
|
||||
* @param emisCreditCustomer
|
||||
* @return 数量
|
||||
*/
|
||||
@Override
|
||||
public int checkUnique(EmisCreditCustomer emisCreditCustomer)
|
||||
{
|
||||
return emisCreditCustomerMapper.checkUnique(emisCreditCustomer);
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增客户信用额度表
|
||||
*
|
||||
* @param emisCreditCustomer 客户信用额度表
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int insertEmisCreditCustomer(EmisCreditCustomer emisCreditCustomer)
|
||||
{
|
||||
return emisCreditCustomerMapper.insertEmisCreditCustomer(emisCreditCustomer);
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改客户信用额度表
|
||||
*
|
||||
* @param emisCreditCustomer 客户信用额度表
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int updateEmisCreditCustomer(EmisCreditCustomer emisCreditCustomer)
|
||||
{
|
||||
return emisCreditCustomerMapper.updateEmisCreditCustomer(emisCreditCustomer);
|
||||
}
|
||||
|
||||
/**
|
||||
* 批量删除客户信用额度表
|
||||
*
|
||||
* @param ids 需要删除的客户信用额度表主键
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int deleteEmisCreditCustomerByIds(Long[] ids)
|
||||
{
|
||||
return emisCreditCustomerMapper.deleteEmisCreditCustomerByIds(ids);
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除客户信用额度表信息
|
||||
*
|
||||
* @param id 客户信用额度表主键
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int deleteEmisCreditCustomerById(Long id)
|
||||
{
|
||||
return emisCreditCustomerMapper.deleteEmisCreditCustomerById(id);
|
||||
}
|
||||
|
||||
}
|
||||
@ -0,0 +1,117 @@
|
||||
/**
|
||||
* @Project: emis
|
||||
* @Title: EmisCreditSalesmenRecordServiceImpl.java
|
||||
* @author linfso
|
||||
* @date 2025-03-08 16:17:57
|
||||
* @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.EmisCreditSalesmenRecord;
|
||||
import com.xdadan.erp.emis.mapper.EmisCreditSalesmenRecordMapper;
|
||||
import com.xdadan.erp.emis.service.IEmisCreditSalesmenRecordService;
|
||||
|
||||
/**
|
||||
* 销售信用额度记录Service业务层处理
|
||||
*
|
||||
* @author linfso
|
||||
* @date 2025-03-08 16:17:57
|
||||
*/
|
||||
@Service
|
||||
public class EmisCreditSalesmenRecordServiceImpl implements IEmisCreditSalesmenRecordService
|
||||
{
|
||||
@Autowired
|
||||
private EmisCreditSalesmenRecordMapper emisCreditSalesmenRecordMapper;
|
||||
|
||||
/**
|
||||
* 查询销售信用额度记录
|
||||
*
|
||||
* @param id 销售信用额度记录主键
|
||||
* @return 销售信用额度记录
|
||||
*/
|
||||
@Override
|
||||
public EmisCreditSalesmenRecord selectEmisCreditSalesmenRecordById(Long id)
|
||||
{
|
||||
return emisCreditSalesmenRecordMapper.selectEmisCreditSalesmenRecordById(id);
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* 查询销售信用额度记录列表
|
||||
*
|
||||
* @param emisCreditSalesmenRecord 销售信用额度记录
|
||||
* @return 销售信用额度记录
|
||||
*/
|
||||
@Override
|
||||
public List<EmisCreditSalesmenRecord> selectEmisCreditSalesmenRecordList(EmisCreditSalesmenRecord emisCreditSalesmenRecord)
|
||||
{
|
||||
return emisCreditSalesmenRecordMapper.selectEmisCreditSalesmenRecordList(emisCreditSalesmenRecord);
|
||||
}
|
||||
|
||||
/**
|
||||
* 检查是否重复
|
||||
*
|
||||
* @param emisCreditSalesmenRecord
|
||||
* @return 数量
|
||||
*/
|
||||
@Override
|
||||
public int checkUnique(EmisCreditSalesmenRecord emisCreditSalesmenRecord)
|
||||
{
|
||||
return emisCreditSalesmenRecordMapper.checkUnique(emisCreditSalesmenRecord);
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增销售信用额度记录
|
||||
*
|
||||
* @param emisCreditSalesmenRecord 销售信用额度记录
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int insertEmisCreditSalesmenRecord(EmisCreditSalesmenRecord emisCreditSalesmenRecord)
|
||||
{
|
||||
return emisCreditSalesmenRecordMapper.insertEmisCreditSalesmenRecord(emisCreditSalesmenRecord);
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改销售信用额度记录
|
||||
*
|
||||
* @param emisCreditSalesmenRecord 销售信用额度记录
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int updateEmisCreditSalesmenRecord(EmisCreditSalesmenRecord emisCreditSalesmenRecord)
|
||||
{
|
||||
return emisCreditSalesmenRecordMapper.updateEmisCreditSalesmenRecord(emisCreditSalesmenRecord);
|
||||
}
|
||||
|
||||
/**
|
||||
* 批量删除销售信用额度记录
|
||||
*
|
||||
* @param ids 需要删除的销售信用额度记录主键
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int deleteEmisCreditSalesmenRecordByIds(Long[] ids)
|
||||
{
|
||||
return emisCreditSalesmenRecordMapper.deleteEmisCreditSalesmenRecordByIds(ids);
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除销售信用额度记录信息
|
||||
*
|
||||
* @param id 销售信用额度记录主键
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int deleteEmisCreditSalesmenRecordById(Long id)
|
||||
{
|
||||
return emisCreditSalesmenRecordMapper.deleteEmisCreditSalesmenRecordById(id);
|
||||
}
|
||||
|
||||
}
|
||||
@ -0,0 +1,117 @@
|
||||
/**
|
||||
* @Project: emis
|
||||
* @Title: EmisCreditSalesmenServiceImpl.java
|
||||
* @author linfso
|
||||
* @date 2025-03-08 16:17:56
|
||||
* @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.EmisCreditSalesmen;
|
||||
import com.xdadan.erp.emis.mapper.EmisCreditSalesmenMapper;
|
||||
import com.xdadan.erp.emis.service.IEmisCreditSalesmenService;
|
||||
|
||||
/**
|
||||
* 销售信用额度Service业务层处理
|
||||
*
|
||||
* @author linfso
|
||||
* @date 2025-03-08 16:17:56
|
||||
*/
|
||||
@Service
|
||||
public class EmisCreditSalesmenServiceImpl implements IEmisCreditSalesmenService
|
||||
{
|
||||
@Autowired
|
||||
private EmisCreditSalesmenMapper emisCreditSalesmenMapper;
|
||||
|
||||
/**
|
||||
* 查询销售信用额度
|
||||
*
|
||||
* @param id 销售信用额度主键
|
||||
* @return 销售信用额度
|
||||
*/
|
||||
@Override
|
||||
public EmisCreditSalesmen selectEmisCreditSalesmenById(Long id)
|
||||
{
|
||||
return emisCreditSalesmenMapper.selectEmisCreditSalesmenById(id);
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* 查询销售信用额度列表
|
||||
*
|
||||
* @param emisCreditSalesmen 销售信用额度
|
||||
* @return 销售信用额度
|
||||
*/
|
||||
@Override
|
||||
public List<EmisCreditSalesmen> selectEmisCreditSalesmenList(EmisCreditSalesmen emisCreditSalesmen)
|
||||
{
|
||||
return emisCreditSalesmenMapper.selectEmisCreditSalesmenList(emisCreditSalesmen);
|
||||
}
|
||||
|
||||
/**
|
||||
* 检查是否重复
|
||||
*
|
||||
* @param emisCreditSalesmen
|
||||
* @return 数量
|
||||
*/
|
||||
@Override
|
||||
public int checkUnique(EmisCreditSalesmen emisCreditSalesmen)
|
||||
{
|
||||
return emisCreditSalesmenMapper.checkUnique(emisCreditSalesmen);
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增销售信用额度
|
||||
*
|
||||
* @param emisCreditSalesmen 销售信用额度
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int insertEmisCreditSalesmen(EmisCreditSalesmen emisCreditSalesmen)
|
||||
{
|
||||
return emisCreditSalesmenMapper.insertEmisCreditSalesmen(emisCreditSalesmen);
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改销售信用额度
|
||||
*
|
||||
* @param emisCreditSalesmen 销售信用额度
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int updateEmisCreditSalesmen(EmisCreditSalesmen emisCreditSalesmen)
|
||||
{
|
||||
return emisCreditSalesmenMapper.updateEmisCreditSalesmen(emisCreditSalesmen);
|
||||
}
|
||||
|
||||
/**
|
||||
* 批量删除销售信用额度
|
||||
*
|
||||
* @param ids 需要删除的销售信用额度主键
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int deleteEmisCreditSalesmenByIds(Long[] ids)
|
||||
{
|
||||
return emisCreditSalesmenMapper.deleteEmisCreditSalesmenByIds(ids);
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除销售信用额度信息
|
||||
*
|
||||
* @param id 销售信用额度主键
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int deleteEmisCreditSalesmenById(Long id)
|
||||
{
|
||||
return emisCreditSalesmenMapper.deleteEmisCreditSalesmenById(id);
|
||||
}
|
||||
|
||||
}
|
||||
163
emis-biz/src/main/resources/mapper/EmisCreditCustomerMapper.xml
Normal file
163
emis-biz/src/main/resources/mapper/EmisCreditCustomerMapper.xml
Normal file
@ -0,0 +1,163 @@
|
||||
<?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.EmisCreditCustomerMapper">
|
||||
|
||||
<resultMap type="EmisCreditCustomer" id="EmisCreditCustomerResult">
|
||||
<result property="id" column="id" />
|
||||
<result property="customerCode" column="customer_code" />
|
||||
<result property="curMoney" column="cur_money" />
|
||||
<result property="curMoneyRate" column="cur_money_rate" />
|
||||
<result property="creditMoney" column="credit_money" />
|
||||
<result property="currency" column="currency" />
|
||||
<result property="transType" column="trans_type" />
|
||||
<result property="startDate" column="start_date" />
|
||||
<result property="endDate" column="end_date" />
|
||||
<result property="blOpen" column="bl_open" />
|
||||
</resultMap>
|
||||
|
||||
<sql id="selectEmisCreditCustomerVo">
|
||||
select id, customer_code, cur_money, cur_money_rate, credit_money, currency, trans_type, start_date, end_date, bl_open, remark, tenant_id, del_flag, create_by, create_time, update_by, update_time, create_site, update_site from emis_credit_customer
|
||||
</sql>
|
||||
|
||||
<select id="selectEmisCreditCustomerList" parameterType="EmisCreditCustomer" resultMap="EmisCreditCustomerResult">
|
||||
<include refid="selectEmisCreditCustomerVo"/>
|
||||
<where>
|
||||
del_flag='0'
|
||||
<if test="id != null "> and id = #{id}</if>
|
||||
<if test="customerCode != null and customerCode != ''"> and customer_code like concat('%', #{customerCode}, '%')</if>
|
||||
<if test="curMoney != null "> and cur_money = #{curMoney}</if>
|
||||
<if test="curMoneyRate != null "> and cur_money_rate = #{curMoneyRate}</if>
|
||||
<if test="creditMoney != null "> and credit_money = #{creditMoney}</if>
|
||||
<if test="currency != null and currency != ''"> and currency like concat('%', #{currency}, '%')</if>
|
||||
<if test="transType != null and transType != ''"> and trans_type like concat('%', #{transType}, '%')</if>
|
||||
<if test="startDate != null "> and start_date = #{startDate}</if>
|
||||
<if test="endDate != null "> and end_date = #{endDate}</if>
|
||||
<if test="blOpen != null and blOpen != ''"> and bl_open like concat('%', #{blOpen}, '%')</if>
|
||||
<if test="remark != null and remark != ''"> and remark like concat('%', #{remark}, '%')</if>
|
||||
<if test="tenantId != null and tenantId != ''"> and tenant_id like concat('%', #{tenantId}, '%')</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="EmisCreditCustomer" resultType="int">
|
||||
select count(1) from emis_credit_customer
|
||||
where del_flag='0'
|
||||
and id = #{id}
|
||||
and customer_code = #{customerCode}
|
||||
and cur_money = #{curMoney}
|
||||
and cur_money_rate = #{curMoneyRate}
|
||||
and credit_money = #{creditMoney}
|
||||
and currency = #{currency}
|
||||
and trans_type = #{transType}
|
||||
and start_date = #{startDate}
|
||||
and end_date = #{endDate}
|
||||
and bl_open = #{blOpen}
|
||||
and remark = #{remark}
|
||||
and tenant_id = #{tenantId}
|
||||
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="selectEmisCreditCustomerById" parameterType="Long" resultMap="EmisCreditCustomerResult">
|
||||
select id, customer_code, cur_money, cur_money_rate, credit_money, currency, trans_type, start_date, end_date, bl_open, remark, tenant_id, del_flag, create_by, create_time, update_by, update_time, create_site, update_site
|
||||
from emis_credit_customer a
|
||||
where a.id = #{id}
|
||||
</select>
|
||||
|
||||
<insert id="insertEmisCreditCustomer" parameterType="EmisCreditCustomer" useGeneratedKeys="true" keyProperty="id">
|
||||
insert into emis_credit_customer
|
||||
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||
<if test="id != null">id,</if>
|
||||
<if test="customerCode != null and customerCode != ''">customer_code,</if>
|
||||
<if test="curMoney != null">cur_money,</if>
|
||||
<if test="curMoneyRate != null">cur_money_rate,</if>
|
||||
<if test="creditMoney != null">credit_money,</if>
|
||||
<if test="currency != null and currency != ''">currency,</if>
|
||||
<if test="transType != null and transType != ''">trans_type,</if>
|
||||
<if test="startDate != null">start_date,</if>
|
||||
<if test="endDate != null">end_date,</if>
|
||||
<if test="blOpen != null and blOpen != ''">bl_open,</if>
|
||||
<if test="remark != null and remark != ''">remark,</if>
|
||||
<if test="tenantId != null and tenantId != ''">tenant_id,</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="customerCode != null and customerCode != ''">#{customerCode},</if>
|
||||
<if test="curMoney != null">#{curMoney},</if>
|
||||
<if test="curMoneyRate != null">#{curMoneyRate},</if>
|
||||
<if test="creditMoney != null">#{creditMoney},</if>
|
||||
<if test="currency != null and currency != ''">#{currency},</if>
|
||||
<if test="transType != null and transType != ''">#{transType},</if>
|
||||
<if test="startDate != null">#{startDate},</if>
|
||||
<if test="endDate != null">#{endDate},</if>
|
||||
<if test="blOpen != null and blOpen != ''">#{blOpen},</if>
|
||||
<if test="remark != null and remark != ''">#{remark},</if>
|
||||
<if test="tenantId != null and tenantId != ''">#{tenantId},</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="updateEmisCreditCustomer" parameterType="EmisCreditCustomer">
|
||||
update emis_credit_customer
|
||||
<trim prefix="SET" suffixOverrides=",">
|
||||
<if test="customerCode != null and customerCode != ''">customer_code = #{customerCode},</if>
|
||||
<if test="curMoney != null">cur_money = #{curMoney},</if>
|
||||
<if test="curMoneyRate != null">cur_money_rate = #{curMoneyRate},</if>
|
||||
<if test="creditMoney != null">credit_money = #{creditMoney},</if>
|
||||
<if test="currency != null and currency != ''">currency = #{currency},</if>
|
||||
<if test="transType != null and transType != ''">trans_type = #{transType},</if>
|
||||
<if test="startDate != null">start_date = #{startDate},</if>
|
||||
<if test="endDate != null">end_date = #{endDate},</if>
|
||||
<if test="blOpen != null and blOpen != ''">bl_open = #{blOpen},</if>
|
||||
<if test="remark != null and remark != ''">remark = #{remark},</if>
|
||||
<if test="tenantId != null and tenantId != ''">tenant_id = #{tenantId},</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="deleteEmisCreditCustomerById" parameterType="Long">
|
||||
delete from emis_credit_customer where id = #{id}
|
||||
</delete>
|
||||
|
||||
<delete id="deleteEmisCreditCustomerByIds" parameterType="String">
|
||||
delete from emis_credit_customer where id in
|
||||
<foreach item="id" collection="array" open="(" separator="," close=")">
|
||||
#{id}
|
||||
</foreach>
|
||||
</delete>
|
||||
</mapper>
|
||||
@ -0,0 +1,146 @@
|
||||
<?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.EmisCreditCustomerRecordMapper">
|
||||
|
||||
<resultMap type="EmisCreditCustomerRecord" id="EmisCreditCustomerRecordResult">
|
||||
<result property="id" column="id" />
|
||||
<result property="customerCode" column="customer_code" />
|
||||
<result property="billCode" column="bill_code" />
|
||||
<result property="changeType" column="change_type" />
|
||||
<result property="changeMoney" column="change_money" />
|
||||
<result property="preBalance" column="pre_balance" />
|
||||
<result property="backBalance" column="back_balance" />
|
||||
<result property="currency" column="currency" />
|
||||
</resultMap>
|
||||
|
||||
<sql id="selectEmisCreditCustomerRecordVo">
|
||||
select id, customer_code, bill_code, change_type, change_money, pre_balance, back_balance, currency, remark, del_flag, create_by, create_time, update_by, update_time, create_site, update_site from emis_credit_customer_record
|
||||
</sql>
|
||||
|
||||
<select id="selectEmisCreditCustomerRecordList" parameterType="EmisCreditCustomerRecord" resultMap="EmisCreditCustomerRecordResult">
|
||||
<include refid="selectEmisCreditCustomerRecordVo"/>
|
||||
<where>
|
||||
del_flag='0'
|
||||
<if test="id != null "> and id = #{id}</if>
|
||||
<if test="customerCode != null and customerCode != ''"> and customer_code like concat('%', #{customerCode}, '%')</if>
|
||||
<if test="billCode != null and billCode != ''"> and bill_code like concat('%', #{billCode}, '%')</if>
|
||||
<if test="changeType != null and changeType != ''"> and change_type like concat('%', #{changeType}, '%')</if>
|
||||
<if test="changeMoney != null "> and change_money = #{changeMoney}</if>
|
||||
<if test="preBalance != null "> and pre_balance = #{preBalance}</if>
|
||||
<if test="backBalance != null "> and back_balance = #{backBalance}</if>
|
||||
<if test="currency != null and currency != ''"> and currency like concat('%', #{currency}, '%')</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="EmisCreditCustomerRecord" resultType="int">
|
||||
select count(1) from emis_credit_customer_record
|
||||
where del_flag='0'
|
||||
and id = #{id}
|
||||
and customer_code = #{customerCode}
|
||||
and bill_code = #{billCode}
|
||||
and change_type = #{changeType}
|
||||
and change_money = #{changeMoney}
|
||||
and pre_balance = #{preBalance}
|
||||
and back_balance = #{backBalance}
|
||||
and currency = #{currency}
|
||||
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="selectEmisCreditCustomerRecordById" parameterType="Long" resultMap="EmisCreditCustomerRecordResult">
|
||||
select id, customer_code, bill_code, change_type, change_money, pre_balance, back_balance, currency, remark, del_flag, create_by, create_time, update_by, update_time, create_site, update_site
|
||||
from emis_credit_customer_record a
|
||||
where a.id = #{id}
|
||||
</select>
|
||||
|
||||
<insert id="insertEmisCreditCustomerRecord" parameterType="EmisCreditCustomerRecord" useGeneratedKeys="true" keyProperty="id">
|
||||
insert into emis_credit_customer_record
|
||||
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||
<if test="id != null">id,</if>
|
||||
<if test="customerCode != null and customerCode != ''">customer_code,</if>
|
||||
<if test="billCode != null and billCode != ''">bill_code,</if>
|
||||
<if test="changeType != null and changeType != ''">change_type,</if>
|
||||
<if test="changeMoney != null">change_money,</if>
|
||||
<if test="preBalance != null">pre_balance,</if>
|
||||
<if test="backBalance != null">back_balance,</if>
|
||||
<if test="currency != null and currency != ''">currency,</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="customerCode != null and customerCode != ''">#{customerCode},</if>
|
||||
<if test="billCode != null and billCode != ''">#{billCode},</if>
|
||||
<if test="changeType != null and changeType != ''">#{changeType},</if>
|
||||
<if test="changeMoney != null">#{changeMoney},</if>
|
||||
<if test="preBalance != null">#{preBalance},</if>
|
||||
<if test="backBalance != null">#{backBalance},</if>
|
||||
<if test="currency != null and currency != ''">#{currency},</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="updateEmisCreditCustomerRecord" parameterType="EmisCreditCustomerRecord">
|
||||
update emis_credit_customer_record
|
||||
<trim prefix="SET" suffixOverrides=",">
|
||||
<if test="customerCode != null and customerCode != ''">customer_code = #{customerCode},</if>
|
||||
<if test="billCode != null and billCode != ''">bill_code = #{billCode},</if>
|
||||
<if test="changeType != null and changeType != ''">change_type = #{changeType},</if>
|
||||
<if test="changeMoney != null">change_money = #{changeMoney},</if>
|
||||
<if test="preBalance != null">pre_balance = #{preBalance},</if>
|
||||
<if test="backBalance != null">back_balance = #{backBalance},</if>
|
||||
<if test="currency != null and currency != ''">currency = #{currency},</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="deleteEmisCreditCustomerRecordById" parameterType="Long">
|
||||
delete from emis_credit_customer_record where id = #{id}
|
||||
</delete>
|
||||
|
||||
<delete id="deleteEmisCreditCustomerRecordByIds" parameterType="String">
|
||||
delete from emis_credit_customer_record where id in
|
||||
<foreach item="id" collection="array" open="(" separator="," close=")">
|
||||
#{id}
|
||||
</foreach>
|
||||
</delete>
|
||||
</mapper>
|
||||
169
emis-biz/src/main/resources/mapper/EmisCreditSalesmenMapper.xml
Normal file
169
emis-biz/src/main/resources/mapper/EmisCreditSalesmenMapper.xml
Normal file
@ -0,0 +1,169 @@
|
||||
<?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.EmisCreditSalesmenMapper">
|
||||
|
||||
<resultMap type="EmisCreditSalesmen" id="EmisCreditSalesmenResult">
|
||||
<result property="id" column="id" />
|
||||
<result property="salesmen" column="salesmen" />
|
||||
<result property="curMoney" column="cur_money" />
|
||||
<result property="curMoneyRate" column="cur_money_rate" />
|
||||
<result property="creditMoney" column="credit_money" />
|
||||
<result property="currency" column="currency" />
|
||||
<result property="transType" column="trans_type" />
|
||||
<result property="startDate" column="start_date" />
|
||||
<result property="endDate" column="end_date" />
|
||||
<result property="blOpen" column="bl_open" />
|
||||
<result property="blLock" column="bl_lock" />
|
||||
</resultMap>
|
||||
|
||||
<sql id="selectEmisCreditSalesmenVo">
|
||||
select id, salesmen, cur_money, cur_money_rate, credit_money, currency, trans_type, start_date, end_date, bl_open, bl_lock, remark, tenant_id, del_flag, create_by, create_time, update_by, update_time, create_site, update_site from emis_credit_salesmen
|
||||
</sql>
|
||||
|
||||
<select id="selectEmisCreditSalesmenList" parameterType="EmisCreditSalesmen" resultMap="EmisCreditSalesmenResult">
|
||||
<include refid="selectEmisCreditSalesmenVo"/>
|
||||
<where>
|
||||
del_flag='0'
|
||||
<if test="id != null "> and id = #{id}</if>
|
||||
<if test="salesmen != null and salesmen != ''"> and salesmen like concat('%', #{salesmen}, '%')</if>
|
||||
<if test="curMoney != null "> and cur_money = #{curMoney}</if>
|
||||
<if test="curMoneyRate != null "> and cur_money_rate = #{curMoneyRate}</if>
|
||||
<if test="creditMoney != null "> and credit_money = #{creditMoney}</if>
|
||||
<if test="currency != null and currency != ''"> and currency like concat('%', #{currency}, '%')</if>
|
||||
<if test="transType != null and transType != ''"> and trans_type like concat('%', #{transType}, '%')</if>
|
||||
<if test="startDate != null "> and start_date = #{startDate}</if>
|
||||
<if test="endDate != null "> and end_date = #{endDate}</if>
|
||||
<if test="blOpen != null and blOpen != ''"> and bl_open like concat('%', #{blOpen}, '%')</if>
|
||||
<if test="blLock != null and blLock != ''"> and bl_lock like concat('%', #{blLock}, '%')</if>
|
||||
<if test="remark != null and remark != ''"> and remark like concat('%', #{remark}, '%')</if>
|
||||
<if test="tenantId != null and tenantId != ''"> and tenant_id like concat('%', #{tenantId}, '%')</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="EmisCreditSalesmen" resultType="int">
|
||||
select count(1) from emis_credit_salesmen
|
||||
where del_flag='0'
|
||||
and id = #{id}
|
||||
and salesmen = #{salesmen}
|
||||
and cur_money = #{curMoney}
|
||||
and cur_money_rate = #{curMoneyRate}
|
||||
and credit_money = #{creditMoney}
|
||||
and currency = #{currency}
|
||||
and trans_type = #{transType}
|
||||
and start_date = #{startDate}
|
||||
and end_date = #{endDate}
|
||||
and bl_open = #{blOpen}
|
||||
and bl_lock = #{blLock}
|
||||
and remark = #{remark}
|
||||
and tenant_id = #{tenantId}
|
||||
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="selectEmisCreditSalesmenById" parameterType="Long" resultMap="EmisCreditSalesmenResult">
|
||||
select id, salesmen, cur_money, cur_money_rate, credit_money, currency, trans_type, start_date, end_date, bl_open, bl_lock, remark, tenant_id, del_flag, create_by, create_time, update_by, update_time, create_site, update_site
|
||||
from emis_credit_salesmen a
|
||||
where a.id = #{id}
|
||||
</select>
|
||||
|
||||
<insert id="insertEmisCreditSalesmen" parameterType="EmisCreditSalesmen" useGeneratedKeys="true" keyProperty="id">
|
||||
insert into emis_credit_salesmen
|
||||
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||
<if test="id != null">id,</if>
|
||||
<if test="salesmen != null and salesmen != ''">salesmen,</if>
|
||||
<if test="curMoney != null">cur_money,</if>
|
||||
<if test="curMoneyRate != null">cur_money_rate,</if>
|
||||
<if test="creditMoney != null">credit_money,</if>
|
||||
<if test="currency != null and currency != ''">currency,</if>
|
||||
<if test="transType != null and transType != ''">trans_type,</if>
|
||||
<if test="startDate != null">start_date,</if>
|
||||
<if test="endDate != null">end_date,</if>
|
||||
<if test="blOpen != null and blOpen != ''">bl_open,</if>
|
||||
<if test="blLock != null and blLock != ''">bl_lock,</if>
|
||||
<if test="remark != null and remark != ''">remark,</if>
|
||||
<if test="tenantId != null and tenantId != ''">tenant_id,</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="salesmen != null and salesmen != ''">#{salesmen},</if>
|
||||
<if test="curMoney != null">#{curMoney},</if>
|
||||
<if test="curMoneyRate != null">#{curMoneyRate},</if>
|
||||
<if test="creditMoney != null">#{creditMoney},</if>
|
||||
<if test="currency != null and currency != ''">#{currency},</if>
|
||||
<if test="transType != null and transType != ''">#{transType},</if>
|
||||
<if test="startDate != null">#{startDate},</if>
|
||||
<if test="endDate != null">#{endDate},</if>
|
||||
<if test="blOpen != null and blOpen != ''">#{blOpen},</if>
|
||||
<if test="blLock != null and blLock != ''">#{blLock},</if>
|
||||
<if test="remark != null and remark != ''">#{remark},</if>
|
||||
<if test="tenantId != null and tenantId != ''">#{tenantId},</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="updateEmisCreditSalesmen" parameterType="EmisCreditSalesmen">
|
||||
update emis_credit_salesmen
|
||||
<trim prefix="SET" suffixOverrides=",">
|
||||
<if test="salesmen != null and salesmen != ''">salesmen = #{salesmen},</if>
|
||||
<if test="curMoney != null">cur_money = #{curMoney},</if>
|
||||
<if test="curMoneyRate != null">cur_money_rate = #{curMoneyRate},</if>
|
||||
<if test="creditMoney != null">credit_money = #{creditMoney},</if>
|
||||
<if test="currency != null and currency != ''">currency = #{currency},</if>
|
||||
<if test="transType != null and transType != ''">trans_type = #{transType},</if>
|
||||
<if test="startDate != null">start_date = #{startDate},</if>
|
||||
<if test="endDate != null">end_date = #{endDate},</if>
|
||||
<if test="blOpen != null and blOpen != ''">bl_open = #{blOpen},</if>
|
||||
<if test="blLock != null and blLock != ''">bl_lock = #{blLock},</if>
|
||||
<if test="remark != null and remark != ''">remark = #{remark},</if>
|
||||
<if test="tenantId != null and tenantId != ''">tenant_id = #{tenantId},</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="deleteEmisCreditSalesmenById" parameterType="Long">
|
||||
delete from emis_credit_salesmen where id = #{id}
|
||||
</delete>
|
||||
|
||||
<delete id="deleteEmisCreditSalesmenByIds" parameterType="String">
|
||||
delete from emis_credit_salesmen where id in
|
||||
<foreach item="id" collection="array" open="(" separator="," close=")">
|
||||
#{id}
|
||||
</foreach>
|
||||
</delete>
|
||||
</mapper>
|
||||
@ -0,0 +1,146 @@
|
||||
<?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.EmisCreditSalesmenRecordMapper">
|
||||
|
||||
<resultMap type="EmisCreditSalesmenRecord" id="EmisCreditSalesmenRecordResult">
|
||||
<result property="id" column="id" />
|
||||
<result property="salesmen" column="salesmen" />
|
||||
<result property="billCode" column="bill_code" />
|
||||
<result property="changeType" column="change_type" />
|
||||
<result property="changeMoney" column="change_money" />
|
||||
<result property="preBalance" column="pre_balance" />
|
||||
<result property="backBalance" column="back_balance" />
|
||||
<result property="currency" column="currency" />
|
||||
</resultMap>
|
||||
|
||||
<sql id="selectEmisCreditSalesmenRecordVo">
|
||||
select id, salesmen, bill_code, change_type, change_money, pre_balance, back_balance, currency, remark, del_flag, create_by, create_time, update_by, update_time, create_site, update_site from emis_credit_salesmen_record
|
||||
</sql>
|
||||
|
||||
<select id="selectEmisCreditSalesmenRecordList" parameterType="EmisCreditSalesmenRecord" resultMap="EmisCreditSalesmenRecordResult">
|
||||
<include refid="selectEmisCreditSalesmenRecordVo"/>
|
||||
<where>
|
||||
del_flag='0'
|
||||
<if test="id != null "> and id = #{id}</if>
|
||||
<if test="salesmen != null and salesmen != ''"> and salesmen like concat('%', #{salesmen}, '%')</if>
|
||||
<if test="billCode != null and billCode != ''"> and bill_code like concat('%', #{billCode}, '%')</if>
|
||||
<if test="changeType != null and changeType != ''"> and change_type like concat('%', #{changeType}, '%')</if>
|
||||
<if test="changeMoney != null "> and change_money = #{changeMoney}</if>
|
||||
<if test="preBalance != null "> and pre_balance = #{preBalance}</if>
|
||||
<if test="backBalance != null "> and back_balance = #{backBalance}</if>
|
||||
<if test="currency != null and currency != ''"> and currency like concat('%', #{currency}, '%')</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="EmisCreditSalesmenRecord" resultType="int">
|
||||
select count(1) from emis_credit_salesmen_record
|
||||
where del_flag='0'
|
||||
and id = #{id}
|
||||
and salesmen = #{salesmen}
|
||||
and bill_code = #{billCode}
|
||||
and change_type = #{changeType}
|
||||
and change_money = #{changeMoney}
|
||||
and pre_balance = #{preBalance}
|
||||
and back_balance = #{backBalance}
|
||||
and currency = #{currency}
|
||||
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="selectEmisCreditSalesmenRecordById" parameterType="Long" resultMap="EmisCreditSalesmenRecordResult">
|
||||
select id, salesmen, bill_code, change_type, change_money, pre_balance, back_balance, currency, remark, del_flag, create_by, create_time, update_by, update_time, create_site, update_site
|
||||
from emis_credit_salesmen_record a
|
||||
where a.id = #{id}
|
||||
</select>
|
||||
|
||||
<insert id="insertEmisCreditSalesmenRecord" parameterType="EmisCreditSalesmenRecord" useGeneratedKeys="true" keyProperty="id">
|
||||
insert into emis_credit_salesmen_record
|
||||
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||
<if test="id != null">id,</if>
|
||||
<if test="salesmen != null and salesmen != ''">salesmen,</if>
|
||||
<if test="billCode != null and billCode != ''">bill_code,</if>
|
||||
<if test="changeType != null and changeType != ''">change_type,</if>
|
||||
<if test="changeMoney != null">change_money,</if>
|
||||
<if test="preBalance != null">pre_balance,</if>
|
||||
<if test="backBalance != null">back_balance,</if>
|
||||
<if test="currency != null and currency != ''">currency,</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="salesmen != null and salesmen != ''">#{salesmen},</if>
|
||||
<if test="billCode != null and billCode != ''">#{billCode},</if>
|
||||
<if test="changeType != null and changeType != ''">#{changeType},</if>
|
||||
<if test="changeMoney != null">#{changeMoney},</if>
|
||||
<if test="preBalance != null">#{preBalance},</if>
|
||||
<if test="backBalance != null">#{backBalance},</if>
|
||||
<if test="currency != null and currency != ''">#{currency},</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="updateEmisCreditSalesmenRecord" parameterType="EmisCreditSalesmenRecord">
|
||||
update emis_credit_salesmen_record
|
||||
<trim prefix="SET" suffixOverrides=",">
|
||||
<if test="salesmen != null and salesmen != ''">salesmen = #{salesmen},</if>
|
||||
<if test="billCode != null and billCode != ''">bill_code = #{billCode},</if>
|
||||
<if test="changeType != null and changeType != ''">change_type = #{changeType},</if>
|
||||
<if test="changeMoney != null">change_money = #{changeMoney},</if>
|
||||
<if test="preBalance != null">pre_balance = #{preBalance},</if>
|
||||
<if test="backBalance != null">back_balance = #{backBalance},</if>
|
||||
<if test="currency != null and currency != ''">currency = #{currency},</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="deleteEmisCreditSalesmenRecordById" parameterType="Long">
|
||||
delete from emis_credit_salesmen_record where id = #{id}
|
||||
</delete>
|
||||
|
||||
<delete id="deleteEmisCreditSalesmenRecordByIds" parameterType="String">
|
||||
delete from emis_credit_salesmen_record where id in
|
||||
<foreach item="id" collection="array" open="(" separator="," close=")">
|
||||
#{id}
|
||||
</foreach>
|
||||
</delete>
|
||||
</mapper>
|
||||
Loading…
Reference in New Issue
Block a user