This commit is contained in:
lu7213 committed 2025-12-02 23:07:47 +08:00
1 parent 81eca8933a
commit 345f906c35
540 files changed
+494222 -90

No files matched your search

@@ -0,0 +1,103 @@
package com.ruoyi.custom.controller;
import java.util.List;
import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.PutMapping;
import org.springframework.web.bind.annotation.DeleteMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import com.ruoyi.common.annotation.Log;
import com.ruoyi.common.core.controller.BaseController;
import com.ruoyi.common.core.domain.AjaxResult;
import com.ruoyi.common.enums.BusinessType;
import com.ruoyi.custom.domain.CustomCallback;
import com.ruoyi.custom.service.ICustomCallbackService;
import com.ruoyi.common.utils.poi.ExcelUtil;
import com.ruoyi.common.core.page.TableDataInfo;
/**
* 海关回查Controller
*
* @author luqj
* @date 2021-10-23
*/
@RestController
@RequestMapping("/custom/callback")
public class CustomCallbackController extends BaseController
{
@Autowired
private ICustomCallbackService customCallbackService;
/**
* 查询海关回查列表
*/
@PreAuthorize("@ss.hasPermi('custom:callback:list')")
@GetMapping("/list")
public TableDataInfo list(CustomCallback customCallback)
{
startPage();
List<CustomCallback> list = customCallbackService.selectCustomCallbackList(customCallback);
return getDataTable(list);
}
/**
* 导出海关回查列表
*/
@PreAuthorize("@ss.hasPermi('custom:callback:export')")
@Log(title = "海关回查", businessType = BusinessType.EXPORT)
@GetMapping("/export")
public AjaxResult export(CustomCallback customCallback)
{
List<CustomCallback> list = customCallbackService.selectCustomCallbackList(customCallback);
ExcelUtil<CustomCallback> util = new ExcelUtil<CustomCallback>(CustomCallback.class);
return util.exportExcel(list, "callback");
}
/**
* 获取海关回查详细信息
*/
@PreAuthorize("@ss.hasPermi('custom:callback:query')")
@GetMapping(value = "/{id}")
public AjaxResult getInfo(@PathVariable("id") Long id)
{
return AjaxResult.success(customCallbackService.selectCustomCallbackById(id));
}
/**
* 新增海关回查
*/
@PreAuthorize("@ss.hasPermi('custom:callback:add')")
@Log(title = "海关回查", businessType = BusinessType.INSERT)
@PostMapping
public AjaxResult add(@RequestBody CustomCallback customCallback)
{
return toAjax(customCallbackService.insertCustomCallback(customCallback));
}
/**
* 修改海关回查
*/
@PreAuthorize("@ss.hasPermi('custom:callback:edit')")
@Log(title = "海关回查", businessType = BusinessType.UPDATE)
@PutMapping
public AjaxResult edit(@RequestBody CustomCallback customCallback)
{
return toAjax(customCallbackService.updateCustomCallback(customCallback));
}
/**
* 删除海关回查
*/
@PreAuthorize("@ss.hasPermi('custom:callback:remove')")
@Log(title = "海关回查", businessType = BusinessType.DELETE)
@DeleteMapping("/{ids}")
public AjaxResult remove(@PathVariable Long[] ids)
{
return toAjax(customCallbackService.deleteCustomCallbackByIds(ids));
}
}
@@ -0,0 +1,103 @@
package com.ruoyi.custom.controller;
import java.util.List;
import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.PutMapping;
import org.springframework.web.bind.annotation.DeleteMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import com.ruoyi.common.annotation.Log;
import com.ruoyi.common.core.controller.BaseController;
import com.ruoyi.common.core.domain.AjaxResult;
import com.ruoyi.common.enums.BusinessType;
import com.ruoyi.custom.domain.CustomCountryCode;
import com.ruoyi.custom.service.ICustomCountryCodeService;
import com.ruoyi.common.utils.poi.ExcelUtil;
import com.ruoyi.common.core.page.TableDataInfo;
/**
* 国别代码Controller
*
* @author luqj
* @date 2021-10-23
*/
@RestController
@RequestMapping("/custom/country")
public class CustomCountryCodeController extends BaseController
{
@Autowired
private ICustomCountryCodeService customCountryCodeService;
/**
* 查询国别代码列表
*/
@PreAuthorize("@ss.hasPermi('custom:country:list')")
@GetMapping("/list")
public TableDataInfo list(CustomCountryCode customCountryCode)
{
startPage();
List<CustomCountryCode> list = customCountryCodeService.selectCustomCountryCodeList(customCountryCode);
return getDataTable(list);
}
/**
* 导出国别代码列表
*/
@PreAuthorize("@ss.hasPermi('custom:country:export')")
@Log(title = "国别代码", businessType = BusinessType.EXPORT)
@GetMapping("/export")
public AjaxResult export(CustomCountryCode customCountryCode)
{
List<CustomCountryCode> list = customCountryCodeService.selectCustomCountryCodeList(customCountryCode);
ExcelUtil<CustomCountryCode> util = new ExcelUtil<CustomCountryCode>(CustomCountryCode.class);
return util.exportExcel(list, "country");
}
/**
* 获取国别代码详细信息
*/
@PreAuthorize("@ss.hasPermi('custom:country:query')")
@GetMapping(value = "/{id}")
public AjaxResult getInfo(@PathVariable("id") Long id)
{
return AjaxResult.success(customCountryCodeService.selectCustomCountryCodeById(id));
}
/**
* 新增国别代码
*/
@PreAuthorize("@ss.hasPermi('custom:country:add')")
@Log(title = "国别代码", businessType = BusinessType.INSERT)
@PostMapping
public AjaxResult add(@RequestBody CustomCountryCode customCountryCode)
{
return toAjax(customCountryCodeService.insertCustomCountryCode(customCountryCode));
}
/**
* 修改国别代码
*/
@PreAuthorize("@ss.hasPermi('custom:country:edit')")
@Log(title = "国别代码", businessType = BusinessType.UPDATE)
@PutMapping
public AjaxResult edit(@RequestBody CustomCountryCode customCountryCode)
{
return toAjax(customCountryCodeService.updateCustomCountryCode(customCountryCode));
}
/**
* 删除国别代码
*/
@PreAuthorize("@ss.hasPermi('custom:country:remove')")
@Log(title = "国别代码", businessType = BusinessType.DELETE)
@DeleteMapping("/{ids}")
public AjaxResult remove(@PathVariable Long[] ids)
{
return toAjax(customCountryCodeService.deleteCustomCountryCodeByIds(ids));
}
}
@@ -0,0 +1,103 @@
package com.ruoyi.custom.controller;
import java.util.List;
import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.PutMapping;
import org.springframework.web.bind.annotation.DeleteMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import com.ruoyi.common.annotation.Log;
import com.ruoyi.common.core.controller.BaseController;
import com.ruoyi.common.core.domain.AjaxResult;
import com.ruoyi.common.enums.BusinessType;
import com.ruoyi.custom.domain.CustomDeclarePort;
import com.ruoyi.custom.service.ICustomDeclarePortService;
import com.ruoyi.common.utils.poi.ExcelUtil;
import com.ruoyi.common.core.page.TableDataInfo;
/**
* 申报口岸Controller
*
* @author luqj
* @date 2021-10-23
*/
@RestController
@RequestMapping("/custom/declarePort")
public class CustomDeclarePortController extends BaseController
{
@Autowired
private ICustomDeclarePortService customDeclarePortService;
/**
* 查询申报口岸列表
*/
@PreAuthorize("@ss.hasPermi('custom:declarePort:list')")
@GetMapping("/list")
public TableDataInfo list(CustomDeclarePort customDeclarePort)
{
startPage();
List<CustomDeclarePort> list = customDeclarePortService.selectCustomDeclarePortList(customDeclarePort);
return getDataTable(list);
}
/**
* 导出申报口岸列表
*/
@PreAuthorize("@ss.hasPermi('custom:declarePort:export')")
@Log(title = "申报口岸", businessType = BusinessType.EXPORT)
@GetMapping("/export")
public AjaxResult export(CustomDeclarePort customDeclarePort)
{
List<CustomDeclarePort> list = customDeclarePortService.selectCustomDeclarePortList(customDeclarePort);
ExcelUtil<CustomDeclarePort> util = new ExcelUtil<CustomDeclarePort>(CustomDeclarePort.class);
return util.exportExcel(list, "declarePort");
}
/**
* 获取申报口岸详细信息
*/
@PreAuthorize("@ss.hasPermi('custom:declarePort:query')")
@GetMapping(value = "/{id}")
public AjaxResult getInfo(@PathVariable("id") Long id)
{
return AjaxResult.success(customDeclarePortService.selectCustomDeclarePortById(id));
}
/**
* 新增申报口岸
*/
@PreAuthorize("@ss.hasPermi('custom:declarePort:add')")
@Log(title = "申报口岸", businessType = BusinessType.INSERT)
@PostMapping
public AjaxResult add(@RequestBody CustomDeclarePort customDeclarePort)
{
return toAjax(customDeclarePortService.insertCustomDeclarePort(customDeclarePort));
}
/**
* 修改申报口岸
*/
@PreAuthorize("@ss.hasPermi('custom:declarePort:edit')")
@Log(title = "申报口岸", businessType = BusinessType.UPDATE)
@PutMapping
public AjaxResult edit(@RequestBody CustomDeclarePort customDeclarePort)
{
return toAjax(customDeclarePortService.updateCustomDeclarePort(customDeclarePort));
}
/**
* 删除申报口岸
*/
@PreAuthorize("@ss.hasPermi('custom:declarePort:remove')")
@Log(title = "申报口岸", businessType = BusinessType.DELETE)
@DeleteMapping("/{ids}")
public AjaxResult remove(@PathVariable Long[] ids)
{
return toAjax(customDeclarePortService.deleteCustomDeclarePortByIds(ids));
}
}
@@ -0,0 +1,103 @@
package com.ruoyi.custom.controller;
import java.util.List;
import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.PutMapping;
import org.springframework.web.bind.annotation.DeleteMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import com.ruoyi.common.annotation.Log;
import com.ruoyi.common.core.controller.BaseController;
import com.ruoyi.common.core.domain.AjaxResult;
import com.ruoyi.common.enums.BusinessType;
import com.ruoyi.custom.domain.CustomEnterpriseRecord;
import com.ruoyi.custom.service.ICustomEnterpriseRecordService;
import com.ruoyi.common.utils.poi.ExcelUtil;
import com.ruoyi.common.core.page.TableDataInfo;
/**
* 企业备案Controller
*
* @author luqj
* @date 2021-10-23
*/
@RestController
@RequestMapping("/custom/enterpriseRecord")
public class CustomEnterpriseRecordController extends BaseController
{
@Autowired
private ICustomEnterpriseRecordService customEnterpriseRecordService;
/**
* 查询企业备案列表
*/
@PreAuthorize("@ss.hasPermi('custom:enterpriseRecord:list')")
@GetMapping("/list")
public TableDataInfo list(CustomEnterpriseRecord customEnterpriseRecord)
{
startPage();
List<CustomEnterpriseRecord> list = customEnterpriseRecordService.selectCustomEnterpriseRecordList(customEnterpriseRecord);
return getDataTable(list);
}
/**
* 导出企业备案列表
*/
@PreAuthorize("@ss.hasPermi('custom:enterpriseRecord:export')")
@Log(title = "企业备案", businessType = BusinessType.EXPORT)
@GetMapping("/export")
public AjaxResult export(CustomEnterpriseRecord customEnterpriseRecord)
{
List<CustomEnterpriseRecord> list = customEnterpriseRecordService.selectCustomEnterpriseRecordList(customEnterpriseRecord);
ExcelUtil<CustomEnterpriseRecord> util = new ExcelUtil<CustomEnterpriseRecord>(CustomEnterpriseRecord.class);
return util.exportExcel(list, "enterpriseRecord");
}
/**
* 获取企业备案详细信息
*/
@PreAuthorize("@ss.hasPermi('custom:enterpriseRecord:query')")
@GetMapping(value = "/{id}")
public AjaxResult getInfo(@PathVariable("id") Long id)
{
return AjaxResult.success(customEnterpriseRecordService.selectCustomEnterpriseRecordById(id));
}
/**
* 新增企业备案
*/
@PreAuthorize("@ss.hasPermi('custom:enterpriseRecord:add')")
@Log(title = "企业备案", businessType = BusinessType.INSERT)
@PostMapping
public AjaxResult add(@RequestBody CustomEnterpriseRecord customEnterpriseRecord)
{
return toAjax(customEnterpriseRecordService.insertCustomEnterpriseRecord(customEnterpriseRecord));
}
/**
* 修改企业备案
*/
@PreAuthorize("@ss.hasPermi('custom:enterpriseRecord:edit')")
@Log(title = "企业备案", businessType = BusinessType.UPDATE)
@PutMapping
public AjaxResult edit(@RequestBody CustomEnterpriseRecord customEnterpriseRecord)
{
return toAjax(customEnterpriseRecordService.updateCustomEnterpriseRecord(customEnterpriseRecord));
}
/**
* 删除企业备案
*/
@PreAuthorize("@ss.hasPermi('custom:enterpriseRecord:remove')")
@Log(title = "企业备案", businessType = BusinessType.DELETE)
@DeleteMapping("/{ids}")
public AjaxResult remove(@PathVariable Long[] ids)
{
return toAjax(customEnterpriseRecordService.deleteCustomEnterpriseRecordByIds(ids));
}
}
@@ -0,0 +1,103 @@
package com.ruoyi.custom.controller;
import java.util.List;
import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.PutMapping;
import org.springframework.web.bind.annotation.DeleteMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import com.ruoyi.common.annotation.Log;
import com.ruoyi.common.core.controller.BaseController;
import com.ruoyi.common.core.domain.AjaxResult;
import com.ruoyi.common.enums.BusinessType;
import com.ruoyi.custom.domain.CustomFlightInfo;
import com.ruoyi.custom.service.ICustomFlightInfoService;
import com.ruoyi.common.utils.poi.ExcelUtil;
import com.ruoyi.common.core.page.TableDataInfo;
/**
* 航班信息Controller
*
* @author luqj
* @date 2021-10-23
*/
@RestController
@RequestMapping("/custom/flightInfo")
public class CustomFlightInfoController extends BaseController
{
@Autowired
private ICustomFlightInfoService customFlightInfoService;
/**
* 查询航班信息列表
*/
@PreAuthorize("@ss.hasPermi('custom:flightInfo:list')")
@GetMapping("/list")
public TableDataInfo list(CustomFlightInfo customFlightInfo)
{
startPage();
List<CustomFlightInfo> list = customFlightInfoService.selectCustomFlightInfoList(customFlightInfo);
return getDataTable(list);
}
/**
* 导出航班信息列表
*/
@PreAuthorize("@ss.hasPermi('custom:flightInfo:export')")
@Log(title = "航班信息", businessType = BusinessType.EXPORT)
@GetMapping("/export")
public AjaxResult export(CustomFlightInfo customFlightInfo)
{
List<CustomFlightInfo> list = customFlightInfoService.selectCustomFlightInfoList(customFlightInfo);
ExcelUtil<CustomFlightInfo> util = new ExcelUtil<CustomFlightInfo>(CustomFlightInfo.class);
return util.exportExcel(list, "flightInfo");
}
/**
* 获取航班信息详细信息
*/
@PreAuthorize("@ss.hasPermi('custom:flightInfo:query')")
@GetMapping(value = "/{id}")
public AjaxResult getInfo(@PathVariable("id") Long id)
{
return AjaxResult.success(customFlightInfoService.selectCustomFlightInfoById(id));
}
/**
* 新增航班信息
*/
@PreAuthorize("@ss.hasPermi('custom:flightInfo:add')")
@Log(title = "航班信息", businessType = BusinessType.INSERT)
@PostMapping
public AjaxResult add(@RequestBody CustomFlightInfo customFlightInfo)
{
return toAjax(customFlightInfoService.insertCustomFlightInfo(customFlightInfo));
}
/**
* 修改航班信息
*/
@PreAuthorize("@ss.hasPermi('custom:flightInfo:edit')")
@Log(title = "航班信息", businessType = BusinessType.UPDATE)
@PutMapping
public AjaxResult edit(@RequestBody CustomFlightInfo customFlightInfo)
{
return toAjax(customFlightInfoService.updateCustomFlightInfo(customFlightInfo));
}
/**
* 删除航班信息
*/
@PreAuthorize("@ss.hasPermi('custom:flightInfo:remove')")
@Log(title = "航班信息", businessType = BusinessType.DELETE)
@DeleteMapping("/{ids}")
public AjaxResult remove(@PathVariable Long[] ids)
{
return toAjax(customFlightInfoService.deleteCustomFlightInfoByIds(ids));
}
}
@@ -0,0 +1,103 @@
package com.ruoyi.custom.controller;
import java.util.List;
import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.PutMapping;
import org.springframework.web.bind.annotation.DeleteMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import com.ruoyi.common.annotation.Log;
import com.ruoyi.common.core.controller.BaseController;
import com.ruoyi.common.core.domain.AjaxResult;
import com.ruoyi.common.enums.BusinessType;
import com.ruoyi.custom.domain.CustomHsCode;
import com.ruoyi.custom.service.ICustomHsCodeService;
import com.ruoyi.common.utils.poi.ExcelUtil;
import com.ruoyi.common.core.page.TableDataInfo;
/**
* HS编码Controller
*
* @author luqj
* @date 2021-10-23
*/
@RestController
@RequestMapping("/custom/hsCode")
public class CustomHsCodeController extends BaseController
{
@Autowired
private ICustomHsCodeService customHsCodeService;
/**
* 查询HS编码列表
*/
@PreAuthorize("@ss.hasPermi('custom:hsCode:list')")
@GetMapping("/list")
public TableDataInfo list(CustomHsCode customHsCode)
{
startPage();
List<CustomHsCode> list = customHsCodeService.selectCustomHsCodeList(customHsCode);
return getDataTable(list);
}
/**
* 导出HS编码列表
*/
@PreAuthorize("@ss.hasPermi('custom:hsCode:export')")
@Log(title = "HS编码", businessType = BusinessType.EXPORT)
@GetMapping("/export")
public AjaxResult export(CustomHsCode customHsCode)
{
List<CustomHsCode> list = customHsCodeService.selectCustomHsCodeList(customHsCode);
ExcelUtil<CustomHsCode> util = new ExcelUtil<CustomHsCode>(CustomHsCode.class);
return util.exportExcel(list, "hsCode");
}
/**
* 获取HS编码详细信息
*/
@PreAuthorize("@ss.hasPermi('custom:hsCode:query')")
@GetMapping(value = "/{id}")
public AjaxResult getInfo(@PathVariable("id") Long id)
{
return AjaxResult.success(customHsCodeService.selectCustomHsCodeById(id));
}
/**
* 新增HS编码
*/
@PreAuthorize("@ss.hasPermi('custom:hsCode:add')")
@Log(title = "HS编码", businessType = BusinessType.INSERT)
@PostMapping
public AjaxResult add(@RequestBody CustomHsCode customHsCode)
{
return toAjax(customHsCodeService.insertCustomHsCode(customHsCode));
}
/**
* 修改HS编码
*/
@PreAuthorize("@ss.hasPermi('custom:hsCode:edit')")
@Log(title = "HS编码", businessType = BusinessType.UPDATE)
@PutMapping
public AjaxResult edit(@RequestBody CustomHsCode customHsCode)
{
return toAjax(customHsCodeService.updateCustomHsCode(customHsCode));
}
/**
* 删除HS编码
*/
@PreAuthorize("@ss.hasPermi('custom:hsCode:remove')")
@Log(title = "HS编码", businessType = BusinessType.DELETE)
@DeleteMapping("/{ids}")
public AjaxResult remove(@PathVariable Long[] ids)
{
return toAjax(customHsCodeService.deleteCustomHsCodeByIds(ids));
}
}
@@ -0,0 +1,103 @@
package com.ruoyi.custom.controller;
import java.util.List;
import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.PutMapping;
import org.springframework.web.bind.annotation.DeleteMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import com.ruoyi.common.annotation.Log;
import com.ruoyi.common.core.controller.BaseController;
import com.ruoyi.common.core.domain.AjaxResult;
import com.ruoyi.common.enums.BusinessType;
import com.ruoyi.custom.domain.CustomInventory;
import com.ruoyi.custom.service.ICustomInventoryService;
import com.ruoyi.common.utils.poi.ExcelUtil;
import com.ruoyi.common.core.page.TableDataInfo;
/**
* 正面清单Controller
*
* @author luqj
* @date 2021-10-23
*/
@RestController
@RequestMapping("/custom/inventory")
public class CustomInventoryController extends BaseController
{
@Autowired
private ICustomInventoryService customInventoryService;
/**
* 查询正面清单列表
*/
@PreAuthorize("@ss.hasPermi('custom:inventory:list')")
@GetMapping("/list")
public TableDataInfo list(CustomInventory customInventory)
{
startPage();
List<CustomInventory> list = customInventoryService.selectCustomInventoryList(customInventory);
return getDataTable(list);
}
/**
* 导出正面清单列表
*/
@PreAuthorize("@ss.hasPermi('custom:inventory:export')")
@Log(title = "正面清单", businessType = BusinessType.EXPORT)
@GetMapping("/export")
public AjaxResult export(CustomInventory customInventory)
{
List<CustomInventory> list = customInventoryService.selectCustomInventoryList(customInventory);
ExcelUtil<CustomInventory> util = new ExcelUtil<CustomInventory>(CustomInventory.class);
return util.exportExcel(list, "inventory");
}
/**
* 获取正面清单详细信息
*/
@PreAuthorize("@ss.hasPermi('custom:inventory:query')")
@GetMapping(value = "/{id}")
public AjaxResult getInfo(@PathVariable("id") Long id)
{
return AjaxResult.success(customInventoryService.selectCustomInventoryById(id));
}
/**
* 新增正面清单
*/
@PreAuthorize("@ss.hasPermi('custom:inventory:add')")
@Log(title = "正面清单", businessType = BusinessType.INSERT)
@PostMapping
public AjaxResult add(@RequestBody CustomInventory customInventory)
{
return toAjax(customInventoryService.insertCustomInventory(customInventory));
}
/**
* 修改正面清单
*/
@PreAuthorize("@ss.hasPermi('custom:inventory:edit')")
@Log(title = "正面清单", businessType = BusinessType.UPDATE)
@PutMapping
public AjaxResult edit(@RequestBody CustomInventory customInventory)
{
return toAjax(customInventoryService.updateCustomInventory(customInventory));
}
/**
* 删除正面清单
*/
@PreAuthorize("@ss.hasPermi('custom:inventory:remove')")
@Log(title = "正面清单", businessType = BusinessType.DELETE)
@DeleteMapping("/{ids}")
public AjaxResult remove(@PathVariable Long[] ids)
{
return toAjax(customInventoryService.deleteCustomInventoryByIds(ids));
}
}
@@ -0,0 +1,103 @@
package com.ruoyi.custom.controller;
import java.util.List;
import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.PutMapping;
import org.springframework.web.bind.annotation.DeleteMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import com.ruoyi.common.annotation.Log;
import com.ruoyi.common.core.controller.BaseController;
import com.ruoyi.common.core.domain.AjaxResult;
import com.ruoyi.common.enums.BusinessType;
import com.ruoyi.custom.domain.CustomOrder;
import com.ruoyi.custom.service.ICustomOrderService;
import com.ruoyi.common.utils.poi.ExcelUtil;
import com.ruoyi.common.core.page.TableDataInfo;
/**
* 备案订单Controller
*
* @author luqj
* @date 2021-10-23
*/
@RestController
@RequestMapping("/custom/order")
public class CustomOrderController extends BaseController
{
@Autowired
private ICustomOrderService customOrderService;
/**
* 查询备案订单列表
*/
@PreAuthorize("@ss.hasPermi('custom:order:list')")
@GetMapping("/list")
public TableDataInfo list(CustomOrder customOrder)
{
startPage();
List<CustomOrder> list = customOrderService.selectCustomOrderList(customOrder);
return getDataTable(list);
}
/**
* 导出备案订单列表
*/
@PreAuthorize("@ss.hasPermi('custom:order:export')")
@Log(title = "备案订单", businessType = BusinessType.EXPORT)
@GetMapping("/export")
public AjaxResult export(CustomOrder customOrder)
{
List<CustomOrder> list = customOrderService.selectCustomOrderList(customOrder);
ExcelUtil<CustomOrder> util = new ExcelUtil<CustomOrder>(CustomOrder.class);
return util.exportExcel(list, "order");
}
/**
* 获取备案订单详细信息
*/
@PreAuthorize("@ss.hasPermi('custom:order:query')")
@GetMapping(value = "/{id}")
public AjaxResult getInfo(@PathVariable("id") Long id)
{
return AjaxResult.success(customOrderService.selectCustomOrderById(id));
}
/**
* 新增备案订单
*/
@PreAuthorize("@ss.hasPermi('custom:order:add')")
@Log(title = "备案订单", businessType = BusinessType.INSERT)
@PostMapping
public AjaxResult add(@RequestBody CustomOrder customOrder)
{
return toAjax(customOrderService.insertCustomOrder(customOrder));
}
/**
* 修改备案订单
*/
@PreAuthorize("@ss.hasPermi('custom:order:edit')")
@Log(title = "备案订单", businessType = BusinessType.UPDATE)
@PutMapping
public AjaxResult edit(@RequestBody CustomOrder customOrder)
{
return toAjax(customOrderService.updateCustomOrder(customOrder));
}
/**
* 删除备案订单
*/
@PreAuthorize("@ss.hasPermi('custom:order:remove')")
@Log(title = "备案订单", businessType = BusinessType.DELETE)
@DeleteMapping("/{ids}")
public AjaxResult remove(@PathVariable Long[] ids)
{
return toAjax(customOrderService.deleteCustomOrderByIds(ids));
}
}
@@ -0,0 +1,103 @@
package com.ruoyi.custom.controller;
import java.util.List;
import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.PutMapping;
import org.springframework.web.bind.annotation.DeleteMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import com.ruoyi.common.annotation.Log;
import com.ruoyi.common.core.controller.BaseController;
import com.ruoyi.common.core.domain.AjaxResult;
import com.ruoyi.common.enums.BusinessType;
import com.ruoyi.custom.domain.CustomOrderItem;
import com.ruoyi.custom.service.ICustomOrderItemService;
import com.ruoyi.common.utils.poi.ExcelUtil;
import com.ruoyi.common.core.page.TableDataInfo;
/**
* 备案订单项Controller
*
* @author luqj
* @date 2021-10-23
*/
@RestController
@RequestMapping("/custom/orderItem")
public class CustomOrderItemController extends BaseController
{
@Autowired
private ICustomOrderItemService customOrderItemService;
/**
* 查询备案订单项列表
*/
@PreAuthorize("@ss.hasPermi('custom:orderItem:list')")
@GetMapping("/list")
public TableDataInfo list(CustomOrderItem customOrderItem)
{
startPage();
List<CustomOrderItem> list = customOrderItemService.selectCustomOrderItemList(customOrderItem);
return getDataTable(list);
}
/**
* 导出备案订单项列表
*/
@PreAuthorize("@ss.hasPermi('custom:orderItem:export')")
@Log(title = "备案订单项", businessType = BusinessType.EXPORT)
@GetMapping("/export")
public AjaxResult export(CustomOrderItem customOrderItem)
{
List<CustomOrderItem> list = customOrderItemService.selectCustomOrderItemList(customOrderItem);
ExcelUtil<CustomOrderItem> util = new ExcelUtil<CustomOrderItem>(CustomOrderItem.class);
return util.exportExcel(list, "orderItem");
}
/**
* 获取备案订单项详细信息
*/
@PreAuthorize("@ss.hasPermi('custom:orderItem:query')")
@GetMapping(value = "/{id}")
public AjaxResult getInfo(@PathVariable("id") Long id)
{
return AjaxResult.success(customOrderItemService.selectCustomOrderItemById(id));
}
/**
* 新增备案订单项
*/
@PreAuthorize("@ss.hasPermi('custom:orderItem:add')")
@Log(title = "备案订单项", businessType = BusinessType.INSERT)
@PostMapping
public AjaxResult add(@RequestBody CustomOrderItem customOrderItem)
{
return toAjax(customOrderItemService.insertCustomOrderItem(customOrderItem));
}
/**
* 修改备案订单项
*/
@PreAuthorize("@ss.hasPermi('custom:orderItem:edit')")
@Log(title = "备案订单项", businessType = BusinessType.UPDATE)
@PutMapping
public AjaxResult edit(@RequestBody CustomOrderItem customOrderItem)
{
return toAjax(customOrderItemService.updateCustomOrderItem(customOrderItem));
}
/**
* 删除备案订单项
*/
@PreAuthorize("@ss.hasPermi('custom:orderItem:remove')")
@Log(title = "备案订单项", businessType = BusinessType.DELETE)
@DeleteMapping("/{ids}")
public AjaxResult remove(@PathVariable Long[] ids)
{
return toAjax(customOrderItemService.deleteCustomOrderItemByIds(ids));
}
}
@@ -0,0 +1,103 @@
package com.ruoyi.custom.controller;
import java.util.List;
import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.PutMapping;
import org.springframework.web.bind.annotation.DeleteMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import com.ruoyi.common.annotation.Log;
import com.ruoyi.common.core.controller.BaseController;
import com.ruoyi.common.core.domain.AjaxResult;
import com.ruoyi.common.enums.BusinessType;
import com.ruoyi.custom.domain.CustomParcelNumber;
import com.ruoyi.custom.service.ICustomParcelNumberService;
import com.ruoyi.common.utils.poi.ExcelUtil;
import com.ruoyi.common.core.page.TableDataInfo;
/**
* 行邮税号Controller
*
* @author luqj
* @date 2021-10-23
*/
@RestController
@RequestMapping("/custom/parcelNumber")
public class CustomParcelNumberController extends BaseController
{
@Autowired
private ICustomParcelNumberService customParcelNumberService;
/**
* 查询行邮税号列表
*/
@PreAuthorize("@ss.hasPermi('custom:parcelNumber:list')")
@GetMapping("/list")
public TableDataInfo list(CustomParcelNumber customParcelNumber)
{
startPage();
List<CustomParcelNumber> list = customParcelNumberService.selectCustomParcelNumberList(customParcelNumber);
return getDataTable(list);
}
/**
* 导出行邮税号列表
*/
@PreAuthorize("@ss.hasPermi('custom:parcelNumber:export')")
@Log(title = "行邮税号", businessType = BusinessType.EXPORT)
@GetMapping("/export")
public AjaxResult export(CustomParcelNumber customParcelNumber)
{
List<CustomParcelNumber> list = customParcelNumberService.selectCustomParcelNumberList(customParcelNumber);
ExcelUtil<CustomParcelNumber> util = new ExcelUtil<CustomParcelNumber>(CustomParcelNumber.class);
return util.exportExcel(list, "parcelNumber");
}
/**
* 获取行邮税号详细信息
*/
@PreAuthorize("@ss.hasPermi('custom:parcelNumber:query')")
@GetMapping(value = "/{id}")
public AjaxResult getInfo(@PathVariable("id") Long id)
{
return AjaxResult.success(customParcelNumberService.selectCustomParcelNumberById(id));
}
/**
* 新增行邮税号
*/
@PreAuthorize("@ss.hasPermi('custom:parcelNumber:add')")
@Log(title = "行邮税号", businessType = BusinessType.INSERT)
@PostMapping
public AjaxResult add(@RequestBody CustomParcelNumber customParcelNumber)
{
return toAjax(customParcelNumberService.insertCustomParcelNumber(customParcelNumber));
}
/**
* 修改行邮税号
*/
@PreAuthorize("@ss.hasPermi('custom:parcelNumber:edit')")
@Log(title = "行邮税号", businessType = BusinessType.UPDATE)
@PutMapping
public AjaxResult edit(@RequestBody CustomParcelNumber customParcelNumber)
{
return toAjax(customParcelNumberService.updateCustomParcelNumber(customParcelNumber));
}
/**
* 删除行邮税号
*/
@PreAuthorize("@ss.hasPermi('custom:parcelNumber:remove')")
@Log(title = "行邮税号", businessType = BusinessType.DELETE)
@DeleteMapping("/{ids}")
public AjaxResult remove(@PathVariable Long[] ids)
{
return toAjax(customParcelNumberService.deleteCustomParcelNumberByIds(ids));
}
}
@@ -0,0 +1,103 @@
package com.ruoyi.custom.controller;
import java.util.List;
import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.PutMapping;
import org.springframework.web.bind.annotation.DeleteMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import com.ruoyi.common.annotation.Log;
import com.ruoyi.common.core.controller.BaseController;
import com.ruoyi.common.core.domain.AjaxResult;
import com.ruoyi.common.enums.BusinessType;
import com.ruoyi.custom.domain.CustomProductRecord;
import com.ruoyi.custom.service.ICustomProductRecordService;
import com.ruoyi.common.utils.poi.ExcelUtil;
import com.ruoyi.common.core.page.TableDataInfo;
/**
* 商品备案Controller
*
* @author luqj
* @date 2021-10-23
*/
@RestController
@RequestMapping("/custom/productRecord")
public class CustomProductRecordController extends BaseController
{
@Autowired
private ICustomProductRecordService customProductRecordService;
/**
* 查询商品备案列表
*/
@PreAuthorize("@ss.hasPermi('custom:productRecord:list')")
@GetMapping("/list")
public TableDataInfo list(CustomProductRecord customProductRecord)
{
startPage();
List<CustomProductRecord> list = customProductRecordService.selectCustomProductRecordList(customProductRecord);
return getDataTable(list);
}
/**
* 导出商品备案列表
*/
@PreAuthorize("@ss.hasPermi('custom:productRecord:export')")
@Log(title = "商品备案", businessType = BusinessType.EXPORT)
@GetMapping("/export")
public AjaxResult export(CustomProductRecord customProductRecord)
{
List<CustomProductRecord> list = customProductRecordService.selectCustomProductRecordList(customProductRecord);
ExcelUtil<CustomProductRecord> util = new ExcelUtil<CustomProductRecord>(CustomProductRecord.class);
return util.exportExcel(list, "productRecord");
}
/**
* 获取商品备案详细信息
*/
@PreAuthorize("@ss.hasPermi('custom:productRecord:query')")
@GetMapping(value = "/{id}")
public AjaxResult getInfo(@PathVariable("id") Long id)
{
return AjaxResult.success(customProductRecordService.selectCustomProductRecordById(id));
}
/**
* 新增商品备案
*/
@PreAuthorize("@ss.hasPermi('custom:productRecord:add')")
@Log(title = "商品备案", businessType = BusinessType.INSERT)
@PostMapping
public AjaxResult add(@RequestBody CustomProductRecord customProductRecord)
{
return toAjax(customProductRecordService.insertCustomProductRecord(customProductRecord));
}
/**
* 修改商品备案
*/
@PreAuthorize("@ss.hasPermi('custom:productRecord:edit')")
@Log(title = "商品备案", businessType = BusinessType.UPDATE)
@PutMapping
public AjaxResult edit(@RequestBody CustomProductRecord customProductRecord)
{
return toAjax(customProductRecordService.updateCustomProductRecord(customProductRecord));
}
/**
* 删除商品备案
*/
@PreAuthorize("@ss.hasPermi('custom:productRecord:remove')")
@Log(title = "商品备案", businessType = BusinessType.DELETE)
@DeleteMapping("/{ids}")
public AjaxResult remove(@PathVariable Long[] ids)
{
return toAjax(customProductRecordService.deleteCustomProductRecordByIds(ids));
}
}
@@ -0,0 +1,101 @@
package com.ruoyi.custom.controller;
import java.util.List;
import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.PutMapping;
import org.springframework.web.bind.annotation.DeleteMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import com.ruoyi.common.annotation.Log;
import com.ruoyi.common.core.controller.BaseController;
import com.ruoyi.common.core.domain.AjaxResult;
import com.ruoyi.common.enums.BusinessType;
import com.ruoyi.custom.domain.CustomRegionCode;
import com.ruoyi.custom.service.ICustomRegionCodeService;
import com.ruoyi.common.utils.poi.ExcelUtil;
/**
* 国家行政区划代码Controller
*
* @author luqj
* @date 2021-10-23
*/
@RestController
@RequestMapping("/custom/regionCode")
public class CustomRegionCodeController extends BaseController
{
@Autowired
private ICustomRegionCodeService customRegionCodeService;
/**
* 查询国家行政区划代码列表
*/
@PreAuthorize("@ss.hasPermi('custom:regionCode:list')")
@GetMapping("/list")
public AjaxResult list(CustomRegionCode customRegionCode)
{
List<CustomRegionCode> list = customRegionCodeService.selectCustomRegionCodeList(customRegionCode);
return AjaxResult.success(list);
}
/**
* 导出国家行政区划代码列表
*/
@PreAuthorize("@ss.hasPermi('custom:regionCode:export')")
@Log(title = "国家行政区划代码", businessType = BusinessType.EXPORT)
@GetMapping("/export")
public AjaxResult export(CustomRegionCode customRegionCode)
{
List<CustomRegionCode> list = customRegionCodeService.selectCustomRegionCodeList(customRegionCode);
ExcelUtil<CustomRegionCode> util = new ExcelUtil<CustomRegionCode>(CustomRegionCode.class);
return util.exportExcel(list, "regionCode");
}
/**
* 获取国家行政区划代码详细信息
*/
@PreAuthorize("@ss.hasPermi('custom:regionCode:query')")
@GetMapping(value = "/{id}")
public AjaxResult getInfo(@PathVariable("id") Long id)
{
return AjaxResult.success(customRegionCodeService.selectCustomRegionCodeById(id));
}
/**
* 新增国家行政区划代码
*/
@PreAuthorize("@ss.hasPermi('custom:regionCode:add')")
@Log(title = "国家行政区划代码", businessType = BusinessType.INSERT)
@PostMapping
public AjaxResult add(@RequestBody CustomRegionCode customRegionCode)
{
return toAjax(customRegionCodeService.insertCustomRegionCode(customRegionCode));
}
/**
* 修改国家行政区划代码
*/
@PreAuthorize("@ss.hasPermi('custom:regionCode:edit')")
@Log(title = "国家行政区划代码", businessType = BusinessType.UPDATE)
@PutMapping
public AjaxResult edit(@RequestBody CustomRegionCode customRegionCode)
{
return toAjax(customRegionCodeService.updateCustomRegionCode(customRegionCode));
}
/**
* 删除国家行政区划代码
*/
@PreAuthorize("@ss.hasPermi('custom:regionCode:remove')")
@Log(title = "国家行政区划代码", businessType = BusinessType.DELETE)
@DeleteMapping("/{ids}")
public AjaxResult remove(@PathVariable Long[] ids)
{
return toAjax(customRegionCodeService.deleteCustomRegionCodeByIds(ids));
}
}
@@ -0,0 +1,103 @@
package com.ruoyi.custom.controller;
import java.util.List;
import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.PutMapping;
import org.springframework.web.bind.annotation.DeleteMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import com.ruoyi.common.annotation.Log;
import com.ruoyi.common.core.controller.BaseController;
import com.ruoyi.common.core.domain.AjaxResult;
import com.ruoyi.common.enums.BusinessType;
import com.ruoyi.custom.domain.CustomUnitCode;
import com.ruoyi.custom.service.ICustomUnitCodeService;
import com.ruoyi.common.utils.poi.ExcelUtil;
import com.ruoyi.common.core.page.TableDataInfo;
/**
* 计量单位代码Controller
*
* @author luqj
* @date 2021-10-23
*/
@RestController
@RequestMapping("/custom/unitCode")
public class CustomUnitCodeController extends BaseController
{
@Autowired
private ICustomUnitCodeService customUnitCodeService;
/**
* 查询计量单位代码列表
*/
@PreAuthorize("@ss.hasPermi('custom:unitCode:list')")
@GetMapping("/list")
public TableDataInfo list(CustomUnitCode customUnitCode)
{
startPage();
List<CustomUnitCode> list = customUnitCodeService.selectCustomUnitCodeList(customUnitCode);
return getDataTable(list);
}
/**
* 导出计量单位代码列表
*/
@PreAuthorize("@ss.hasPermi('custom:unitCode:export')")
@Log(title = "计量单位代码", businessType = BusinessType.EXPORT)
@GetMapping("/export")
public AjaxResult export(CustomUnitCode customUnitCode)
{
List<CustomUnitCode> list = customUnitCodeService.selectCustomUnitCodeList(customUnitCode);
ExcelUtil<CustomUnitCode> util = new ExcelUtil<CustomUnitCode>(CustomUnitCode.class);
return util.exportExcel(list, "unitCode");
}
/**
* 获取计量单位代码详细信息
*/
@PreAuthorize("@ss.hasPermi('custom:unitCode:query')")
@GetMapping(value = "/{id}")
public AjaxResult getInfo(@PathVariable("id") Long id)
{
return AjaxResult.success(customUnitCodeService.selectCustomUnitCodeById(id));
}
/**
* 新增计量单位代码
*/
@PreAuthorize("@ss.hasPermi('custom:unitCode:add')")
@Log(title = "计量单位代码", businessType = BusinessType.INSERT)
@PostMapping
public AjaxResult add(@RequestBody CustomUnitCode customUnitCode)
{
return toAjax(customUnitCodeService.insertCustomUnitCode(customUnitCode));
}
/**
* 修改计量单位代码
*/
@PreAuthorize("@ss.hasPermi('custom:unitCode:edit')")
@Log(title = "计量单位代码", businessType = BusinessType.UPDATE)
@PutMapping
public AjaxResult edit(@RequestBody CustomUnitCode customUnitCode)
{
return toAjax(customUnitCodeService.updateCustomUnitCode(customUnitCode));
}
/**
* 删除计量单位代码
*/
@PreAuthorize("@ss.hasPermi('custom:unitCode:remove')")
@Log(title = "计量单位代码", businessType = BusinessType.DELETE)
@DeleteMapping("/{ids}")
public AjaxResult remove(@PathVariable Long[] ids)
{
return toAjax(customUnitCodeService.deleteCustomUnitCodeByIds(ids));
}
}
@@ -0,0 +1,103 @@
package com.ruoyi.custom.controller;
import java.util.List;
import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.PutMapping;
import org.springframework.web.bind.annotation.DeleteMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import com.ruoyi.common.annotation.Log;
import com.ruoyi.common.core.controller.BaseController;
import com.ruoyi.common.core.domain.AjaxResult;
import com.ruoyi.common.enums.BusinessType;
import com.ruoyi.custom.domain.CustomWarehouse;
import com.ruoyi.custom.service.ICustomWarehouseService;
import com.ruoyi.common.utils.poi.ExcelUtil;
import com.ruoyi.common.core.page.TableDataInfo;
/**
* 仓库Controller
*
* @author luqj
* @date 2021-10-23
*/
@RestController
@RequestMapping("/custom/warehouse")
public class CustomWarehouseController extends BaseController
{
@Autowired
private ICustomWarehouseService customWarehouseService;
/**
* 查询仓库列表
*/
@PreAuthorize("@ss.hasPermi('custom:warehouse:list')")
@GetMapping("/list")
public TableDataInfo list(CustomWarehouse customWarehouse)
{
startPage();
List<CustomWarehouse> list = customWarehouseService.selectCustomWarehouseList(customWarehouse);
return getDataTable(list);
}
/**
* 导出仓库列表
*/
@PreAuthorize("@ss.hasPermi('custom:warehouse:export')")
@Log(title = "仓库", businessType = BusinessType.EXPORT)
@GetMapping("/export")
public AjaxResult export(CustomWarehouse customWarehouse)
{
List<CustomWarehouse> list = customWarehouseService.selectCustomWarehouseList(customWarehouse);
ExcelUtil<CustomWarehouse> util = new ExcelUtil<CustomWarehouse>(CustomWarehouse.class);
return util.exportExcel(list, "warehouse");
}
/**
* 获取仓库详细信息
*/
@PreAuthorize("@ss.hasPermi('custom:warehouse:query')")
@GetMapping(value = "/{id}")
public AjaxResult getInfo(@PathVariable("id") Long id)
{
return AjaxResult.success(customWarehouseService.selectCustomWarehouseById(id));
}
/**
* 新增仓库
*/
@PreAuthorize("@ss.hasPermi('custom:warehouse:add')")
@Log(title = "仓库", businessType = BusinessType.INSERT)
@PostMapping
public AjaxResult add(@RequestBody CustomWarehouse customWarehouse)
{
return toAjax(customWarehouseService.insertCustomWarehouse(customWarehouse));
}
/**
* 修改仓库
*/
@PreAuthorize("@ss.hasPermi('custom:warehouse:edit')")
@Log(title = "仓库", businessType = BusinessType.UPDATE)
@PutMapping
public AjaxResult edit(@RequestBody CustomWarehouse customWarehouse)
{
return toAjax(customWarehouseService.updateCustomWarehouse(customWarehouse));
}
/**
* 删除仓库
*/
@PreAuthorize("@ss.hasPermi('custom:warehouse:remove')")
@Log(title = "仓库", businessType = BusinessType.DELETE)
@DeleteMapping("/{ids}")
public AjaxResult remove(@PathVariable Long[] ids)
{
return toAjax(customWarehouseService.deleteCustomWarehouseByIds(ids));
}
}
@@ -0,0 +1,182 @@
package com.ruoyi.custom.domain;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
import java.io.Serializable;
/**
* 海关回查对象 custom_callback
*
* @author luqj
* @date 2021-10-23
*/
public class CustomCallback extends BaseEntity
{
private static final long serialVersionUID = 1L;
/** 主键 */
private Long id;
/** 用户代码 */
@Excel(name = "用户代码")
private Long userId;
/** 海关备案代码 */
@Excel(name = "海关备案代码")
private String customsCode;
/** 申报订单号 */
@Excel(name = "申报订单号")
private String declareOrderNo;
/** 会话ID */
@Excel(name = "会话ID")
private String sessionId;
/** 会话时间 */
@JsonFormat(pattern = "yyyy-MM-dd")
@Excel(name = "会话时间", width = 30, dateFormat = "yyyy-MM-dd")
private Date serviceTime;
/** 状态 */
@Excel(name = "状态")
private Integer status;
/** 添加时间 */
@JsonFormat(pattern = "yyyy-MM-dd")
@Excel(name = "添加时间", width = 30, dateFormat = "yyyy-MM-dd")
private Date addTime;
/** 上传结果 */
@Excel(name = "上传结果")
private String postResult;
/** 上传次数 */
@Excel(name = "上传次数")
private Long sendNumber;
/** 上传时间 */
@JsonFormat(pattern = "yyyy-MM-dd")
@Excel(name = "上传时间", width = 30, dateFormat = "yyyy-MM-dd")
private Date sendTime;
public void setId(Long id)
{
this.id = id;
}
public Long getId()
{
return id;
}
public void setUserId(Long userId)
{
this.userId = userId;
}
public Long getUserId()
{
return userId;
}
public void setCustomsCode(String customsCode)
{
this.customsCode = customsCode;
}
public String getCustomsCode()
{
return customsCode;
}
public void setDeclareOrderNo(String declareOrderNo)
{
this.declareOrderNo = declareOrderNo;
}
public String getDeclareOrderNo()
{
return declareOrderNo;
}
public void setSessionId(String sessionId)
{
this.sessionId = sessionId;
}
public String getSessionId()
{
return sessionId;
}
public void setServiceTime(Date serviceTime)
{
this.serviceTime = serviceTime;
}
public Date getServiceTime()
{
return serviceTime;
}
public void setStatus(Integer status)
{
this.status = status;
}
public Integer getStatus()
{
return status;
}
public void setAddTime(Date addTime)
{
this.addTime = addTime;
}
public Date getAddTime()
{
return addTime;
}
public void setPostResult(String postResult)
{
this.postResult = postResult;
}
public String getPostResult()
{
return postResult;
}
public void setSendNumber(Long sendNumber)
{
this.sendNumber = sendNumber;
}
public Long getSendNumber()
{
return sendNumber;
}
public void setSendTime(Date sendTime)
{
this.sendTime = sendTime;
}
public Date getSendTime()
{
return sendTime;
}
@Override
public String toString() {
return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
.append("id", getId())
.append("userId", getUserId())
.append("customsCode", getCustomsCode())
.append("declareOrderNo", getDeclareOrderNo())
.append("sessionId", getSessionId())
.append("serviceTime", getServiceTime())
.append("status", getStatus())
.append("addTime", getAddTime())
.append("postResult", getPostResult())
.append("sendNumber", getSendNumber())
.append("sendTime", getSendTime())
.toString();
}
}
@@ -0,0 +1,174 @@
package com.ruoyi.custom.domain;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
import java.io.Serializable;
import java.util.Date;
import com.baomidou.mybatisplus.annotation.TableName;
/**
* 海关回查对象 custom_callback
*
* @author luqj
* @date 2021-10-23
*/
@TableName(value = "custom_callback")
public class CustomCallbackPlus implements Serializable
{
private static final long serialVersionUID = 1L;
/** 主键 */
private Long id;
/** 用户代码 */
@Excel(name = "用户代码")
private Long userId;
/** 海关备案代码 */
@Excel(name = "海关备案代码")
private String customsCode;
/** 申报订单号 */
@Excel(name = "申报订单号")
private String declareOrderNo;
/** 会话ID */
@Excel(name = "会话ID")
private String sessionId;
/** 会话时间 */
@JsonFormat(pattern = "yyyy-MM-dd")
@Excel(name = "会话时间", width = 30, dateFormat = "yyyy-MM-dd")
private Date serviceTime;
/** 状态 */
@Excel(name = "状态")
private Integer status;
/** 添加时间 */
@JsonFormat(pattern = "yyyy-MM-dd")
@Excel(name = "添加时间", width = 30, dateFormat = "yyyy-MM-dd")
private Date addTime;
/** 上传结果 */
@Excel(name = "上传结果")
private String postResult;
/** 上传次数 */
@Excel(name = "上传次数")
private Long sendNumber;
/** 上传时间 */
@JsonFormat(pattern = "yyyy-MM-dd")
@Excel(name = "上传时间", width = 30, dateFormat = "yyyy-MM-dd")
private Date sendTime;
public void setId(Long id)
{
this.id = id;
}
public Long getId()
{
return id;
}
public void setUserId(Long userId)
{
this.userId = userId;
}
public Long getUserId()
{
return userId;
}
public void setCustomsCode(String customsCode)
{
this.customsCode = customsCode;
}
public String getCustomsCode()
{
return customsCode;
}
public void setDeclareOrderNo(String declareOrderNo)
{
this.declareOrderNo = declareOrderNo;
}
public String getDeclareOrderNo()
{
return declareOrderNo;
}
public void setSessionId(String sessionId)
{
this.sessionId = sessionId;
}
public String getSessionId()
{
return sessionId;
}
public void setServiceTime(Date serviceTime)
{
this.serviceTime = serviceTime;
}
public Date getServiceTime()
{
return serviceTime;
}
public void setStatus(Integer status)
{
this.status = status;
}
public Integer getStatus()
{
return status;
}
public void setAddTime(Date addTime)
{
this.addTime = addTime;
}
public Date getAddTime()
{
return addTime;
}
public void setPostResult(String postResult)
{
this.postResult = postResult;
}
public String getPostResult()
{
return postResult;
}
public void setSendNumber(Long sendNumber)
{
this.sendNumber = sendNumber;
}
public Long getSendNumber()
{
return sendNumber;
}
public void setSendTime(Date sendTime)
{
this.sendTime = sendTime;
}
public Date getSendTime()
{
return sendTime;
}
@Override
public String toString() {
return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
.append("id", getId())
.append("userId", getUserId())
.append("customsCode", getCustomsCode())
.append("declareOrderNo", getDeclareOrderNo())
.append("sessionId", getSessionId())
.append("serviceTime", getServiceTime())
.append("status", getStatus())
.append("addTime", getAddTime())
.append("postResult", getPostResult())
.append("sendNumber", getSendNumber())
.append("sendTime", getSendTime())
.toString();
}
}
@@ -0,0 +1,66 @@
package com.ruoyi.custom.domain;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
import java.io.Serializable;
/**
* 国别代码对象 custom_country_code
*
* @author luqj
* @date 2021-10-23
*/
public class CustomCountryCode extends BaseEntity
{
private static final long serialVersionUID = 1L;
/** 主键 */
private Long id;
/** 代码 */
@Excel(name = "代码")
private String code;
/** 名称 */
@Excel(name = "名称")
private String name;
public void setId(Long id)
{
this.id = id;
}
public Long getId()
{
return id;
}
public void setCode(String code)
{
this.code = code;
}
public String getCode()
{
return code;
}
public void setName(String name)
{
this.name = name;
}
public String getName()
{
return name;
}
@Override
public String toString() {
return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
.append("id", getId())
.append("code", getCode())
.append("name", getName())
.append("remark", getRemark())
.toString();
}
}
@@ -0,0 +1,78 @@
package com.ruoyi.custom.domain;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
import java.io.Serializable;
import java.util.Date;
import com.baomidou.mybatisplus.annotation.TableName;
/**
* 国别代码对象 custom_country_code
*
* @author luqj
* @date 2021-10-23
*/
@TableName(value = "custom_country_code")
public class CustomCountryCodePlus implements Serializable
{
private static final long serialVersionUID = 1L;
/** 主键 */
private Long id;
/** 代码 */
@Excel(name = "代码")
private String code;
/** 名称 */
@Excel(name = "名称")
private String name;
/** 备注 */
@Excel(name = "备注")
private String remark;
public void setId(Long id)
{
this.id = id;
}
public Long getId()
{
return id;
}
public void setCode(String code)
{
this.code = code;
}
public String getCode()
{
return code;
}
public void setName(String name)
{
this.name = name;
}
public String getName()
{
return name;
}
public void setRemark(String remark)
{
this.remark = remark;
}
public String getRemark()
{
return remark;
}
@Override
public String toString() {
return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
.append("id", getId())
.append("code", getCode())
.append("name", getName())
.append("remark", getRemark())
.toString();
}
}
@@ -0,0 +1,121 @@
package com.ruoyi.custom.domain;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
import java.io.Serializable;
/**
* 申报口岸对象 custom_declare_port
*
* @author luqj
* @date 2021-10-23
*/
public class CustomDeclarePort extends BaseEntity
{
private static final long serialVersionUID = 1L;
/** 主键 */
private Long id;
/** 关区名称 */
@Excel(name = "关区名称")
private String name;
/** 关区编码 */
@Excel(name = "关区编码")
private String code;
/** 描述 */
@Excel(name = "描述")
private String describe;
/** 直属关区 */
@Excel(name = "直属关区")
private String directlyName;
/** 简称 */
@Excel(name = "简称")
private String shortName;
/** 是否使用 */
@Excel(name = "是否使用")
private Integer isUse;
public void setId(Long id)
{
this.id = id;
}
public Long getId()
{
return id;
}
public void setName(String name)
{
this.name = name;
}
public String getName()
{
return name;
}
public void setCode(String code)
{
this.code = code;
}
public String getCode()
{
return code;
}
public void setDescribe(String describe)
{
this.describe = describe;
}
public String getDescribe()
{
return describe;
}
public void setDirectlyName(String directlyName)
{
this.directlyName = directlyName;
}
public String getDirectlyName()
{
return directlyName;
}
public void setShortName(String shortName)
{
this.shortName = shortName;
}
public String getShortName()
{
return shortName;
}
public void setIsUse(Integer isUse)
{
this.isUse = isUse;
}
public Integer getIsUse()
{
return isUse;
}
@Override
public String toString() {
return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
.append("id", getId())
.append("name", getName())
.append("code", getCode())
.append("describe", getDescribe())
.append("directlyName", getDirectlyName())
.append("shortName", getShortName())
.append("isUse", getIsUse())
.toString();
}
}
@@ -0,0 +1,117 @@
package com.ruoyi.custom.domain;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
import java.io.Serializable;
import java.util.Date;
import com.baomidou.mybatisplus.annotation.TableName;
/**
* 申报口岸对象 custom_declare_port
*
* @author luqj
* @date 2021-10-23
*/
@TableName(value = "custom_declare_port")
public class CustomDeclarePortPlus implements Serializable
{
private static final long serialVersionUID = 1L;
/** 主键 */
private Long id;
/** 关区名称 */
@Excel(name = "关区名称")
private String name;
/** 关区编码 */
@Excel(name = "关区编码")
private String code;
/** 描述 */
@Excel(name = "描述")
private String describe;
/** 直属关区 */
@Excel(name = "直属关区")
private String directlyName;
/** 简称 */
@Excel(name = "简称")
private String shortName;
/** 是否使用 */
@Excel(name = "是否使用")
private Integer isUse;
public void setId(Long id)
{
this.id = id;
}
public Long getId()
{
return id;
}
public void setName(String name)
{
this.name = name;
}
public String getName()
{
return name;
}
public void setCode(String code)
{
this.code = code;
}
public String getCode()
{
return code;
}
public void setDescribe(String describe)
{
this.describe = describe;
}
public String getDescribe()
{
return describe;
}
public void setDirectlyName(String directlyName)
{
this.directlyName = directlyName;
}
public String getDirectlyName()
{
return directlyName;
}
public void setShortName(String shortName)
{
this.shortName = shortName;
}
public String getShortName()
{
return shortName;
}
public void setIsUse(Integer isUse)
{
this.isUse = isUse;
}
public Integer getIsUse()
{
return isUse;
}
@Override
public String toString() {
return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
.append("id", getId())
.append("name", getName())
.append("code", getCode())
.append("describe", getDescribe())
.append("directlyName", getDirectlyName())
.append("shortName", getShortName())
.append("isUse", getIsUse())
.toString();
}
}
@@ -0,0 +1,248 @@
package com.ruoyi.custom.domain;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
import java.io.Serializable;
/**
* 企业备案对象 custom_enterprise_record
*
* @author luqj
* @date 2021-10-23
*/
public class CustomEnterpriseRecord extends BaseEntity
{
private static final long serialVersionUID = 1L;
/** $column.columnComment */
private Long id;
/** 申报口岸Id */
@Excel(name = "申报口岸Id")
private Long declarePortId;
/** 用户id */
@Excel(name = "用户id")
private Long userId;
/** 电商平台域名 */
@Excel(name = "电商平台域名")
private String domainName;
/** 备案企业名称 */
@Excel(name = "备案企业名称")
private String enterpriseName;
/** 电商平台简称 */
@Excel(name = "电商平台简称")
private String platformShort;
/** 商家简称 */
@Excel(name = "商家简称")
private String businessShort;
/** 统一信用代码 */
@Excel(name = "统一信用代码")
private String creditCode;
/** 海关备案编码 */
@Excel(name = "海关备案编码")
private String customsCode;
/** 国检备案编码 */
@Excel(name = "国检备案编码")
private String nationalCode;
/** 海关支付单查询加密URL */
@Excel(name = "海关支付单查询加密URL")
private String encryptUrl;
/** 担保企业代码 */
@Excel(name = "担保企业代码")
private String geCode;
/** 传输报文编码 */
@Excel(name = "传输报文编码")
private String messageCode;
/** 报文传输安全密钥 */
@Excel(name = "报文传输安全密钥")
private String kjdsKey;
/** FTP网址 */
@Excel(name = "FTP网址")
private String ftpServerIp;
/** FTP密码 */
@Excel(name = "FTP密码")
private String ftpPassword;
public void setId(Long id)
{
this.id = id;
}
public Long getId()
{
return id;
}
public void setDeclarePortId(Long declarePortId)
{
this.declarePortId = declarePortId;
}
public Long getDeclarePortId()
{
return declarePortId;
}
public void setUserId(Long userId)
{
this.userId = userId;
}
public Long getUserId()
{
return userId;
}
public void setDomainName(String domainName)
{
this.domainName = domainName;
}
public String getDomainName()
{
return domainName;
}
public void setEnterpriseName(String enterpriseName)
{
this.enterpriseName = enterpriseName;
}
public String getEnterpriseName()
{
return enterpriseName;
}
public void setPlatformShort(String platformShort)
{
this.platformShort = platformShort;
}
public String getPlatformShort()
{
return platformShort;
}
public void setBusinessShort(String businessShort)
{
this.businessShort = businessShort;
}
public String getBusinessShort()
{
return businessShort;
}
public void setCreditCode(String creditCode)
{
this.creditCode = creditCode;
}
public String getCreditCode()
{
return creditCode;
}
public void setCustomsCode(String customsCode)
{
this.customsCode = customsCode;
}
public String getCustomsCode()
{
return customsCode;
}
public void setNationalCode(String nationalCode)
{
this.nationalCode = nationalCode;
}
public String getNationalCode()
{
return nationalCode;
}
public void setEncryptUrl(String encryptUrl)
{
this.encryptUrl = encryptUrl;
}
public String getEncryptUrl()
{
return encryptUrl;
}
public void setGeCode(String geCode)
{
this.geCode = geCode;
}
public String getGeCode()
{
return geCode;
}
public void setMessageCode(String messageCode)
{
this.messageCode = messageCode;
}
public String getMessageCode()
{
return messageCode;
}
public void setKjdsKey(String kjdsKey)
{
this.kjdsKey = kjdsKey;
}
public String getKjdsKey()
{
return kjdsKey;
}
public void setFtpServerIp(String ftpServerIp)
{
this.ftpServerIp = ftpServerIp;
}
public String getFtpServerIp()
{
return ftpServerIp;
}
public void setFtpPassword(String ftpPassword)
{
this.ftpPassword = ftpPassword;
}
public String getFtpPassword()
{
return ftpPassword;
}
@Override
public String toString() {
return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
.append("id", getId())
.append("declarePortId", getDeclarePortId())
.append("userId", getUserId())
.append("domainName", getDomainName())
.append("enterpriseName", getEnterpriseName())
.append("platformShort", getPlatformShort())
.append("businessShort", getBusinessShort())
.append("creditCode", getCreditCode())
.append("customsCode", getCustomsCode())
.append("nationalCode", getNationalCode())
.append("encryptUrl", getEncryptUrl())
.append("geCode", getGeCode())
.append("messageCode", getMessageCode())
.append("kjdsKey", getKjdsKey())
.append("ftpServerIp", getFtpServerIp())
.append("ftpPassword", getFtpPassword())
.append("remark", getRemark())
.toString();
}
}
@@ -0,0 +1,247 @@
package com.ruoyi.custom.domain;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
import java.io.Serializable;
import java.util.Date;
import com.baomidou.mybatisplus.annotation.TableName;
/**
* 企业备案对象 custom_enterprise_record
*
* @author luqj
* @date 2021-10-23
*/
@TableName(value = "custom_enterprise_record")
public class CustomEnterpriseRecordPlus implements Serializable
{
private static final long serialVersionUID = 1L;
/** $column.columnComment */
private Long id;
/** 申报口岸Id */
@Excel(name = "申报口岸Id")
private Long declarePortId;
/** 用户id */
@Excel(name = "用户id")
private Long userId;
/** 电商平台域名 */
@Excel(name = "电商平台域名")
private String domainName;
/** 备案企业名称 */
@Excel(name = "备案企业名称")
private String enterpriseName;
/** 电商平台简称 */
@Excel(name = "电商平台简称")
private String platformShort;
/** 商家简称 */
@Excel(name = "商家简称")
private String businessShort;
/** 统一信用代码 */
@Excel(name = "统一信用代码")
private String creditCode;
/** 海关备案编码 */
@Excel(name = "海关备案编码")
private String customsCode;
/** 国检备案编码 */
@Excel(name = "国检备案编码")
private String nationalCode;
/** 海关支付单查询加密URL */
@Excel(name = "海关支付单查询加密URL")
private String encryptUrl;
/** 担保企业代码 */
@Excel(name = "担保企业代码")
private String geCode;
/** 传输报文编码 */
@Excel(name = "传输报文编码")
private String messageCode;
/** 报文传输安全密钥 */
@Excel(name = "报文传输安全密钥")
private String kjdsKey;
/** FTP网址 */
@Excel(name = "FTP网址")
private String ftpServerIp;
/** FTP密码 */
@Excel(name = "FTP密码")
private String ftpPassword;
/** 备注 */
@Excel(name = "备注")
private String remark;
public void setId(Long id)
{
this.id = id;
}
public Long getId()
{
return id;
}
public void setDeclarePortId(Long declarePortId)
{
this.declarePortId = declarePortId;
}
public Long getDeclarePortId()
{
return declarePortId;
}
public void setUserId(Long userId)
{
this.userId = userId;
}
public Long getUserId()
{
return userId;
}
public void setDomainName(String domainName)
{
this.domainName = domainName;
}
public String getDomainName()
{
return domainName;
}
public void setEnterpriseName(String enterpriseName)
{
this.enterpriseName = enterpriseName;
}
public String getEnterpriseName()
{
return enterpriseName;
}
public void setPlatformShort(String platformShort)
{
this.platformShort = platformShort;
}
public String getPlatformShort()
{
return platformShort;
}
public void setBusinessShort(String businessShort)
{
this.businessShort = businessShort;
}
public String getBusinessShort()
{
return businessShort;
}
public void setCreditCode(String creditCode)
{
this.creditCode = creditCode;
}
public String getCreditCode()
{
return creditCode;
}
public void setCustomsCode(String customsCode)
{
this.customsCode = customsCode;
}
public String getCustomsCode()
{
return customsCode;
}
public void setNationalCode(String nationalCode)
{
this.nationalCode = nationalCode;
}
public String getNationalCode()
{
return nationalCode;
}
public void setEncryptUrl(String encryptUrl)
{
this.encryptUrl = encryptUrl;
}
public String getEncryptUrl()
{
return encryptUrl;
}
public void setGeCode(String geCode)
{
this.geCode = geCode;
}
public String getGeCode()
{
return geCode;
}
public void setMessageCode(String messageCode)
{
this.messageCode = messageCode;
}
public String getMessageCode()
{
return messageCode;
}
public void setKjdsKey(String kjdsKey)
{
this.kjdsKey = kjdsKey;
}
public String getKjdsKey()
{
return kjdsKey;
}
public void setFtpServerIp(String ftpServerIp)
{
this.ftpServerIp = ftpServerIp;
}
public String getFtpServerIp()
{
return ftpServerIp;
}
public void setFtpPassword(String ftpPassword)
{
this.ftpPassword = ftpPassword;
}
public String getFtpPassword()
{
return ftpPassword;
}
public void setRemark(String remark)
{
this.remark = remark;
}
public String getRemark()
{
return remark;
}
@Override
public String toString() {
return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
.append("id", getId())
.append("declarePortId", getDeclarePortId())
.append("userId", getUserId())
.append("domainName", getDomainName())
.append("enterpriseName", getEnterpriseName())
.append("platformShort", getPlatformShort())
.append("businessShort", getBusinessShort())
.append("creditCode", getCreditCode())
.append("customsCode", getCustomsCode())
.append("nationalCode", getNationalCode())
.append("encryptUrl", getEncryptUrl())
.append("geCode", getGeCode())
.append("messageCode", getMessageCode())
.append("kjdsKey", getKjdsKey())
.append("ftpServerIp", getFtpServerIp())
.append("ftpPassword", getFtpPassword())
.append("remark", getRemark())
.toString();
}
}
@@ -0,0 +1,407 @@
package com.ruoyi.custom.domain;
import java.math.BigDecimal;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
import java.io.Serializable;
/**
* 航班信息对象 custom_flight_info
*
* @author luqj
* @date 2021-10-23
*/
public class CustomFlightInfo extends BaseEntity
{
private static final long serialVersionUID = 1L;
/** $column.columnComment */
private Long id;
/** 用户id */
@Excel(name = "用户id")
private Long userId;
/** 仓库Id */
@Excel(name = "仓库Id")
private Long warehouseId;
/** 申报口岸Id */
@Excel(name = "申报口岸Id")
private Long declarePortId;
/** 清关模式:1(BC);0(个人) */
@Excel(name = "清关模式:1", readConverterExp = "B=C")
private Integer mode;
/** 批次号 */
@Excel(name = "批次号")
private String batchNumber;
/** 提运单号 */
@Excel(name = "提运单号")
private String deliveryNumber;
/** 运输方式:2、水路运输;3、铁路运输;4、公路运输;5、航空运输;6、邮件运输;9、其它运输 */
@Excel(name = "运输方式:2、水路运输;3、铁路运输;4、公路运输;5、航空运输;6、邮件运输;9、其它运输")
private Integer trafMode;
/** 航空公司 */
@Excel(name = "航空公司")
private String airline;
/** 起运国 */
@Excel(name = "起运国")
private String departureCountry;
/** 始发城市 */
@Excel(name = "始发城市")
private String departureCity;
/** 始发机场 */
@Excel(name = "始发机场")
private String departureAirport;
/** 中转机场 */
@Excel(name = "中转机场")
private String transitAirport;
/** 到达机场 */
@Excel(name = "到达机场")
private String arriveAirport;
/** 航班号 */
@Excel(name = "航班号")
private String flightNumber;
/** 是否直航 */
@Excel(name = "是否直航")
private Integer isDirectFlight;
/** 是否我司订舱 */
@Excel(name = "是否我司订舱")
private Integer isOurBooking;
/** 出发时间(当地) */
@Excel(name = "出发时间", readConverterExp = "当=地")
private Date departureLocalTime;
/** 出发时间(北京) */
@Excel(name = "出发时间", readConverterExp = "北=京")
private Date departureTime;
/** 到达时间(北京) */
@Excel(name = "到达时间", readConverterExp = "北=京")
private Date arriveTime;
/** 实际到达时间 */
@JsonFormat(pattern = "yyyy-MM-dd")
@Excel(name = "实际到达时间", width = 30, dateFormat = "yyyy-MM-dd")
private Date actualArriveTime;
/** 托盘数 */
@Excel(name = "托盘数")
private Integer trayNumber;
/** 包裹数 */
@Excel(name = "包裹数")
private Integer packageNumber;
/** 总重量(KG) */
@Excel(name = "总重量", readConverterExp = "K=G")
private BigDecimal weight;
/** 计费重量(KG) */
@Excel(name = "计费重量", readConverterExp = "K=G")
private BigDecimal chargeableWeight;
/** 总体积(立方米) */
@Excel(name = "总体积", readConverterExp = "立=方米")
private BigDecimal volume;
/** 添加时间 */
@JsonFormat(pattern = "yyyy-MM-dd")
@Excel(name = "添加时间", width = 30, dateFormat = "yyyy-MM-dd")
private Date addTime;
public void setId(Long id)
{
this.id = id;
}
public Long getId()
{
return id;
}
public void setUserId(Long userId)
{
this.userId = userId;
}
public Long getUserId()
{
return userId;
}
public void setWarehouseId(Long warehouseId)
{
this.warehouseId = warehouseId;
}
public Long getWarehouseId()
{
return warehouseId;
}
public void setDeclarePortId(Long declarePortId)
{
this.declarePortId = declarePortId;
}
public Long getDeclarePortId()
{
return declarePortId;
}
public void setMode(Integer mode)
{
this.mode = mode;
}
public Integer getMode()
{
return mode;
}
public void setBatchNumber(String batchNumber)
{
this.batchNumber = batchNumber;
}
public String getBatchNumber()
{
return batchNumber;
}
public void setDeliveryNumber(String deliveryNumber)
{
this.deliveryNumber = deliveryNumber;
}
public String getDeliveryNumber()
{
return deliveryNumber;
}
public void setTrafMode(Integer trafMode)
{
this.trafMode = trafMode;
}
public Integer getTrafMode()
{
return trafMode;
}
public void setAirline(String airline)
{
this.airline = airline;
}
public String getAirline()
{
return airline;
}
public void setDepartureCountry(String departureCountry)
{
this.departureCountry = departureCountry;
}
public String getDepartureCountry()
{
return departureCountry;
}
public void setDepartureCity(String departureCity)
{
this.departureCity = departureCity;
}
public String getDepartureCity()
{
return departureCity;
}
public void setDepartureAirport(String departureAirport)
{
this.departureAirport = departureAirport;
}
public String getDepartureAirport()
{
return departureAirport;
}
public void setTransitAirport(String transitAirport)
{
this.transitAirport = transitAirport;
}
public String getTransitAirport()
{
return transitAirport;
}
public void setArriveAirport(String arriveAirport)
{
this.arriveAirport = arriveAirport;
}
public String getArriveAirport()
{
return arriveAirport;
}
public void setFlightNumber(String flightNumber)
{
this.flightNumber = flightNumber;
}
public String getFlightNumber()
{
return flightNumber;
}
public void setIsDirectFlight(Integer isDirectFlight)
{
this.isDirectFlight = isDirectFlight;
}
public Integer getIsDirectFlight()
{
return isDirectFlight;
}
public void setIsOurBooking(Integer isOurBooking)
{
this.isOurBooking = isOurBooking;
}
public Integer getIsOurBooking()
{
return isOurBooking;
}
public void setDepartureLocalTime(Date departureLocalTime)
{
this.departureLocalTime = departureLocalTime;
}
public Date getDepartureLocalTime()
{
return departureLocalTime;
}
public void setDepartureTime(Date departureTime)
{
this.departureTime = departureTime;
}
public Date getDepartureTime()
{
return departureTime;
}
public void setArriveTime(Date arriveTime)
{
this.arriveTime = arriveTime;
}
public Date getArriveTime()
{
return arriveTime;
}
public void setActualArriveTime(Date actualArriveTime)
{
this.actualArriveTime = actualArriveTime;
}
public Date getActualArriveTime()
{
return actualArriveTime;
}
public void setTrayNumber(Integer trayNumber)
{
this.trayNumber = trayNumber;
}
public Integer getTrayNumber()
{
return trayNumber;
}
public void setPackageNumber(Integer packageNumber)
{
this.packageNumber = packageNumber;
}
public Integer getPackageNumber()
{
return packageNumber;
}
public void setWeight(BigDecimal weight)
{
this.weight = weight;
}
public BigDecimal getWeight()
{
return weight;
}
public void setChargeableWeight(BigDecimal chargeableWeight)
{
this.chargeableWeight = chargeableWeight;
}
public BigDecimal getChargeableWeight()
{
return chargeableWeight;
}
public void setVolume(BigDecimal volume)
{
this.volume = volume;
}
public BigDecimal getVolume()
{
return volume;
}
public void setAddTime(Date addTime)
{
this.addTime = addTime;
}
public Date getAddTime()
{
return addTime;
}
@Override
public String toString() {
return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
.append("id", getId())
.append("userId", getUserId())
.append("warehouseId", getWarehouseId())
.append("declarePortId", getDeclarePortId())
.append("mode", getMode())
.append("batchNumber", getBatchNumber())
.append("deliveryNumber", getDeliveryNumber())
.append("trafMode", getTrafMode())
.append("airline", getAirline())
.append("departureCountry", getDepartureCountry())
.append("departureCity", getDepartureCity())
.append("departureAirport", getDepartureAirport())
.append("transitAirport", getTransitAirport())
.append("arriveAirport", getArriveAirport())
.append("flightNumber", getFlightNumber())
.append("isDirectFlight", getIsDirectFlight())
.append("isOurBooking", getIsOurBooking())
.append("departureLocalTime", getDepartureLocalTime())
.append("departureTime", getDepartureTime())
.append("arriveTime", getArriveTime())
.append("actualArriveTime", getActualArriveTime())
.append("trayNumber", getTrayNumber())
.append("packageNumber", getPackageNumber())
.append("weight", getWeight())
.append("chargeableWeight", getChargeableWeight())
.append("volume", getVolume())
.append("remark", getRemark())
.append("addTime", getAddTime())
.toString();
}
}
@@ -0,0 +1,395 @@
package com.ruoyi.custom.domain;
import java.math.BigDecimal;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
import java.io.Serializable;
import java.util.Date;
import com.baomidou.mybatisplus.annotation.TableName;
/**
* 航班信息对象 custom_flight_info
*
* @author luqj
* @date 2021-10-23
*/
@TableName(value = "custom_flight_info")
public class CustomFlightInfoPlus implements Serializable
{
private static final long serialVersionUID = 1L;
/** $column.columnComment */
private Long id;
/** 用户id */
@Excel(name = "用户id")
private Long userId;
/** 仓库Id */
@Excel(name = "仓库Id")
private Long warehouseId;
/** 申报口岸Id */
@Excel(name = "申报口岸Id")
private Long declarePortId;
/** 清关模式:1(BC);0(个人) */
@Excel(name = "清关模式:1", readConverterExp = "B=C")
private Integer mode;
/** 批次号 */
@Excel(name = "批次号")
private String batchNumber;
/** 提运单号 */
@Excel(name = "提运单号")
private String deliveryNumber;
/** 运输方式:2、水路运输;3、铁路运输;4、公路运输;5、航空运输;6、邮件运输;9、其它运输 */
@Excel(name = "运输方式:2、水路运输;3、铁路运输;4、公路运输;5、航空运输;6、邮件运输;9、其它运输")
private Integer trafMode;
/** 航空公司 */
@Excel(name = "航空公司")
private String airline;
/** 起运国 */
@Excel(name = "起运国")
private String departureCountry;
/** 始发城市 */
@Excel(name = "始发城市")
private String departureCity;
/** 始发机场 */
@Excel(name = "始发机场")
private String departureAirport;
/** 中转机场 */
@Excel(name = "中转机场")
private String transitAirport;
/** 到达机场 */
@Excel(name = "到达机场")
private String arriveAirport;
/** 航班号 */
@Excel(name = "航班号")
private String flightNumber;
/** 是否直航 */
@Excel(name = "是否直航")
private Integer isDirectFlight;
/** 是否我司订舱 */
@Excel(name = "是否我司订舱")
private Integer isOurBooking;
/** 出发时间(当地) */
@Excel(name = "出发时间", readConverterExp = "当=地")
private Date departureLocalTime;
/** 出发时间(北京) */
@Excel(name = "出发时间", readConverterExp = "北=京")
private Date departureTime;
/** 到达时间(北京) */
@Excel(name = "到达时间", readConverterExp = "北=京")
private Date arriveTime;
/** 实际到达时间 */
@JsonFormat(pattern = "yyyy-MM-dd")
@Excel(name = "实际到达时间", width = 30, dateFormat = "yyyy-MM-dd")
private Date actualArriveTime;
/** 托盘数 */
@Excel(name = "托盘数")
private Integer trayNumber;
/** 包裹数 */
@Excel(name = "包裹数")
private Integer packageNumber;
/** 总重量(KG) */
@Excel(name = "总重量", readConverterExp = "K=G")
private BigDecimal weight;
/** 计费重量(KG) */
@Excel(name = "计费重量", readConverterExp = "K=G")
private BigDecimal chargeableWeight;
/** 总体积(立方米) */
@Excel(name = "总体积", readConverterExp = "立=方米")
private BigDecimal volume;
/** 备注 */
@Excel(name = "备注")
private String remark;
/** 添加时间 */
@JsonFormat(pattern = "yyyy-MM-dd")
@Excel(name = "添加时间", width = 30, dateFormat = "yyyy-MM-dd")
private Date addTime;
public void setId(Long id)
{
this.id = id;
}
public Long getId()
{
return id;
}
public void setUserId(Long userId)
{
this.userId = userId;
}
public Long getUserId()
{
return userId;
}
public void setWarehouseId(Long warehouseId)
{
this.warehouseId = warehouseId;
}
public Long getWarehouseId()
{
return warehouseId;
}
public void setDeclarePortId(Long declarePortId)
{
this.declarePortId = declarePortId;
}
public Long getDeclarePortId()
{
return declarePortId;
}
public void setMode(Integer mode)
{
this.mode = mode;
}
public Integer getMode()
{
return mode;
}
public void setBatchNumber(String batchNumber)
{
this.batchNumber = batchNumber;
}
public String getBatchNumber()
{
return batchNumber;
}
public void setDeliveryNumber(String deliveryNumber)
{
this.deliveryNumber = deliveryNumber;
}
public String getDeliveryNumber()
{
return deliveryNumber;
}
public void setTrafMode(Integer trafMode)
{
this.trafMode = trafMode;
}
public Integer getTrafMode()
{
return trafMode;
}
public void setAirline(String airline)
{
this.airline = airline;
}
public String getAirline()
{
return airline;
}
public void setDepartureCountry(String departureCountry)
{
this.departureCountry = departureCountry;
}
public String getDepartureCountry()
{
return departureCountry;
}
public void setDepartureCity(String departureCity)
{
this.departureCity = departureCity;
}
public String getDepartureCity()
{
return departureCity;
}
public void setDepartureAirport(String departureAirport)
{
this.departureAirport = departureAirport;
}
public String getDepartureAirport()
{
return departureAirport;
}
public void setTransitAirport(String transitAirport)
{
this.transitAirport = transitAirport;
}
public String getTransitAirport()
{
return transitAirport;
}
public void setArriveAirport(String arriveAirport)
{
this.arriveAirport = arriveAirport;
}
public String getArriveAirport()
{
return arriveAirport;
}
public void setFlightNumber(String flightNumber)
{
this.flightNumber = flightNumber;
}
public String getFlightNumber()
{
return flightNumber;
}
public void setIsDirectFlight(Integer isDirectFlight)
{
this.isDirectFlight = isDirectFlight;
}
public Integer getIsDirectFlight()
{
return isDirectFlight;
}
public void setIsOurBooking(Integer isOurBooking)
{
this.isOurBooking = isOurBooking;
}
public Integer getIsOurBooking()
{
return isOurBooking;
}
public void setDepartureLocalTime(Date departureLocalTime)
{
this.departureLocalTime = departureLocalTime;
}
public Date getDepartureLocalTime()
{
return departureLocalTime;
}
public void setDepartureTime(Date departureTime)
{
this.departureTime = departureTime;
}
public Date getDepartureTime()
{
return departureTime;
}
public void setArriveTime(Date arriveTime)
{
this.arriveTime = arriveTime;
}
public Date getArriveTime()
{
return arriveTime;
}
public void setActualArriveTime(Date actualArriveTime)
{
this.actualArriveTime = actualArriveTime;
}
public Date getActualArriveTime()
{
return actualArriveTime;
}
public void setTrayNumber(Integer trayNumber)
{
this.trayNumber = trayNumber;
}
public Integer getTrayNumber()
{
return trayNumber;
}
public void setPackageNumber(Integer packageNumber)
{
this.packageNumber = packageNumber;
}
public Integer getPackageNumber()
{
return packageNumber;
}
public void setWeight(BigDecimal weight)
{
this.weight = weight;
}
public BigDecimal getWeight()
{
return weight;
}
public void setChargeableWeight(BigDecimal chargeableWeight)
{
this.chargeableWeight = chargeableWeight;
}
public BigDecimal getChargeableWeight()
{
return chargeableWeight;
}
public void setVolume(BigDecimal volume)
{
this.volume = volume;
}
public BigDecimal getVolume()
{
return volume;
}
public void setRemark(String remark)
{
this.remark = remark;
}
public String getRemark()
{
return remark;
}
public void setAddTime(Date addTime)
{
this.addTime = addTime;
}
public Date getAddTime()
{
return addTime;
}
@Override
public String toString() {
return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
.append("id", getId())
.append("userId", getUserId())
.append("warehouseId", getWarehouseId())
.append("declarePortId", getDeclarePortId())
.append("mode", getMode())
.append("batchNumber", getBatchNumber())
.append("deliveryNumber", getDeliveryNumber())
.append("trafMode", getTrafMode())
.append("airline", getAirline())
.append("departureCountry", getDepartureCountry())
.append("departureCity", getDepartureCity())
.append("departureAirport", getDepartureAirport())
.append("transitAirport", getTransitAirport())
.append("arriveAirport", getArriveAirport())
.append("flightNumber", getFlightNumber())
.append("isDirectFlight", getIsDirectFlight())
.append("isOurBooking", getIsOurBooking())
.append("departureLocalTime", getDepartureLocalTime())
.append("departureTime", getDepartureTime())
.append("arriveTime", getArriveTime())
.append("actualArriveTime", getActualArriveTime())
.append("trayNumber", getTrayNumber())
.append("packageNumber", getPackageNumber())
.append("weight", getWeight())
.append("chargeableWeight", getChargeableWeight())
.append("volume", getVolume())
.append("remark", getRemark())
.append("addTime", getAddTime())
.toString();
}
}
@@ -0,0 +1,207 @@
package com.ruoyi.custom.domain;
import java.math.BigDecimal;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
import java.io.Serializable;
/**
* HS编码对象 custom_hs_code
*
* @author luqj
* @date 2021-10-23
*/
public class CustomHsCode extends BaseEntity
{
private static final long serialVersionUID = 1L;
/** $column.columnComment */
private Long id;
/** 编码 */
@Excel(name = "编码")
private String code;
/** 名称 */
@Excel(name = "名称")
private String name;
/** 许可证代码 */
@Excel(name = "许可证代码")
private String licenseCode;
/** 普通税率 */
@Excel(name = "普通税率")
private BigDecimal generalTaxRate;
/** 优惠税率 */
@Excel(name = "优惠税率")
private BigDecimal preferentialTaxRate;
/** 出口税率 */
@Excel(name = "出口税率")
private BigDecimal exportTaxRate;
/** 消费税率 */
@Excel(name = "消费税率")
private BigDecimal consumptionTaxRate;
/** 增值税率 */
@Excel(name = "增值税率")
private BigDecimal vatRate;
/** 第一法定单位 */
@Excel(name = "第一法定单位")
private String firstLegalUnit;
/** 第二法定单位 */
@Excel(name = "第二法定单位")
private String secondLegalUnit;
/** 申报要素 */
@Excel(name = "申报要素")
private String declareReason;
/** 是否存在正面清单 */
@Excel(name = "是否存在正面清单")
private Integer isExistInventory;
public void setId(Long id)
{
this.id = id;
}
public Long getId()
{
return id;
}
public void setCode(String code)
{
this.code = code;
}
public String getCode()
{
return code;
}
public void setName(String name)
{
this.name = name;
}
public String getName()
{
return name;
}
public void setLicenseCode(String licenseCode)
{
this.licenseCode = licenseCode;
}
public String getLicenseCode()
{
return licenseCode;
}
public void setGeneralTaxRate(BigDecimal generalTaxRate)
{
this.generalTaxRate = generalTaxRate;
}
public BigDecimal getGeneralTaxRate()
{
return generalTaxRate;
}
public void setPreferentialTaxRate(BigDecimal preferentialTaxRate)
{
this.preferentialTaxRate = preferentialTaxRate;
}
public BigDecimal getPreferentialTaxRate()
{
return preferentialTaxRate;
}
public void setExportTaxRate(BigDecimal exportTaxRate)
{
this.exportTaxRate = exportTaxRate;
}
public BigDecimal getExportTaxRate()
{
return exportTaxRate;
}
public void setConsumptionTaxRate(BigDecimal consumptionTaxRate)
{
this.consumptionTaxRate = consumptionTaxRate;
}
public BigDecimal getConsumptionTaxRate()
{
return consumptionTaxRate;
}
public void setVatRate(BigDecimal vatRate)
{
this.vatRate = vatRate;
}
public BigDecimal getVatRate()
{
return vatRate;
}
public void setFirstLegalUnit(String firstLegalUnit)
{
this.firstLegalUnit = firstLegalUnit;
}
public String getFirstLegalUnit()
{
return firstLegalUnit;
}
public void setSecondLegalUnit(String secondLegalUnit)
{
this.secondLegalUnit = secondLegalUnit;
}
public String getSecondLegalUnit()
{
return secondLegalUnit;
}
public void setDeclareReason(String declareReason)
{
this.declareReason = declareReason;
}
public String getDeclareReason()
{
return declareReason;
}
public void setIsExistInventory(Integer isExistInventory)
{
this.isExistInventory = isExistInventory;
}
public Integer getIsExistInventory()
{
return isExistInventory;
}
@Override
public String toString() {
return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
.append("id", getId())
.append("code", getCode())
.append("name", getName())
.append("licenseCode", getLicenseCode())
.append("generalTaxRate", getGeneralTaxRate())
.append("preferentialTaxRate", getPreferentialTaxRate())
.append("remark", getRemark())
.append("exportTaxRate", getExportTaxRate())
.append("consumptionTaxRate", getConsumptionTaxRate())
.append("vatRate", getVatRate())
.append("firstLegalUnit", getFirstLegalUnit())
.append("secondLegalUnit", getSecondLegalUnit())
.append("declareReason", getDeclareReason())
.append("isExistInventory", getIsExistInventory())
.toString();
}
}
@@ -0,0 +1,209 @@
package com.ruoyi.custom.domain;
import java.math.BigDecimal;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
import java.io.Serializable;
import java.util.Date;
import com.baomidou.mybatisplus.annotation.TableName;
/**
* HS编码对象 custom_hs_code
*
* @author luqj
* @date 2021-10-23
*/
@TableName(value = "custom_hs_code")
public class CustomHsCodePlus implements Serializable
{
private static final long serialVersionUID = 1L;
/** $column.columnComment */
private Long id;
/** 编码 */
@Excel(name = "编码")
private String code;
/** 名称 */
@Excel(name = "名称")
private String name;
/** 许可证代码 */
@Excel(name = "许可证代码")
private String licenseCode;
/** 普通税率 */
@Excel(name = "普通税率")
private BigDecimal generalTaxRate;
/** 优惠税率 */
@Excel(name = "优惠税率")
private BigDecimal preferentialTaxRate;
/** 备注 */
@Excel(name = "备注")
private String remark;
/** 出口税率 */
@Excel(name = "出口税率")
private BigDecimal exportTaxRate;
/** 消费税率 */
@Excel(name = "消费税率")
private BigDecimal consumptionTaxRate;
/** 增值税率 */
@Excel(name = "增值税率")
private BigDecimal vatRate;
/** 第一法定单位 */
@Excel(name = "第一法定单位")
private String firstLegalUnit;
/** 第二法定单位 */
@Excel(name = "第二法定单位")
private String secondLegalUnit;
/** 申报要素 */
@Excel(name = "申报要素")
private String declareReason;
/** 是否存在正面清单 */
@Excel(name = "是否存在正面清单")
private Integer isExistInventory;
public void setId(Long id)
{
this.id = id;
}
public Long getId()
{
return id;
}
public void setCode(String code)
{
this.code = code;
}
public String getCode()
{
return code;
}
public void setName(String name)
{
this.name = name;
}
public String getName()
{
return name;
}
public void setLicenseCode(String licenseCode)
{
this.licenseCode = licenseCode;
}
public String getLicenseCode()
{
return licenseCode;
}
public void setGeneralTaxRate(BigDecimal generalTaxRate)
{
this.generalTaxRate = generalTaxRate;
}
public BigDecimal getGeneralTaxRate()
{
return generalTaxRate;
}
public void setPreferentialTaxRate(BigDecimal preferentialTaxRate)
{
this.preferentialTaxRate = preferentialTaxRate;
}
public BigDecimal getPreferentialTaxRate()
{
return preferentialTaxRate;
}
public void setRemark(String remark)
{
this.remark = remark;
}
public String getRemark()
{
return remark;
}
public void setExportTaxRate(BigDecimal exportTaxRate)
{
this.exportTaxRate = exportTaxRate;
}
public BigDecimal getExportTaxRate()
{
return exportTaxRate;
}
public void setConsumptionTaxRate(BigDecimal consumptionTaxRate)
{
this.consumptionTaxRate = consumptionTaxRate;
}
public BigDecimal getConsumptionTaxRate()
{
return consumptionTaxRate;
}
public void setVatRate(BigDecimal vatRate)
{
this.vatRate = vatRate;
}
public BigDecimal getVatRate()
{
return vatRate;
}
public void setFirstLegalUnit(String firstLegalUnit)
{
this.firstLegalUnit = firstLegalUnit;
}
public String getFirstLegalUnit()
{
return firstLegalUnit;
}
public void setSecondLegalUnit(String secondLegalUnit)
{
this.secondLegalUnit = secondLegalUnit;
}
public String getSecondLegalUnit()
{
return secondLegalUnit;
}
public void setDeclareReason(String declareReason)
{
this.declareReason = declareReason;
}
public String getDeclareReason()
{
return declareReason;
}
public void setIsExistInventory(Integer isExistInventory)
{
this.isExistInventory = isExistInventory;
}
public Integer getIsExistInventory()
{
return isExistInventory;
}
@Override
public String toString() {
return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
.append("id", getId())
.append("code", getCode())
.append("name", getName())
.append("licenseCode", getLicenseCode())
.append("generalTaxRate", getGeneralTaxRate())
.append("preferentialTaxRate", getPreferentialTaxRate())
.append("remark", getRemark())
.append("exportTaxRate", getExportTaxRate())
.append("consumptionTaxRate", getConsumptionTaxRate())
.append("vatRate", getVatRate())
.append("firstLegalUnit", getFirstLegalUnit())
.append("secondLegalUnit", getSecondLegalUnit())
.append("declareReason", getDeclareReason())
.append("isExistInventory", getIsExistInventory())
.toString();
}
}
@@ -0,0 +1,66 @@
package com.ruoyi.custom.domain;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
import java.io.Serializable;
/**
* 正面清单对象 custom_inventory
*
* @author luqj
* @date 2021-10-23
*/
public class CustomInventory extends BaseEntity
{
private static final long serialVersionUID = 1L;
/** 主键 */
private Long id;
/** 名称 */
@Excel(name = "名称")
private String name;
/** 编码 */
@Excel(name = "编码")
private String code;
public void setId(Long id)
{
this.id = id;
}
public Long getId()
{
return id;
}
public void setName(String name)
{
this.name = name;
}
public String getName()
{
return name;
}
public void setCode(String code)
{
this.code = code;
}
public String getCode()
{
return code;
}
@Override
public String toString() {
return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
.append("id", getId())
.append("name", getName())
.append("code", getCode())
.append("remark", getRemark())
.toString();
}
}
@@ -0,0 +1,78 @@
package com.ruoyi.custom.domain;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
import java.io.Serializable;
import java.util.Date;
import com.baomidou.mybatisplus.annotation.TableName;
/**
* 正面清单对象 custom_inventory
*
* @author luqj
* @date 2021-10-23
*/
@TableName(value = "custom_inventory")
public class CustomInventoryPlus implements Serializable
{
private static final long serialVersionUID = 1L;
/** 主键 */
private Long id;
/** 名称 */
@Excel(name = "名称")
private String name;
/** 编码 */
@Excel(name = "编码")
private String code;
/** 备注 */
@Excel(name = "备注")
private String remark;
public void setId(Long id)
{
this.id = id;
}
public Long getId()
{
return id;
}
public void setName(String name)
{
this.name = name;
}
public String getName()
{
return name;
}
public void setCode(String code)
{
this.code = code;
}
public String getCode()
{
return code;
}
public void setRemark(String remark)
{
this.remark = remark;
}
public String getRemark()
{
return remark;
}
@Override
public String toString() {
return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
.append("id", getId())
.append("name", getName())
.append("code", getCode())
.append("remark", getRemark())
.toString();
}
}
@@ -0,0 +1,758 @@
package com.ruoyi.custom.domain;
import java.math.BigDecimal;
import java.util.List;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
import java.io.Serializable;
/**
* 备案订单对象 custom_order
*
* @author luqj
* @date 2021-10-23
*/
public class CustomOrder extends BaseEntity
{
private static final long serialVersionUID = 1L;
/** 主键 */
private Long id;
/** 口岸Id */
@Excel(name = "口岸Id")
private Long declarePortId;
/** 仓库Id */
@Excel(name = "仓库Id")
private Long warehouseId;
/** 清关方式:1、保税;2、直邮;3、个人 */
@Excel(name = "清关方式:1、保税;2、直邮;3、个人")
private Integer mode;
/** 用户id */
@Excel(name = "用户id")
private Long userId;
/** 系统订单号 */
@Excel(name = "系统订单号")
private String sOrderNo;
/** 申报订单号(商城订单号) */
@Excel(name = "申报订单号", readConverterExp = "商=城订单号")
private String declareOrderNo;
/** 状态 */
@Excel(name = "状态")
private Integer status;
/** 快递公司 */
@Excel(name = "快递公司")
private String expressName;
/** 运单号 */
@Excel(name = "运单号")
private String shipOrderNumber;
/** 购买人注册号 */
@Excel(name = "购买人注册号")
private String buyerRegNo;
/** 购买人 */
@Excel(name = "购买人")
private String buyerName;
/** 购买人电话 */
@Excel(name = "购买人电话")
private String buyerTelephone;
/** 购买人身份证类型:1-身份证,2-其它,3-军官证,4-护照。 */
@Excel(name = "购买人身份证类型:1-身份证,2-其它,3-军官证,4-护照。")
private Integer buyerIdType;
/** 购买人身份证 */
@Excel(name = "购买人身份证")
private String buyerIdNumber;
/** 收件人 */
@Excel(name = "收件人")
private String consignee;
/** 收件人电话 */
@Excel(name = "收件人电话")
private String consigneeTelephone;
/** 收件人地址 */
@Excel(name = "收件人地址")
private String consigneeAddress;
/** 收件人省 */
@Excel(name = "收件人省")
private String consigneeProvince;
/** 收件人市 */
@Excel(name = "收件人市")
private String consigneeCity;
/** 收件人区 */
@Excel(name = "收件人区")
private String consigneeDistrict;
/** $column.columnComment */
@Excel(name = "收件人区")
private BigDecimal totalAmount;
/** 非现金抵扣金额 */
@Excel(name = "非现金抵扣金额")
private BigDecimal discountAmount;
/** 实际支付金额 */
@Excel(name = "实际支付金额")
private BigDecimal payTotalAmount;
/** 税费 */
@Excel(name = "税费")
private BigDecimal taxTotalAmount;
/** 商城税费 */
@Excel(name = "商城税费")
private BigDecimal shopTaxTotalAmount;
/** 运费 */
@Excel(name = "运费")
private BigDecimal freightAmount;
/** 总毛重 */
@Excel(name = "总毛重")
private BigDecimal totalGrossWeight;
/** 总净重 */
@Excel(name = "总净重")
private BigDecimal totalNetWeight;
/** 总数量 */
@Excel(name = "总数量")
private Integer totalQuantity;
/** 支付公司名称 */
@Excel(name = "支付公司名称")
private String payName;
/** 支付公司代码 */
@Excel(name = "支付公司代码")
private String payCode;
/** 支付时间 */
@JsonFormat(pattern = "yyyy-MM-dd")
@Excel(name = "支付时间", width = 30, dateFormat = "yyyy-MM-dd")
private Date payTime;
/** 支付单号 */
@Excel(name = "支付单号")
private String gatewayOrderId;
/** 发件人 */
@Excel(name = "发件人")
private String consignor;
/** 发件人地址 */
@Excel(name = "发件人地址")
private String consignorAddress;
/** 发件人电话 */
@Excel(name = "发件人电话")
private String consignorTelephone;
/** 发件人所在国 */
@Excel(name = "发件人所在国")
private String consignorCountry;
/** 发件人省 */
@Excel(name = "发件人省")
private String consignorProvince;
/** 发件人市 */
@Excel(name = "发件人市")
private String consignorCity;
/** $column.columnComment */
@Excel(name = "发件人市")
private String consignorDistrict;
/** 收款账户 */
@Excel(name = "收款账户")
private String receiptAccount;
/** 验核机构:1-银联 2-网联 3-其他 */
@Excel(name = "验核机构:1-银联 2-网联 3-其他")
private Integer verDept;
/** 支付类型:1-APP 2-PC 3-扫码 4-其他 */
@Excel(name = "支付类型:1-APP 2-PC 3-扫码 4-其他")
private Integer payType;
/** 支付原始请求 */
@Excel(name = "支付原始请求")
private String initalRequest;
/** 支付原始响应 */
@Excel(name = "支付原始响应")
private String initalResponse;
/** 接口信息返回结果 */
@Excel(name = "接口信息返回结果")
private String expressReturn;
/** 订单处理过程 */
@Excel(name = "订单处理过程")
private String process;
/** 添加时间 */
@JsonFormat(pattern = "yyyy-MM-dd")
@Excel(name = "添加时间", width = 30, dateFormat = "yyyy-MM-dd")
private Date addTime;
/** 清单编号 */
@Excel(name = "清单编号")
private String inventoryNo;
/** 批次号 */
@Excel(name = "批次号")
private String batchNumber;
/** 备案订单项信息 */
private List<CustomOrderItem> customOrderItemList;
public void setId(Long id)
{
this.id = id;
}
public Long getId()
{
return id;
}
public void setDeclarePortId(Long declarePortId)
{
this.declarePortId = declarePortId;
}
public Long getDeclarePortId()
{
return declarePortId;
}
public void setWarehouseId(Long warehouseId)
{
this.warehouseId = warehouseId;
}
public Long getWarehouseId()
{
return warehouseId;
}
public void setMode(Integer mode)
{
this.mode = mode;
}
public Integer getMode()
{
return mode;
}
public void setUserId(Long userId)
{
this.userId = userId;
}
public Long getUserId()
{
return userId;
}
public void setsOrderNo(String sOrderNo)
{
this.sOrderNo = sOrderNo;
}
public String getsOrderNo()
{
return sOrderNo;
}
public void setDeclareOrderNo(String declareOrderNo)
{
this.declareOrderNo = declareOrderNo;
}
public String getDeclareOrderNo()
{
return declareOrderNo;
}
public void setStatus(Integer status)
{
this.status = status;
}
public Integer getStatus()
{
return status;
}
public void setExpressName(String expressName)
{
this.expressName = expressName;
}
public String getExpressName()
{
return expressName;
}
public void setShipOrderNumber(String shipOrderNumber)
{
this.shipOrderNumber = shipOrderNumber;
}
public String getShipOrderNumber()
{
return shipOrderNumber;
}
public void setBuyerRegNo(String buyerRegNo)
{
this.buyerRegNo = buyerRegNo;
}
public String getBuyerRegNo()
{
return buyerRegNo;
}
public void setBuyerName(String buyerName)
{
this.buyerName = buyerName;
}
public String getBuyerName()
{
return buyerName;
}
public void setBuyerTelephone(String buyerTelephone)
{
this.buyerTelephone = buyerTelephone;
}
public String getBuyerTelephone()
{
return buyerTelephone;
}
public void setBuyerIdType(Integer buyerIdType)
{
this.buyerIdType = buyerIdType;
}
public Integer getBuyerIdType()
{
return buyerIdType;
}
public void setBuyerIdNumber(String buyerIdNumber)
{
this.buyerIdNumber = buyerIdNumber;
}
public String getBuyerIdNumber()
{
return buyerIdNumber;
}
public void setConsignee(String consignee)
{
this.consignee = consignee;
}
public String getConsignee()
{
return consignee;
}
public void setConsigneeTelephone(String consigneeTelephone)
{
this.consigneeTelephone = consigneeTelephone;
}
public String getConsigneeTelephone()
{
return consigneeTelephone;
}
public void setConsigneeAddress(String consigneeAddress)
{
this.consigneeAddress = consigneeAddress;
}
public String getConsigneeAddress()
{
return consigneeAddress;
}
public void setConsigneeProvince(String consigneeProvince)
{
this.consigneeProvince = consigneeProvince;
}
public String getConsigneeProvince()
{
return consigneeProvince;
}
public void setConsigneeCity(String consigneeCity)
{
this.consigneeCity = consigneeCity;
}
public String getConsigneeCity()
{
return consigneeCity;
}
public void setConsigneeDistrict(String consigneeDistrict)
{
this.consigneeDistrict = consigneeDistrict;
}
public String getConsigneeDistrict()
{
return consigneeDistrict;
}
public void setTotalAmount(BigDecimal totalAmount)
{
this.totalAmount = totalAmount;
}
public BigDecimal getTotalAmount()
{
return totalAmount;
}
public void setDiscountAmount(BigDecimal discountAmount)
{
this.discountAmount = discountAmount;
}
public BigDecimal getDiscountAmount()
{
return discountAmount;
}
public void setPayTotalAmount(BigDecimal payTotalAmount)
{
this.payTotalAmount = payTotalAmount;
}
public BigDecimal getPayTotalAmount()
{
return payTotalAmount;
}
public void setTaxTotalAmount(BigDecimal taxTotalAmount)
{
this.taxTotalAmount = taxTotalAmount;
}
public BigDecimal getTaxTotalAmount()
{
return taxTotalAmount;
}
public void setShopTaxTotalAmount(BigDecimal shopTaxTotalAmount)
{
this.shopTaxTotalAmount = shopTaxTotalAmount;
}
public BigDecimal getShopTaxTotalAmount()
{
return shopTaxTotalAmount;
}
public void setFreightAmount(BigDecimal freightAmount)
{
this.freightAmount = freightAmount;
}
public BigDecimal getFreightAmount()
{
return freightAmount;
}
public void setTotalGrossWeight(BigDecimal totalGrossWeight)
{
this.totalGrossWeight = totalGrossWeight;
}
public BigDecimal getTotalGrossWeight()
{
return totalGrossWeight;
}
public void setTotalNetWeight(BigDecimal totalNetWeight)
{
this.totalNetWeight = totalNetWeight;
}
public BigDecimal getTotalNetWeight()
{
return totalNetWeight;
}
public void setTotalQuantity(Integer totalQuantity)
{
this.totalQuantity = totalQuantity;
}
public Integer getTotalQuantity()
{
return totalQuantity;
}
public void setPayName(String payName)
{
this.payName = payName;
}
public String getPayName()
{
return payName;
}
public void setPayCode(String payCode)
{
this.payCode = payCode;
}
public String getPayCode()
{
return payCode;
}
public void setPayTime(Date payTime)
{
this.payTime = payTime;
}
public Date getPayTime()
{
return payTime;
}
public void setGatewayOrderId(String gatewayOrderId)
{
this.gatewayOrderId = gatewayOrderId;
}
public String getGatewayOrderId()
{
return gatewayOrderId;
}
public void setConsignor(String consignor)
{
this.consignor = consignor;
}
public String getConsignor()
{
return consignor;
}
public void setConsignorAddress(String consignorAddress)
{
this.consignorAddress = consignorAddress;
}
public String getConsignorAddress()
{
return consignorAddress;
}
public void setConsignorTelephone(String consignorTelephone)
{
this.consignorTelephone = consignorTelephone;
}
public String getConsignorTelephone()
{
return consignorTelephone;
}
public void setConsignorCountry(String consignorCountry)
{
this.consignorCountry = consignorCountry;
}
public String getConsignorCountry()
{
return consignorCountry;
}
public void setConsignorProvince(String consignorProvince)
{
this.consignorProvince = consignorProvince;
}
public String getConsignorProvince()
{
return consignorProvince;
}
public void setConsignorCity(String consignorCity)
{
this.consignorCity = consignorCity;
}
public String getConsignorCity()
{
return consignorCity;
}
public void setConsignorDistrict(String consignorDistrict)
{
this.consignorDistrict = consignorDistrict;
}
public String getConsignorDistrict()
{
return consignorDistrict;
}
public void setReceiptAccount(String receiptAccount)
{
this.receiptAccount = receiptAccount;
}
public String getReceiptAccount()
{
return receiptAccount;
}
public void setVerDept(Integer verDept)
{
this.verDept = verDept;
}
public Integer getVerDept()
{
return verDept;
}
public void setPayType(Integer payType)
{
this.payType = payType;
}
public Integer getPayType()
{
return payType;
}
public void setInitalRequest(String initalRequest)
{
this.initalRequest = initalRequest;
}
public String getInitalRequest()
{
return initalRequest;
}
public void setInitalResponse(String initalResponse)
{
this.initalResponse = initalResponse;
}
public String getInitalResponse()
{
return initalResponse;
}
public void setExpressReturn(String expressReturn)
{
this.expressReturn = expressReturn;
}
public String getExpressReturn()
{
return expressReturn;
}
public void setProcess(String process)
{
this.process = process;
}
public String getProcess()
{
return process;
}
public void setAddTime(Date addTime)
{
this.addTime = addTime;
}
public Date getAddTime()
{
return addTime;
}
public void setInventoryNo(String inventoryNo)
{
this.inventoryNo = inventoryNo;
}
public String getInventoryNo()
{
return inventoryNo;
}
public void setBatchNumber(String batchNumber)
{
this.batchNumber = batchNumber;
}
public String getBatchNumber()
{
return batchNumber;
}
public List<CustomOrderItem> getCustomOrderItemList()
{
return customOrderItemList;
}
public void setCustomOrderItemList(List<CustomOrderItem> customOrderItemList)
{
this.customOrderItemList = customOrderItemList;
}
@Override
public String toString() {
return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
.append("id", getId())
.append("declarePortId", getDeclarePortId())
.append("warehouseId", getWarehouseId())
.append("mode", getMode())
.append("userId", getUserId())
.append("sOrderNo", getsOrderNo())
.append("declareOrderNo", getDeclareOrderNo())
.append("status", getStatus())
.append("expressName", getExpressName())
.append("shipOrderNumber", getShipOrderNumber())
.append("buyerRegNo", getBuyerRegNo())
.append("buyerName", getBuyerName())
.append("buyerTelephone", getBuyerTelephone())
.append("buyerIdType", getBuyerIdType())
.append("buyerIdNumber", getBuyerIdNumber())
.append("consignee", getConsignee())
.append("consigneeTelephone", getConsigneeTelephone())
.append("consigneeAddress", getConsigneeAddress())
.append("consigneeProvince", getConsigneeProvince())
.append("consigneeCity", getConsigneeCity())
.append("consigneeDistrict", getConsigneeDistrict())
.append("totalAmount", getTotalAmount())
.append("discountAmount", getDiscountAmount())
.append("payTotalAmount", getPayTotalAmount())
.append("taxTotalAmount", getTaxTotalAmount())
.append("shopTaxTotalAmount", getShopTaxTotalAmount())
.append("freightAmount", getFreightAmount())
.append("totalGrossWeight", getTotalGrossWeight())
.append("totalNetWeight", getTotalNetWeight())
.append("totalQuantity", getTotalQuantity())
.append("payName", getPayName())
.append("payCode", getPayCode())
.append("payTime", getPayTime())
.append("gatewayOrderId", getGatewayOrderId())
.append("consignor", getConsignor())
.append("consignorAddress", getConsignorAddress())
.append("consignorTelephone", getConsignorTelephone())
.append("consignorCountry", getConsignorCountry())
.append("consignorProvince", getConsignorProvince())
.append("consignorCity", getConsignorCity())
.append("consignorDistrict", getConsignorDistrict())
.append("receiptAccount", getReceiptAccount())
.append("verDept", getVerDept())
.append("payType", getPayType())
.append("initalRequest", getInitalRequest())
.append("initalResponse", getInitalResponse())
.append("remark", getRemark())
.append("expressReturn", getExpressReturn())
.append("process", getProcess())
.append("addTime", getAddTime())
.append("inventoryNo", getInventoryNo())
.append("batchNumber", getBatchNumber())
.append("customOrderItemList", getCustomOrderItemList())
.toString();
}
}
@@ -0,0 +1,427 @@
package com.ruoyi.custom.domain;
import java.math.BigDecimal;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
/**
* 备案订单项对象 custom_order_item
*
* @author luqj
* @date 2021-10-23
*/
public class CustomOrderItem extends BaseEntity
{
private static final long serialVersionUID = 1L;
/** $column.columnComment */
private Long id;
/** $column.columnComment */
@Excel(name = "批次号")
private Long orderId;
/** 口岸Id */
@Excel(name = "口岸Id")
private Long declarePortId;
/** 仓库Id */
@Excel(name = "仓库Id")
private Long warehouseId;
/** 商品条形码 */
@Excel(name = "商品条形码")
private String barCode;
/** skucode */
@Excel(name = "skucode")
private String skuCode;
/** 数量 */
@Excel(name = "数量")
private Integer quantity;
/** 单价 */
@Excel(name = "单价")
private BigDecimal price;
/** 商城单价 */
@Excel(name = "商城单价")
private BigDecimal shopPrice;
/** 运费 */
@Excel(name = "运费")
private BigDecimal freight;
/** $column.columnComment */
@Excel(name = "运费")
private BigDecimal taxAmount;
/** 商品链接 */
@Excel(name = "商品链接")
private String itemLink;
/** 账(手)册商品序号 */
@Excel(name = "账(手)册商品序号")
private String bookNumber;
/** 商品货号 */
@Excel(name = "商品货号")
private String productCode;
/** 名称 */
@Excel(name = "名称")
private String name;
/** 品牌 */
@Excel(name = "品牌")
private String brand;
/** 规格型号 */
@Excel(name = "规格型号")
private String specificationModel;
/** 商品描述 */
@Excel(name = "商品描述")
private String description;
/** 数量单位 */
@Excel(name = "数量单位")
private String quantityUnit;
/** 生产国 */
@Excel(name = "生产国")
private String produceCountry;
/** 检验检疫编码 */
@Excel(name = "检验检疫编码")
private String inspectionAndQuarantineCode;
/** HS编码 */
@Excel(name = "HS编码")
private String hsCode;
/** 税率 */
@Excel(name = "税率")
private BigDecimal taxRate;
/** 申报数量(法定数量=申报数量*购买数量) */
@Excel(name = "申报数量", readConverterExp = "法=定数量=申报数量*购买数量")
private BigDecimal declaredCount;
/** 法定计量单位 */
@Excel(name = "法定计量单位")
private String legalMeteringUnit;
/** 第二申报数量(第二数量=第二申报数量*购买数量) */
@Excel(name = "第二申报数量", readConverterExp = "第=二数量=第二申报数量*购买数量")
private BigDecimal secondDeclaredCount;
/** 第二计量单位 */
@Excel(name = "第二计量单位")
private String secondMeteringUnit;
/** 毛重 */
@Excel(name = "毛重")
private BigDecimal grossWeight;
/** 净重 */
@Excel(name = "净重")
private BigDecimal netWeight;
public void setId(Long id)
{
this.id = id;
}
public Long getId()
{
return id;
}
public void setOrderId(Long orderId)
{
this.orderId = orderId;
}
public Long getOrderId()
{
return orderId;
}
public void setDeclarePortId(Long declarePortId)
{
this.declarePortId = declarePortId;
}
public Long getDeclarePortId()
{
return declarePortId;
}
public void setWarehouseId(Long warehouseId)
{
this.warehouseId = warehouseId;
}
public Long getWarehouseId()
{
return warehouseId;
}
public void setBarCode(String barCode)
{
this.barCode = barCode;
}
public String getBarCode()
{
return barCode;
}
public void setQuantity(Integer quantity)
{
this.quantity = quantity;
}
public String getSkuCode() {
return skuCode;
}
public void setSkuCode(String skuCode) {
this.skuCode = skuCode;
}
public Integer getQuantity()
{
return quantity;
}
public void setPrice(BigDecimal price)
{
this.price = price;
}
public BigDecimal getPrice()
{
return price;
}
public void setShopPrice(BigDecimal shopPrice)
{
this.shopPrice = shopPrice;
}
public BigDecimal getShopPrice()
{
return shopPrice;
}
public void setFreight(BigDecimal freight)
{
this.freight = freight;
}
public BigDecimal getFreight()
{
return freight;
}
public void setTaxAmount(BigDecimal taxAmount)
{
this.taxAmount = taxAmount;
}
public BigDecimal getTaxAmount()
{
return taxAmount;
}
public void setItemLink(String itemLink)
{
this.itemLink = itemLink;
}
public String getItemLink()
{
return itemLink;
}
public void setBookNumber(String bookNumber)
{
this.bookNumber = bookNumber;
}
public String getBookNumber()
{
return bookNumber;
}
public void setProductCode(String productCode)
{
this.productCode = productCode;
}
public String getProductCode()
{
return productCode;
}
public void setName(String name)
{
this.name = name;
}
public String getName()
{
return name;
}
public void setBrand(String brand)
{
this.brand = brand;
}
public String getBrand()
{
return brand;
}
public void setSpecificationModel(String specificationModel)
{
this.specificationModel = specificationModel;
}
public String getSpecificationModel()
{
return specificationModel;
}
public void setDescription(String description)
{
this.description = description;
}
public String getDescription()
{
return description;
}
public void setQuantityUnit(String quantityUnit)
{
this.quantityUnit = quantityUnit;
}
public String getQuantityUnit()
{
return quantityUnit;
}
public void setProduceCountry(String produceCountry)
{
this.produceCountry = produceCountry;
}
public String getProduceCountry()
{
return produceCountry;
}
public void setInspectionAndQuarantineCode(String inspectionAndQuarantineCode)
{
this.inspectionAndQuarantineCode = inspectionAndQuarantineCode;
}
public String getInspectionAndQuarantineCode()
{
return inspectionAndQuarantineCode;
}
public void setHsCode(String hsCode)
{
this.hsCode = hsCode;
}
public String getHsCode()
{
return hsCode;
}
public void setTaxRate(BigDecimal taxRate)
{
this.taxRate = taxRate;
}
public BigDecimal getTaxRate()
{
return taxRate;
}
public void setDeclaredCount(BigDecimal declaredCount)
{
this.declaredCount = declaredCount;
}
public BigDecimal getDeclaredCount()
{
return declaredCount;
}
public void setLegalMeteringUnit(String legalMeteringUnit)
{
this.legalMeteringUnit = legalMeteringUnit;
}
public String getLegalMeteringUnit()
{
return legalMeteringUnit;
}
public void setSecondDeclaredCount(BigDecimal secondDeclaredCount)
{
this.secondDeclaredCount = secondDeclaredCount;
}
public BigDecimal getSecondDeclaredCount()
{
return secondDeclaredCount;
}
public void setSecondMeteringUnit(String secondMeteringUnit)
{
this.secondMeteringUnit = secondMeteringUnit;
}
public String getSecondMeteringUnit()
{
return secondMeteringUnit;
}
public void setGrossWeight(BigDecimal grossWeight)
{
this.grossWeight = grossWeight;
}
public BigDecimal getGrossWeight()
{
return grossWeight;
}
public void setNetWeight(BigDecimal netWeight)
{
this.netWeight = netWeight;
}
public BigDecimal getNetWeight()
{
return netWeight;
}
@Override
public String toString() {
return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
.append("id", getId())
.append("orderId", getOrderId())
.append("declarePortId", getDeclarePortId())
.append("warehouseId", getWarehouseId())
.append("barCode", getBarCode())
.append("quantity", getQuantity())
.append("price", getPrice())
.append("shopPrice", getShopPrice())
.append("freight", getFreight())
.append("taxAmount", getTaxAmount())
.append("itemLink", getItemLink())
.append("bookNumber", getBookNumber())
.append("productCode", getProductCode())
.append("name", getName())
.append("brand", getBrand())
.append("specificationModel", getSpecificationModel())
.append("description", getDescription())
.append("quantityUnit", getQuantityUnit())
.append("produceCountry", getProduceCountry())
.append("inspectionAndQuarantineCode", getInspectionAndQuarantineCode())
.append("hsCode", getHsCode())
.append("taxRate", getTaxRate())
.append("declaredCount", getDeclaredCount())
.append("legalMeteringUnit", getLegalMeteringUnit())
.append("secondDeclaredCount", getSecondDeclaredCount())
.append("secondMeteringUnit", getSecondMeteringUnit())
.append("grossWeight", getGrossWeight())
.append("netWeight", getNetWeight())
.toString();
}
}
@@ -0,0 +1,402 @@
package com.ruoyi.custom.domain;
import java.math.BigDecimal;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
import java.io.Serializable;
import java.util.Date;
import com.baomidou.mybatisplus.annotation.TableName;
/**
* 备案订单项对象 custom_order_item
*
* @author luqj
* @date 2021-10-23
*/
@TableName(value = "custom_order_item")
public class CustomOrderItemPlus implements Serializable
{
private static final long serialVersionUID = 1L;
/** $column.columnComment */
private Long id;
/** $column.columnComment */
@Excel(name = "净重")
private Long orderId;
/** 口岸Id */
@Excel(name = "口岸Id")
private Long declarePortId;
/** 仓库Id */
@Excel(name = "仓库Id")
private Long warehouseId;
/** 商品条形码 */
@Excel(name = "商品条形码")
private String barCode;
/** 数量 */
@Excel(name = "数量")
private Integer quantity;
/** 单价 */
@Excel(name = "单价")
private BigDecimal price;
/** 商城单价 */
@Excel(name = "商城单价")
private BigDecimal shopPrice;
/** 运费 */
@Excel(name = "运费")
private BigDecimal freight;
/** $column.columnComment */
@Excel(name = "运费")
private BigDecimal taxAmount;
/** 商品链接 */
@Excel(name = "商品链接")
private String itemLink;
/** 账(手)册商品序号 */
@Excel(name = "账(手)册商品序号")
private String bookNumber;
/** 商品货号 */
@Excel(name = "商品货号")
private String productCode;
/** 名称 */
@Excel(name = "名称")
private String name;
/** 品牌 */
@Excel(name = "品牌")
private String brand;
/** 规格型号 */
@Excel(name = "规格型号")
private String specificationModel;
/** 商品描述 */
@Excel(name = "商品描述")
private String description;
/** 数量单位 */
@Excel(name = "数量单位")
private String quantityUnit;
/** 生产国 */
@Excel(name = "生产国")
private String produceCountry;
/** 检验检疫编码 */
@Excel(name = "检验检疫编码")
private String inspectionAndQuarantineCode;
/** HS编码 */
@Excel(name = "HS编码")
private String hsCode;
/** 税率 */
@Excel(name = "税率")
private BigDecimal taxRate;
/** 申报数量(法定数量=申报数量*购买数量) */
@Excel(name = "申报数量", readConverterExp = "法=定数量=申报数量*购买数量")
private BigDecimal declaredCount;
/** 法定计量单位 */
@Excel(name = "法定计量单位")
private String legalMeteringUnit;
/** 第二申报数量(第二数量=第二申报数量*购买数量) */
@Excel(name = "第二申报数量", readConverterExp = "第=二数量=第二申报数量*购买数量")
private BigDecimal secondDeclaredCount;
/** 第二计量单位 */
@Excel(name = "第二计量单位")
private String secondMeteringUnit;
/** 毛重 */
@Excel(name = "毛重")
private BigDecimal grossWeight;
/** 净重 */
@Excel(name = "净重")
private BigDecimal netWeight;
/** skucode */
@Excel(name = "skucode")
private String skuCode;
public void setId(Long id)
{
this.id = id;
}
public String getSkuCode() {
return skuCode;
}
public void setSkuCode(String skuCode) {
this.skuCode = skuCode;
}
public Long getId()
{
return id;
}
public void setOrderId(Long orderId)
{
this.orderId = orderId;
}
public Long getOrderId()
{
return orderId;
}
public void setDeclarePortId(Long declarePortId)
{
this.declarePortId = declarePortId;
}
public Long getDeclarePortId()
{
return declarePortId;
}
public void setWarehouseId(Long warehouseId)
{
this.warehouseId = warehouseId;
}
public Long getWarehouseId()
{
return warehouseId;
}
public void setBarCode(String barCode)
{
this.barCode = barCode;
}
public String getBarCode()
{
return barCode;
}
public void setQuantity(Integer quantity)
{
this.quantity = quantity;
}
public Integer getQuantity()
{
return quantity;
}
public void setPrice(BigDecimal price)
{
this.price = price;
}
public BigDecimal getPrice()
{
return price;
}
public void setShopPrice(BigDecimal shopPrice)
{
this.shopPrice = shopPrice;
}
public BigDecimal getShopPrice()
{
return shopPrice;
}
public void setFreight(BigDecimal freight)
{
this.freight = freight;
}
public BigDecimal getFreight()
{
return freight;
}
public void setTaxAmount(BigDecimal taxAmount)
{
this.taxAmount = taxAmount;
}
public BigDecimal getTaxAmount()
{
return taxAmount;
}
public void setItemLink(String itemLink)
{
this.itemLink = itemLink;
}
public String getItemLink()
{
return itemLink;
}
public void setBookNumber(String bookNumber)
{
this.bookNumber = bookNumber;
}
public String getBookNumber()
{
return bookNumber;
}
public void setProductCode(String productCode)
{
this.productCode = productCode;
}
public String getProductCode()
{
return productCode;
}
public void setName(String name)
{
this.name = name;
}
public String getName()
{
return name;
}
public void setBrand(String brand)
{
this.brand = brand;
}
public String getBrand()
{
return brand;
}
public void setSpecificationModel(String specificationModel)
{
this.specificationModel = specificationModel;
}
public String getSpecificationModel()
{
return specificationModel;
}
public void setDescription(String description)
{
this.description = description;
}
public String getDescription()
{
return description;
}
public void setQuantityUnit(String quantityUnit)
{
this.quantityUnit = quantityUnit;
}
public String getQuantityUnit()
{
return quantityUnit;
}
public void setProduceCountry(String produceCountry)
{
this.produceCountry = produceCountry;
}
public String getProduceCountry()
{
return produceCountry;
}
public void setInspectionAndQuarantineCode(String inspectionAndQuarantineCode)
{
this.inspectionAndQuarantineCode = inspectionAndQuarantineCode;
}
public String getInspectionAndQuarantineCode()
{
return inspectionAndQuarantineCode;
}
public void setHsCode(String hsCode)
{
this.hsCode = hsCode;
}
public String getHsCode()
{
return hsCode;
}
public void setTaxRate(BigDecimal taxRate)
{
this.taxRate = taxRate;
}
public BigDecimal getTaxRate()
{
return taxRate;
}
public void setDeclaredCount(BigDecimal declaredCount)
{
this.declaredCount = declaredCount;
}
public BigDecimal getDeclaredCount()
{
return declaredCount;
}
public void setLegalMeteringUnit(String legalMeteringUnit)
{
this.legalMeteringUnit = legalMeteringUnit;
}
public String getLegalMeteringUnit()
{
return legalMeteringUnit;
}
public void setSecondDeclaredCount(BigDecimal secondDeclaredCount)
{
this.secondDeclaredCount = secondDeclaredCount;
}
public BigDecimal getSecondDeclaredCount()
{
return secondDeclaredCount;
}
public void setSecondMeteringUnit(String secondMeteringUnit)
{
this.secondMeteringUnit = secondMeteringUnit;
}
public String getSecondMeteringUnit()
{
return secondMeteringUnit;
}
public void setGrossWeight(BigDecimal grossWeight)
{
this.grossWeight = grossWeight;
}
public BigDecimal getGrossWeight()
{
return grossWeight;
}
public void setNetWeight(BigDecimal netWeight)
{
this.netWeight = netWeight;
}
public BigDecimal getNetWeight()
{
return netWeight;
}
@Override
public String toString() {
return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
.append("id", getId())
.append("orderId", getOrderId())
.append("declarePortId", getDeclarePortId())
.append("warehouseId", getWarehouseId())
.append("barCode", getBarCode())
.append("quantity", getQuantity())
.append("price", getPrice())
.append("shopPrice", getShopPrice())
.append("freight", getFreight())
.append("taxAmount", getTaxAmount())
.append("itemLink", getItemLink())
.append("bookNumber", getBookNumber())
.append("productCode", getProductCode())
.append("name", getName())
.append("brand", getBrand())
.append("specificationModel", getSpecificationModel())
.append("description", getDescription())
.append("quantityUnit", getQuantityUnit())
.append("produceCountry", getProduceCountry())
.append("inspectionAndQuarantineCode", getInspectionAndQuarantineCode())
.append("hsCode", getHsCode())
.append("taxRate", getTaxRate())
.append("declaredCount", getDeclaredCount())
.append("legalMeteringUnit", getLegalMeteringUnit())
.append("secondDeclaredCount", getSecondDeclaredCount())
.append("secondMeteringUnit", getSecondMeteringUnit())
.append("grossWeight", getGrossWeight())
.append("netWeight", getNetWeight())
.toString();
}
}
@@ -0,0 +1,722 @@
package com.ruoyi.custom.domain;
import java.math.BigDecimal;
import java.util.List;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
import java.io.Serializable;
import java.util.Date;
import com.baomidou.mybatisplus.annotation.TableName;
/**
* 备案订单对象 custom_order
*
* @author luqj
* @date 2021-10-23
*/
@TableName(value = "custom_order")
public class CustomOrderPlus implements Serializable
{
private static final long serialVersionUID = 1L;
/** 主键 */
private Long id;
/** 口岸Id */
@Excel(name = "口岸Id")
private Long declarePortId;
/** 仓库Id */
@Excel(name = "仓库Id")
private Long warehouseId;
/** 清关方式:1、保税;2、直邮;3、个人 */
@Excel(name = "清关方式:1、保税;2、直邮;3、个人")
private Integer mode;
/** 用户id */
@Excel(name = "用户id")
private Long userId;
/** 系统订单号 */
@Excel(name = "系统订单号")
private String sOrderNo;
/** 申报订单号(商城订单号) */
@Excel(name = "申报订单号", readConverterExp = "商=城订单号")
private String declareOrderNo;
/** 状态 */
@Excel(name = "状态")
private Integer status;
/** 快递公司 */
@Excel(name = "快递公司")
private String expressName;
/** 运单号 */
@Excel(name = "运单号")
private String shipOrderNumber;
/** 购买人注册号 */
@Excel(name = "购买人注册号")
private String buyerRegNo;
/** 购买人 */
@Excel(name = "购买人")
private String buyerName;
/** 购买人电话 */
@Excel(name = "购买人电话")
private String buyerTelephone;
/** 购买人身份证类型:1-身份证,2-其它,3-军官证,4-护照。 */
@Excel(name = "购买人身份证类型:1-身份证,2-其它,3-军官证,4-护照。")
private Integer buyerIdType;
/** 购买人身份证 */
@Excel(name = "购买人身份证")
private String buyerIdNumber;
/** 收件人 */
@Excel(name = "收件人")
private String consignee;
/** 收件人电话 */
@Excel(name = "收件人电话")
private String consigneeTelephone;
/** 收件人地址 */
@Excel(name = "收件人地址")
private String consigneeAddress;
/** 收件人省 */
@Excel(name = "收件人省")
private String consigneeProvince;
/** 收件人市 */
@Excel(name = "收件人市")
private String consigneeCity;
/** 收件人区 */
@Excel(name = "收件人区")
private String consigneeDistrict;
/** $column.columnComment */
@Excel(name = "收件人区")
private BigDecimal totalAmount;
/** 非现金抵扣金额 */
@Excel(name = "非现金抵扣金额")
private BigDecimal discountAmount;
/** 实际支付金额 */
@Excel(name = "实际支付金额")
private BigDecimal payTotalAmount;
/** 税费 */
@Excel(name = "税费")
private BigDecimal taxTotalAmount;
/** 商城税费 */
@Excel(name = "商城税费")
private BigDecimal shopTaxTotalAmount;
/** 运费 */
@Excel(name = "运费")
private BigDecimal freightAmount;
/** 总毛重 */
@Excel(name = "总毛重")
private BigDecimal totalGrossWeight;
/** 总净重 */
@Excel(name = "总净重")
private BigDecimal totalNetWeight;
/** 总数量 */
@Excel(name = "总数量")
private Integer totalQuantity;
/** 支付公司名称 */
@Excel(name = "支付公司名称")
private String payName;
/** 支付公司代码 */
@Excel(name = "支付公司代码")
private String payCode;
/** 支付时间 */
@JsonFormat(pattern = "yyyy-MM-dd")
@Excel(name = "支付时间", width = 30, dateFormat = "yyyy-MM-dd")
private Date payTime;
/** 支付单号 */
@Excel(name = "支付单号")
private String gatewayOrderId;
/** 发件人 */
@Excel(name = "发件人")
private String consignor;
/** 发件人地址 */
@Excel(name = "发件人地址")
private String consignorAddress;
/** 发件人电话 */
@Excel(name = "发件人电话")
private String consignorTelephone;
/** 发件人所在国 */
@Excel(name = "发件人所在国")
private String consignorCountry;
/** 发件人省 */
@Excel(name = "发件人省")
private String consignorProvince;
/** 发件人市 */
@Excel(name = "发件人市")
private String consignorCity;
/** $column.columnComment */
@Excel(name = "发件人市")
private String consignorDistrict;
/** 收款账户 */
@Excel(name = "收款账户")
private String receiptAccount;
/** 验核机构:1-银联 2-网联 3-其他 */
@Excel(name = "验核机构:1-银联 2-网联 3-其他")
private Integer verDept;
/** 支付类型:1-APP 2-PC 3-扫码 4-其他 */
@Excel(name = "支付类型:1-APP 2-PC 3-扫码 4-其他")
private Integer payType;
/** 支付原始请求 */
@Excel(name = "支付原始请求")
private String initalRequest;
/** 支付原始响应 */
@Excel(name = "支付原始响应")
private String initalResponse;
/** 备注 */
@Excel(name = "备注")
private String remark;
/** 接口信息返回结果 */
@Excel(name = "接口信息返回结果")
private String expressReturn;
/** 订单处理过程 */
@Excel(name = "订单处理过程")
private String process;
/** 添加时间 */
@JsonFormat(pattern = "yyyy-MM-dd")
@Excel(name = "添加时间", width = 30, dateFormat = "yyyy-MM-dd")
private Date addTime;
/** 清单编号 */
@Excel(name = "清单编号")
private String inventoryNo;
/** 批次号 */
@Excel(name = "批次号")
private String batchNumber;
/** 备案订单项信息 */
private List<CustomOrderItem> customOrderItemList;
public void setId(Long id)
{
this.id = id;
}
public Long getId()
{
return id;
}
public void setDeclarePortId(Long declarePortId)
{
this.declarePortId = declarePortId;
}
public Long getDeclarePortId()
{
return declarePortId;
}
public void setWarehouseId(Long warehouseId)
{
this.warehouseId = warehouseId;
}
public Long getWarehouseId()
{
return warehouseId;
}
public void setMode(Integer mode)
{
this.mode = mode;
}
public Integer getMode()
{
return mode;
}
public void setUserId(Long userId)
{
this.userId = userId;
}
public Long getUserId()
{
return userId;
}
public void setsOrderNo(String sOrderNo)
{
this.sOrderNo = sOrderNo;
}
public String getsOrderNo()
{
return sOrderNo;
}
public void setDeclareOrderNo(String declareOrderNo)
{
this.declareOrderNo = declareOrderNo;
}
public String getDeclareOrderNo()
{
return declareOrderNo;
}
public void setStatus(Integer status)
{
this.status = status;
}
public Integer getStatus()
{
return status;
}
public void setExpressName(String expressName)
{
this.expressName = expressName;
}
public String getExpressName()
{
return expressName;
}
public void setShipOrderNumber(String shipOrderNumber)
{
this.shipOrderNumber = shipOrderNumber;
}
public String getShipOrderNumber()
{
return shipOrderNumber;
}
public void setBuyerRegNo(String buyerRegNo)
{
this.buyerRegNo = buyerRegNo;
}
public String getBuyerRegNo()
{
return buyerRegNo;
}
public void setBuyerName(String buyerName)
{
this.buyerName = buyerName;
}
public String getBuyerName()
{
return buyerName;
}
public void setBuyerTelephone(String buyerTelephone)
{
this.buyerTelephone = buyerTelephone;
}
public String getBuyerTelephone()
{
return buyerTelephone;
}
public void setBuyerIdType(Integer buyerIdType)
{
this.buyerIdType = buyerIdType;
}
public Integer getBuyerIdType()
{
return buyerIdType;
}
public void setBuyerIdNumber(String buyerIdNumber)
{
this.buyerIdNumber = buyerIdNumber;
}
public String getBuyerIdNumber()
{
return buyerIdNumber;
}
public void setConsignee(String consignee)
{
this.consignee = consignee;
}
public String getConsignee()
{
return consignee;
}
public void setConsigneeTelephone(String consigneeTelephone)
{
this.consigneeTelephone = consigneeTelephone;
}
public String getConsigneeTelephone()
{
return consigneeTelephone;
}
public void setConsigneeAddress(String consigneeAddress)
{
this.consigneeAddress = consigneeAddress;
}
public String getConsigneeAddress()
{
return consigneeAddress;
}
public void setConsigneeProvince(String consigneeProvince)
{
this.consigneeProvince = consigneeProvince;
}
public String getConsigneeProvince()
{
return consigneeProvince;
}
public void setConsigneeCity(String consigneeCity)
{
this.consigneeCity = consigneeCity;
}
public String getConsigneeCity()
{
return consigneeCity;
}
public void setConsigneeDistrict(String consigneeDistrict)
{
this.consigneeDistrict = consigneeDistrict;
}
public String getConsigneeDistrict()
{
return consigneeDistrict;
}
public void setTotalAmount(BigDecimal totalAmount)
{
this.totalAmount = totalAmount;
}
public BigDecimal getTotalAmount()
{
return totalAmount;
}
public void setDiscountAmount(BigDecimal discountAmount)
{
this.discountAmount = discountAmount;
}
public BigDecimal getDiscountAmount()
{
return discountAmount;
}
public void setPayTotalAmount(BigDecimal payTotalAmount)
{
this.payTotalAmount = payTotalAmount;
}
public BigDecimal getPayTotalAmount()
{
return payTotalAmount;
}
public void setTaxTotalAmount(BigDecimal taxTotalAmount)
{
this.taxTotalAmount = taxTotalAmount;
}
public BigDecimal getTaxTotalAmount()
{
return taxTotalAmount;
}
public void setShopTaxTotalAmount(BigDecimal shopTaxTotalAmount)
{
this.shopTaxTotalAmount = shopTaxTotalAmount;
}
public BigDecimal getShopTaxTotalAmount()
{
return shopTaxTotalAmount;
}
public void setFreightAmount(BigDecimal freightAmount)
{
this.freightAmount = freightAmount;
}
public BigDecimal getFreightAmount()
{
return freightAmount;
}
public void setTotalGrossWeight(BigDecimal totalGrossWeight)
{
this.totalGrossWeight = totalGrossWeight;
}
public BigDecimal getTotalGrossWeight()
{
return totalGrossWeight;
}
public void setTotalNetWeight(BigDecimal totalNetWeight)
{
this.totalNetWeight = totalNetWeight;
}
public BigDecimal getTotalNetWeight()
{
return totalNetWeight;
}
public void setTotalQuantity(Integer totalQuantity)
{
this.totalQuantity = totalQuantity;
}
public Integer getTotalQuantity()
{
return totalQuantity;
}
public void setPayName(String payName)
{
this.payName = payName;
}
public String getPayName()
{
return payName;
}
public void setPayCode(String payCode)
{
this.payCode = payCode;
}
public String getPayCode()
{
return payCode;
}
public void setPayTime(Date payTime)
{
this.payTime = payTime;
}
public Date getPayTime()
{
return payTime;
}
public void setGatewayOrderId(String gatewayOrderId)
{
this.gatewayOrderId = gatewayOrderId;
}
public String getGatewayOrderId()
{
return gatewayOrderId;
}
public void setConsignor(String consignor)
{
this.consignor = consignor;
}
public String getConsignor()
{
return consignor;
}
public void setConsignorAddress(String consignorAddress)
{
this.consignorAddress = consignorAddress;
}
public String getConsignorAddress()
{
return consignorAddress;
}
public void setConsignorTelephone(String consignorTelephone)
{
this.consignorTelephone = consignorTelephone;
}
public String getConsignorTelephone()
{
return consignorTelephone;
}
public void setConsignorCountry(String consignorCountry)
{
this.consignorCountry = consignorCountry;
}
public String getConsignorCountry()
{
return consignorCountry;
}
public void setConsignorProvince(String consignorProvince)
{
this.consignorProvince = consignorProvince;
}
public String getConsignorProvince()
{
return consignorProvince;
}
public void setConsignorCity(String consignorCity)
{
this.consignorCity = consignorCity;
}
public String getConsignorCity()
{
return consignorCity;
}
public void setConsignorDistrict(String consignorDistrict)
{
this.consignorDistrict = consignorDistrict;
}
public String getConsignorDistrict()
{
return consignorDistrict;
}
public void setReceiptAccount(String receiptAccount)
{
this.receiptAccount = receiptAccount;
}
public String getReceiptAccount()
{
return receiptAccount;
}
public void setVerDept(Integer verDept)
{
this.verDept = verDept;
}
public Integer getVerDept()
{
return verDept;
}
public void setPayType(Integer payType)
{
this.payType = payType;
}
public Integer getPayType()
{
return payType;
}
public void setInitalRequest(String initalRequest)
{
this.initalRequest = initalRequest;
}
public String getInitalRequest()
{
return initalRequest;
}
public void setInitalResponse(String initalResponse)
{
this.initalResponse = initalResponse;
}
public String getInitalResponse()
{
return initalResponse;
}
public void setRemark(String remark)
{
this.remark = remark;
}
public String getRemark()
{
return remark;
}
public void setExpressReturn(String expressReturn)
{
this.expressReturn = expressReturn;
}
public String getExpressReturn()
{
return expressReturn;
}
public void setProcess(String process)
{
this.process = process;
}
public String getProcess()
{
return process;
}
public void setAddTime(Date addTime)
{
this.addTime = addTime;
}
public Date getAddTime()
{
return addTime;
}
public void setInventoryNo(String inventoryNo)
{
this.inventoryNo = inventoryNo;
}
public String getInventoryNo()
{
return inventoryNo;
}
public void setBatchNumber(String batchNumber)
{
this.batchNumber = batchNumber;
}
public String getBatchNumber()
{
return batchNumber;
}
public List<CustomOrderItem> getCustomOrderItemList()
{
return customOrderItemList;
}
public void setCustomOrderItemList(List<CustomOrderItem> customOrderItemList)
{
this.customOrderItemList = customOrderItemList;
}
@Override
public String toString() {
return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
.append("id", getId())
.append("declarePortId", getDeclarePortId())
.append("warehouseId", getWarehouseId())
.append("mode", getMode())
.append("userId", getUserId())
.append("sOrderNo", getsOrderNo())
.append("declareOrderNo", getDeclareOrderNo())
.append("status", getStatus())
.append("expressName", getExpressName())
.append("shipOrderNumber", getShipOrderNumber())
.append("buyerRegNo", getBuyerRegNo())
.append("buyerName", getBuyerName())
.append("buyerTelephone", getBuyerTelephone())
.append("buyerIdType", getBuyerIdType())
.append("buyerIdNumber", getBuyerIdNumber())
.append("consignee", getConsignee())
.append("consigneeTelephone", getConsigneeTelephone())
.append("consigneeAddress", getConsigneeAddress())
.append("consigneeProvince", getConsigneeProvince())
.append("consigneeCity", getConsigneeCity())
.append("consigneeDistrict", getConsigneeDistrict())
.append("totalAmount", getTotalAmount())
.append("discountAmount", getDiscountAmount())
.append("payTotalAmount", getPayTotalAmount())
.append("taxTotalAmount", getTaxTotalAmount())
.append("shopTaxTotalAmount", getShopTaxTotalAmount())
.append("freightAmount", getFreightAmount())
.append("totalGrossWeight", getTotalGrossWeight())
.append("totalNetWeight", getTotalNetWeight())
.append("totalQuantity", getTotalQuantity())
.append("payName", getPayName())
.append("payCode", getPayCode())
.append("payTime", getPayTime())
.append("gatewayOrderId", getGatewayOrderId())
.append("consignor", getConsignor())
.append("consignorAddress", getConsignorAddress())
.append("consignorTelephone", getConsignorTelephone())
.append("consignorCountry", getConsignorCountry())
.append("consignorProvince", getConsignorProvince())
.append("consignorCity", getConsignorCity())
.append("consignorDistrict", getConsignorDistrict())
.append("receiptAccount", getReceiptAccount())
.append("verDept", getVerDept())
.append("payType", getPayType())
.append("initalRequest", getInitalRequest())
.append("initalResponse", getInitalResponse())
.append("remark", getRemark())
.append("expressReturn", getExpressReturn())
.append("process", getProcess())
.append("addTime", getAddTime())
.append("inventoryNo", getInventoryNo())
.append("batchNumber", getBatchNumber())
.append("customOrderItemList", getCustomOrderItemList())
.toString();
}
}
@@ -0,0 +1,141 @@
package com.ruoyi.custom.domain;
import java.math.BigDecimal;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
import java.io.Serializable;
/**
* 行邮税号对象 custom_parcel_number
*
* @author luqj
* @date 2021-10-23
*/
public class CustomParcelNumber extends BaseEntity
{
private static final long serialVersionUID = 1L;
/** $column.columnComment */
private Long id;
/** 行邮税号 */
@Excel(name = "行邮税号")
private String parcelNumber;
/** 品名及规格 */
@Excel(name = "品名及规格")
private String name;
/** 单位 */
@Excel(name = "单位")
private String unit;
/** 完税价格 */
@Excel(name = "完税价格")
private BigDecimal price;
/** 税率 */
@Excel(name = "税率")
private BigDecimal taxRate;
/** 税额 */
@Excel(name = "税额")
private BigDecimal taxAmount;
/** 添加时间 */
@JsonFormat(pattern = "yyyy-MM-dd")
@Excel(name = "添加时间", width = 30, dateFormat = "yyyy-MM-dd")
private Date addTime;
public void setId(Long id)
{
this.id = id;
}
public Long getId()
{
return id;
}
public void setParcelNumber(String parcelNumber)
{
this.parcelNumber = parcelNumber;
}
public String getParcelNumber()
{
return parcelNumber;
}
public void setName(String name)
{
this.name = name;
}
public String getName()
{
return name;
}
public void setUnit(String unit)
{
this.unit = unit;
}
public String getUnit()
{
return unit;
}
public void setPrice(BigDecimal price)
{
this.price = price;
}
public BigDecimal getPrice()
{
return price;
}
public void setTaxRate(BigDecimal taxRate)
{
this.taxRate = taxRate;
}
public BigDecimal getTaxRate()
{
return taxRate;
}
public void setTaxAmount(BigDecimal taxAmount)
{
this.taxAmount = taxAmount;
}
public BigDecimal getTaxAmount()
{
return taxAmount;
}
public void setAddTime(Date addTime)
{
this.addTime = addTime;
}
public Date getAddTime()
{
return addTime;
}
@Override
public String toString() {
return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
.append("id", getId())
.append("parcelNumber", getParcelNumber())
.append("name", getName())
.append("unit", getUnit())
.append("price", getPrice())
.append("taxRate", getTaxRate())
.append("taxAmount", getTaxAmount())
.append("remark", getRemark())
.append("addTime", getAddTime())
.append("updateTime", getUpdateTime())
.toString();
}
}
@@ -0,0 +1,159 @@
package com.ruoyi.custom.domain;
import java.math.BigDecimal;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
import java.io.Serializable;
import java.util.Date;
import com.baomidou.mybatisplus.annotation.TableName;
/**
* 行邮税号对象 custom_parcel_number
*
* @author luqj
* @date 2021-10-23
*/
@TableName(value = "custom_parcel_number")
public class CustomParcelNumberPlus implements Serializable
{
private static final long serialVersionUID = 1L;
/** $column.columnComment */
private Long id;
/** 行邮税号 */
@Excel(name = "行邮税号")
private String parcelNumber;
/** 品名及规格 */
@Excel(name = "品名及规格")
private String name;
/** 单位 */
@Excel(name = "单位")
private String unit;
/** 完税价格 */
@Excel(name = "完税价格")
private BigDecimal price;
/** 税率 */
@Excel(name = "税率")
private BigDecimal taxRate;
/** 税额 */
@Excel(name = "税额")
private BigDecimal taxAmount;
/** 备注 */
@Excel(name = "备注")
private String remark;
/** 添加时间 */
@JsonFormat(pattern = "yyyy-MM-dd")
@Excel(name = "添加时间", width = 30, dateFormat = "yyyy-MM-dd")
private Date addTime;
/** 更新时间 */
private Date updateTime;
public void setId(Long id)
{
this.id = id;
}
public Long getId()
{
return id;
}
public void setParcelNumber(String parcelNumber)
{
this.parcelNumber = parcelNumber;
}
public String getParcelNumber()
{
return parcelNumber;
}
public void setName(String name)
{
this.name = name;
}
public String getName()
{
return name;
}
public void setUnit(String unit)
{
this.unit = unit;
}
public String getUnit()
{
return unit;
}
public void setPrice(BigDecimal price)
{
this.price = price;
}
public BigDecimal getPrice()
{
return price;
}
public void setTaxRate(BigDecimal taxRate)
{
this.taxRate = taxRate;
}
public BigDecimal getTaxRate()
{
return taxRate;
}
public void setTaxAmount(BigDecimal taxAmount)
{
this.taxAmount = taxAmount;
}
public BigDecimal getTaxAmount()
{
return taxAmount;
}
public void setRemark(String remark)
{
this.remark = remark;
}
public String getRemark()
{
return remark;
}
public void setAddTime(Date addTime)
{
this.addTime = addTime;
}
public Date getAddTime()
{
return addTime;
}
public void setUpdateTime(Date updateTime)
{
this.updateTime = updateTime;
}
public Date getUpdateTime()
{
return updateTime;
}
@Override
public String toString() {
return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
.append("id", getId())
.append("parcelNumber", getParcelNumber())
.append("name", getName())
.append("unit", getUnit())
.append("price", getPrice())
.append("taxRate", getTaxRate())
.append("taxAmount", getTaxAmount())
.append("remark", getRemark())
.append("addTime", getAddTime())
.append("updateTime", getUpdateTime())
.toString();
}
}
@@ -0,0 +1,533 @@
package com.ruoyi.custom.domain;
import java.math.BigDecimal;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
import java.io.Serializable;
/**
* 商品备案对象 custom_product_record
*
* @author luqj
* @date 2021-10-23
*/
public class CustomProductRecord extends BaseEntity
{
private static final long serialVersionUID = 1L;
/** $column.columnComment */
private Long id;
/** sku编码 */
@Excel(name = "sku编码")
private String skuCode;
/** 商品条形码 */
@Excel(name = "商品条形码")
private String barCode;
/** 商品货号 */
@Excel(name = "商品货号")
private String productCode;
/** HS编码 */
@Excel(name = "HS编码")
private String hsCode;
/** 商品名称 */
@Excel(name = "商品名称")
private String name;
/** 品牌 */
@Excel(name = "品牌")
private String brand;
/** 商品描述 */
@Excel(name = "商品描述")
private String description;
/** 规格型号 */
@Excel(name = "规格型号")
private String specificationModel;
/** 生产国 */
@Excel(name = "生产国")
private String produceCountry;
/** 生产国代码 */
@Excel(name = "生产国代码")
private String produceCountryCode;
/** 数量单位 */
@Excel(name = "数量单位")
private String quantityUnit;
/** 数量单位代码 */
@Excel(name = "数量单位代码")
private String quantityUnitCode;
/** 申报数量(法定数量=申报数量*购买数量) */
@Excel(name = "申报数量", readConverterExp = "法=定数量=申报数量*购买数量")
private BigDecimal declaredCount;
/** 法定计量单位 */
@Excel(name = "法定计量单位")
private String legalMeteringUnit;
/** 法定计量单位代码 */
@Excel(name = "法定计量单位代码")
private String legalMeteringUnitCode;
/** 第二申报数量(第二数量=第二申报数量*购买数量) */
@Excel(name = "第二申报数量", readConverterExp = "第=二数量=第二申报数量*购买数量")
private BigDecimal secondDeclaredCount;
/** 第二计量单位 */
@Excel(name = "第二计量单位")
private String secondMeteringUnit;
/** 第二计量单位代码 */
@Excel(name = "第二计量单位代码")
private String secondMeteringUnitCode;
/** 单价 */
@Excel(name = "单价")
private BigDecimal price;
/** 毛重(KG) */
@Excel(name = "毛重", readConverterExp = "K=G")
private BigDecimal grossWeight;
/** 净重(KG) */
@Excel(name = "净重", readConverterExp = "K=G")
private BigDecimal netWeight;
/** 检验检疫编码 */
@Excel(name = "检验检疫编码")
private String inspectionAndQuarantineCode;
/** 用户id */
@Excel(name = "用户id")
private Long userId;
/** 仓库id */
@Excel(name = "仓库id")
private Long warehouseId;
/** 申报口岸Id */
@Excel(name = "申报口岸Id")
private Long declarePortId;
/** 税率 */
@Excel(name = "税率")
private BigDecimal taxRate;
/** 成分 */
@Excel(name = "成分")
private String ingredient;
/** 账(手)册商品序号 */
@Excel(name = "账(手)册商品序号")
private String bookNumber;
/** 1、保税;2、直邮;3、个人 */
@Excel(name = "1、保税;2、直邮;3、个人")
private Integer type;
/** 添加时间 */
@JsonFormat(pattern = "yyyy-MM-dd")
@Excel(name = "添加时间", width = 30, dateFormat = "yyyy-MM-dd")
private Date addTime;
/** 行邮税号 */
@Excel(name = "行邮税号")
private String parcelNumber;
/** 行邮税率 */
@Excel(name = "行邮税率")
private BigDecimal parcelNumberTaxRate;
/** 英文品名 */
@Excel(name = "英文品名")
private String englishName;
/** 完税价格 */
@Excel(name = "完税价格")
private BigDecimal dutyPrice;
/** 税额 */
@Excel(name = "税额")
private BigDecimal taxAmount;
public void setId(Long id)
{
this.id = id;
}
public Long getId()
{
return id;
}
public void setSkuCode(String skuCode)
{
this.skuCode = skuCode;
}
public String getSkuCode()
{
return skuCode;
}
public void setBarCode(String barCode)
{
this.barCode = barCode;
}
public String getBarCode()
{
return barCode;
}
public void setProductCode(String productCode)
{
this.productCode = productCode;
}
public String getProductCode()
{
return productCode;
}
public void setHsCode(String hsCode)
{
this.hsCode = hsCode;
}
public String getHsCode()
{
return hsCode;
}
public void setName(String name)
{
this.name = name;
}
public String getName()
{
return name;
}
public void setBrand(String brand)
{
this.brand = brand;
}
public String getBrand()
{
return brand;
}
public void setDescription(String description)
{
this.description = description;
}
public String getDescription()
{
return description;
}
public void setSpecificationModel(String specificationModel)
{
this.specificationModel = specificationModel;
}
public String getSpecificationModel()
{
return specificationModel;
}
public void setProduceCountry(String produceCountry)
{
this.produceCountry = produceCountry;
}
public String getProduceCountry()
{
return produceCountry;
}
public void setProduceCountryCode(String produceCountryCode)
{
this.produceCountryCode = produceCountryCode;
}
public String getProduceCountryCode()
{
return produceCountryCode;
}
public void setQuantityUnit(String quantityUnit)
{
this.quantityUnit = quantityUnit;
}
public String getQuantityUnit()
{
return quantityUnit;
}
public void setQuantityUnitCode(String quantityUnitCode)
{
this.quantityUnitCode = quantityUnitCode;
}
public String getQuantityUnitCode()
{
return quantityUnitCode;
}
public void setDeclaredCount(BigDecimal declaredCount)
{
this.declaredCount = declaredCount;
}
public BigDecimal getDeclaredCount()
{
return declaredCount;
}
public void setLegalMeteringUnit(String legalMeteringUnit)
{
this.legalMeteringUnit = legalMeteringUnit;
}
public String getLegalMeteringUnit()
{
return legalMeteringUnit;
}
public void setLegalMeteringUnitCode(String legalMeteringUnitCode)
{
this.legalMeteringUnitCode = legalMeteringUnitCode;
}
public String getLegalMeteringUnitCode()
{
return legalMeteringUnitCode;
}
public void setSecondDeclaredCount(BigDecimal secondDeclaredCount)
{
this.secondDeclaredCount = secondDeclaredCount;
}
public BigDecimal getSecondDeclaredCount()
{
return secondDeclaredCount;
}
public void setSecondMeteringUnit(String secondMeteringUnit)
{
this.secondMeteringUnit = secondMeteringUnit;
}
public String getSecondMeteringUnit()
{
return secondMeteringUnit;
}
public void setSecondMeteringUnitCode(String secondMeteringUnitCode)
{
this.secondMeteringUnitCode = secondMeteringUnitCode;
}
public String getSecondMeteringUnitCode()
{
return secondMeteringUnitCode;
}
public void setPrice(BigDecimal price)
{
this.price = price;
}
public BigDecimal getPrice()
{
return price;
}
public void setGrossWeight(BigDecimal grossWeight)
{
this.grossWeight = grossWeight;
}
public BigDecimal getGrossWeight()
{
return grossWeight;
}
public void setNetWeight(BigDecimal netWeight)
{
this.netWeight = netWeight;
}
public BigDecimal getNetWeight()
{
return netWeight;
}
public void setInspectionAndQuarantineCode(String inspectionAndQuarantineCode)
{
this.inspectionAndQuarantineCode = inspectionAndQuarantineCode;
}
public String getInspectionAndQuarantineCode()
{
return inspectionAndQuarantineCode;
}
public void setUserId(Long userId)
{
this.userId = userId;
}
public Long getUserId()
{
return userId;
}
public void setWarehouseId(Long warehouseId)
{
this.warehouseId = warehouseId;
}
public Long getWarehouseId()
{
return warehouseId;
}
public void setDeclarePortId(Long declarePortId)
{
this.declarePortId = declarePortId;
}
public Long getDeclarePortId()
{
return declarePortId;
}
public void setTaxRate(BigDecimal taxRate)
{
this.taxRate = taxRate;
}
public BigDecimal getTaxRate()
{
return taxRate;
}
public void setIngredient(String ingredient)
{
this.ingredient = ingredient;
}
public String getIngredient()
{
return ingredient;
}
public void setBookNumber(String bookNumber)
{
this.bookNumber = bookNumber;
}
public String getBookNumber()
{
return bookNumber;
}
public void setType(Integer type)
{
this.type = type;
}
public Integer getType()
{
return type;
}
public void setAddTime(Date addTime)
{
this.addTime = addTime;
}
public Date getAddTime()
{
return addTime;
}
public void setParcelNumber(String parcelNumber)
{
this.parcelNumber = parcelNumber;
}
public String getParcelNumber()
{
return parcelNumber;
}
public void setParcelNumberTaxRate(BigDecimal parcelNumberTaxRate)
{
this.parcelNumberTaxRate = parcelNumberTaxRate;
}
public BigDecimal getParcelNumberTaxRate()
{
return parcelNumberTaxRate;
}
public void setEnglishName(String englishName)
{
this.englishName = englishName;
}
public String getEnglishName()
{
return englishName;
}
public void setDutyPrice(BigDecimal dutyPrice)
{
this.dutyPrice = dutyPrice;
}
public BigDecimal getDutyPrice()
{
return dutyPrice;
}
public void setTaxAmount(BigDecimal taxAmount)
{
this.taxAmount = taxAmount;
}
public BigDecimal getTaxAmount()
{
return taxAmount;
}
@Override
public String toString() {
return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
.append("id", getId())
.append("skuCode", getSkuCode())
.append("barCode", getBarCode())
.append("productCode", getProductCode())
.append("hsCode", getHsCode())
.append("name", getName())
.append("brand", getBrand())
.append("description", getDescription())
.append("specificationModel", getSpecificationModel())
.append("produceCountry", getProduceCountry())
.append("produceCountryCode", getProduceCountryCode())
.append("quantityUnit", getQuantityUnit())
.append("quantityUnitCode", getQuantityUnitCode())
.append("declaredCount", getDeclaredCount())
.append("legalMeteringUnit", getLegalMeteringUnit())
.append("legalMeteringUnitCode", getLegalMeteringUnitCode())
.append("secondDeclaredCount", getSecondDeclaredCount())
.append("secondMeteringUnit", getSecondMeteringUnit())
.append("secondMeteringUnitCode", getSecondMeteringUnitCode())
.append("price", getPrice())
.append("grossWeight", getGrossWeight())
.append("netWeight", getNetWeight())
.append("remark", getRemark())
.append("inspectionAndQuarantineCode", getInspectionAndQuarantineCode())
.append("userId", getUserId())
.append("warehouseId", getWarehouseId())
.append("declarePortId", getDeclarePortId())
.append("taxRate", getTaxRate())
.append("ingredient", getIngredient())
.append("bookNumber", getBookNumber())
.append("type", getType())
.append("addTime", getAddTime())
.append("parcelNumber", getParcelNumber())
.append("parcelNumberTaxRate", getParcelNumberTaxRate())
.append("englishName", getEnglishName())
.append("dutyPrice", getDutyPrice())
.append("taxAmount", getTaxAmount())
.append("updateTime", getUpdateTime())
.toString();
}
}
@@ -0,0 +1,523 @@
package com.ruoyi.custom.domain;
import java.math.BigDecimal;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
import java.io.Serializable;
import java.util.Date;
import com.baomidou.mybatisplus.annotation.TableName;
/**
* 商品备案对象 custom_product_record
*
* @author luqj
* @date 2021-10-23
*/
@TableName(value = "custom_product_record")
public class CustomProductRecordPlus implements Serializable
{
private static final long serialVersionUID = 1L;
/** $column.columnComment */
private Long id;
/** sku编码 */
@Excel(name = "sku编码")
private String skuCode;
/** 商品条形码 */
@Excel(name = "商品条形码")
private String barCode;
/** 商品货号 */
@Excel(name = "商品货号")
private String productCode;
/** HS编码 */
@Excel(name = "HS编码")
private String hsCode;
/** 商品名称 */
@Excel(name = "商品名称")
private String name;
/** 品牌 */
@Excel(name = "品牌")
private String brand;
/** 商品描述 */
@Excel(name = "商品描述")
private String description;
/** 规格型号 */
@Excel(name = "规格型号")
private String specificationModel;
/** 生产国 */
@Excel(name = "生产国")
private String produceCountry;
/** 生产国代码 */
@Excel(name = "生产国代码")
private String produceCountryCode;
/** 数量单位 */
@Excel(name = "数量单位")
private String quantityUnit;
/** 数量单位代码 */
@Excel(name = "数量单位代码")
private String quantityUnitCode;
/** 申报数量(法定数量=申报数量*购买数量) */
@Excel(name = "申报数量", readConverterExp = "法=定数量=申报数量*购买数量")
private BigDecimal declaredCount;
/** 法定计量单位 */
@Excel(name = "法定计量单位")
private String legalMeteringUnit;
/** 法定计量单位代码 */
@Excel(name = "法定计量单位代码")
private String legalMeteringUnitCode;
/** 第二申报数量(第二数量=第二申报数量*购买数量) */
@Excel(name = "第二申报数量", readConverterExp = "第=二数量=第二申报数量*购买数量")
private BigDecimal secondDeclaredCount;
/** 第二计量单位 */
@Excel(name = "第二计量单位")
private String secondMeteringUnit;
/** 第二计量单位代码 */
@Excel(name = "第二计量单位代码")
private String secondMeteringUnitCode;
/** 单价 */
@Excel(name = "单价")
private BigDecimal price;
/** 毛重(KG) */
@Excel(name = "毛重", readConverterExp = "K=G")
private BigDecimal grossWeight;
/** 净重(KG) */
@Excel(name = "净重", readConverterExp = "K=G")
private BigDecimal netWeight;
/** 备注 */
@Excel(name = "备注")
private String remark;
/** 检验检疫编码 */
@Excel(name = "检验检疫编码")
private String inspectionAndQuarantineCode;
/** 用户id */
@Excel(name = "用户id")
private Long userId;
/** 仓库id */
@Excel(name = "仓库id")
private Long warehouseId;
/** 申报口岸Id */
@Excel(name = "申报口岸Id")
private Long declarePortId;
/** 税率 */
@Excel(name = "税率")
private BigDecimal taxRate;
/** 成分 */
@Excel(name = "成分")
private String ingredient;
/** 账(手)册商品序号 */
@Excel(name = "账(手)册商品序号")
private String bookNumber;
/** 1、保税;2、直邮;3、个人 */
@Excel(name = "1、保税;2、直邮;3、个人")
private Integer type;
/** 添加时间 */
@JsonFormat(pattern = "yyyy-MM-dd")
@Excel(name = "添加时间", width = 30, dateFormat = "yyyy-MM-dd")
private Date addTime;
/** 行邮税号 */
@Excel(name = "行邮税号")
private String parcelNumber;
/** 行邮税率 */
@Excel(name = "行邮税率")
private BigDecimal parcelNumberTaxRate;
/** 英文品名 */
@Excel(name = "英文品名")
private String englishName;
/** 完税价格 */
@Excel(name = "完税价格")
private BigDecimal dutyPrice;
/** 税额 */
@Excel(name = "税额")
private BigDecimal taxAmount;
/** 更新时间 */
private Date updateTime;
public void setId(Long id)
{
this.id = id;
}
public Long getId()
{
return id;
}
public void setSkuCode(String skuCode)
{
this.skuCode = skuCode;
}
public String getSkuCode()
{
return skuCode;
}
public void setBarCode(String barCode)
{
this.barCode = barCode;
}
public String getBarCode()
{
return barCode;
}
public void setProductCode(String productCode)
{
this.productCode = productCode;
}
public String getProductCode()
{
return productCode;
}
public void setHsCode(String hsCode)
{
this.hsCode = hsCode;
}
public String getHsCode()
{
return hsCode;
}
public void setName(String name)
{
this.name = name;
}
public String getName()
{
return name;
}
public void setBrand(String brand)
{
this.brand = brand;
}
public String getBrand()
{
return brand;
}
public void setDescription(String description)
{
this.description = description;
}
public String getDescription()
{
return description;
}
public void setSpecificationModel(String specificationModel)
{
this.specificationModel = specificationModel;
}
public String getSpecificationModel()
{
return specificationModel;
}
public void setProduceCountry(String produceCountry)
{
this.produceCountry = produceCountry;
}
public String getProduceCountry()
{
return produceCountry;
}
public void setProduceCountryCode(String produceCountryCode)
{
this.produceCountryCode = produceCountryCode;
}
public String getProduceCountryCode()
{
return produceCountryCode;
}
public void setQuantityUnit(String quantityUnit)
{
this.quantityUnit = quantityUnit;
}
public String getQuantityUnit()
{
return quantityUnit;
}
public void setQuantityUnitCode(String quantityUnitCode)
{
this.quantityUnitCode = quantityUnitCode;
}
public String getQuantityUnitCode()
{
return quantityUnitCode;
}
public void setDeclaredCount(BigDecimal declaredCount)
{
this.declaredCount = declaredCount;
}
public BigDecimal getDeclaredCount()
{
return declaredCount;
}
public void setLegalMeteringUnit(String legalMeteringUnit)
{
this.legalMeteringUnit = legalMeteringUnit;
}
public String getLegalMeteringUnit()
{
return legalMeteringUnit;
}
public void setLegalMeteringUnitCode(String legalMeteringUnitCode)
{
this.legalMeteringUnitCode = legalMeteringUnitCode;
}
public String getLegalMeteringUnitCode()
{
return legalMeteringUnitCode;
}
public void setSecondDeclaredCount(BigDecimal secondDeclaredCount)
{
this.secondDeclaredCount = secondDeclaredCount;
}
public BigDecimal getSecondDeclaredCount()
{
return secondDeclaredCount;
}
public void setSecondMeteringUnit(String secondMeteringUnit)
{
this.secondMeteringUnit = secondMeteringUnit;
}
public String getSecondMeteringUnit()
{
return secondMeteringUnit;
}
public void setSecondMeteringUnitCode(String secondMeteringUnitCode)
{
this.secondMeteringUnitCode = secondMeteringUnitCode;
}
public String getSecondMeteringUnitCode()
{
return secondMeteringUnitCode;
}
public void setPrice(BigDecimal price)
{
this.price = price;
}
public BigDecimal getPrice()
{
return price;
}
public void setGrossWeight(BigDecimal grossWeight)
{
this.grossWeight = grossWeight;
}
public BigDecimal getGrossWeight()
{
return grossWeight;
}
public void setNetWeight(BigDecimal netWeight)
{
this.netWeight = netWeight;
}
public BigDecimal getNetWeight()
{
return netWeight;
}
public void setRemark(String remark)
{
this.remark = remark;
}
public String getRemark()
{
return remark;
}
public void setInspectionAndQuarantineCode(String inspectionAndQuarantineCode)
{
this.inspectionAndQuarantineCode = inspectionAndQuarantineCode;
}
public String getInspectionAndQuarantineCode()
{
return inspectionAndQuarantineCode;
}
public void setUserId(Long userId)
{
this.userId = userId;
}
public Long getUserId()
{
return userId;
}
public void setWarehouseId(Long warehouseId)
{
this.warehouseId = warehouseId;
}
public Long getWarehouseId()
{
return warehouseId;
}
public void setDeclarePortId(Long declarePortId)
{
this.declarePortId = declarePortId;
}
public Long getDeclarePortId()
{
return declarePortId;
}
public void setTaxRate(BigDecimal taxRate)
{
this.taxRate = taxRate;
}
public BigDecimal getTaxRate()
{
return taxRate;
}
public void setIngredient(String ingredient)
{
this.ingredient = ingredient;
}
public String getIngredient()
{
return ingredient;
}
public void setBookNumber(String bookNumber)
{
this.bookNumber = bookNumber;
}
public String getBookNumber()
{
return bookNumber;
}
public void setType(Integer type)
{
this.type = type;
}
public Integer getType()
{
return type;
}
public void setAddTime(Date addTime)
{
this.addTime = addTime;
}
public Date getAddTime()
{
return addTime;
}
public void setParcelNumber(String parcelNumber)
{
this.parcelNumber = parcelNumber;
}
public String getParcelNumber()
{
return parcelNumber;
}
public void setParcelNumberTaxRate(BigDecimal parcelNumberTaxRate)
{
this.parcelNumberTaxRate = parcelNumberTaxRate;
}
public BigDecimal getParcelNumberTaxRate()
{
return parcelNumberTaxRate;
}
public void setEnglishName(String englishName)
{
this.englishName = englishName;
}
public String getEnglishName()
{
return englishName;
}
public void setDutyPrice(BigDecimal dutyPrice)
{
this.dutyPrice = dutyPrice;
}
public BigDecimal getDutyPrice()
{
return dutyPrice;
}
public void setTaxAmount(BigDecimal taxAmount)
{
this.taxAmount = taxAmount;
}
public BigDecimal getTaxAmount()
{
return taxAmount;
}
public void setUpdateTime(Date updateTime)
{
this.updateTime = updateTime;
}
public Date getUpdateTime()
{
return updateTime;
}
@Override
public String toString() {
return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
.append("id", getId())
.append("skuCode", getSkuCode())
.append("barCode", getBarCode())
.append("productCode", getProductCode())
.append("hsCode", getHsCode())
.append("name", getName())
.append("brand", getBrand())
.append("description", getDescription())
.append("specificationModel", getSpecificationModel())
.append("produceCountry", getProduceCountry())
.append("produceCountryCode", getProduceCountryCode())
.append("quantityUnit", getQuantityUnit())
.append("quantityUnitCode", getQuantityUnitCode())
.append("declaredCount", getDeclaredCount())
.append("legalMeteringUnit", getLegalMeteringUnit())
.append("legalMeteringUnitCode", getLegalMeteringUnitCode())
.append("secondDeclaredCount", getSecondDeclaredCount())
.append("secondMeteringUnit", getSecondMeteringUnit())
.append("secondMeteringUnitCode", getSecondMeteringUnitCode())
.append("price", getPrice())
.append("grossWeight", getGrossWeight())
.append("netWeight", getNetWeight())
.append("remark", getRemark())
.append("inspectionAndQuarantineCode", getInspectionAndQuarantineCode())
.append("userId", getUserId())
.append("warehouseId", getWarehouseId())
.append("declarePortId", getDeclarePortId())
.append("taxRate", getTaxRate())
.append("ingredient", getIngredient())
.append("bookNumber", getBookNumber())
.append("type", getType())
.append("addTime", getAddTime())
.append("parcelNumber", getParcelNumber())
.append("parcelNumberTaxRate", getParcelNumberTaxRate())
.append("englishName", getEnglishName())
.append("dutyPrice", getDutyPrice())
.append("taxAmount", getTaxAmount())
.append("updateTime", getUpdateTime())
.toString();
}
}
@@ -0,0 +1,90 @@
package com.ruoyi.custom.domain;
import com.ruoyi.common.core.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.TreeEntity;
import java.io.Serializable;
/**
* 国家行政区划代码对象 custom_region_code
*
* @author luqj
* @date 2021-10-23
*/
public class CustomRegionCode extends BaseEntity
{
private static final long serialVersionUID = 1L;
/** 主键 */
private Long id;
/** 编码 */
@Excel(name = "编码")
private String code;
/** 名称 */
@Excel(name = "名称")
private String name;
private Long parentId;
/** 等级 */
@Excel(name = "等级")
private Integer grade;
public Long getParentId() {
return parentId;
}
public void setParentId(Long parentId) {
this.parentId = parentId;
}
public void setId(Long id)
{
this.id = id;
}
public Long getId()
{
return id;
}
public void setCode(String code)
{
this.code = code;
}
public String getCode()
{
return code;
}
public void setName(String name)
{
this.name = name;
}
public String getName()
{
return name;
}
public void setGrade(Integer grade)
{
this.grade = grade;
}
public Integer getGrade()
{
return grade;
}
@Override
public String toString() {
return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
.append("id", getId())
.append("parentId", getParentId())
.append("code", getCode())
.append("name", getName())
.append("remark", getRemark())
.append("grade", getGrade())
.toString();
}
}
@@ -0,0 +1,104 @@
package com.ruoyi.custom.domain;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.TreeEntity;
import java.io.Serializable;
import java.util.Date;
import com.baomidou.mybatisplus.annotation.TableName;
/**
* 国家行政区划代码对象 custom_region_code
*
* @author luqj
* @date 2021-10-23
*/
@TableName(value = "custom_region_code")
public class CustomRegionCodePlus implements Serializable
{
private static final long serialVersionUID = 1L;
/** 主键 */
private Long id;
/** 父id */
@Excel(name = "父id")
private Long parentId;
/** 编码 */
@Excel(name = "编码")
private String code;
/** 名称 */
@Excel(name = "名称")
private String name;
/** 备注 */
@Excel(name = "备注")
private String remark;
/** 等级 */
@Excel(name = "等级")
private Integer grade;
public void setId(Long id)
{
this.id = id;
}
public Long getId()
{
return id;
}
public void setParentId(Long parentId)
{
this.parentId = parentId;
}
public Long getParentId()
{
return parentId;
}
public void setCode(String code)
{
this.code = code;
}
public String getCode()
{
return code;
}
public void setName(String name)
{
this.name = name;
}
public String getName()
{
return name;
}
public void setRemark(String remark)
{
this.remark = remark;
}
public String getRemark()
{
return remark;
}
public void setGrade(Integer grade)
{
this.grade = grade;
}
public Integer getGrade()
{
return grade;
}
@Override
public String toString() {
return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
.append("id", getId())
.append("parentId", getParentId())
.append("code", getCode())
.append("name", getName())
.append("remark", getRemark())
.append("grade", getGrade())
.toString();
}
}
@@ -0,0 +1,66 @@
package com.ruoyi.custom.domain;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
import java.io.Serializable;
/**
* 计量单位代码对象 custom_unit_code
*
* @author luqj
* @date 2021-10-23
*/
public class CustomUnitCode extends BaseEntity
{
private static final long serialVersionUID = 1L;
/** $column.columnComment */
private Long id;
/** 代码 */
@Excel(name = "代码")
private String code;
/** 名称 */
@Excel(name = "名称")
private String name;
public void setId(Long id)
{
this.id = id;
}
public Long getId()
{
return id;
}
public void setCode(String code)
{
this.code = code;
}
public String getCode()
{
return code;
}
public void setName(String name)
{
this.name = name;
}
public String getName()
{
return name;
}
@Override
public String toString() {
return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
.append("id", getId())
.append("code", getCode())
.append("name", getName())
.append("remark", getRemark())
.toString();
}
}
@@ -0,0 +1,78 @@
package com.ruoyi.custom.domain;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
import java.io.Serializable;
import java.util.Date;
import com.baomidou.mybatisplus.annotation.TableName;
/**
* 计量单位代码对象 custom_unit_code
*
* @author luqj
* @date 2021-10-23
*/
@TableName(value = "custom_unit_code")
public class CustomUnitCodePlus implements Serializable
{
private static final long serialVersionUID = 1L;
/** $column.columnComment */
private Long id;
/** 代码 */
@Excel(name = "代码")
private String code;
/** 名称 */
@Excel(name = "名称")
private String name;
/** 备注 */
@Excel(name = "备注")
private String remark;
public void setId(Long id)
{
this.id = id;
}
public Long getId()
{
return id;
}
public void setCode(String code)
{
this.code = code;
}
public String getCode()
{
return code;
}
public void setName(String name)
{
this.name = name;
}
public String getName()
{
return name;
}
public void setRemark(String remark)
{
this.remark = remark;
}
public String getRemark()
{
return remark;
}
@Override
public String toString() {
return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
.append("id", getId())
.append("code", getCode())
.append("name", getName())
.append("remark", getRemark())
.toString();
}
}
@@ -0,0 +1,205 @@
package com.ruoyi.custom.domain;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
import java.io.Serializable;
/**
* 仓库对象 custom_warehouse
*
* @author luqj
* @date 2021-10-23
*/
public class CustomWarehouse extends BaseEntity
{
private static final long serialVersionUID = 1L;
/** $column.columnComment */
private Long id;
/** 口岸Id */
@Excel(name = "口岸Id")
private Long declarePortId;
/** 名称 */
@Excel(name = "名称")
private String name;
/** $column.columnComment */
@Excel(name = "名称")
private String code;
/** 描述 */
@Excel(name = "描述")
private String describe;
/** 发件人 */
@Excel(name = "发件人")
private String consignor;
/** 发件人地址 */
@Excel(name = "发件人地址")
private String consignorAddress;
/** 发件人电话 */
@Excel(name = "发件人电话")
private String consignorTelephone;
/** 发件人所在国 */
@Excel(name = "发件人所在国")
private String consignorCountry;
/** $column.columnComment */
@Excel(name = "发件人所在国")
private String consignorProvince;
/** 发件人市 */
@Excel(name = "发件人市")
private String consignorCity;
/** 发件人区 */
@Excel(name = "发件人区")
private String consignorDistrict;
/** 类型:1、保税;2、直邮;3、个人 */
@Excel(name = "类型:1、保税;2、直邮;3、个人")
private Integer type;
public void setId(Long id)
{
this.id = id;
}
public Long getId()
{
return id;
}
public void setDeclarePortId(Long declarePortId)
{
this.declarePortId = declarePortId;
}
public Long getDeclarePortId()
{
return declarePortId;
}
public void setName(String name)
{
this.name = name;
}
public String getName()
{
return name;
}
public void setCode(String code)
{
this.code = code;
}
public String getCode()
{
return code;
}
public void setDescribe(String describe)
{
this.describe = describe;
}
public String getDescribe()
{
return describe;
}
public void setConsignor(String consignor)
{
this.consignor = consignor;
}
public String getConsignor()
{
return consignor;
}
public void setConsignorAddress(String consignorAddress)
{
this.consignorAddress = consignorAddress;
}
public String getConsignorAddress()
{
return consignorAddress;
}
public void setConsignorTelephone(String consignorTelephone)
{
this.consignorTelephone = consignorTelephone;
}
public String getConsignorTelephone()
{
return consignorTelephone;
}
public void setConsignorCountry(String consignorCountry)
{
this.consignorCountry = consignorCountry;
}
public String getConsignorCountry()
{
return consignorCountry;
}
public void setConsignorProvince(String consignorProvince)
{
this.consignorProvince = consignorProvince;
}
public String getConsignorProvince()
{
return consignorProvince;
}
public void setConsignorCity(String consignorCity)
{
this.consignorCity = consignorCity;
}
public String getConsignorCity()
{
return consignorCity;
}
public void setConsignorDistrict(String consignorDistrict)
{
this.consignorDistrict = consignorDistrict;
}
public String getConsignorDistrict()
{
return consignorDistrict;
}
public void setType(Integer type)
{
this.type = type;
}
public Integer getType()
{
return type;
}
@Override
public String toString() {
return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
.append("id", getId())
.append("declarePortId", getDeclarePortId())
.append("name", getName())
.append("code", getCode())
.append("describe", getDescribe())
.append("consignor", getConsignor())
.append("consignorAddress", getConsignorAddress())
.append("consignorTelephone", getConsignorTelephone())
.append("consignorCountry", getConsignorCountry())
.append("consignorProvince", getConsignorProvince())
.append("consignorCity", getConsignorCity())
.append("consignorDistrict", getConsignorDistrict())
.append("type", getType())
.toString();
}
}
@@ -0,0 +1,195 @@
package com.ruoyi.custom.domain;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
import java.io.Serializable;
import java.util.Date;
import com.baomidou.mybatisplus.annotation.TableName;
/**
* 仓库对象 custom_warehouse
*
* @author luqj
* @date 2021-10-23
*/
@TableName(value = "custom_warehouse")
public class CustomWarehousePlus implements Serializable
{
private static final long serialVersionUID = 1L;
/** $column.columnComment */
private Long id;
/** 口岸Id */
@Excel(name = "口岸Id")
private Long declarePortId;
/** 名称 */
@Excel(name = "名称")
private String name;
/** $column.columnComment */
@Excel(name = "名称")
private String code;
/** 描述 */
@Excel(name = "描述")
private String describe;
/** 发件人 */
@Excel(name = "发件人")
private String consignor;
/** 发件人地址 */
@Excel(name = "发件人地址")
private String consignorAddress;
/** 发件人电话 */
@Excel(name = "发件人电话")
private String consignorTelephone;
/** 发件人所在国 */
@Excel(name = "发件人所在国")
private String consignorCountry;
/** $column.columnComment */
@Excel(name = "发件人所在国")
private String consignorProvince;
/** 发件人市 */
@Excel(name = "发件人市")
private String consignorCity;
/** 发件人区 */
@Excel(name = "发件人区")
private String consignorDistrict;
/** 类型:1、保税;2、直邮;3、个人 */
@Excel(name = "类型:1、保税;2、直邮;3、个人")
private Integer type;
public void setId(Long id)
{
this.id = id;
}
public Long getId()
{
return id;
}
public void setDeclarePortId(Long declarePortId)
{
this.declarePortId = declarePortId;
}
public Long getDeclarePortId()
{
return declarePortId;
}
public void setName(String name)
{
this.name = name;
}
public String getName()
{
return name;
}
public void setCode(String code)
{
this.code = code;
}
public String getCode()
{
return code;
}
public void setDescribe(String describe)
{
this.describe = describe;
}
public String getDescribe()
{
return describe;
}
public void setConsignor(String consignor)
{
this.consignor = consignor;
}
public String getConsignor()
{
return consignor;
}
public void setConsignorAddress(String consignorAddress)
{
this.consignorAddress = consignorAddress;
}
public String getConsignorAddress()
{
return consignorAddress;
}
public void setConsignorTelephone(String consignorTelephone)
{
this.consignorTelephone = consignorTelephone;
}
public String getConsignorTelephone()
{
return consignorTelephone;
}
public void setConsignorCountry(String consignorCountry)
{
this.consignorCountry = consignorCountry;
}
public String getConsignorCountry()
{
return consignorCountry;
}
public void setConsignorProvince(String consignorProvince)
{
this.consignorProvince = consignorProvince;
}
public String getConsignorProvince()
{
return consignorProvince;
}
public void setConsignorCity(String consignorCity)
{
this.consignorCity = consignorCity;
}
public String getConsignorCity()
{
return consignorCity;
}
public void setConsignorDistrict(String consignorDistrict)
{
this.consignorDistrict = consignorDistrict;
}
public String getConsignorDistrict()
{
return consignorDistrict;
}
public void setType(Integer type)
{
this.type = type;
}
public Integer getType()
{
return type;
}
@Override
public String toString() {
return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
.append("id", getId())
.append("declarePortId", getDeclarePortId())
.append("name", getName())
.append("code", getCode())
.append("describe", getDescribe())
.append("consignor", getConsignor())
.append("consignorAddress", getConsignorAddress())
.append("consignorTelephone", getConsignorTelephone())
.append("consignorCountry", getConsignorCountry())
.append("consignorProvince", getConsignorProvince())
.append("consignorCity", getConsignorCity())
.append("consignorDistrict", getConsignorDistrict())
.append("type", getType())
.toString();
}
}
@@ -0,0 +1,65 @@
package com.ruoyi.custom.mapper;
import java.util.List;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;
import com.ruoyi.custom.domain.CustomCallback;
import com.ruoyi.custom.domain.CustomCallbackPlus;
/**
* 海关回查Mapper接口
*
* @author luqj
* @date 2021-10-23
*/
public interface CustomCallbackMapper extends BaseMapper<CustomCallbackPlus>
{
/**
* 查询海关回查
*
* @param id 海关回查ID
* @return 海关回查
*/
public CustomCallback selectCustomCallbackById(Long id);
/**
* 查询海关回查列表
*
* @param customCallback 海关回查
* @return 海关回查集合
*/
public List<CustomCallback> selectCustomCallbackList(CustomCallback customCallback);
/**
* 新增海关回查
*
* @param customCallback 海关回查
* @return 结果
*/
public int insertCustomCallback(CustomCallback customCallback);
/**
* 修改海关回查
*
* @param customCallback 海关回查
* @return 结果
*/
public int updateCustomCallback(CustomCallback customCallback);
/**
* 删除海关回查
*
* @param id 海关回查ID
* @return 结果
*/
public int deleteCustomCallbackById(Long id);
/**
* 批量删除海关回查
*
* @param ids 需要删除的数据ID
* @return 结果
*/
public int deleteCustomCallbackByIds(Long[] ids);
}
@@ -0,0 +1,65 @@
package com.ruoyi.custom.mapper;
import java.util.List;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;
import com.ruoyi.custom.domain.CustomCountryCode;
import com.ruoyi.custom.domain.CustomCountryCodePlus;
/**
* 国别代码Mapper接口
*
* @author luqj
* @date 2021-10-23
*/
public interface CustomCountryCodeMapper extends BaseMapper<CustomCountryCodePlus>
{
/**
* 查询国别代码
*
* @param id 国别代码ID
* @return 国别代码
*/
public CustomCountryCode selectCustomCountryCodeById(Long id);
/**
* 查询国别代码列表
*
* @param customCountryCode 国别代码
* @return 国别代码集合
*/
public List<CustomCountryCode> selectCustomCountryCodeList(CustomCountryCode customCountryCode);
/**
* 新增国别代码
*
* @param customCountryCode 国别代码
* @return 结果
*/
public int insertCustomCountryCode(CustomCountryCode customCountryCode);
/**
* 修改国别代码
*
* @param customCountryCode 国别代码
* @return 结果
*/
public int updateCustomCountryCode(CustomCountryCode customCountryCode);
/**
* 删除国别代码
*
* @param id 国别代码ID
* @return 结果
*/
public int deleteCustomCountryCodeById(Long id);
/**
* 批量删除国别代码
*
* @param ids 需要删除的数据ID
* @return 结果
*/
public int deleteCustomCountryCodeByIds(Long[] ids);
}
@@ -0,0 +1,65 @@
package com.ruoyi.custom.mapper;
import java.util.List;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;
import com.ruoyi.custom.domain.CustomDeclarePort;
import com.ruoyi.custom.domain.CustomDeclarePortPlus;
/**
* 申报口岸Mapper接口
*
* @author luqj
* @date 2021-10-23
*/
public interface CustomDeclarePortMapper extends BaseMapper<CustomDeclarePortPlus>
{
/**
* 查询申报口岸
*
* @param id 申报口岸ID
* @return 申报口岸
*/
public CustomDeclarePort selectCustomDeclarePortById(Long id);
/**
* 查询申报口岸列表
*
* @param customDeclarePort 申报口岸
* @return 申报口岸集合
*/
public List<CustomDeclarePort> selectCustomDeclarePortList(CustomDeclarePort customDeclarePort);
/**
* 新增申报口岸
*
* @param customDeclarePort 申报口岸
* @return 结果
*/
public int insertCustomDeclarePort(CustomDeclarePort customDeclarePort);
/**
* 修改申报口岸
*
* @param customDeclarePort 申报口岸
* @return 结果
*/
public int updateCustomDeclarePort(CustomDeclarePort customDeclarePort);
/**
* 删除申报口岸
*
* @param id 申报口岸ID
* @return 结果
*/
public int deleteCustomDeclarePortById(Long id);
/**
* 批量删除申报口岸
*
* @param ids 需要删除的数据ID
* @return 结果
*/
public int deleteCustomDeclarePortByIds(Long[] ids);
}
@@ -0,0 +1,65 @@
package com.ruoyi.custom.mapper;
import java.util.List;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;
import com.ruoyi.custom.domain.CustomEnterpriseRecord;
import com.ruoyi.custom.domain.CustomEnterpriseRecordPlus;
/**
* 企业备案Mapper接口
*
* @author luqj
* @date 2021-10-23
*/
public interface CustomEnterpriseRecordMapper extends BaseMapper<CustomEnterpriseRecordPlus>
{
/**
* 查询企业备案
*
* @param id 企业备案ID
* @return 企业备案
*/
public CustomEnterpriseRecord selectCustomEnterpriseRecordById(Long id);
/**
* 查询企业备案列表
*
* @param customEnterpriseRecord 企业备案
* @return 企业备案集合
*/
public List<CustomEnterpriseRecord> selectCustomEnterpriseRecordList(CustomEnterpriseRecord customEnterpriseRecord);
/**
* 新增企业备案
*
* @param customEnterpriseRecord 企业备案
* @return 结果
*/
public int insertCustomEnterpriseRecord(CustomEnterpriseRecord customEnterpriseRecord);
/**
* 修改企业备案
*
* @param customEnterpriseRecord 企业备案
* @return 结果
*/
public int updateCustomEnterpriseRecord(CustomEnterpriseRecord customEnterpriseRecord);
/**
* 删除企业备案
*
* @param id 企业备案ID
* @return 结果
*/
public int deleteCustomEnterpriseRecordById(Long id);
/**
* 批量删除企业备案
*
* @param ids 需要删除的数据ID
* @return 结果
*/
public int deleteCustomEnterpriseRecordByIds(Long[] ids);
}
@@ -0,0 +1,65 @@
package com.ruoyi.custom.mapper;
import java.util.List;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;
import com.ruoyi.custom.domain.CustomFlightInfo;
import com.ruoyi.custom.domain.CustomFlightInfoPlus;
/**
* 航班信息Mapper接口
*
* @author luqj
* @date 2021-10-23
*/
public interface CustomFlightInfoMapper extends BaseMapper<CustomFlightInfoPlus>
{
/**
* 查询航班信息
*
* @param id 航班信息ID
* @return 航班信息
*/
public CustomFlightInfo selectCustomFlightInfoById(Long id);
/**
* 查询航班信息列表
*
* @param customFlightInfo 航班信息
* @return 航班信息集合
*/
public List<CustomFlightInfo> selectCustomFlightInfoList(CustomFlightInfo customFlightInfo);
/**
* 新增航班信息
*
* @param customFlightInfo 航班信息
* @return 结果
*/
public int insertCustomFlightInfo(CustomFlightInfo customFlightInfo);
/**
* 修改航班信息
*
* @param customFlightInfo 航班信息
* @return 结果
*/
public int updateCustomFlightInfo(CustomFlightInfo customFlightInfo);
/**
* 删除航班信息
*
* @param id 航班信息ID
* @return 结果
*/
public int deleteCustomFlightInfoById(Long id);
/**
* 批量删除航班信息
*
* @param ids 需要删除的数据ID
* @return 结果
*/
public int deleteCustomFlightInfoByIds(Long[] ids);
}
@@ -0,0 +1,65 @@
package com.ruoyi.custom.mapper;
import java.util.List;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;
import com.ruoyi.custom.domain.CustomHsCode;
import com.ruoyi.custom.domain.CustomHsCodePlus;
/**
* HS编码Mapper接口
*
* @author luqj
* @date 2021-10-23
*/
public interface CustomHsCodeMapper extends BaseMapper<CustomHsCodePlus>
{
/**
* 查询HS编码
*
* @param id HS编码ID
* @return HS编码
*/
public CustomHsCode selectCustomHsCodeById(Long id);
/**
* 查询HS编码列表
*
* @param customHsCode HS编码
* @return HS编码集合
*/
public List<CustomHsCode> selectCustomHsCodeList(CustomHsCode customHsCode);
/**
* 新增HS编码
*
* @param customHsCode HS编码
* @return 结果
*/
public int insertCustomHsCode(CustomHsCode customHsCode);
/**
* 修改HS编码
*
* @param customHsCode HS编码
* @return 结果
*/
public int updateCustomHsCode(CustomHsCode customHsCode);
/**
* 删除HS编码
*
* @param id HS编码ID
* @return 结果
*/
public int deleteCustomHsCodeById(Long id);
/**
* 批量删除HS编码
*
* @param ids 需要删除的数据ID
* @return 结果
*/
public int deleteCustomHsCodeByIds(Long[] ids);
}
@@ -0,0 +1,65 @@
package com.ruoyi.custom.mapper;
import java.util.List;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;
import com.ruoyi.custom.domain.CustomInventory;
import com.ruoyi.custom.domain.CustomInventoryPlus;
/**
* 正面清单Mapper接口
*
* @author luqj
* @date 2021-10-23
*/
public interface CustomInventoryMapper extends BaseMapper<CustomInventoryPlus>
{
/**
* 查询正面清单
*
* @param id 正面清单ID
* @return 正面清单
*/
public CustomInventory selectCustomInventoryById(Long id);
/**
* 查询正面清单列表
*
* @param customInventory 正面清单
* @return 正面清单集合
*/
public List<CustomInventory> selectCustomInventoryList(CustomInventory customInventory);
/**
* 新增正面清单
*
* @param customInventory 正面清单
* @return 结果
*/
public int insertCustomInventory(CustomInventory customInventory);
/**
* 修改正面清单
*
* @param customInventory 正面清单
* @return 结果
*/
public int updateCustomInventory(CustomInventory customInventory);
/**
* 删除正面清单
*
* @param id 正面清单ID
* @return 结果
*/
public int deleteCustomInventoryById(Long id);
/**
* 批量删除正面清单
*
* @param ids 需要删除的数据ID
* @return 结果
*/
public int deleteCustomInventoryByIds(Long[] ids);
}
@@ -0,0 +1,65 @@
package com.ruoyi.custom.mapper;
import java.util.List;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;
import com.ruoyi.custom.domain.CustomOrderItem;
import com.ruoyi.custom.domain.CustomOrderItemPlus;
/**
* 备案订单项Mapper接口
*
* @author luqj
* @date 2021-10-23
*/
public interface CustomOrderItemMapper extends BaseMapper<CustomOrderItemPlus>
{
/**
* 查询备案订单项
*
* @param id 备案订单项ID
* @return 备案订单项
*/
public CustomOrderItem selectCustomOrderItemById(Long id);
/**
* 查询备案订单项列表
*
* @param customOrderItem 备案订单项
* @return 备案订单项集合
*/
public List<CustomOrderItem> selectCustomOrderItemList(CustomOrderItem customOrderItem);
/**
* 新增备案订单项
*
* @param customOrderItem 备案订单项
* @return 结果
*/
public int insertCustomOrderItem(CustomOrderItem customOrderItem);
/**
* 修改备案订单项
*
* @param customOrderItem 备案订单项
* @return 结果
*/
public int updateCustomOrderItem(CustomOrderItem customOrderItem);
/**
* 删除备案订单项
*
* @param id 备案订单项ID
* @return 结果
*/
public int deleteCustomOrderItemById(Long id);
/**
* 批量删除备案订单项
*
* @param ids 需要删除的数据ID
* @return 结果
*/
public int deleteCustomOrderItemByIds(Long[] ids);
}
@@ -0,0 +1,91 @@
package com.ruoyi.custom.mapper;
import java.util.List;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;
import com.ruoyi.custom.domain.CustomOrder;
import com.ruoyi.custom.domain.CustomOrderPlus;
import com.ruoyi.custom.domain.CustomOrderItem;
/**
* 备案订单Mapper接口
*
* @author luqj
* @date 2021-10-23
*/
public interface CustomOrderMapper extends BaseMapper<CustomOrderPlus>
{
/**
* 查询备案订单
*
* @param id 备案订单ID
* @return 备案订单
*/
public CustomOrder selectCustomOrderById(Long id);
/**
* 查询备案订单列表
*
* @param customOrder 备案订单
* @return 备案订单集合
*/
public List<CustomOrder> selectCustomOrderList(CustomOrder customOrder);
/**
* 新增备案订单
*
* @param customOrder 备案订单
* @return 结果
*/
public int insertCustomOrder(CustomOrder customOrder);
/**
* 修改备案订单
*
* @param customOrder 备案订单
* @return 结果
*/
public int updateCustomOrder(CustomOrder customOrder);
/**
* 删除备案订单
*
* @param id 备案订单ID
* @return 结果
*/
public int deleteCustomOrderById(Long id);
/**
* 批量删除备案订单
*
* @param ids 需要删除的数据ID
* @return 结果
*/
public int deleteCustomOrderByIds(Long[] ids);
/**
* 批量删除备案订单项
*
* @param customerIds 需要删除的数据ID
* @return 结果
*/
public int deleteCustomOrderItemByOrderIds(Long[] ids);
/**
* 批量新增备案订单项
*
* @param customOrderItemList 备案订单项列表
* @return 结果
*/
public int batchCustomOrderItem(List<CustomOrderItem> customOrderItemList);
/**
* 通过备案订单ID删除备案订单项信息
*
* @param roleId 角色ID
* @return 结果
*/
public int deleteCustomOrderItemByOrderId(Long id);
}
@@ -0,0 +1,65 @@
package com.ruoyi.custom.mapper;
import java.util.List;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;
import com.ruoyi.custom.domain.CustomParcelNumber;
import com.ruoyi.custom.domain.CustomParcelNumberPlus;
/**
* 行邮税号Mapper接口
*
* @author luqj
* @date 2021-10-23
*/
public interface CustomParcelNumberMapper extends BaseMapper<CustomParcelNumberPlus>
{
/**
* 查询行邮税号
*
* @param id 行邮税号ID
* @return 行邮税号
*/
public CustomParcelNumber selectCustomParcelNumberById(Long id);
/**
* 查询行邮税号列表
*
* @param customParcelNumber 行邮税号
* @return 行邮税号集合
*/
public List<CustomParcelNumber> selectCustomParcelNumberList(CustomParcelNumber customParcelNumber);
/**
* 新增行邮税号
*
* @param customParcelNumber 行邮税号
* @return 结果
*/
public int insertCustomParcelNumber(CustomParcelNumber customParcelNumber);
/**
* 修改行邮税号
*
* @param customParcelNumber 行邮税号
* @return 结果
*/
public int updateCustomParcelNumber(CustomParcelNumber customParcelNumber);
/**
* 删除行邮税号
*
* @param id 行邮税号ID
* @return 结果
*/
public int deleteCustomParcelNumberById(Long id);
/**
* 批量删除行邮税号
*
* @param ids 需要删除的数据ID
* @return 结果
*/
public int deleteCustomParcelNumberByIds(Long[] ids);
}
@@ -0,0 +1,65 @@
package com.ruoyi.custom.mapper;
import java.util.List;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;
import com.ruoyi.custom.domain.CustomProductRecord;
import com.ruoyi.custom.domain.CustomProductRecordPlus;
/**
* 商品备案Mapper接口
*
* @author luqj
* @date 2021-10-23
*/
public interface CustomProductRecordMapper extends BaseMapper<CustomProductRecordPlus>
{
/**
* 查询商品备案
*
* @param id 商品备案ID
* @return 商品备案
*/
public CustomProductRecord selectCustomProductRecordById(Long id);
/**
* 查询商品备案列表
*
* @param customProductRecord 商品备案
* @return 商品备案集合
*/
public List<CustomProductRecord> selectCustomProductRecordList(CustomProductRecord customProductRecord);
/**
* 新增商品备案
*
* @param customProductRecord 商品备案
* @return 结果
*/
public int insertCustomProductRecord(CustomProductRecord customProductRecord);
/**
* 修改商品备案
*
* @param customProductRecord 商品备案
* @return 结果
*/
public int updateCustomProductRecord(CustomProductRecord customProductRecord);
/**
* 删除商品备案
*
* @param id 商品备案ID
* @return 结果
*/
public int deleteCustomProductRecordById(Long id);
/**
* 批量删除商品备案
*
* @param ids 需要删除的数据ID
* @return 结果
*/
public int deleteCustomProductRecordByIds(Long[] ids);
}
@@ -0,0 +1,65 @@
package com.ruoyi.custom.mapper;
import java.util.List;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;
import com.ruoyi.custom.domain.CustomRegionCode;
import com.ruoyi.custom.domain.CustomRegionCodePlus;
/**
* 国家行政区划代码Mapper接口
*
* @author luqj
* @date 2021-10-23
*/
public interface CustomRegionCodeMapper extends BaseMapper<CustomRegionCodePlus>
{
/**
* 查询国家行政区划代码
*
* @param id 国家行政区划代码ID
* @return 国家行政区划代码
*/
public CustomRegionCode selectCustomRegionCodeById(Long id);
/**
* 查询国家行政区划代码列表
*
* @param customRegionCode 国家行政区划代码
* @return 国家行政区划代码集合
*/
public List<CustomRegionCode> selectCustomRegionCodeList(CustomRegionCode customRegionCode);
/**
* 新增国家行政区划代码
*
* @param customRegionCode 国家行政区划代码
* @return 结果
*/
public int insertCustomRegionCode(CustomRegionCode customRegionCode);
/**
* 修改国家行政区划代码
*
* @param customRegionCode 国家行政区划代码
* @return 结果
*/
public int updateCustomRegionCode(CustomRegionCode customRegionCode);
/**
* 删除国家行政区划代码
*
* @param id 国家行政区划代码ID
* @return 结果
*/
public int deleteCustomRegionCodeById(Long id);
/**
* 批量删除国家行政区划代码
*
* @param ids 需要删除的数据ID
* @return 结果
*/
public int deleteCustomRegionCodeByIds(Long[] ids);
}
@@ -0,0 +1,65 @@
package com.ruoyi.custom.mapper;
import java.util.List;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;
import com.ruoyi.custom.domain.CustomUnitCode;
import com.ruoyi.custom.domain.CustomUnitCodePlus;
/**
* 计量单位代码Mapper接口
*
* @author luqj
* @date 2021-10-23
*/
public interface CustomUnitCodeMapper extends BaseMapper<CustomUnitCodePlus>
{
/**
* 查询计量单位代码
*
* @param id 计量单位代码ID
* @return 计量单位代码
*/
public CustomUnitCode selectCustomUnitCodeById(Long id);
/**
* 查询计量单位代码列表
*
* @param customUnitCode 计量单位代码
* @return 计量单位代码集合
*/
public List<CustomUnitCode> selectCustomUnitCodeList(CustomUnitCode customUnitCode);
/**
* 新增计量单位代码
*
* @param customUnitCode 计量单位代码
* @return 结果
*/
public int insertCustomUnitCode(CustomUnitCode customUnitCode);
/**
* 修改计量单位代码
*
* @param customUnitCode 计量单位代码
* @return 结果
*/
public int updateCustomUnitCode(CustomUnitCode customUnitCode);
/**
* 删除计量单位代码
*
* @param id 计量单位代码ID
* @return 结果
*/
public int deleteCustomUnitCodeById(Long id);
/**
* 批量删除计量单位代码
*
* @param ids 需要删除的数据ID
* @return 结果
*/
public int deleteCustomUnitCodeByIds(Long[] ids);
}
@@ -0,0 +1,65 @@
package com.ruoyi.custom.mapper;
import java.util.List;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;
import com.ruoyi.custom.domain.CustomWarehouse;
import com.ruoyi.custom.domain.CustomWarehousePlus;
/**
* 仓库Mapper接口
*
* @author luqj
* @date 2021-10-23
*/
public interface CustomWarehouseMapper extends BaseMapper<CustomWarehousePlus>
{
/**
* 查询仓库
*
* @param id 仓库ID
* @return 仓库
*/
public CustomWarehouse selectCustomWarehouseById(Long id);
/**
* 查询仓库列表
*
* @param customWarehouse 仓库
* @return 仓库集合
*/
public List<CustomWarehouse> selectCustomWarehouseList(CustomWarehouse customWarehouse);
/**
* 新增仓库
*
* @param customWarehouse 仓库
* @return 结果
*/
public int insertCustomWarehouse(CustomWarehouse customWarehouse);
/**
* 修改仓库
*
* @param customWarehouse 仓库
* @return 结果
*/
public int updateCustomWarehouse(CustomWarehouse customWarehouse);
/**
* 删除仓库
*
* @param id 仓库ID
* @return 结果
*/
public int deleteCustomWarehouseById(Long id);
/**
* 批量删除仓库
*
* @param ids 需要删除的数据ID
* @return 结果
*/
public int deleteCustomWarehouseByIds(Long[] ids);
}
@@ -0,0 +1,86 @@
package com.ruoyi.custom.service;
import java.util.Map;
import java.util.List;
import com.ruoyi.custom.domain.CustomCallback;
import com.ruoyi.custom.domain.CustomCallbackPlus;
import com.baomidou.mybatisplus.extension.service.IService;
import com.baomidou.mybatisplus.core.toolkit.support.SFunction;
/**
* 海关回查Service接口
*
* @author luqj
* @date 2021-10-23
*/
public interface ICustomCallbackService extends IService<CustomCallbackPlus>
{
/**
* 查询海关回查
*
* @param id 海关回查ID
* @return 海关回查
*/
public CustomCallback selectCustomCallbackById(Long id);
/**
* 查询海关回查列表
*
* @param customCallback 海关回查
* @return 海关回查集合
*/
public List<CustomCallback> selectCustomCallbackList(CustomCallback customCallback);
/**
* 新增海关回查
*
* @param customCallback 海关回查
* @return 结果
*/
public int insertCustomCallback(CustomCallback customCallback);
/**
* 修改海关回查
*
* @param customCallback 海关回查
* @return 结果
*/
public int updateCustomCallback(CustomCallback customCallback);
/**
* 批量删除海关回查
*
* @param ids 需要删除的海关回查ID
* @return 结果
*/
public int deleteCustomCallbackByIds(Long[] ids);
/**
* 删除海关回查信息
*
* @param id 海关回查ID
* @return 结果
*/
public int deleteCustomCallbackById(Long id);
List<CustomCallbackPlus> getByIds(List<Long> ids, SFunction<CustomCallbackPlus, ?>... columns);
CustomCallbackPlus getById(Long id, SFunction<CustomCallbackPlus, ?>... columns);
Map<Long, CustomCallbackPlus> getMapByIds(List<Long> ids, SFunction<CustomCallbackPlus, ?>... columns);
List<CustomCallbackPlus> getByIds(List<Long> ids);
Map<Long, CustomCallbackPlus> getMapByIds(List<Long> ids);
/**
* @param field sum 字段
* @param where 条件
* @param tClass 返回类型
* @param <T>
* @return
*/
<T> T sum(String field, String where, Class<T> tClass);
Long count(String where);
<T> List<T> countByGroupBy(String select, String where, String groupby, Class<T> tClass);
}
@@ -0,0 +1,86 @@
package com.ruoyi.custom.service;
import java.util.Map;
import java.util.List;
import com.ruoyi.custom.domain.CustomCountryCode;
import com.ruoyi.custom.domain.CustomCountryCodePlus;
import com.baomidou.mybatisplus.extension.service.IService;
import com.baomidou.mybatisplus.core.toolkit.support.SFunction;
/**
* 国别代码Service接口
*
* @author luqj
* @date 2021-10-23
*/
public interface ICustomCountryCodeService extends IService<CustomCountryCodePlus>
{
/**
* 查询国别代码
*
* @param id 国别代码ID
* @return 国别代码
*/
public CustomCountryCode selectCustomCountryCodeById(Long id);
/**
* 查询国别代码列表
*
* @param customCountryCode 国别代码
* @return 国别代码集合
*/
public List<CustomCountryCode> selectCustomCountryCodeList(CustomCountryCode customCountryCode);
/**
* 新增国别代码
*
* @param customCountryCode 国别代码
* @return 结果
*/
public int insertCustomCountryCode(CustomCountryCode customCountryCode);
/**
* 修改国别代码
*
* @param customCountryCode 国别代码
* @return 结果
*/
public int updateCustomCountryCode(CustomCountryCode customCountryCode);
/**
* 批量删除国别代码
*
* @param ids 需要删除的国别代码ID
* @return 结果
*/
public int deleteCustomCountryCodeByIds(Long[] ids);
/**
* 删除国别代码信息
*
* @param id 国别代码ID
* @return 结果
*/
public int deleteCustomCountryCodeById(Long id);
List<CustomCountryCodePlus> getByIds(List<Long> ids, SFunction<CustomCountryCodePlus, ?>... columns);
CustomCountryCodePlus getById(Long id, SFunction<CustomCountryCodePlus, ?>... columns);
Map<Long, CustomCountryCodePlus> getMapByIds(List<Long> ids, SFunction<CustomCountryCodePlus, ?>... columns);
List<CustomCountryCodePlus> getByIds(List<Long> ids);
Map<Long, CustomCountryCodePlus> getMapByIds(List<Long> ids);
/**
* @param field sum 字段
* @param where 条件
* @param tClass 返回类型
* @param <T>
* @return
*/
<T> T sum(String field, String where, Class<T> tClass);
Long count(String where);
<T> List<T> countByGroupBy(String select, String where, String groupby, Class<T> tClass);
}
@@ -0,0 +1,86 @@
package com.ruoyi.custom.service;
import java.util.Map;
import java.util.List;
import com.ruoyi.custom.domain.CustomDeclarePort;
import com.ruoyi.custom.domain.CustomDeclarePortPlus;
import com.baomidou.mybatisplus.extension.service.IService;
import com.baomidou.mybatisplus.core.toolkit.support.SFunction;
/**
* 申报口岸Service接口
*
* @author luqj
* @date 2021-10-23
*/
public interface ICustomDeclarePortService extends IService<CustomDeclarePortPlus>
{
/**
* 查询申报口岸
*
* @param id 申报口岸ID
* @return 申报口岸
*/
public CustomDeclarePort selectCustomDeclarePortById(Long id);
/**
* 查询申报口岸列表
*
* @param customDeclarePort 申报口岸
* @return 申报口岸集合
*/
public List<CustomDeclarePort> selectCustomDeclarePortList(CustomDeclarePort customDeclarePort);
/**
* 新增申报口岸
*
* @param customDeclarePort 申报口岸
* @return 结果
*/
public int insertCustomDeclarePort(CustomDeclarePort customDeclarePort);
/**
* 修改申报口岸
*
* @param customDeclarePort 申报口岸
* @return 结果
*/
public int updateCustomDeclarePort(CustomDeclarePort customDeclarePort);
/**
* 批量删除申报口岸
*
* @param ids 需要删除的申报口岸ID
* @return 结果
*/
public int deleteCustomDeclarePortByIds(Long[] ids);
/**
* 删除申报口岸信息
*
* @param id 申报口岸ID
* @return 结果
*/
public int deleteCustomDeclarePortById(Long id);
List<CustomDeclarePortPlus> getByIds(List<Long> ids, SFunction<CustomDeclarePortPlus, ?>... columns);
CustomDeclarePortPlus getById(Long id, SFunction<CustomDeclarePortPlus, ?>... columns);
Map<Long, CustomDeclarePortPlus> getMapByIds(List<Long> ids, SFunction<CustomDeclarePortPlus, ?>... columns);
List<CustomDeclarePortPlus> getByIds(List<Long> ids);
Map<Long, CustomDeclarePortPlus> getMapByIds(List<Long> ids);
/**
* @param field sum 字段
* @param where 条件
* @param tClass 返回类型
* @param <T>
* @return
*/
<T> T sum(String field, String where, Class<T> tClass);
Long count(String where);
<T> List<T> countByGroupBy(String select, String where, String groupby, Class<T> tClass);
}
@@ -0,0 +1,86 @@
package com.ruoyi.custom.service;
import java.util.Map;
import java.util.List;
import com.ruoyi.custom.domain.CustomEnterpriseRecord;
import com.ruoyi.custom.domain.CustomEnterpriseRecordPlus;
import com.baomidou.mybatisplus.extension.service.IService;
import com.baomidou.mybatisplus.core.toolkit.support.SFunction;
/**
* 企业备案Service接口
*
* @author luqj
* @date 2021-10-23
*/
public interface ICustomEnterpriseRecordService extends IService<CustomEnterpriseRecordPlus>
{
/**
* 查询企业备案
*
* @param id 企业备案ID
* @return 企业备案
*/
public CustomEnterpriseRecord selectCustomEnterpriseRecordById(Long id);
/**
* 查询企业备案列表
*
* @param customEnterpriseRecord 企业备案
* @return 企业备案集合
*/
public List<CustomEnterpriseRecord> selectCustomEnterpriseRecordList(CustomEnterpriseRecord customEnterpriseRecord);
/**
* 新增企业备案
*
* @param customEnterpriseRecord 企业备案
* @return 结果
*/
public int insertCustomEnterpriseRecord(CustomEnterpriseRecord customEnterpriseRecord);
/**
* 修改企业备案
*
* @param customEnterpriseRecord 企业备案
* @return 结果
*/
public int updateCustomEnterpriseRecord(CustomEnterpriseRecord customEnterpriseRecord);
/**
* 批量删除企业备案
*
* @param ids 需要删除的企业备案ID
* @return 结果
*/
public int deleteCustomEnterpriseRecordByIds(Long[] ids);
/**
* 删除企业备案信息
*
* @param id 企业备案ID
* @return 结果
*/
public int deleteCustomEnterpriseRecordById(Long id);
List<CustomEnterpriseRecordPlus> getByIds(List<Long> ids, SFunction<CustomEnterpriseRecordPlus, ?>... columns);
CustomEnterpriseRecordPlus getById(Long id, SFunction<CustomEnterpriseRecordPlus, ?>... columns);
Map<Long, CustomEnterpriseRecordPlus> getMapByIds(List<Long> ids, SFunction<CustomEnterpriseRecordPlus, ?>... columns);
List<CustomEnterpriseRecordPlus> getByIds(List<Long> ids);
Map<Long, CustomEnterpriseRecordPlus> getMapByIds(List<Long> ids);
/**
* @param field sum 字段
* @param where 条件
* @param tClass 返回类型
* @param <T>
* @return
*/
<T> T sum(String field, String where, Class<T> tClass);
Long count(String where);
<T> List<T> countByGroupBy(String select, String where, String groupby, Class<T> tClass);
}
@@ -0,0 +1,86 @@
package com.ruoyi.custom.service;
import java.util.Map;
import java.util.List;
import com.ruoyi.custom.domain.CustomFlightInfo;
import com.ruoyi.custom.domain.CustomFlightInfoPlus;
import com.baomidou.mybatisplus.extension.service.IService;
import com.baomidou.mybatisplus.core.toolkit.support.SFunction;
/**
* 航班信息Service接口
*
* @author luqj
* @date 2021-10-23
*/
public interface ICustomFlightInfoService extends IService<CustomFlightInfoPlus>
{
/**
* 查询航班信息
*
* @param id 航班信息ID
* @return 航班信息
*/
public CustomFlightInfo selectCustomFlightInfoById(Long id);
/**
* 查询航班信息列表
*
* @param customFlightInfo 航班信息
* @return 航班信息集合
*/
public List<CustomFlightInfo> selectCustomFlightInfoList(CustomFlightInfo customFlightInfo);
/**
* 新增航班信息
*
* @param customFlightInfo 航班信息
* @return 结果
*/
public int insertCustomFlightInfo(CustomFlightInfo customFlightInfo);
/**
* 修改航班信息
*
* @param customFlightInfo 航班信息
* @return 结果
*/
public int updateCustomFlightInfo(CustomFlightInfo customFlightInfo);
/**
* 批量删除航班信息
*
* @param ids 需要删除的航班信息ID
* @return 结果
*/
public int deleteCustomFlightInfoByIds(Long[] ids);
/**
* 删除航班信息信息
*
* @param id 航班信息ID
* @return 结果
*/
public int deleteCustomFlightInfoById(Long id);
List<CustomFlightInfoPlus> getByIds(List<Long> ids, SFunction<CustomFlightInfoPlus, ?>... columns);
CustomFlightInfoPlus getById(Long id, SFunction<CustomFlightInfoPlus, ?>... columns);
Map<Long, CustomFlightInfoPlus> getMapByIds(List<Long> ids, SFunction<CustomFlightInfoPlus, ?>... columns);
List<CustomFlightInfoPlus> getByIds(List<Long> ids);
Map<Long, CustomFlightInfoPlus> getMapByIds(List<Long> ids);
/**
* @param field sum 字段
* @param where 条件
* @param tClass 返回类型
* @param <T>
* @return
*/
<T> T sum(String field, String where, Class<T> tClass);
Long count(String where);
<T> List<T> countByGroupBy(String select, String where, String groupby, Class<T> tClass);
}
@@ -0,0 +1,86 @@
package com.ruoyi.custom.service;
import java.util.Map;
import java.util.List;
import com.ruoyi.custom.domain.CustomHsCode;
import com.ruoyi.custom.domain.CustomHsCodePlus;
import com.baomidou.mybatisplus.extension.service.IService;
import com.baomidou.mybatisplus.core.toolkit.support.SFunction;
/**
* HS编码Service接口
*
* @author luqj
* @date 2021-10-23
*/
public interface ICustomHsCodeService extends IService<CustomHsCodePlus>
{
/**
* 查询HS编码
*
* @param id HS编码ID
* @return HS编码
*/
public CustomHsCode selectCustomHsCodeById(Long id);
/**
* 查询HS编码列表
*
* @param customHsCode HS编码
* @return HS编码集合
*/
public List<CustomHsCode> selectCustomHsCodeList(CustomHsCode customHsCode);
/**
* 新增HS编码
*
* @param customHsCode HS编码
* @return 结果
*/
public int insertCustomHsCode(CustomHsCode customHsCode);
/**
* 修改HS编码
*
* @param customHsCode HS编码
* @return 结果
*/
public int updateCustomHsCode(CustomHsCode customHsCode);
/**
* 批量删除HS编码
*
* @param ids 需要删除的HS编码ID
* @return 结果
*/
public int deleteCustomHsCodeByIds(Long[] ids);
/**
* 删除HS编码信息
*
* @param id HS编码ID
* @return 结果
*/
public int deleteCustomHsCodeById(Long id);
List<CustomHsCodePlus> getByIds(List<Long> ids, SFunction<CustomHsCodePlus, ?>... columns);
CustomHsCodePlus getById(Long id, SFunction<CustomHsCodePlus, ?>... columns);
Map<Long, CustomHsCodePlus> getMapByIds(List<Long> ids, SFunction<CustomHsCodePlus, ?>... columns);
List<CustomHsCodePlus> getByIds(List<Long> ids);
Map<Long, CustomHsCodePlus> getMapByIds(List<Long> ids);
/**
* @param field sum 字段
* @param where 条件
* @param tClass 返回类型
* @param <T>
* @return
*/
<T> T sum(String field, String where, Class<T> tClass);
Long count(String where);
<T> List<T> countByGroupBy(String select, String where, String groupby, Class<T> tClass);
}
@@ -0,0 +1,86 @@
package com.ruoyi.custom.service;
import java.util.Map;
import java.util.List;
import com.ruoyi.custom.domain.CustomInventory;
import com.ruoyi.custom.domain.CustomInventoryPlus;
import com.baomidou.mybatisplus.extension.service.IService;
import com.baomidou.mybatisplus.core.toolkit.support.SFunction;
/**
* 正面清单Service接口
*
* @author luqj
* @date 2021-10-23
*/
public interface ICustomInventoryService extends IService<CustomInventoryPlus>
{
/**
* 查询正面清单
*
* @param id 正面清单ID
* @return 正面清单
*/
public CustomInventory selectCustomInventoryById(Long id);
/**
* 查询正面清单列表
*
* @param customInventory 正面清单
* @return 正面清单集合
*/
public List<CustomInventory> selectCustomInventoryList(CustomInventory customInventory);
/**
* 新增正面清单
*
* @param customInventory 正面清单
* @return 结果
*/
public int insertCustomInventory(CustomInventory customInventory);
/**
* 修改正面清单
*
* @param customInventory 正面清单
* @return 结果
*/
public int updateCustomInventory(CustomInventory customInventory);
/**
* 批量删除正面清单
*
* @param ids 需要删除的正面清单ID
* @return 结果
*/
public int deleteCustomInventoryByIds(Long[] ids);
/**
* 删除正面清单信息
*
* @param id 正面清单ID
* @return 结果
*/
public int deleteCustomInventoryById(Long id);
List<CustomInventoryPlus> getByIds(List<Long> ids, SFunction<CustomInventoryPlus, ?>... columns);
CustomInventoryPlus getById(Long id, SFunction<CustomInventoryPlus, ?>... columns);
Map<Long, CustomInventoryPlus> getMapByIds(List<Long> ids, SFunction<CustomInventoryPlus, ?>... columns);
List<CustomInventoryPlus> getByIds(List<Long> ids);
Map<Long, CustomInventoryPlus> getMapByIds(List<Long> ids);
/**
* @param field sum 字段
* @param where 条件
* @param tClass 返回类型
* @param <T>
* @return
*/
<T> T sum(String field, String where, Class<T> tClass);
Long count(String where);
<T> List<T> countByGroupBy(String select, String where, String groupby, Class<T> tClass);
}
@@ -0,0 +1,86 @@
package com.ruoyi.custom.service;
import java.util.Map;
import java.util.List;
import com.ruoyi.custom.domain.CustomOrderItem;
import com.ruoyi.custom.domain.CustomOrderItemPlus;
import com.baomidou.mybatisplus.extension.service.IService;
import com.baomidou.mybatisplus.core.toolkit.support.SFunction;
/**
* 备案订单项Service接口
*
* @author luqj
* @date 2021-10-23
*/
public interface ICustomOrderItemService extends IService<CustomOrderItemPlus>
{
/**
* 查询备案订单项
*
* @param id 备案订单项ID
* @return 备案订单项
*/
public CustomOrderItem selectCustomOrderItemById(Long id);
/**
* 查询备案订单项列表
*
* @param customOrderItem 备案订单项
* @return 备案订单项集合
*/
public List<CustomOrderItem> selectCustomOrderItemList(CustomOrderItem customOrderItem);
/**
* 新增备案订单项
*
* @param customOrderItem 备案订单项
* @return 结果
*/
public int insertCustomOrderItem(CustomOrderItem customOrderItem);
/**
* 修改备案订单项
*
* @param customOrderItem 备案订单项
* @return 结果
*/
public int updateCustomOrderItem(CustomOrderItem customOrderItem);
/**
* 批量删除备案订单项
*
* @param ids 需要删除的备案订单项ID
* @return 结果
*/
public int deleteCustomOrderItemByIds(Long[] ids);
/**
* 删除备案订单项信息
*
* @param id 备案订单项ID
* @return 结果
*/
public int deleteCustomOrderItemById(Long id);
List<CustomOrderItemPlus> getByIds(List<Long> ids, SFunction<CustomOrderItemPlus, ?>... columns);
CustomOrderItemPlus getById(Long id, SFunction<CustomOrderItemPlus, ?>... columns);
Map<Long, CustomOrderItemPlus> getMapByIds(List<Long> ids, SFunction<CustomOrderItemPlus, ?>... columns);
List<CustomOrderItemPlus> getByIds(List<Long> ids);
Map<Long, CustomOrderItemPlus> getMapByIds(List<Long> ids);
/**
* @param field sum 字段
* @param where 条件
* @param tClass 返回类型
* @param <T>
* @return
*/
<T> T sum(String field, String where, Class<T> tClass);
Long count(String where);
<T> List<T> countByGroupBy(String select, String where, String groupby, Class<T> tClass);
}
@@ -0,0 +1,86 @@
package com.ruoyi.custom.service;
import java.util.Map;
import java.util.List;
import com.ruoyi.custom.domain.CustomOrder;
import com.ruoyi.custom.domain.CustomOrderPlus;
import com.baomidou.mybatisplus.extension.service.IService;
import com.baomidou.mybatisplus.core.toolkit.support.SFunction;
/**
* 备案订单Service接口
*
* @author luqj
* @date 2021-10-23
*/
public interface ICustomOrderService extends IService<CustomOrderPlus>
{
/**
* 查询备案订单
*
* @param id 备案订单ID
* @return 备案订单
*/
public CustomOrder selectCustomOrderById(Long id);
/**
* 查询备案订单列表
*
* @param customOrder 备案订单
* @return 备案订单集合
*/
public List<CustomOrder> selectCustomOrderList(CustomOrder customOrder);
/**
* 新增备案订单
*
* @param customOrder 备案订单
* @return 结果
*/
public int insertCustomOrder(CustomOrder customOrder);
/**
* 修改备案订单
*
* @param customOrder 备案订单
* @return 结果
*/
public int updateCustomOrder(CustomOrder customOrder);
/**
* 批量删除备案订单
*
* @param ids 需要删除的备案订单ID
* @return 结果
*/
public int deleteCustomOrderByIds(Long[] ids);
/**
* 删除备案订单信息
*
* @param id 备案订单ID
* @return 结果
*/
public int deleteCustomOrderById(Long id);
List<CustomOrderPlus> getByIds(List<Long> ids, SFunction<CustomOrderPlus, ?>... columns);
CustomOrderPlus getById(Long id, SFunction<CustomOrderPlus, ?>... columns);
Map<Long, CustomOrderPlus> getMapByIds(List<Long> ids, SFunction<CustomOrderPlus, ?>... columns);
List<CustomOrderPlus> getByIds(List<Long> ids);
Map<Long, CustomOrderPlus> getMapByIds(List<Long> ids);
/**
* @param field sum 字段
* @param where 条件
* @param tClass 返回类型
* @param <T>
* @return
*/
<T> T sum(String field, String where, Class<T> tClass);
Long count(String where);
<T> List<T> countByGroupBy(String select, String where, String groupby, Class<T> tClass);
}
@@ -0,0 +1,86 @@
package com.ruoyi.custom.service;
import java.util.Map;
import java.util.List;
import com.ruoyi.custom.domain.CustomParcelNumber;
import com.ruoyi.custom.domain.CustomParcelNumberPlus;
import com.baomidou.mybatisplus.extension.service.IService;
import com.baomidou.mybatisplus.core.toolkit.support.SFunction;
/**
* 行邮税号Service接口
*
* @author luqj
* @date 2021-10-23
*/
public interface ICustomParcelNumberService extends IService<CustomParcelNumberPlus>
{
/**
* 查询行邮税号
*
* @param id 行邮税号ID
* @return 行邮税号
*/
public CustomParcelNumber selectCustomParcelNumberById(Long id);
/**
* 查询行邮税号列表
*
* @param customParcelNumber 行邮税号
* @return 行邮税号集合
*/
public List<CustomParcelNumber> selectCustomParcelNumberList(CustomParcelNumber customParcelNumber);
/**
* 新增行邮税号
*
* @param customParcelNumber 行邮税号
* @return 结果
*/
public int insertCustomParcelNumber(CustomParcelNumber customParcelNumber);
/**
* 修改行邮税号
*
* @param customParcelNumber 行邮税号
* @return 结果
*/
public int updateCustomParcelNumber(CustomParcelNumber customParcelNumber);
/**
* 批量删除行邮税号
*
* @param ids 需要删除的行邮税号ID
* @return 结果
*/
public int deleteCustomParcelNumberByIds(Long[] ids);
/**
* 删除行邮税号信息
*
* @param id 行邮税号ID
* @return 结果
*/
public int deleteCustomParcelNumberById(Long id);
List<CustomParcelNumberPlus> getByIds(List<Long> ids, SFunction<CustomParcelNumberPlus, ?>... columns);
CustomParcelNumberPlus getById(Long id, SFunction<CustomParcelNumberPlus, ?>... columns);
Map<Long, CustomParcelNumberPlus> getMapByIds(List<Long> ids, SFunction<CustomParcelNumberPlus, ?>... columns);
List<CustomParcelNumberPlus> getByIds(List<Long> ids);
Map<Long, CustomParcelNumberPlus> getMapByIds(List<Long> ids);
/**
* @param field sum 字段
* @param where 条件
* @param tClass 返回类型
* @param <T>
* @return
*/
<T> T sum(String field, String where, Class<T> tClass);
Long count(String where);
<T> List<T> countByGroupBy(String select, String where, String groupby, Class<T> tClass);
}
@@ -0,0 +1,86 @@
package com.ruoyi.custom.service;
import java.util.Map;
import java.util.List;
import com.ruoyi.custom.domain.CustomProductRecord;
import com.ruoyi.custom.domain.CustomProductRecordPlus;
import com.baomidou.mybatisplus.extension.service.IService;
import com.baomidou.mybatisplus.core.toolkit.support.SFunction;
/**
* 商品备案Service接口
*
* @author luqj
* @date 2021-10-23
*/
public interface ICustomProductRecordService extends IService<CustomProductRecordPlus>
{
/**
* 查询商品备案
*
* @param id 商品备案ID
* @return 商品备案
*/
public CustomProductRecord selectCustomProductRecordById(Long id);
/**
* 查询商品备案列表
*
* @param customProductRecord 商品备案
* @return 商品备案集合
*/
public List<CustomProductRecord> selectCustomProductRecordList(CustomProductRecord customProductRecord);
/**
* 新增商品备案
*
* @param customProductRecord 商品备案
* @return 结果
*/
public int insertCustomProductRecord(CustomProductRecord customProductRecord);
/**
* 修改商品备案
*
* @param customProductRecord 商品备案
* @return 结果
*/
public int updateCustomProductRecord(CustomProductRecord customProductRecord);
/**
* 批量删除商品备案
*
* @param ids 需要删除的商品备案ID
* @return 结果
*/
public int deleteCustomProductRecordByIds(Long[] ids);
/**
* 删除商品备案信息
*
* @param id 商品备案ID
* @return 结果
*/
public int deleteCustomProductRecordById(Long id);
List<CustomProductRecordPlus> getByIds(List<Long> ids, SFunction<CustomProductRecordPlus, ?>... columns);
CustomProductRecordPlus getById(Long id, SFunction<CustomProductRecordPlus, ?>... columns);
Map<Long, CustomProductRecordPlus> getMapByIds(List<Long> ids, SFunction<CustomProductRecordPlus, ?>... columns);
List<CustomProductRecordPlus> getByIds(List<Long> ids);
Map<Long, CustomProductRecordPlus> getMapByIds(List<Long> ids);
/**
* @param field sum 字段
* @param where 条件
* @param tClass 返回类型
* @param <T>
* @return
*/
<T> T sum(String field, String where, Class<T> tClass);
Long count(String where);
<T> List<T> countByGroupBy(String select, String where, String groupby, Class<T> tClass);
}
@@ -0,0 +1,86 @@
package com.ruoyi.custom.service;
import java.util.Map;
import java.util.List;
import com.ruoyi.custom.domain.CustomRegionCode;
import com.ruoyi.custom.domain.CustomRegionCodePlus;
import com.baomidou.mybatisplus.extension.service.IService;
import com.baomidou.mybatisplus.core.toolkit.support.SFunction;
/**
* 国家行政区划代码Service接口
*
* @author luqj
* @date 2021-10-23
*/
public interface ICustomRegionCodeService extends IService<CustomRegionCodePlus>
{
/**
* 查询国家行政区划代码
*
* @param id 国家行政区划代码ID
* @return 国家行政区划代码
*/
public CustomRegionCode selectCustomRegionCodeById(Long id);
/**
* 查询国家行政区划代码列表
*
* @param customRegionCode 国家行政区划代码
* @return 国家行政区划代码集合
*/
public List<CustomRegionCode> selectCustomRegionCodeList(CustomRegionCode customRegionCode);
/**
* 新增国家行政区划代码
*
* @param customRegionCode 国家行政区划代码
* @return 结果
*/
public int insertCustomRegionCode(CustomRegionCode customRegionCode);
/**
* 修改国家行政区划代码
*
* @param customRegionCode 国家行政区划代码
* @return 结果
*/
public int updateCustomRegionCode(CustomRegionCode customRegionCode);
/**
* 批量删除国家行政区划代码
*
* @param ids 需要删除的国家行政区划代码ID
* @return 结果
*/
public int deleteCustomRegionCodeByIds(Long[] ids);
/**
* 删除国家行政区划代码信息
*
* @param id 国家行政区划代码ID
* @return 结果
*/
public int deleteCustomRegionCodeById(Long id);
List<CustomRegionCodePlus> getByIds(List<Long> ids, SFunction<CustomRegionCodePlus, ?>... columns);
CustomRegionCodePlus getById(Long id, SFunction<CustomRegionCodePlus, ?>... columns);
Map<Long, CustomRegionCodePlus> getMapByIds(List<Long> ids, SFunction<CustomRegionCodePlus, ?>... columns);
List<CustomRegionCodePlus> getByIds(List<Long> ids);
Map<Long, CustomRegionCodePlus> getMapByIds(List<Long> ids);
/**
* @param field sum 字段
* @param where 条件
* @param tClass 返回类型
* @param <T>
* @return
*/
<T> T sum(String field, String where, Class<T> tClass);
Long count(String where);
<T> List<T> countByGroupBy(String select, String where, String groupby, Class<T> tClass);
}
@@ -0,0 +1,86 @@
package com.ruoyi.custom.service;
import java.util.Map;
import java.util.List;
import com.ruoyi.custom.domain.CustomUnitCode;
import com.ruoyi.custom.domain.CustomUnitCodePlus;
import com.baomidou.mybatisplus.extension.service.IService;
import com.baomidou.mybatisplus.core.toolkit.support.SFunction;
/**
* 计量单位代码Service接口
*
* @author luqj
* @date 2021-10-23
*/
public interface ICustomUnitCodeService extends IService<CustomUnitCodePlus>
{
/**
* 查询计量单位代码
*
* @param id 计量单位代码ID
* @return 计量单位代码
*/
public CustomUnitCode selectCustomUnitCodeById(Long id);
/**
* 查询计量单位代码列表
*
* @param customUnitCode 计量单位代码
* @return 计量单位代码集合
*/
public List<CustomUnitCode> selectCustomUnitCodeList(CustomUnitCode customUnitCode);
/**
* 新增计量单位代码
*
* @param customUnitCode 计量单位代码
* @return 结果
*/
public int insertCustomUnitCode(CustomUnitCode customUnitCode);
/**
* 修改计量单位代码
*
* @param customUnitCode 计量单位代码
* @return 结果
*/
public int updateCustomUnitCode(CustomUnitCode customUnitCode);
/**
* 批量删除计量单位代码
*
* @param ids 需要删除的计量单位代码ID
* @return 结果
*/
public int deleteCustomUnitCodeByIds(Long[] ids);
/**
* 删除计量单位代码信息
*
* @param id 计量单位代码ID
* @return 结果
*/
public int deleteCustomUnitCodeById(Long id);
List<CustomUnitCodePlus> getByIds(List<Long> ids, SFunction<CustomUnitCodePlus, ?>... columns);
CustomUnitCodePlus getById(Long id, SFunction<CustomUnitCodePlus, ?>... columns);
Map<Long, CustomUnitCodePlus> getMapByIds(List<Long> ids, SFunction<CustomUnitCodePlus, ?>... columns);
List<CustomUnitCodePlus> getByIds(List<Long> ids);
Map<Long, CustomUnitCodePlus> getMapByIds(List<Long> ids);
/**
* @param field sum 字段
* @param where 条件
* @param tClass 返回类型
* @param <T>
* @return
*/
<T> T sum(String field, String where, Class<T> tClass);
Long count(String where);
<T> List<T> countByGroupBy(String select, String where, String groupby, Class<T> tClass);
}
@@ -0,0 +1,86 @@
package com.ruoyi.custom.service;
import java.util.Map;
import java.util.List;
import com.ruoyi.custom.domain.CustomWarehouse;
import com.ruoyi.custom.domain.CustomWarehousePlus;
import com.baomidou.mybatisplus.extension.service.IService;
import com.baomidou.mybatisplus.core.toolkit.support.SFunction;
/**
* 仓库Service接口
*
* @author luqj
* @date 2021-10-23
*/
public interface ICustomWarehouseService extends IService<CustomWarehousePlus>
{
/**
* 查询仓库
*
* @param id 仓库ID
* @return 仓库
*/
public CustomWarehouse selectCustomWarehouseById(Long id);
/**
* 查询仓库列表
*
* @param customWarehouse 仓库
* @return 仓库集合
*/
public List<CustomWarehouse> selectCustomWarehouseList(CustomWarehouse customWarehouse);
/**
* 新增仓库
*
* @param customWarehouse 仓库
* @return 结果
*/
public int insertCustomWarehouse(CustomWarehouse customWarehouse);
/**
* 修改仓库
*
* @param customWarehouse 仓库
* @return 结果
*/
public int updateCustomWarehouse(CustomWarehouse customWarehouse);
/**
* 批量删除仓库
*
* @param ids 需要删除的仓库ID
* @return 结果
*/
public int deleteCustomWarehouseByIds(Long[] ids);
/**
* 删除仓库信息
*
* @param id 仓库ID
* @return 结果
*/
public int deleteCustomWarehouseById(Long id);
List<CustomWarehousePlus> getByIds(List<Long> ids, SFunction<CustomWarehousePlus, ?>... columns);
CustomWarehousePlus getById(Long id, SFunction<CustomWarehousePlus, ?>... columns);
Map<Long, CustomWarehousePlus> getMapByIds(List<Long> ids, SFunction<CustomWarehousePlus, ?>... columns);
List<CustomWarehousePlus> getByIds(List<Long> ids);
Map<Long, CustomWarehousePlus> getMapByIds(List<Long> ids);
/**
* @param field sum 字段
* @param where 条件
* @param tClass 返回类型
* @param <T>
* @return
*/
<T> T sum(String field, String where, Class<T> tClass);
Long count(String where);
<T> List<T> countByGroupBy(String select, String where, String groupby, Class<T> tClass);
}
@@ -0,0 +1,188 @@
package com.ruoyi.custom.service.impl;
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.github.pagehelper.PageHelper;
import com.baomidou.mybatisplus.core.toolkit.support.SFunction;
import java.util.HashMap;
import com.ruoyi.common.utils.StringUtils;
import com.alibaba.fastjson.JSONArray;
import java.util.List;
import java.util.Map;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.custom.mapper.CustomCallbackMapper;
import com.ruoyi.custom.domain.CustomCallback;
import com.ruoyi.custom.domain.CustomCallbackPlus;
import com.ruoyi.custom.service.ICustomCallbackService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.jdbc.core.JdbcTemplate;
/**
* 海关回查Service业务层处理
*
* @author luqj
* @date 2021-10-23
*/
@Service
public class CustomCallbackServiceImpl extends ServiceImpl<CustomCallbackMapper, CustomCallbackPlus> implements ICustomCallbackService
{
@Autowired
private CustomCallbackMapper customCallbackMapper;
@Autowired
private JdbcTemplate jdbcTemplate;
@Override
public List<CustomCallbackPlus> getByIds(List<Long> ids, SFunction<CustomCallbackPlus, ?>... columns) {
LambdaQueryWrapper<CustomCallbackPlus> lambdaQueryWrapper = new LambdaQueryWrapper<CustomCallbackPlus>()
.select(columns).in(CustomCallbackPlus::getId, ids);
return this.list(lambdaQueryWrapper);
}
@Override
public CustomCallbackPlus getById(Long id, SFunction<CustomCallbackPlus, ?>... columns) {
LambdaQueryWrapper<CustomCallbackPlus> lambdaQueryWrapper = new LambdaQueryWrapper<CustomCallbackPlus>()
.select(columns).eq(CustomCallbackPlus::getId, id);
return baseMapper.selectOne(lambdaQueryWrapper);
}
@Override
public Map<Long, CustomCallbackPlus> getMapByIds(List<Long> ids, SFunction<CustomCallbackPlus, ?>... columns) {
List<CustomCallbackPlus> list = this.getByIds(ids, columns);
Map<Long, CustomCallbackPlus> map = new HashMap<>();
for (CustomCallbackPlus item : list) {
map.put(item.getId(), item);
}
return map;
}
@Override
public Map<Long, CustomCallbackPlus> getMapByIds(List<Long> ids) {
List<CustomCallbackPlus> list = this.getByIds(ids);
Map<Long, CustomCallbackPlus> map = new HashMap<>();
for (CustomCallbackPlus item : list) {
map.put(item.getId(), item);
}
return map;
}
@Override
public List<CustomCallbackPlus> getByIds(List<Long> ids) {
LambdaQueryWrapper<CustomCallbackPlus> lambdaQueryWrapper = new LambdaQueryWrapper<CustomCallbackPlus>().in(CustomCallbackPlus::getId, ids);
return this.list(lambdaQueryWrapper);
}
public <T> T sum(String field, String where, Class<T> tClass) {
StringBuffer stringBuffer = new StringBuffer();
stringBuffer.append("select ");
stringBuffer.append(" sum(" + field + ") as total ");
stringBuffer.append(" from custom_callback ");
if (StringUtils.isNotBlank(where)) {
stringBuffer.append(" where ");
stringBuffer.append(where);
}
T result = jdbcTemplate.queryForObject(stringBuffer.toString(), tClass);
return result;
}
public Long count(String where) {
StringBuffer stringBuffer = new StringBuffer();
stringBuffer.append("select ");
stringBuffer.append(" count(1)");
stringBuffer.append(" from ");
stringBuffer.append(" custom_callback ");
if (StringUtils.isNotBlank(where)) {
stringBuffer.append(" where ");
stringBuffer.append(where);
}
Long result = jdbcTemplate.queryForObject(stringBuffer.toString(), Long.class);
return result;
}
public <T> List<T> countByGroupBy(String select, String where, String groupby, Class<T> tClass) {
StringBuffer stringBuffer = new StringBuffer();
stringBuffer.append("select ");
stringBuffer.append(select);
stringBuffer.append(" from ");
stringBuffer.append(" custom_callback ");
if (StringUtils.isNotBlank(where)) {
stringBuffer.append(" where ");
stringBuffer.append(where);
}
stringBuffer.append(" group by ");
stringBuffer.append(groupby);
List result = jdbcTemplate.queryForList(stringBuffer.toString());
List<T> tList = JSONArray.parseArray(JSONArray.toJSONString(result), tClass);
return tList;
}
/**
* 查询海关回查
*
* @param id 海关回查ID
* @return 海关回查
*/
@Override
public CustomCallback selectCustomCallbackById(Long id)
{
return customCallbackMapper.selectCustomCallbackById(id);
}
/**
* 查询海关回查列表
*
* @param customCallback 海关回查
* @return 海关回查
*/
@Override
public List<CustomCallback> selectCustomCallbackList(CustomCallback customCallback)
{
return customCallbackMapper.selectCustomCallbackList(customCallback);
}
/**
* 新增海关回查
*
* @param customCallback 海关回查
* @return 结果
*/
@Override
public int insertCustomCallback(CustomCallback customCallback)
{
return customCallbackMapper.insertCustomCallback(customCallback);
}
/**
* 修改海关回查
*
* @param customCallback 海关回查
* @return 结果
*/
@Override
public int updateCustomCallback(CustomCallback customCallback)
{
return customCallbackMapper.updateCustomCallback(customCallback);
}
/**
* 批量删除海关回查
*
* @param ids 需要删除的海关回查ID
* @return 结果
*/
@Override
public int deleteCustomCallbackByIds(Long[] ids)
{
return customCallbackMapper.deleteCustomCallbackByIds(ids);
}
/**
* 删除海关回查信息
*
* @param id 海关回查ID
* @return 结果
*/
@Override
public int deleteCustomCallbackById(Long id)
{
return customCallbackMapper.deleteCustomCallbackById(id);
}
}
@@ -0,0 +1,188 @@
package com.ruoyi.custom.service.impl;
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.github.pagehelper.PageHelper;
import com.baomidou.mybatisplus.core.toolkit.support.SFunction;
import java.util.HashMap;
import com.ruoyi.common.utils.StringUtils;
import com.alibaba.fastjson.JSONArray;
import java.util.List;
import java.util.Map;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.custom.mapper.CustomCountryCodeMapper;
import com.ruoyi.custom.domain.CustomCountryCode;
import com.ruoyi.custom.domain.CustomCountryCodePlus;
import com.ruoyi.custom.service.ICustomCountryCodeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.jdbc.core.JdbcTemplate;
/**
* 国别代码Service业务层处理
*
* @author luqj
* @date 2021-10-23
*/
@Service
public class CustomCountryCodeServiceImpl extends ServiceImpl<CustomCountryCodeMapper, CustomCountryCodePlus> implements ICustomCountryCodeService
{
@Autowired
private CustomCountryCodeMapper customCountryCodeMapper;
@Autowired
private JdbcTemplate jdbcTemplate;
@Override
public List<CustomCountryCodePlus> getByIds(List<Long> ids, SFunction<CustomCountryCodePlus, ?>... columns) {
LambdaQueryWrapper<CustomCountryCodePlus> lambdaQueryWrapper = new LambdaQueryWrapper<CustomCountryCodePlus>()
.select(columns).in(CustomCountryCodePlus::getId, ids);
return this.list(lambdaQueryWrapper);
}
@Override
public CustomCountryCodePlus getById(Long id, SFunction<CustomCountryCodePlus, ?>... columns) {
LambdaQueryWrapper<CustomCountryCodePlus> lambdaQueryWrapper = new LambdaQueryWrapper<CustomCountryCodePlus>()
.select(columns).eq(CustomCountryCodePlus::getId, id);
return baseMapper.selectOne(lambdaQueryWrapper);
}
@Override
public Map<Long, CustomCountryCodePlus> getMapByIds(List<Long> ids, SFunction<CustomCountryCodePlus, ?>... columns) {
List<CustomCountryCodePlus> list = this.getByIds(ids, columns);
Map<Long, CustomCountryCodePlus> map = new HashMap<>();
for (CustomCountryCodePlus item : list) {
map.put(item.getId(), item);
}
return map;
}
@Override
public Map<Long, CustomCountryCodePlus> getMapByIds(List<Long> ids) {
List<CustomCountryCodePlus> list = this.getByIds(ids);
Map<Long, CustomCountryCodePlus> map = new HashMap<>();
for (CustomCountryCodePlus item : list) {
map.put(item.getId(), item);
}
return map;
}
@Override
public List<CustomCountryCodePlus> getByIds(List<Long> ids) {
LambdaQueryWrapper<CustomCountryCodePlus> lambdaQueryWrapper = new LambdaQueryWrapper<CustomCountryCodePlus>().in(CustomCountryCodePlus::getId, ids);
return this.list(lambdaQueryWrapper);
}
public <T> T sum(String field, String where, Class<T> tClass) {
StringBuffer stringBuffer = new StringBuffer();
stringBuffer.append("select ");
stringBuffer.append(" sum(" + field + ") as total ");
stringBuffer.append(" from custom_country_code ");
if (StringUtils.isNotBlank(where)) {
stringBuffer.append(" where ");
stringBuffer.append(where);
}
T result = jdbcTemplate.queryForObject(stringBuffer.toString(), tClass);
return result;
}
public Long count(String where) {
StringBuffer stringBuffer = new StringBuffer();
stringBuffer.append("select ");
stringBuffer.append(" count(1)");
stringBuffer.append(" from ");
stringBuffer.append(" custom_country_code ");
if (StringUtils.isNotBlank(where)) {
stringBuffer.append(" where ");
stringBuffer.append(where);
}
Long result = jdbcTemplate.queryForObject(stringBuffer.toString(), Long.class);
return result;
}
public <T> List<T> countByGroupBy(String select, String where, String groupby, Class<T> tClass) {
StringBuffer stringBuffer = new StringBuffer();
stringBuffer.append("select ");
stringBuffer.append(select);
stringBuffer.append(" from ");
stringBuffer.append(" custom_country_code ");
if (StringUtils.isNotBlank(where)) {
stringBuffer.append(" where ");
stringBuffer.append(where);
}
stringBuffer.append(" group by ");
stringBuffer.append(groupby);
List result = jdbcTemplate.queryForList(stringBuffer.toString());
List<T> tList = JSONArray.parseArray(JSONArray.toJSONString(result), tClass);
return tList;
}
/**
* 查询国别代码
*
* @param id 国别代码ID
* @return 国别代码
*/
@Override
public CustomCountryCode selectCustomCountryCodeById(Long id)
{
return customCountryCodeMapper.selectCustomCountryCodeById(id);
}
/**
* 查询国别代码列表
*
* @param customCountryCode 国别代码
* @return 国别代码
*/
@Override
public List<CustomCountryCode> selectCustomCountryCodeList(CustomCountryCode customCountryCode)
{
return customCountryCodeMapper.selectCustomCountryCodeList(customCountryCode);
}
/**
* 新增国别代码
*
* @param customCountryCode 国别代码
* @return 结果
*/
@Override
public int insertCustomCountryCode(CustomCountryCode customCountryCode)
{
return customCountryCodeMapper.insertCustomCountryCode(customCountryCode);
}
/**
* 修改国别代码
*
* @param customCountryCode 国别代码
* @return 结果
*/
@Override
public int updateCustomCountryCode(CustomCountryCode customCountryCode)
{
return customCountryCodeMapper.updateCustomCountryCode(customCountryCode);
}
/**
* 批量删除国别代码
*
* @param ids 需要删除的国别代码ID
* @return 结果
*/
@Override
public int deleteCustomCountryCodeByIds(Long[] ids)
{
return customCountryCodeMapper.deleteCustomCountryCodeByIds(ids);
}
/**
* 删除国别代码信息
*
* @param id 国别代码ID
* @return 结果
*/
@Override
public int deleteCustomCountryCodeById(Long id)
{
return customCountryCodeMapper.deleteCustomCountryCodeById(id);
}
}
@@ -0,0 +1,188 @@
package com.ruoyi.custom.service.impl;
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.github.pagehelper.PageHelper;
import com.baomidou.mybatisplus.core.toolkit.support.SFunction;
import java.util.HashMap;
import com.ruoyi.common.utils.StringUtils;
import com.alibaba.fastjson.JSONArray;
import java.util.List;
import java.util.Map;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.custom.mapper.CustomDeclarePortMapper;
import com.ruoyi.custom.domain.CustomDeclarePort;
import com.ruoyi.custom.domain.CustomDeclarePortPlus;
import com.ruoyi.custom.service.ICustomDeclarePortService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.jdbc.core.JdbcTemplate;
/**
* 申报口岸Service业务层处理
*
* @author luqj
* @date 2021-10-23
*/
@Service
public class CustomDeclarePortServiceImpl extends ServiceImpl<CustomDeclarePortMapper, CustomDeclarePortPlus> implements ICustomDeclarePortService
{
@Autowired
private CustomDeclarePortMapper customDeclarePortMapper;
@Autowired
private JdbcTemplate jdbcTemplate;
@Override
public List<CustomDeclarePortPlus> getByIds(List<Long> ids, SFunction<CustomDeclarePortPlus, ?>... columns) {
LambdaQueryWrapper<CustomDeclarePortPlus> lambdaQueryWrapper = new LambdaQueryWrapper<CustomDeclarePortPlus>()
.select(columns).in(CustomDeclarePortPlus::getId, ids);
return this.list(lambdaQueryWrapper);
}
@Override
public CustomDeclarePortPlus getById(Long id, SFunction<CustomDeclarePortPlus, ?>... columns) {
LambdaQueryWrapper<CustomDeclarePortPlus> lambdaQueryWrapper = new LambdaQueryWrapper<CustomDeclarePortPlus>()
.select(columns).eq(CustomDeclarePortPlus::getId, id);
return baseMapper.selectOne(lambdaQueryWrapper);
}
@Override
public Map<Long, CustomDeclarePortPlus> getMapByIds(List<Long> ids, SFunction<CustomDeclarePortPlus, ?>... columns) {
List<CustomDeclarePortPlus> list = this.getByIds(ids, columns);
Map<Long, CustomDeclarePortPlus> map = new HashMap<>();
for (CustomDeclarePortPlus item : list) {
map.put(item.getId(), item);
}
return map;
}
@Override
public Map<Long, CustomDeclarePortPlus> getMapByIds(List<Long> ids) {
List<CustomDeclarePortPlus> list = this.getByIds(ids);
Map<Long, CustomDeclarePortPlus> map = new HashMap<>();
for (CustomDeclarePortPlus item : list) {
map.put(item.getId(), item);
}
return map;
}
@Override
public List<CustomDeclarePortPlus> getByIds(List<Long> ids) {
LambdaQueryWrapper<CustomDeclarePortPlus> lambdaQueryWrapper = new LambdaQueryWrapper<CustomDeclarePortPlus>().in(CustomDeclarePortPlus::getId, ids);
return this.list(lambdaQueryWrapper);
}
public <T> T sum(String field, String where, Class<T> tClass) {
StringBuffer stringBuffer = new StringBuffer();
stringBuffer.append("select ");
stringBuffer.append(" sum(" + field + ") as total ");
stringBuffer.append(" from custom_declare_port ");
if (StringUtils.isNotBlank(where)) {
stringBuffer.append(" where ");
stringBuffer.append(where);
}
T result = jdbcTemplate.queryForObject(stringBuffer.toString(), tClass);
return result;
}
public Long count(String where) {
StringBuffer stringBuffer = new StringBuffer();
stringBuffer.append("select ");
stringBuffer.append(" count(1)");
stringBuffer.append(" from ");
stringBuffer.append(" custom_declare_port ");
if (StringUtils.isNotBlank(where)) {
stringBuffer.append(" where ");
stringBuffer.append(where);
}
Long result = jdbcTemplate.queryForObject(stringBuffer.toString(), Long.class);
return result;
}
public <T> List<T> countByGroupBy(String select, String where, String groupby, Class<T> tClass) {
StringBuffer stringBuffer = new StringBuffer();
stringBuffer.append("select ");
stringBuffer.append(select);
stringBuffer.append(" from ");
stringBuffer.append(" custom_declare_port ");
if (StringUtils.isNotBlank(where)) {
stringBuffer.append(" where ");
stringBuffer.append(where);
}
stringBuffer.append(" group by ");
stringBuffer.append(groupby);
List result = jdbcTemplate.queryForList(stringBuffer.toString());
List<T> tList = JSONArray.parseArray(JSONArray.toJSONString(result), tClass);
return tList;
}
/**
* 查询申报口岸
*
* @param id 申报口岸ID
* @return 申报口岸
*/
@Override
public CustomDeclarePort selectCustomDeclarePortById(Long id)
{
return customDeclarePortMapper.selectCustomDeclarePortById(id);
}
/**
* 查询申报口岸列表
*
* @param customDeclarePort 申报口岸
* @return 申报口岸
*/
@Override
public List<CustomDeclarePort> selectCustomDeclarePortList(CustomDeclarePort customDeclarePort)
{
return customDeclarePortMapper.selectCustomDeclarePortList(customDeclarePort);
}
/**
* 新增申报口岸
*
* @param customDeclarePort 申报口岸
* @return 结果
*/
@Override
public int insertCustomDeclarePort(CustomDeclarePort customDeclarePort)
{
return customDeclarePortMapper.insertCustomDeclarePort(customDeclarePort);
}
/**
* 修改申报口岸
*
* @param customDeclarePort 申报口岸
* @return 结果
*/
@Override
public int updateCustomDeclarePort(CustomDeclarePort customDeclarePort)
{
return customDeclarePortMapper.updateCustomDeclarePort(customDeclarePort);
}
/**
* 批量删除申报口岸
*
* @param ids 需要删除的申报口岸ID
* @return 结果
*/
@Override
public int deleteCustomDeclarePortByIds(Long[] ids)
{
return customDeclarePortMapper.deleteCustomDeclarePortByIds(ids);
}
/**
* 删除申报口岸信息
*
* @param id 申报口岸ID
* @return 结果
*/
@Override
public int deleteCustomDeclarePortById(Long id)
{
return customDeclarePortMapper.deleteCustomDeclarePortById(id);
}
}
@@ -0,0 +1,188 @@
package com.ruoyi.custom.service.impl;
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.github.pagehelper.PageHelper;
import com.baomidou.mybatisplus.core.toolkit.support.SFunction;
import java.util.HashMap;
import com.ruoyi.common.utils.StringUtils;
import com.alibaba.fastjson.JSONArray;
import java.util.List;
import java.util.Map;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.custom.mapper.CustomEnterpriseRecordMapper;
import com.ruoyi.custom.domain.CustomEnterpriseRecord;
import com.ruoyi.custom.domain.CustomEnterpriseRecordPlus;
import com.ruoyi.custom.service.ICustomEnterpriseRecordService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.jdbc.core.JdbcTemplate;
/**
* 企业备案Service业务层处理
*
* @author luqj
* @date 2021-10-23
*/
@Service
public class CustomEnterpriseRecordServiceImpl extends ServiceImpl<CustomEnterpriseRecordMapper, CustomEnterpriseRecordPlus> implements ICustomEnterpriseRecordService
{
@Autowired
private CustomEnterpriseRecordMapper customEnterpriseRecordMapper;
@Autowired
private JdbcTemplate jdbcTemplate;
@Override
public List<CustomEnterpriseRecordPlus> getByIds(List<Long> ids, SFunction<CustomEnterpriseRecordPlus, ?>... columns) {
LambdaQueryWrapper<CustomEnterpriseRecordPlus> lambdaQueryWrapper = new LambdaQueryWrapper<CustomEnterpriseRecordPlus>()
.select(columns).in(CustomEnterpriseRecordPlus::getId, ids);
return this.list(lambdaQueryWrapper);
}
@Override
public CustomEnterpriseRecordPlus getById(Long id, SFunction<CustomEnterpriseRecordPlus, ?>... columns) {
LambdaQueryWrapper<CustomEnterpriseRecordPlus> lambdaQueryWrapper = new LambdaQueryWrapper<CustomEnterpriseRecordPlus>()
.select(columns).eq(CustomEnterpriseRecordPlus::getId, id);
return baseMapper.selectOne(lambdaQueryWrapper);
}
@Override
public Map<Long, CustomEnterpriseRecordPlus> getMapByIds(List<Long> ids, SFunction<CustomEnterpriseRecordPlus, ?>... columns) {
List<CustomEnterpriseRecordPlus> list = this.getByIds(ids, columns);
Map<Long, CustomEnterpriseRecordPlus> map = new HashMap<>();
for (CustomEnterpriseRecordPlus item : list) {
map.put(item.getId(), item);
}
return map;
}
@Override
public Map<Long, CustomEnterpriseRecordPlus> getMapByIds(List<Long> ids) {
List<CustomEnterpriseRecordPlus> list = this.getByIds(ids);
Map<Long, CustomEnterpriseRecordPlus> map = new HashMap<>();
for (CustomEnterpriseRecordPlus item : list) {
map.put(item.getId(), item);
}
return map;
}
@Override
public List<CustomEnterpriseRecordPlus> getByIds(List<Long> ids) {
LambdaQueryWrapper<CustomEnterpriseRecordPlus> lambdaQueryWrapper = new LambdaQueryWrapper<CustomEnterpriseRecordPlus>().in(CustomEnterpriseRecordPlus::getId, ids);
return this.list(lambdaQueryWrapper);
}
public <T> T sum(String field, String where, Class<T> tClass) {
StringBuffer stringBuffer = new StringBuffer();
stringBuffer.append("select ");
stringBuffer.append(" sum(" + field + ") as total ");
stringBuffer.append(" from custom_enterprise_record ");
if (StringUtils.isNotBlank(where)) {
stringBuffer.append(" where ");
stringBuffer.append(where);
}
T result = jdbcTemplate.queryForObject(stringBuffer.toString(), tClass);
return result;
}
public Long count(String where) {
StringBuffer stringBuffer = new StringBuffer();
stringBuffer.append("select ");
stringBuffer.append(" count(1)");
stringBuffer.append(" from ");
stringBuffer.append(" custom_enterprise_record ");
if (StringUtils.isNotBlank(where)) {
stringBuffer.append(" where ");
stringBuffer.append(where);
}
Long result = jdbcTemplate.queryForObject(stringBuffer.toString(), Long.class);
return result;
}
public <T> List<T> countByGroupBy(String select, String where, String groupby, Class<T> tClass) {
StringBuffer stringBuffer = new StringBuffer();
stringBuffer.append("select ");
stringBuffer.append(select);
stringBuffer.append(" from ");
stringBuffer.append(" custom_enterprise_record ");
if (StringUtils.isNotBlank(where)) {
stringBuffer.append(" where ");
stringBuffer.append(where);
}
stringBuffer.append(" group by ");
stringBuffer.append(groupby);
List result = jdbcTemplate.queryForList(stringBuffer.toString());
List<T> tList = JSONArray.parseArray(JSONArray.toJSONString(result), tClass);
return tList;
}
/**
* 查询企业备案
*
* @param id 企业备案ID
* @return 企业备案
*/
@Override
public CustomEnterpriseRecord selectCustomEnterpriseRecordById(Long id)
{
return customEnterpriseRecordMapper.selectCustomEnterpriseRecordById(id);
}
/**
* 查询企业备案列表
*
* @param customEnterpriseRecord 企业备案
* @return 企业备案
*/
@Override
public List<CustomEnterpriseRecord> selectCustomEnterpriseRecordList(CustomEnterpriseRecord customEnterpriseRecord)
{
return customEnterpriseRecordMapper.selectCustomEnterpriseRecordList(customEnterpriseRecord);
}
/**
* 新增企业备案
*
* @param customEnterpriseRecord 企业备案
* @return 结果
*/
@Override
public int insertCustomEnterpriseRecord(CustomEnterpriseRecord customEnterpriseRecord)
{
return customEnterpriseRecordMapper.insertCustomEnterpriseRecord(customEnterpriseRecord);
}
/**
* 修改企业备案
*
* @param customEnterpriseRecord 企业备案
* @return 结果
*/
@Override
public int updateCustomEnterpriseRecord(CustomEnterpriseRecord customEnterpriseRecord)
{
return customEnterpriseRecordMapper.updateCustomEnterpriseRecord(customEnterpriseRecord);
}
/**
* 批量删除企业备案
*
* @param ids 需要删除的企业备案ID
* @return 结果
*/
@Override
public int deleteCustomEnterpriseRecordByIds(Long[] ids)
{
return customEnterpriseRecordMapper.deleteCustomEnterpriseRecordByIds(ids);
}
/**
* 删除企业备案信息
*
* @param id 企业备案ID
* @return 结果
*/
@Override
public int deleteCustomEnterpriseRecordById(Long id)
{
return customEnterpriseRecordMapper.deleteCustomEnterpriseRecordById(id);
}
}
@@ -0,0 +1,188 @@
package com.ruoyi.custom.service.impl;
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.github.pagehelper.PageHelper;
import com.baomidou.mybatisplus.core.toolkit.support.SFunction;
import java.util.HashMap;
import com.ruoyi.common.utils.StringUtils;
import com.alibaba.fastjson.JSONArray;
import java.util.List;
import java.util.Map;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.custom.mapper.CustomFlightInfoMapper;
import com.ruoyi.custom.domain.CustomFlightInfo;
import com.ruoyi.custom.domain.CustomFlightInfoPlus;
import com.ruoyi.custom.service.ICustomFlightInfoService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.jdbc.core.JdbcTemplate;
/**
* 航班信息Service业务层处理
*
* @author luqj
* @date 2021-10-23
*/
@Service
public class CustomFlightInfoServiceImpl extends ServiceImpl<CustomFlightInfoMapper, CustomFlightInfoPlus> implements ICustomFlightInfoService
{
@Autowired
private CustomFlightInfoMapper customFlightInfoMapper;
@Autowired
private JdbcTemplate jdbcTemplate;
@Override
public List<CustomFlightInfoPlus> getByIds(List<Long> ids, SFunction<CustomFlightInfoPlus, ?>... columns) {
LambdaQueryWrapper<CustomFlightInfoPlus> lambdaQueryWrapper = new LambdaQueryWrapper<CustomFlightInfoPlus>()
.select(columns).in(CustomFlightInfoPlus::getId, ids);
return this.list(lambdaQueryWrapper);
}
@Override
public CustomFlightInfoPlus getById(Long id, SFunction<CustomFlightInfoPlus, ?>... columns) {
LambdaQueryWrapper<CustomFlightInfoPlus> lambdaQueryWrapper = new LambdaQueryWrapper<CustomFlightInfoPlus>()
.select(columns).eq(CustomFlightInfoPlus::getId, id);
return baseMapper.selectOne(lambdaQueryWrapper);
}
@Override
public Map<Long, CustomFlightInfoPlus> getMapByIds(List<Long> ids, SFunction<CustomFlightInfoPlus, ?>... columns) {
List<CustomFlightInfoPlus> list = this.getByIds(ids, columns);
Map<Long, CustomFlightInfoPlus> map = new HashMap<>();
for (CustomFlightInfoPlus item : list) {
map.put(item.getId(), item);
}
return map;
}
@Override
public Map<Long, CustomFlightInfoPlus> getMapByIds(List<Long> ids) {
List<CustomFlightInfoPlus> list = this.getByIds(ids);
Map<Long, CustomFlightInfoPlus> map = new HashMap<>();
for (CustomFlightInfoPlus item : list) {
map.put(item.getId(), item);
}
return map;
}
@Override
public List<CustomFlightInfoPlus> getByIds(List<Long> ids) {
LambdaQueryWrapper<CustomFlightInfoPlus> lambdaQueryWrapper = new LambdaQueryWrapper<CustomFlightInfoPlus>().in(CustomFlightInfoPlus::getId, ids);
return this.list(lambdaQueryWrapper);
}
public <T> T sum(String field, String where, Class<T> tClass) {
StringBuffer stringBuffer = new StringBuffer();
stringBuffer.append("select ");
stringBuffer.append(" sum(" + field + ") as total ");
stringBuffer.append(" from custom_flight_info ");
if (StringUtils.isNotBlank(where)) {
stringBuffer.append(" where ");
stringBuffer.append(where);
}
T result = jdbcTemplate.queryForObject(stringBuffer.toString(), tClass);
return result;
}
public Long count(String where) {
StringBuffer stringBuffer = new StringBuffer();
stringBuffer.append("select ");
stringBuffer.append(" count(1)");
stringBuffer.append(" from ");
stringBuffer.append(" custom_flight_info ");
if (StringUtils.isNotBlank(where)) {
stringBuffer.append(" where ");
stringBuffer.append(where);
}
Long result = jdbcTemplate.queryForObject(stringBuffer.toString(), Long.class);
return result;
}
public <T> List<T> countByGroupBy(String select, String where, String groupby, Class<T> tClass) {
StringBuffer stringBuffer = new StringBuffer();
stringBuffer.append("select ");
stringBuffer.append(select);
stringBuffer.append(" from ");
stringBuffer.append(" custom_flight_info ");
if (StringUtils.isNotBlank(where)) {
stringBuffer.append(" where ");
stringBuffer.append(where);
}
stringBuffer.append(" group by ");
stringBuffer.append(groupby);
List result = jdbcTemplate.queryForList(stringBuffer.toString());
List<T> tList = JSONArray.parseArray(JSONArray.toJSONString(result), tClass);
return tList;
}
/**
* 查询航班信息
*
* @param id 航班信息ID
* @return 航班信息
*/
@Override
public CustomFlightInfo selectCustomFlightInfoById(Long id)
{
return customFlightInfoMapper.selectCustomFlightInfoById(id);
}
/**
* 查询航班信息列表
*
* @param customFlightInfo 航班信息
* @return 航班信息
*/
@Override
public List<CustomFlightInfo> selectCustomFlightInfoList(CustomFlightInfo customFlightInfo)
{
return customFlightInfoMapper.selectCustomFlightInfoList(customFlightInfo);
}
/**
* 新增航班信息
*
* @param customFlightInfo 航班信息
* @return 结果
*/
@Override
public int insertCustomFlightInfo(CustomFlightInfo customFlightInfo)
{
return customFlightInfoMapper.insertCustomFlightInfo(customFlightInfo);
}
/**
* 修改航班信息
*
* @param customFlightInfo 航班信息
* @return 结果
*/
@Override
public int updateCustomFlightInfo(CustomFlightInfo customFlightInfo)
{
return customFlightInfoMapper.updateCustomFlightInfo(customFlightInfo);
}
/**
* 批量删除航班信息
*
* @param ids 需要删除的航班信息ID
* @return 结果
*/
@Override
public int deleteCustomFlightInfoByIds(Long[] ids)
{
return customFlightInfoMapper.deleteCustomFlightInfoByIds(ids);
}
/**
* 删除航班信息信息
*
* @param id 航班信息ID
* @return 结果
*/
@Override
public int deleteCustomFlightInfoById(Long id)
{
return customFlightInfoMapper.deleteCustomFlightInfoById(id);
}
}
@@ -0,0 +1,188 @@
package com.ruoyi.custom.service.impl;
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.github.pagehelper.PageHelper;
import com.baomidou.mybatisplus.core.toolkit.support.SFunction;
import java.util.HashMap;
import com.ruoyi.common.utils.StringUtils;
import com.alibaba.fastjson.JSONArray;
import java.util.List;
import java.util.Map;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.custom.mapper.CustomHsCodeMapper;
import com.ruoyi.custom.domain.CustomHsCode;
import com.ruoyi.custom.domain.CustomHsCodePlus;
import com.ruoyi.custom.service.ICustomHsCodeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.jdbc.core.JdbcTemplate;
/**
* HS编码Service业务层处理
*
* @author luqj
* @date 2021-10-23
*/
@Service
public class CustomHsCodeServiceImpl extends ServiceImpl<CustomHsCodeMapper, CustomHsCodePlus> implements ICustomHsCodeService
{
@Autowired
private CustomHsCodeMapper customHsCodeMapper;
@Autowired
private JdbcTemplate jdbcTemplate;
@Override
public List<CustomHsCodePlus> getByIds(List<Long> ids, SFunction<CustomHsCodePlus, ?>... columns) {
LambdaQueryWrapper<CustomHsCodePlus> lambdaQueryWrapper = new LambdaQueryWrapper<CustomHsCodePlus>()
.select(columns).in(CustomHsCodePlus::getId, ids);
return this.list(lambdaQueryWrapper);
}
@Override
public CustomHsCodePlus getById(Long id, SFunction<CustomHsCodePlus, ?>... columns) {
LambdaQueryWrapper<CustomHsCodePlus> lambdaQueryWrapper = new LambdaQueryWrapper<CustomHsCodePlus>()
.select(columns).eq(CustomHsCodePlus::getId, id);
return baseMapper.selectOne(lambdaQueryWrapper);
}
@Override
public Map<Long, CustomHsCodePlus> getMapByIds(List<Long> ids, SFunction<CustomHsCodePlus, ?>... columns) {
List<CustomHsCodePlus> list = this.getByIds(ids, columns);
Map<Long, CustomHsCodePlus> map = new HashMap<>();
for (CustomHsCodePlus item : list) {
map.put(item.getId(), item);
}
return map;
}
@Override
public Map<Long, CustomHsCodePlus> getMapByIds(List<Long> ids) {
List<CustomHsCodePlus> list = this.getByIds(ids);
Map<Long, CustomHsCodePlus> map = new HashMap<>();
for (CustomHsCodePlus item : list) {
map.put(item.getId(), item);
}
return map;
}
@Override
public List<CustomHsCodePlus> getByIds(List<Long> ids) {
LambdaQueryWrapper<CustomHsCodePlus> lambdaQueryWrapper = new LambdaQueryWrapper<CustomHsCodePlus>().in(CustomHsCodePlus::getId, ids);
return this.list(lambdaQueryWrapper);
}
public <T> T sum(String field, String where, Class<T> tClass) {
StringBuffer stringBuffer = new StringBuffer();
stringBuffer.append("select ");
stringBuffer.append(" sum(" + field + ") as total ");
stringBuffer.append(" from custom_hs_code ");
if (StringUtils.isNotBlank(where)) {
stringBuffer.append(" where ");
stringBuffer.append(where);
}
T result = jdbcTemplate.queryForObject(stringBuffer.toString(), tClass);
return result;
}
public Long count(String where) {
StringBuffer stringBuffer = new StringBuffer();
stringBuffer.append("select ");
stringBuffer.append(" count(1)");
stringBuffer.append(" from ");
stringBuffer.append(" custom_hs_code ");
if (StringUtils.isNotBlank(where)) {
stringBuffer.append(" where ");
stringBuffer.append(where);
}
Long result = jdbcTemplate.queryForObject(stringBuffer.toString(), Long.class);
return result;
}
public <T> List<T> countByGroupBy(String select, String where, String groupby, Class<T> tClass) {
StringBuffer stringBuffer = new StringBuffer();
stringBuffer.append("select ");
stringBuffer.append(select);
stringBuffer.append(" from ");
stringBuffer.append(" custom_hs_code ");
if (StringUtils.isNotBlank(where)) {
stringBuffer.append(" where ");
stringBuffer.append(where);
}
stringBuffer.append(" group by ");
stringBuffer.append(groupby);
List result = jdbcTemplate.queryForList(stringBuffer.toString());
List<T> tList = JSONArray.parseArray(JSONArray.toJSONString(result), tClass);
return tList;
}
/**
* 查询HS编码
*
* @param id HS编码ID
* @return HS编码
*/
@Override
public CustomHsCode selectCustomHsCodeById(Long id)
{
return customHsCodeMapper.selectCustomHsCodeById(id);
}
/**
* 查询HS编码列表
*
* @param customHsCode HS编码
* @return HS编码
*/
@Override
public List<CustomHsCode> selectCustomHsCodeList(CustomHsCode customHsCode)
{
return customHsCodeMapper.selectCustomHsCodeList(customHsCode);
}
/**
* 新增HS编码
*
* @param customHsCode HS编码
* @return 结果
*/
@Override
public int insertCustomHsCode(CustomHsCode customHsCode)
{
return customHsCodeMapper.insertCustomHsCode(customHsCode);
}
/**
* 修改HS编码
*
* @param customHsCode HS编码
* @return 结果
*/
@Override
public int updateCustomHsCode(CustomHsCode customHsCode)
{
return customHsCodeMapper.updateCustomHsCode(customHsCode);
}
/**
* 批量删除HS编码
*
* @param ids 需要删除的HS编码ID
* @return 结果
*/
@Override
public int deleteCustomHsCodeByIds(Long[] ids)
{
return customHsCodeMapper.deleteCustomHsCodeByIds(ids);
}
/**
* 删除HS编码信息
*
* @param id HS编码ID
* @return 结果
*/
@Override
public int deleteCustomHsCodeById(Long id)
{
return customHsCodeMapper.deleteCustomHsCodeById(id);
}
}
@@ -0,0 +1,188 @@
package com.ruoyi.custom.service.impl;
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.github.pagehelper.PageHelper;
import com.baomidou.mybatisplus.core.toolkit.support.SFunction;
import java.util.HashMap;
import com.ruoyi.common.utils.StringUtils;
import com.alibaba.fastjson.JSONArray;
import java.util.List;
import java.util.Map;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.custom.mapper.CustomInventoryMapper;
import com.ruoyi.custom.domain.CustomInventory;
import com.ruoyi.custom.domain.CustomInventoryPlus;
import com.ruoyi.custom.service.ICustomInventoryService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.jdbc.core.JdbcTemplate;
/**
* 正面清单Service业务层处理
*
* @author luqj
* @date 2021-10-23
*/
@Service
public class CustomInventoryServiceImpl extends ServiceImpl<CustomInventoryMapper, CustomInventoryPlus> implements ICustomInventoryService
{
@Autowired
private CustomInventoryMapper customInventoryMapper;
@Autowired
private JdbcTemplate jdbcTemplate;
@Override
public List<CustomInventoryPlus> getByIds(List<Long> ids, SFunction<CustomInventoryPlus, ?>... columns) {
LambdaQueryWrapper<CustomInventoryPlus> lambdaQueryWrapper = new LambdaQueryWrapper<CustomInventoryPlus>()
.select(columns).in(CustomInventoryPlus::getId, ids);
return this.list(lambdaQueryWrapper);
}
@Override
public CustomInventoryPlus getById(Long id, SFunction<CustomInventoryPlus, ?>... columns) {
LambdaQueryWrapper<CustomInventoryPlus> lambdaQueryWrapper = new LambdaQueryWrapper<CustomInventoryPlus>()
.select(columns).eq(CustomInventoryPlus::getId, id);
return baseMapper.selectOne(lambdaQueryWrapper);
}
@Override
public Map<Long, CustomInventoryPlus> getMapByIds(List<Long> ids, SFunction<CustomInventoryPlus, ?>... columns) {
List<CustomInventoryPlus> list = this.getByIds(ids, columns);
Map<Long, CustomInventoryPlus> map = new HashMap<>();
for (CustomInventoryPlus item : list) {
map.put(item.getId(), item);
}
return map;
}
@Override
public Map<Long, CustomInventoryPlus> getMapByIds(List<Long> ids) {
List<CustomInventoryPlus> list = this.getByIds(ids);
Map<Long, CustomInventoryPlus> map = new HashMap<>();
for (CustomInventoryPlus item : list) {
map.put(item.getId(), item);
}
return map;
}
@Override
public List<CustomInventoryPlus> getByIds(List<Long> ids) {
LambdaQueryWrapper<CustomInventoryPlus> lambdaQueryWrapper = new LambdaQueryWrapper<CustomInventoryPlus>().in(CustomInventoryPlus::getId, ids);
return this.list(lambdaQueryWrapper);
}
public <T> T sum(String field, String where, Class<T> tClass) {
StringBuffer stringBuffer = new StringBuffer();
stringBuffer.append("select ");
stringBuffer.append(" sum(" + field + ") as total ");
stringBuffer.append(" from custom_inventory ");
if (StringUtils.isNotBlank(where)) {
stringBuffer.append(" where ");
stringBuffer.append(where);
}
T result = jdbcTemplate.queryForObject(stringBuffer.toString(), tClass);
return result;
}
public Long count(String where) {
StringBuffer stringBuffer = new StringBuffer();
stringBuffer.append("select ");
stringBuffer.append(" count(1)");
stringBuffer.append(" from ");
stringBuffer.append(" custom_inventory ");
if (StringUtils.isNotBlank(where)) {
stringBuffer.append(" where ");
stringBuffer.append(where);
}
Long result = jdbcTemplate.queryForObject(stringBuffer.toString(), Long.class);
return result;
}
public <T> List<T> countByGroupBy(String select, String where, String groupby, Class<T> tClass) {
StringBuffer stringBuffer = new StringBuffer();
stringBuffer.append("select ");
stringBuffer.append(select);
stringBuffer.append(" from ");
stringBuffer.append(" custom_inventory ");
if (StringUtils.isNotBlank(where)) {
stringBuffer.append(" where ");
stringBuffer.append(where);
}
stringBuffer.append(" group by ");
stringBuffer.append(groupby);
List result = jdbcTemplate.queryForList(stringBuffer.toString());
List<T> tList = JSONArray.parseArray(JSONArray.toJSONString(result), tClass);
return tList;
}
/**
* 查询正面清单
*
* @param id 正面清单ID
* @return 正面清单
*/
@Override
public CustomInventory selectCustomInventoryById(Long id)
{
return customInventoryMapper.selectCustomInventoryById(id);
}
/**
* 查询正面清单列表
*
* @param customInventory 正面清单
* @return 正面清单
*/
@Override
public List<CustomInventory> selectCustomInventoryList(CustomInventory customInventory)
{
return customInventoryMapper.selectCustomInventoryList(customInventory);
}
/**
* 新增正面清单
*
* @param customInventory 正面清单
* @return 结果
*/
@Override
public int insertCustomInventory(CustomInventory customInventory)
{
return customInventoryMapper.insertCustomInventory(customInventory);
}
/**
* 修改正面清单
*
* @param customInventory 正面清单
* @return 结果
*/
@Override
public int updateCustomInventory(CustomInventory customInventory)
{
return customInventoryMapper.updateCustomInventory(customInventory);
}
/**
* 批量删除正面清单
*
* @param ids 需要删除的正面清单ID
* @return 结果
*/
@Override
public int deleteCustomInventoryByIds(Long[] ids)
{
return customInventoryMapper.deleteCustomInventoryByIds(ids);
}
/**
* 删除正面清单信息
*
* @param id 正面清单ID
* @return 结果
*/
@Override
public int deleteCustomInventoryById(Long id)
{
return customInventoryMapper.deleteCustomInventoryById(id);
}
}
@@ -0,0 +1,188 @@
package com.ruoyi.custom.service.impl;
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.github.pagehelper.PageHelper;
import com.baomidou.mybatisplus.core.toolkit.support.SFunction;
import java.util.HashMap;
import com.ruoyi.common.utils.StringUtils;
import com.alibaba.fastjson.JSONArray;
import java.util.List;
import java.util.Map;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.custom.mapper.CustomOrderItemMapper;
import com.ruoyi.custom.domain.CustomOrderItem;
import com.ruoyi.custom.domain.CustomOrderItemPlus;
import com.ruoyi.custom.service.ICustomOrderItemService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.jdbc.core.JdbcTemplate;
/**
* 备案订单项Service业务层处理
*
* @author luqj
* @date 2021-10-23
*/
@Service
public class CustomOrderItemServiceImpl extends ServiceImpl<CustomOrderItemMapper, CustomOrderItemPlus> implements ICustomOrderItemService
{
@Autowired
private CustomOrderItemMapper customOrderItemMapper;
@Autowired
private JdbcTemplate jdbcTemplate;
@Override
public List<CustomOrderItemPlus> getByIds(List<Long> ids, SFunction<CustomOrderItemPlus, ?>... columns) {
LambdaQueryWrapper<CustomOrderItemPlus> lambdaQueryWrapper = new LambdaQueryWrapper<CustomOrderItemPlus>()
.select(columns).in(CustomOrderItemPlus::getId, ids);
return this.list(lambdaQueryWrapper);
}
@Override
public CustomOrderItemPlus getById(Long id, SFunction<CustomOrderItemPlus, ?>... columns) {
LambdaQueryWrapper<CustomOrderItemPlus> lambdaQueryWrapper = new LambdaQueryWrapper<CustomOrderItemPlus>()
.select(columns).eq(CustomOrderItemPlus::getId, id);
return baseMapper.selectOne(lambdaQueryWrapper);
}
@Override
public Map<Long, CustomOrderItemPlus> getMapByIds(List<Long> ids, SFunction<CustomOrderItemPlus, ?>... columns) {
List<CustomOrderItemPlus> list = this.getByIds(ids, columns);
Map<Long, CustomOrderItemPlus> map = new HashMap<>();
for (CustomOrderItemPlus item : list) {
map.put(item.getId(), item);
}
return map;
}
@Override
public Map<Long, CustomOrderItemPlus> getMapByIds(List<Long> ids) {
List<CustomOrderItemPlus> list = this.getByIds(ids);
Map<Long, CustomOrderItemPlus> map = new HashMap<>();
for (CustomOrderItemPlus item : list) {
map.put(item.getId(), item);
}
return map;
}
@Override
public List<CustomOrderItemPlus> getByIds(List<Long> ids) {
LambdaQueryWrapper<CustomOrderItemPlus> lambdaQueryWrapper = new LambdaQueryWrapper<CustomOrderItemPlus>().in(CustomOrderItemPlus::getId, ids);
return this.list(lambdaQueryWrapper);
}
public <T> T sum(String field, String where, Class<T> tClass) {
StringBuffer stringBuffer = new StringBuffer();
stringBuffer.append("select ");
stringBuffer.append(" sum(" + field + ") as total ");
stringBuffer.append(" from custom_order_item ");
if (StringUtils.isNotBlank(where)) {
stringBuffer.append(" where ");
stringBuffer.append(where);
}
T result = jdbcTemplate.queryForObject(stringBuffer.toString(), tClass);
return result;
}
public Long count(String where) {
StringBuffer stringBuffer = new StringBuffer();
stringBuffer.append("select ");
stringBuffer.append(" count(1)");
stringBuffer.append(" from ");
stringBuffer.append(" custom_order_item ");
if (StringUtils.isNotBlank(where)) {
stringBuffer.append(" where ");
stringBuffer.append(where);
}
Long result = jdbcTemplate.queryForObject(stringBuffer.toString(), Long.class);
return result;
}
public <T> List<T> countByGroupBy(String select, String where, String groupby, Class<T> tClass) {
StringBuffer stringBuffer = new StringBuffer();
stringBuffer.append("select ");
stringBuffer.append(select);
stringBuffer.append(" from ");
stringBuffer.append(" custom_order_item ");
if (StringUtils.isNotBlank(where)) {
stringBuffer.append(" where ");
stringBuffer.append(where);
}
stringBuffer.append(" group by ");
stringBuffer.append(groupby);
List result = jdbcTemplate.queryForList(stringBuffer.toString());
List<T> tList = JSONArray.parseArray(JSONArray.toJSONString(result), tClass);
return tList;
}
/**
* 查询备案订单项
*
* @param id 备案订单项ID
* @return 备案订单项
*/
@Override
public CustomOrderItem selectCustomOrderItemById(Long id)
{
return customOrderItemMapper.selectCustomOrderItemById(id);
}
/**
* 查询备案订单项列表
*
* @param customOrderItem 备案订单项
* @return 备案订单项
*/
@Override
public List<CustomOrderItem> selectCustomOrderItemList(CustomOrderItem customOrderItem)
{
return customOrderItemMapper.selectCustomOrderItemList(customOrderItem);
}
/**
* 新增备案订单项
*
* @param customOrderItem 备案订单项
* @return 结果
*/
@Override
public int insertCustomOrderItem(CustomOrderItem customOrderItem)
{
return customOrderItemMapper.insertCustomOrderItem(customOrderItem);
}
/**
* 修改备案订单项
*
* @param customOrderItem 备案订单项
* @return 结果
*/
@Override
public int updateCustomOrderItem(CustomOrderItem customOrderItem)
{
return customOrderItemMapper.updateCustomOrderItem(customOrderItem);
}
/**
* 批量删除备案订单项
*
* @param ids 需要删除的备案订单项ID
* @return 结果
*/
@Override
public int deleteCustomOrderItemByIds(Long[] ids)
{
return customOrderItemMapper.deleteCustomOrderItemByIds(ids);
}
/**
* 删除备案订单项信息
*
* @param id 备案订单项ID
* @return 结果
*/
@Override
public int deleteCustomOrderItemById(Long id)
{
return customOrderItemMapper.deleteCustomOrderItemById(id);
}
}
@@ -0,0 +1,225 @@
package com.ruoyi.custom.service.impl;
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.github.pagehelper.PageHelper;
import com.baomidou.mybatisplus.core.toolkit.support.SFunction;
import java.util.HashMap;
import com.ruoyi.common.utils.StringUtils;
import com.alibaba.fastjson.JSONArray;
import java.util.List;
import java.util.Map;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import java.util.ArrayList;
import com.ruoyi.common.utils.StringUtils;
import org.springframework.transaction.annotation.Transactional;
import com.ruoyi.custom.domain.CustomOrderItem;
import com.ruoyi.custom.mapper.CustomOrderMapper;
import com.ruoyi.custom.domain.CustomOrder;
import com.ruoyi.custom.domain.CustomOrderPlus;
import com.ruoyi.custom.service.ICustomOrderService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.jdbc.core.JdbcTemplate;
/**
* 备案订单Service业务层处理
*
* @author luqj
* @date 2021-10-23
*/
@Service
public class CustomOrderServiceImpl extends ServiceImpl<CustomOrderMapper, CustomOrderPlus> implements ICustomOrderService
{
@Autowired
private CustomOrderMapper customOrderMapper;
@Autowired
private JdbcTemplate jdbcTemplate;
@Override
public List<CustomOrderPlus> getByIds(List<Long> ids, SFunction<CustomOrderPlus, ?>... columns) {
LambdaQueryWrapper<CustomOrderPlus> lambdaQueryWrapper = new LambdaQueryWrapper<CustomOrderPlus>()
.select(columns).in(CustomOrderPlus::getId, ids);
return this.list(lambdaQueryWrapper);
}
@Override
public CustomOrderPlus getById(Long id, SFunction<CustomOrderPlus, ?>... columns) {
LambdaQueryWrapper<CustomOrderPlus> lambdaQueryWrapper = new LambdaQueryWrapper<CustomOrderPlus>()
.select(columns).eq(CustomOrderPlus::getId, id);
return baseMapper.selectOne(lambdaQueryWrapper);
}
@Override
public Map<Long, CustomOrderPlus> getMapByIds(List<Long> ids, SFunction<CustomOrderPlus, ?>... columns) {
List<CustomOrderPlus> list = this.getByIds(ids, columns);
Map<Long, CustomOrderPlus> map = new HashMap<>();
for (CustomOrderPlus item : list) {
map.put(item.getId(), item);
}
return map;
}
@Override
public Map<Long, CustomOrderPlus> getMapByIds(List<Long> ids) {
List<CustomOrderPlus> list = this.getByIds(ids);
Map<Long, CustomOrderPlus> map = new HashMap<>();
for (CustomOrderPlus item : list) {
map.put(item.getId(), item);
}
return map;
}
@Override
public List<CustomOrderPlus> getByIds(List<Long> ids) {
LambdaQueryWrapper<CustomOrderPlus> lambdaQueryWrapper = new LambdaQueryWrapper<CustomOrderPlus>().in(CustomOrderPlus::getId, ids);
return this.list(lambdaQueryWrapper);
}
public <T> T sum(String field, String where, Class<T> tClass) {
StringBuffer stringBuffer = new StringBuffer();
stringBuffer.append("select ");
stringBuffer.append(" sum(" + field + ") as total ");
stringBuffer.append(" from custom_order ");
if (StringUtils.isNotBlank(where)) {
stringBuffer.append(" where ");
stringBuffer.append(where);
}
T result = jdbcTemplate.queryForObject(stringBuffer.toString(), tClass);
return result;
}
public Long count(String where) {
StringBuffer stringBuffer = new StringBuffer();
stringBuffer.append("select ");
stringBuffer.append(" count(1)");
stringBuffer.append(" from ");
stringBuffer.append(" custom_order ");
if (StringUtils.isNotBlank(where)) {
stringBuffer.append(" where ");
stringBuffer.append(where);
}
Long result = jdbcTemplate.queryForObject(stringBuffer.toString(), Long.class);
return result;
}
public <T> List<T> countByGroupBy(String select, String where, String groupby, Class<T> tClass) {
StringBuffer stringBuffer = new StringBuffer();
stringBuffer.append("select ");
stringBuffer.append(select);
stringBuffer.append(" from ");
stringBuffer.append(" custom_order ");
if (StringUtils.isNotBlank(where)) {
stringBuffer.append(" where ");
stringBuffer.append(where);
}
stringBuffer.append(" group by ");
stringBuffer.append(groupby);
List result = jdbcTemplate.queryForList(stringBuffer.toString());
List<T> tList = JSONArray.parseArray(JSONArray.toJSONString(result), tClass);
return tList;
}
/**
* 查询备案订单
*
* @param id 备案订单ID
* @return 备案订单
*/
@Override
public CustomOrder selectCustomOrderById(Long id)
{
return customOrderMapper.selectCustomOrderById(id);
}
/**
* 查询备案订单列表
*
* @param customOrder 备案订单
* @return 备案订单
*/
@Override
public List<CustomOrder> selectCustomOrderList(CustomOrder customOrder)
{
return customOrderMapper.selectCustomOrderList(customOrder);
}
/**
* 新增备案订单
*
* @param customOrder 备案订单
* @return 结果
*/
@Transactional
@Override
public int insertCustomOrder(CustomOrder customOrder)
{
int rows = customOrderMapper.insertCustomOrder(customOrder);
insertCustomOrderItem(customOrder);
return rows;
}
/**
* 修改备案订单
*
* @param customOrder 备案订单
* @return 结果
*/
@Transactional
@Override
public int updateCustomOrder(CustomOrder customOrder)
{
customOrderMapper.deleteCustomOrderItemByOrderId(customOrder.getId());
insertCustomOrderItem(customOrder);
return customOrderMapper.updateCustomOrder(customOrder);
}
/**
* 批量删除备案订单
*
* @param ids 需要删除的备案订单ID
* @return 结果
*/
@Transactional
@Override
public int deleteCustomOrderByIds(Long[] ids)
{
customOrderMapper.deleteCustomOrderItemByOrderIds(ids);
return customOrderMapper.deleteCustomOrderByIds(ids);
}
/**
* 删除备案订单信息
*
* @param id 备案订单ID
* @return 结果
*/
@Override
public int deleteCustomOrderById(Long id)
{
customOrderMapper.deleteCustomOrderItemByOrderId(id);
return customOrderMapper.deleteCustomOrderById(id);
}
/**
* 新增备案订单项信息
*
* @param customOrder 备案订单对象
*/
public void insertCustomOrderItem(CustomOrder customOrder)
{
List<CustomOrderItem> customOrderItemList = customOrder.getCustomOrderItemList();
Long id = customOrder.getId();
if (StringUtils.isNotNull(customOrderItemList))
{
List<CustomOrderItem> list = new ArrayList<CustomOrderItem>();
for (CustomOrderItem customOrderItem : customOrderItemList)
{
customOrderItem.setOrderId(id);
list.add(customOrderItem);
}
if (list.size() > 0)
{
customOrderMapper.batchCustomOrderItem(list);
}
}
}
}
@@ -0,0 +1,190 @@
package com.ruoyi.custom.service.impl;
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.github.pagehelper.PageHelper;
import com.baomidou.mybatisplus.core.toolkit.support.SFunction;
import java.util.HashMap;
import com.ruoyi.common.utils.StringUtils;
import com.alibaba.fastjson.JSONArray;
import java.util.List;
import java.util.Map;
import com.ruoyi.common.utils.DateUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.custom.mapper.CustomParcelNumberMapper;
import com.ruoyi.custom.domain.CustomParcelNumber;
import com.ruoyi.custom.domain.CustomParcelNumberPlus;
import com.ruoyi.custom.service.ICustomParcelNumberService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.jdbc.core.JdbcTemplate;
/**
* 行邮税号Service业务层处理
*
* @author luqj
* @date 2021-10-23
*/
@Service
public class CustomParcelNumberServiceImpl extends ServiceImpl<CustomParcelNumberMapper, CustomParcelNumberPlus> implements ICustomParcelNumberService
{
@Autowired
private CustomParcelNumberMapper customParcelNumberMapper;
@Autowired
private JdbcTemplate jdbcTemplate;
@Override
public List<CustomParcelNumberPlus> getByIds(List<Long> ids, SFunction<CustomParcelNumberPlus, ?>... columns) {
LambdaQueryWrapper<CustomParcelNumberPlus> lambdaQueryWrapper = new LambdaQueryWrapper<CustomParcelNumberPlus>()
.select(columns).in(CustomParcelNumberPlus::getId, ids);
return this.list(lambdaQueryWrapper);
}
@Override
public CustomParcelNumberPlus getById(Long id, SFunction<CustomParcelNumberPlus, ?>... columns) {
LambdaQueryWrapper<CustomParcelNumberPlus> lambdaQueryWrapper = new LambdaQueryWrapper<CustomParcelNumberPlus>()
.select(columns).eq(CustomParcelNumberPlus::getId, id);
return baseMapper.selectOne(lambdaQueryWrapper);
}
@Override
public Map<Long, CustomParcelNumberPlus> getMapByIds(List<Long> ids, SFunction<CustomParcelNumberPlus, ?>... columns) {
List<CustomParcelNumberPlus> list = this.getByIds(ids, columns);
Map<Long, CustomParcelNumberPlus> map = new HashMap<>();
for (CustomParcelNumberPlus item : list) {
map.put(item.getId(), item);
}
return map;
}
@Override
public Map<Long, CustomParcelNumberPlus> getMapByIds(List<Long> ids) {
List<CustomParcelNumberPlus> list = this.getByIds(ids);
Map<Long, CustomParcelNumberPlus> map = new HashMap<>();
for (CustomParcelNumberPlus item : list) {
map.put(item.getId(), item);
}
return map;
}
@Override
public List<CustomParcelNumberPlus> getByIds(List<Long> ids) {
LambdaQueryWrapper<CustomParcelNumberPlus> lambdaQueryWrapper = new LambdaQueryWrapper<CustomParcelNumberPlus>().in(CustomParcelNumberPlus::getId, ids);
return this.list(lambdaQueryWrapper);
}
public <T> T sum(String field, String where, Class<T> tClass) {
StringBuffer stringBuffer = new StringBuffer();
stringBuffer.append("select ");
stringBuffer.append(" sum(" + field + ") as total ");
stringBuffer.append(" from custom_parcel_number ");
if (StringUtils.isNotBlank(where)) {
stringBuffer.append(" where ");
stringBuffer.append(where);
}
T result = jdbcTemplate.queryForObject(stringBuffer.toString(), tClass);
return result;
}
public Long count(String where) {
StringBuffer stringBuffer = new StringBuffer();
stringBuffer.append("select ");
stringBuffer.append(" count(1)");
stringBuffer.append(" from ");
stringBuffer.append(" custom_parcel_number ");
if (StringUtils.isNotBlank(where)) {
stringBuffer.append(" where ");
stringBuffer.append(where);
}
Long result = jdbcTemplate.queryForObject(stringBuffer.toString(), Long.class);
return result;
}
public <T> List<T> countByGroupBy(String select, String where, String groupby, Class<T> tClass) {
StringBuffer stringBuffer = new StringBuffer();
stringBuffer.append("select ");
stringBuffer.append(select);
stringBuffer.append(" from ");
stringBuffer.append(" custom_parcel_number ");
if (StringUtils.isNotBlank(where)) {
stringBuffer.append(" where ");
stringBuffer.append(where);
}
stringBuffer.append(" group by ");
stringBuffer.append(groupby);
List result = jdbcTemplate.queryForList(stringBuffer.toString());
List<T> tList = JSONArray.parseArray(JSONArray.toJSONString(result), tClass);
return tList;
}
/**
* 查询行邮税号
*
* @param id 行邮税号ID
* @return 行邮税号
*/
@Override
public CustomParcelNumber selectCustomParcelNumberById(Long id)
{
return customParcelNumberMapper.selectCustomParcelNumberById(id);
}
/**
* 查询行邮税号列表
*
* @param customParcelNumber 行邮税号
* @return 行邮税号
*/
@Override
public List<CustomParcelNumber> selectCustomParcelNumberList(CustomParcelNumber customParcelNumber)
{
return customParcelNumberMapper.selectCustomParcelNumberList(customParcelNumber);
}
/**
* 新增行邮税号
*
* @param customParcelNumber 行邮税号
* @return 结果
*/
@Override
public int insertCustomParcelNumber(CustomParcelNumber customParcelNumber)
{
return customParcelNumberMapper.insertCustomParcelNumber(customParcelNumber);
}
/**
* 修改行邮税号
*
* @param customParcelNumber 行邮税号
* @return 结果
*/
@Override
public int updateCustomParcelNumber(CustomParcelNumber customParcelNumber)
{
customParcelNumber.setUpdateTime(DateUtils.getNowDate());
return customParcelNumberMapper.updateCustomParcelNumber(customParcelNumber);
}
/**
* 批量删除行邮税号
*
* @param ids 需要删除的行邮税号ID
* @return 结果
*/
@Override
public int deleteCustomParcelNumberByIds(Long[] ids)
{
return customParcelNumberMapper.deleteCustomParcelNumberByIds(ids);
}
/**
* 删除行邮税号信息
*
* @param id 行邮税号ID
* @return 结果
*/
@Override
public int deleteCustomParcelNumberById(Long id)
{
return customParcelNumberMapper.deleteCustomParcelNumberById(id);
}
}
@@ -0,0 +1,190 @@
package com.ruoyi.custom.service.impl;
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.github.pagehelper.PageHelper;
import com.baomidou.mybatisplus.core.toolkit.support.SFunction;
import java.util.HashMap;
import com.ruoyi.common.utils.StringUtils;
import com.alibaba.fastjson.JSONArray;
import java.util.List;
import java.util.Map;
import com.ruoyi.common.utils.DateUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.custom.mapper.CustomProductRecordMapper;
import com.ruoyi.custom.domain.CustomProductRecord;
import com.ruoyi.custom.domain.CustomProductRecordPlus;
import com.ruoyi.custom.service.ICustomProductRecordService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.jdbc.core.JdbcTemplate;
/**
* 商品备案Service业务层处理
*
* @author luqj
* @date 2021-10-23
*/
@Service
public class CustomProductRecordServiceImpl extends ServiceImpl<CustomProductRecordMapper, CustomProductRecordPlus> implements ICustomProductRecordService
{
@Autowired
private CustomProductRecordMapper customProductRecordMapper;
@Autowired
private JdbcTemplate jdbcTemplate;
@Override
public List<CustomProductRecordPlus> getByIds(List<Long> ids, SFunction<CustomProductRecordPlus, ?>... columns) {
LambdaQueryWrapper<CustomProductRecordPlus> lambdaQueryWrapper = new LambdaQueryWrapper<CustomProductRecordPlus>()
.select(columns).in(CustomProductRecordPlus::getId, ids);
return this.list(lambdaQueryWrapper);
}
@Override
public CustomProductRecordPlus getById(Long id, SFunction<CustomProductRecordPlus, ?>... columns) {
LambdaQueryWrapper<CustomProductRecordPlus> lambdaQueryWrapper = new LambdaQueryWrapper<CustomProductRecordPlus>()
.select(columns).eq(CustomProductRecordPlus::getId, id);
return baseMapper.selectOne(lambdaQueryWrapper);
}
@Override
public Map<Long, CustomProductRecordPlus> getMapByIds(List<Long> ids, SFunction<CustomProductRecordPlus, ?>... columns) {
List<CustomProductRecordPlus> list = this.getByIds(ids, columns);
Map<Long, CustomProductRecordPlus> map = new HashMap<>();
for (CustomProductRecordPlus item : list) {
map.put(item.getId(), item);
}
return map;
}
@Override
public Map<Long, CustomProductRecordPlus> getMapByIds(List<Long> ids) {
List<CustomProductRecordPlus> list = this.getByIds(ids);
Map<Long, CustomProductRecordPlus> map = new HashMap<>();
for (CustomProductRecordPlus item : list) {
map.put(item.getId(), item);
}
return map;
}
@Override
public List<CustomProductRecordPlus> getByIds(List<Long> ids) {
LambdaQueryWrapper<CustomProductRecordPlus> lambdaQueryWrapper = new LambdaQueryWrapper<CustomProductRecordPlus>().in(CustomProductRecordPlus::getId, ids);
return this.list(lambdaQueryWrapper);
}
public <T> T sum(String field, String where, Class<T> tClass) {
StringBuffer stringBuffer = new StringBuffer();
stringBuffer.append("select ");
stringBuffer.append(" sum(" + field + ") as total ");
stringBuffer.append(" from custom_product_record ");
if (StringUtils.isNotBlank(where)) {
stringBuffer.append(" where ");
stringBuffer.append(where);
}
T result = jdbcTemplate.queryForObject(stringBuffer.toString(), tClass);
return result;
}
public Long count(String where) {
StringBuffer stringBuffer = new StringBuffer();
stringBuffer.append("select ");
stringBuffer.append(" count(1)");
stringBuffer.append(" from ");
stringBuffer.append(" custom_product_record ");
if (StringUtils.isNotBlank(where)) {
stringBuffer.append(" where ");
stringBuffer.append(where);
}
Long result = jdbcTemplate.queryForObject(stringBuffer.toString(), Long.class);
return result;
}
public <T> List<T> countByGroupBy(String select, String where, String groupby, Class<T> tClass) {
StringBuffer stringBuffer = new StringBuffer();
stringBuffer.append("select ");
stringBuffer.append(select);
stringBuffer.append(" from ");
stringBuffer.append(" custom_product_record ");
if (StringUtils.isNotBlank(where)) {
stringBuffer.append(" where ");
stringBuffer.append(where);
}
stringBuffer.append(" group by ");
stringBuffer.append(groupby);
List result = jdbcTemplate.queryForList(stringBuffer.toString());
List<T> tList = JSONArray.parseArray(JSONArray.toJSONString(result), tClass);
return tList;
}
/**
* 查询商品备案
*
* @param id 商品备案ID
* @return 商品备案
*/
@Override
public CustomProductRecord selectCustomProductRecordById(Long id)
{
return customProductRecordMapper.selectCustomProductRecordById(id);
}
/**
* 查询商品备案列表
*
* @param customProductRecord 商品备案
* @return 商品备案
*/
@Override
public List<CustomProductRecord> selectCustomProductRecordList(CustomProductRecord customProductRecord)
{
return customProductRecordMapper.selectCustomProductRecordList(customProductRecord);
}
/**
* 新增商品备案
*
* @param customProductRecord 商品备案
* @return 结果
*/
@Override
public int insertCustomProductRecord(CustomProductRecord customProductRecord)
{
return customProductRecordMapper.insertCustomProductRecord(customProductRecord);
}
/**
* 修改商品备案
*
* @param customProductRecord 商品备案
* @return 结果
*/
@Override
public int updateCustomProductRecord(CustomProductRecord customProductRecord)
{
customProductRecord.setUpdateTime(DateUtils.getNowDate());
return customProductRecordMapper.updateCustomProductRecord(customProductRecord);
}
/**
* 批量删除商品备案
*
* @param ids 需要删除的商品备案ID
* @return 结果
*/
@Override
public int deleteCustomProductRecordByIds(Long[] ids)
{
return customProductRecordMapper.deleteCustomProductRecordByIds(ids);
}
/**
* 删除商品备案信息
*
* @param id 商品备案ID
* @return 结果
*/
@Override
public int deleteCustomProductRecordById(Long id)
{
return customProductRecordMapper.deleteCustomProductRecordById(id);
}
}
@@ -0,0 +1,188 @@
package com.ruoyi.custom.service.impl;
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.github.pagehelper.PageHelper;
import com.baomidou.mybatisplus.core.toolkit.support.SFunction;
import java.util.HashMap;
import com.ruoyi.common.utils.StringUtils;
import com.alibaba.fastjson.JSONArray;
import java.util.List;
import java.util.Map;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.custom.mapper.CustomRegionCodeMapper;
import com.ruoyi.custom.domain.CustomRegionCode;
import com.ruoyi.custom.domain.CustomRegionCodePlus;
import com.ruoyi.custom.service.ICustomRegionCodeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.jdbc.core.JdbcTemplate;
/**
* 国家行政区划代码Service业务层处理
*
* @author luqj
* @date 2021-10-23
*/
@Service
public class CustomRegionCodeServiceImpl extends ServiceImpl<CustomRegionCodeMapper, CustomRegionCodePlus> implements ICustomRegionCodeService
{
@Autowired
private CustomRegionCodeMapper customRegionCodeMapper;
@Autowired
private JdbcTemplate jdbcTemplate;
@Override
public List<CustomRegionCodePlus> getByIds(List<Long> ids, SFunction<CustomRegionCodePlus, ?>... columns) {
LambdaQueryWrapper<CustomRegionCodePlus> lambdaQueryWrapper = new LambdaQueryWrapper<CustomRegionCodePlus>()
.select(columns).in(CustomRegionCodePlus::getId, ids);
return this.list(lambdaQueryWrapper);
}
@Override
public CustomRegionCodePlus getById(Long id, SFunction<CustomRegionCodePlus, ?>... columns) {
LambdaQueryWrapper<CustomRegionCodePlus> lambdaQueryWrapper = new LambdaQueryWrapper<CustomRegionCodePlus>()
.select(columns).eq(CustomRegionCodePlus::getId, id);
return baseMapper.selectOne(lambdaQueryWrapper);
}
@Override
public Map<Long, CustomRegionCodePlus> getMapByIds(List<Long> ids, SFunction<CustomRegionCodePlus, ?>... columns) {
List<CustomRegionCodePlus> list = this.getByIds(ids, columns);
Map<Long, CustomRegionCodePlus> map = new HashMap<>();
for (CustomRegionCodePlus item : list) {
map.put(item.getId(), item);
}
return map;
}
@Override
public Map<Long, CustomRegionCodePlus> getMapByIds(List<Long> ids) {
List<CustomRegionCodePlus> list = this.getByIds(ids);
Map<Long, CustomRegionCodePlus> map = new HashMap<>();
for (CustomRegionCodePlus item : list) {
map.put(item.getId(), item);
}
return map;
}
@Override
public List<CustomRegionCodePlus> getByIds(List<Long> ids) {
LambdaQueryWrapper<CustomRegionCodePlus> lambdaQueryWrapper = new LambdaQueryWrapper<CustomRegionCodePlus>().in(CustomRegionCodePlus::getId, ids);
return this.list(lambdaQueryWrapper);
}
public <T> T sum(String field, String where, Class<T> tClass) {
StringBuffer stringBuffer = new StringBuffer();
stringBuffer.append("select ");
stringBuffer.append(" sum(" + field + ") as total ");
stringBuffer.append(" from custom_region_code ");
if (StringUtils.isNotBlank(where)) {
stringBuffer.append(" where ");
stringBuffer.append(where);
}
T result = jdbcTemplate.queryForObject(stringBuffer.toString(), tClass);
return result;
}
public Long count(String where) {
StringBuffer stringBuffer = new StringBuffer();
stringBuffer.append("select ");
stringBuffer.append(" count(1)");
stringBuffer.append(" from ");
stringBuffer.append(" custom_region_code ");
if (StringUtils.isNotBlank(where)) {
stringBuffer.append(" where ");
stringBuffer.append(where);
}
Long result = jdbcTemplate.queryForObject(stringBuffer.toString(), Long.class);
return result;
}
public <T> List<T> countByGroupBy(String select, String where, String groupby, Class<T> tClass) {
StringBuffer stringBuffer = new StringBuffer();
stringBuffer.append("select ");
stringBuffer.append(select);
stringBuffer.append(" from ");
stringBuffer.append(" custom_region_code ");
if (StringUtils.isNotBlank(where)) {
stringBuffer.append(" where ");
stringBuffer.append(where);
}
stringBuffer.append(" group by ");
stringBuffer.append(groupby);
List result = jdbcTemplate.queryForList(stringBuffer.toString());
List<T> tList = JSONArray.parseArray(JSONArray.toJSONString(result), tClass);
return tList;
}
/**
* 查询国家行政区划代码
*
* @param id 国家行政区划代码ID
* @return 国家行政区划代码
*/
@Override
public CustomRegionCode selectCustomRegionCodeById(Long id)
{
return customRegionCodeMapper.selectCustomRegionCodeById(id);
}
/**
* 查询国家行政区划代码列表
*
* @param customRegionCode 国家行政区划代码
* @return 国家行政区划代码
*/
@Override
public List<CustomRegionCode> selectCustomRegionCodeList(CustomRegionCode customRegionCode)
{
return customRegionCodeMapper.selectCustomRegionCodeList(customRegionCode);
}
/**
* 新增国家行政区划代码
*
* @param customRegionCode 国家行政区划代码
* @return 结果
*/
@Override
public int insertCustomRegionCode(CustomRegionCode customRegionCode)
{
return customRegionCodeMapper.insertCustomRegionCode(customRegionCode);
}
/**
* 修改国家行政区划代码
*
* @param customRegionCode 国家行政区划代码
* @return 结果
*/
@Override
public int updateCustomRegionCode(CustomRegionCode customRegionCode)
{
return customRegionCodeMapper.updateCustomRegionCode(customRegionCode);
}
/**
* 批量删除国家行政区划代码
*
* @param ids 需要删除的国家行政区划代码ID
* @return 结果
*/
@Override
public int deleteCustomRegionCodeByIds(Long[] ids)
{
return customRegionCodeMapper.deleteCustomRegionCodeByIds(ids);
}
/**
* 删除国家行政区划代码信息
*
* @param id 国家行政区划代码ID
* @return 结果
*/
@Override
public int deleteCustomRegionCodeById(Long id)
{
return customRegionCodeMapper.deleteCustomRegionCodeById(id);
}
}
@@ -0,0 +1,188 @@
package com.ruoyi.custom.service.impl;
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.github.pagehelper.PageHelper;
import com.baomidou.mybatisplus.core.toolkit.support.SFunction;
import java.util.HashMap;
import com.ruoyi.common.utils.StringUtils;
import com.alibaba.fastjson.JSONArray;
import java.util.List;
import java.util.Map;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.custom.mapper.CustomUnitCodeMapper;
import com.ruoyi.custom.domain.CustomUnitCode;
import com.ruoyi.custom.domain.CustomUnitCodePlus;
import com.ruoyi.custom.service.ICustomUnitCodeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.jdbc.core.JdbcTemplate;
/**
* 计量单位代码Service业务层处理
*
* @author luqj
* @date 2021-10-23
*/
@Service
public class CustomUnitCodeServiceImpl extends ServiceImpl<CustomUnitCodeMapper, CustomUnitCodePlus> implements ICustomUnitCodeService
{
@Autowired
private CustomUnitCodeMapper customUnitCodeMapper;
@Autowired
private JdbcTemplate jdbcTemplate;
@Override
public List<CustomUnitCodePlus> getByIds(List<Long> ids, SFunction<CustomUnitCodePlus, ?>... columns) {
LambdaQueryWrapper<CustomUnitCodePlus> lambdaQueryWrapper = new LambdaQueryWrapper<CustomUnitCodePlus>()
.select(columns).in(CustomUnitCodePlus::getId, ids);
return this.list(lambdaQueryWrapper);
}
@Override
public CustomUnitCodePlus getById(Long id, SFunction<CustomUnitCodePlus, ?>... columns) {
LambdaQueryWrapper<CustomUnitCodePlus> lambdaQueryWrapper = new LambdaQueryWrapper<CustomUnitCodePlus>()
.select(columns).eq(CustomUnitCodePlus::getId, id);
return baseMapper.selectOne(lambdaQueryWrapper);
}
@Override
public Map<Long, CustomUnitCodePlus> getMapByIds(List<Long> ids, SFunction<CustomUnitCodePlus, ?>... columns) {
List<CustomUnitCodePlus> list = this.getByIds(ids, columns);
Map<Long, CustomUnitCodePlus> map = new HashMap<>();
for (CustomUnitCodePlus item : list) {
map.put(item.getId(), item);
}
return map;
}
@Override
public Map<Long, CustomUnitCodePlus> getMapByIds(List<Long> ids) {
List<CustomUnitCodePlus> list = this.getByIds(ids);
Map<Long, CustomUnitCodePlus> map = new HashMap<>();
for (CustomUnitCodePlus item : list) {
map.put(item.getId(), item);
}
return map;
}
@Override
public List<CustomUnitCodePlus> getByIds(List<Long> ids) {
LambdaQueryWrapper<CustomUnitCodePlus> lambdaQueryWrapper = new LambdaQueryWrapper<CustomUnitCodePlus>().in(CustomUnitCodePlus::getId, ids);
return this.list(lambdaQueryWrapper);
}
public <T> T sum(String field, String where, Class<T> tClass) {
StringBuffer stringBuffer = new StringBuffer();
stringBuffer.append("select ");
stringBuffer.append(" sum(" + field + ") as total ");
stringBuffer.append(" from custom_unit_code ");
if (StringUtils.isNotBlank(where)) {
stringBuffer.append(" where ");
stringBuffer.append(where);
}
T result = jdbcTemplate.queryForObject(stringBuffer.toString(), tClass);
return result;
}
public Long count(String where) {
StringBuffer stringBuffer = new StringBuffer();
stringBuffer.append("select ");
stringBuffer.append(" count(1)");
stringBuffer.append(" from ");
stringBuffer.append(" custom_unit_code ");
if (StringUtils.isNotBlank(where)) {
stringBuffer.append(" where ");
stringBuffer.append(where);
}
Long result = jdbcTemplate.queryForObject(stringBuffer.toString(), Long.class);
return result;
}
public <T> List<T> countByGroupBy(String select, String where, String groupby, Class<T> tClass) {
StringBuffer stringBuffer = new StringBuffer();
stringBuffer.append("select ");
stringBuffer.append(select);
stringBuffer.append(" from ");
stringBuffer.append(" custom_unit_code ");
if (StringUtils.isNotBlank(where)) {
stringBuffer.append(" where ");
stringBuffer.append(where);
}
stringBuffer.append(" group by ");
stringBuffer.append(groupby);
List result = jdbcTemplate.queryForList(stringBuffer.toString());
List<T> tList = JSONArray.parseArray(JSONArray.toJSONString(result), tClass);
return tList;
}
/**
* 查询计量单位代码
*
* @param id 计量单位代码ID
* @return 计量单位代码
*/
@Override
public CustomUnitCode selectCustomUnitCodeById(Long id)
{
return customUnitCodeMapper.selectCustomUnitCodeById(id);
}
/**
* 查询计量单位代码列表
*
* @param customUnitCode 计量单位代码
* @return 计量单位代码
*/
@Override
public List<CustomUnitCode> selectCustomUnitCodeList(CustomUnitCode customUnitCode)
{
return customUnitCodeMapper.selectCustomUnitCodeList(customUnitCode);
}
/**
* 新增计量单位代码
*
* @param customUnitCode 计量单位代码
* @return 结果
*/
@Override
public int insertCustomUnitCode(CustomUnitCode customUnitCode)
{
return customUnitCodeMapper.insertCustomUnitCode(customUnitCode);
}
/**
* 修改计量单位代码
*
* @param customUnitCode 计量单位代码
* @return 结果
*/
@Override
public int updateCustomUnitCode(CustomUnitCode customUnitCode)
{
return customUnitCodeMapper.updateCustomUnitCode(customUnitCode);
}
/**
* 批量删除计量单位代码
*
* @param ids 需要删除的计量单位代码ID
* @return 结果
*/
@Override
public int deleteCustomUnitCodeByIds(Long[] ids)
{
return customUnitCodeMapper.deleteCustomUnitCodeByIds(ids);
}
/**
* 删除计量单位代码信息
*
* @param id 计量单位代码ID
* @return 结果
*/
@Override
public int deleteCustomUnitCodeById(Long id)
{
return customUnitCodeMapper.deleteCustomUnitCodeById(id);
}
}
@@ -0,0 +1,188 @@
package com.ruoyi.custom.service.impl;
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.github.pagehelper.PageHelper;
import com.baomidou.mybatisplus.core.toolkit.support.SFunction;
import java.util.HashMap;
import com.ruoyi.common.utils.StringUtils;
import com.alibaba.fastjson.JSONArray;
import java.util.List;
import java.util.Map;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.custom.mapper.CustomWarehouseMapper;
import com.ruoyi.custom.domain.CustomWarehouse;
import com.ruoyi.custom.domain.CustomWarehousePlus;
import com.ruoyi.custom.service.ICustomWarehouseService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.jdbc.core.JdbcTemplate;
/**
* 仓库Service业务层处理
*
* @author luqj
* @date 2021-10-23
*/
@Service
public class CustomWarehouseServiceImpl extends ServiceImpl<CustomWarehouseMapper, CustomWarehousePlus> implements ICustomWarehouseService
{
@Autowired
private CustomWarehouseMapper customWarehouseMapper;
@Autowired
private JdbcTemplate jdbcTemplate;
@Override
public List<CustomWarehousePlus> getByIds(List<Long> ids, SFunction<CustomWarehousePlus, ?>... columns) {
LambdaQueryWrapper<CustomWarehousePlus> lambdaQueryWrapper = new LambdaQueryWrapper<CustomWarehousePlus>()
.select(columns).in(CustomWarehousePlus::getId, ids);
return this.list(lambdaQueryWrapper);
}
@Override
public CustomWarehousePlus getById(Long id, SFunction<CustomWarehousePlus, ?>... columns) {
LambdaQueryWrapper<CustomWarehousePlus> lambdaQueryWrapper = new LambdaQueryWrapper<CustomWarehousePlus>()
.select(columns).eq(CustomWarehousePlus::getId, id);
return baseMapper.selectOne(lambdaQueryWrapper);
}
@Override
public Map<Long, CustomWarehousePlus> getMapByIds(List<Long> ids, SFunction<CustomWarehousePlus, ?>... columns) {
List<CustomWarehousePlus> list = this.getByIds(ids, columns);
Map<Long, CustomWarehousePlus> map = new HashMap<>();
for (CustomWarehousePlus item : list) {
map.put(item.getId(), item);
}
return map;
}
@Override
public Map<Long, CustomWarehousePlus> getMapByIds(List<Long> ids) {
List<CustomWarehousePlus> list = this.getByIds(ids);
Map<Long, CustomWarehousePlus> map = new HashMap<>();
for (CustomWarehousePlus item : list) {
map.put(item.getId(), item);
}
return map;
}
@Override
public List<CustomWarehousePlus> getByIds(List<Long> ids) {
LambdaQueryWrapper<CustomWarehousePlus> lambdaQueryWrapper = new LambdaQueryWrapper<CustomWarehousePlus>().in(CustomWarehousePlus::getId, ids);
return this.list(lambdaQueryWrapper);
}
public <T> T sum(String field, String where, Class<T> tClass) {
StringBuffer stringBuffer = new StringBuffer();
stringBuffer.append("select ");
stringBuffer.append(" sum(" + field + ") as total ");
stringBuffer.append(" from custom_warehouse ");
if (StringUtils.isNotBlank(where)) {
stringBuffer.append(" where ");
stringBuffer.append(where);
}
T result = jdbcTemplate.queryForObject(stringBuffer.toString(), tClass);
return result;
}
public Long count(String where) {
StringBuffer stringBuffer = new StringBuffer();
stringBuffer.append("select ");
stringBuffer.append(" count(1)");
stringBuffer.append(" from ");
stringBuffer.append(" custom_warehouse ");
if (StringUtils.isNotBlank(where)) {
stringBuffer.append(" where ");
stringBuffer.append(where);
}
Long result = jdbcTemplate.queryForObject(stringBuffer.toString(), Long.class);
return result;
}
public <T> List<T> countByGroupBy(String select, String where, String groupby, Class<T> tClass) {
StringBuffer stringBuffer = new StringBuffer();
stringBuffer.append("select ");
stringBuffer.append(select);
stringBuffer.append(" from ");
stringBuffer.append(" custom_warehouse ");
if (StringUtils.isNotBlank(where)) {
stringBuffer.append(" where ");
stringBuffer.append(where);
}
stringBuffer.append(" group by ");
stringBuffer.append(groupby);
List result = jdbcTemplate.queryForList(stringBuffer.toString());
List<T> tList = JSONArray.parseArray(JSONArray.toJSONString(result), tClass);
return tList;
}
/**
* 查询仓库
*
* @param id 仓库ID
* @return 仓库
*/
@Override
public CustomWarehouse selectCustomWarehouseById(Long id)
{
return customWarehouseMapper.selectCustomWarehouseById(id);
}
/**
* 查询仓库列表
*
* @param customWarehouse 仓库
* @return 仓库
*/
@Override
public List<CustomWarehouse> selectCustomWarehouseList(CustomWarehouse customWarehouse)
{
return customWarehouseMapper.selectCustomWarehouseList(customWarehouse);
}
/**
* 新增仓库
*
* @param customWarehouse 仓库
* @return 结果
*/
@Override
public int insertCustomWarehouse(CustomWarehouse customWarehouse)
{
return customWarehouseMapper.insertCustomWarehouse(customWarehouse);
}
/**
* 修改仓库
*
* @param customWarehouse 仓库
* @return 结果
*/
@Override
public int updateCustomWarehouse(CustomWarehouse customWarehouse)
{
return customWarehouseMapper.updateCustomWarehouse(customWarehouse);
}
/**
* 批量删除仓库
*
* @param ids 需要删除的仓库ID
* @return 结果
*/
@Override
public int deleteCustomWarehouseByIds(Long[] ids)
{
return customWarehouseMapper.deleteCustomWarehouseByIds(ids);
}
/**
* 删除仓库信息
*
* @param id 仓库ID
* @return 结果
*/
@Override
public int deleteCustomWarehouseById(Long id)
{
return customWarehouseMapper.deleteCustomWarehouseById(id);
}
}