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);
}
}
@@ -0,0 +1,101 @@
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE mapper
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.ruoyi.custom.mapper.CustomCallbackMapper">
<resultMap type="CustomCallback" id="CustomCallbackResult">
<result property="id" column="id" />
<result property="userId" column="user_id" />
<result property="customsCode" column="customs_code" />
<result property="declareOrderNo" column="declare_order_no" />
<result property="sessionId" column="session_id" />
<result property="serviceTime" column="service_time" />
<result property="status" column="status" />
<result property="addTime" column="add_time" />
<result property="postResult" column="post_result" />
<result property="sendNumber" column="send_number" />
<result property="sendTime" column="send_time" />
</resultMap>
<sql id="selectCustomCallbackVo">
select id, user_id, customs_code, declare_order_no, session_id, service_time, status, add_time, post_result, send_number, send_time from custom_callback
</sql>
<select id="selectCustomCallbackList" parameterType="CustomCallback" resultMap="CustomCallbackResult">
<include refid="selectCustomCallbackVo"/>
<where>
<if test="userId != null "> and user_id = #{userId}</if>
<if test="customsCode != null and customsCode != ''"> and customs_code = #{customsCode}</if>
<if test="declareOrderNo != null and declareOrderNo != ''"> and declare_order_no = #{declareOrderNo}</if>
<if test="sessionId != null and sessionId != ''"> and session_id = #{sessionId}</if>
<if test="serviceTime != null "> and service_time = #{serviceTime}</if>
<if test="status != null "> and status = #{status}</if>
<if test="addTime != null "> and add_time = #{addTime}</if>
<if test="postResult != null and postResult != ''"> and post_result = #{postResult}</if>
<if test="sendNumber != null "> and send_number = #{sendNumber}</if>
<if test="sendTime != null "> and send_time = #{sendTime}</if>
</where>
</select>
<select id="selectCustomCallbackById" parameterType="Long" resultMap="CustomCallbackResult">
<include refid="selectCustomCallbackVo"/>
where id = #{id}
</select>
<insert id="insertCustomCallback" parameterType="CustomCallback" useGeneratedKeys="true" keyProperty="id">
insert into custom_callback
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="userId != null">user_id,</if>
<if test="customsCode != null">customs_code,</if>
<if test="declareOrderNo != null">declare_order_no,</if>
<if test="sessionId != null">session_id,</if>
<if test="serviceTime != null">service_time,</if>
<if test="status != null">status,</if>
<if test="addTime != null">add_time,</if>
<if test="postResult != null">post_result,</if>
<if test="sendNumber != null">send_number,</if>
<if test="sendTime != null">send_time,</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="userId != null">#{userId},</if>
<if test="customsCode != null">#{customsCode},</if>
<if test="declareOrderNo != null">#{declareOrderNo},</if>
<if test="sessionId != null">#{sessionId},</if>
<if test="serviceTime != null">#{serviceTime},</if>
<if test="status != null">#{status},</if>
<if test="addTime != null">#{addTime},</if>
<if test="postResult != null">#{postResult},</if>
<if test="sendNumber != null">#{sendNumber},</if>
<if test="sendTime != null">#{sendTime},</if>
</trim>
</insert>
<update id="updateCustomCallback" parameterType="CustomCallback">
update custom_callback
<trim prefix="SET" suffixOverrides=",">
<if test="userId != null">user_id = #{userId},</if>
<if test="customsCode != null">customs_code = #{customsCode},</if>
<if test="declareOrderNo != null">declare_order_no = #{declareOrderNo},</if>
<if test="sessionId != null">session_id = #{sessionId},</if>
<if test="serviceTime != null">service_time = #{serviceTime},</if>
<if test="status != null">status = #{status},</if>
<if test="addTime != null">add_time = #{addTime},</if>
<if test="postResult != null">post_result = #{postResult},</if>
<if test="sendNumber != null">send_number = #{sendNumber},</if>
<if test="sendTime != null">send_time = #{sendTime},</if>
</trim>
where id = #{id}
</update>
<delete id="deleteCustomCallbackById" parameterType="Long">
delete from custom_callback where id = #{id}
</delete>
<delete id="deleteCustomCallbackByIds" parameterType="String">
delete from custom_callback where id in
<foreach item="id" collection="array" open="(" separator="," close=")">
#{id}
</foreach>
</delete>
</mapper>
@@ -0,0 +1,65 @@
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE mapper
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.ruoyi.custom.mapper.CustomCountryCodeMapper">
<resultMap type="CustomCountryCode" id="CustomCountryCodeResult">
<result property="id" column="id" />
<result property="code" column="code" />
<result property="name" column="name" />
<result property="remark" column="remark" />
</resultMap>
<sql id="selectCustomCountryCodeVo">
select id, code, name, remark from custom_country_code
</sql>
<select id="selectCustomCountryCodeList" parameterType="CustomCountryCode" resultMap="CustomCountryCodeResult">
<include refid="selectCustomCountryCodeVo"/>
<where>
<if test="code != null and code != ''"> and code = #{code}</if>
<if test="name != null and name != ''"> and name like concat('%', #{name}, '%')</if>
</where>
</select>
<select id="selectCustomCountryCodeById" parameterType="Long" resultMap="CustomCountryCodeResult">
<include refid="selectCustomCountryCodeVo"/>
where id = #{id}
</select>
<insert id="insertCustomCountryCode" parameterType="CustomCountryCode" useGeneratedKeys="true" keyProperty="id">
insert into custom_country_code
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="code != null and code != ''">code,</if>
<if test="name != null and name != ''">name,</if>
<if test="remark != null">remark,</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="code != null and code != ''">#{code},</if>
<if test="name != null and name != ''">#{name},</if>
<if test="remark != null">#{remark},</if>
</trim>
</insert>
<update id="updateCustomCountryCode" parameterType="CustomCountryCode">
update custom_country_code
<trim prefix="SET" suffixOverrides=",">
<if test="code != null and code != ''">code = #{code},</if>
<if test="name != null and name != ''">name = #{name},</if>
<if test="remark != null">remark = #{remark},</if>
</trim>
where id = #{id}
</update>
<delete id="deleteCustomCountryCodeById" parameterType="Long">
delete from custom_country_code where id = #{id}
</delete>
<delete id="deleteCustomCountryCodeByIds" parameterType="String">
delete from custom_country_code where id in
<foreach item="id" collection="array" open="(" separator="," close=")">
#{id}
</foreach>
</delete>
</mapper>
@@ -0,0 +1,81 @@
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE mapper
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.ruoyi.custom.mapper.CustomDeclarePortMapper">
<resultMap type="CustomDeclarePort" id="CustomDeclarePortResult">
<result property="id" column="id" />
<result property="name" column="name" />
<result property="code" column="code" />
<result property="describe" column="describe" />
<result property="directlyName" column="directly_name" />
<result property="shortName" column="short_name" />
<result property="isUse" column="is_use" />
</resultMap>
<sql id="selectCustomDeclarePortVo">
select id, name, code, describe, directly_name, short_name, is_use from custom_declare_port
</sql>
<select id="selectCustomDeclarePortList" parameterType="CustomDeclarePort" resultMap="CustomDeclarePortResult">
<include refid="selectCustomDeclarePortVo"/>
<where>
<if test="name != null and name != ''"> and name like concat('%', #{name}, '%')</if>
<if test="code != null and code != ''"> and code = #{code}</if>
<if test="describe != null and describe != ''"> and describe = #{describe}</if>
<if test="directlyName != null and directlyName != ''"> and directly_name like concat('%', #{directlyName}, '%')</if>
<if test="shortName != null and shortName != ''"> and short_name like concat('%', #{shortName}, '%')</if>
<if test="isUse != null "> and is_use = #{isUse}</if>
</where>
</select>
<select id="selectCustomDeclarePortById" parameterType="Long" resultMap="CustomDeclarePortResult">
<include refid="selectCustomDeclarePortVo"/>
where id = #{id}
</select>
<insert id="insertCustomDeclarePort" parameterType="CustomDeclarePort" useGeneratedKeys="true" keyProperty="id">
insert into custom_declare_port
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="name != null">name,</if>
<if test="code != null">code,</if>
<if test="describe != null">describe,</if>
<if test="directlyName != null">directly_name,</if>
<if test="shortName != null">short_name,</if>
<if test="isUse != null">is_use,</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="name != null">#{name},</if>
<if test="code != null">#{code},</if>
<if test="describe != null">#{describe},</if>
<if test="directlyName != null">#{directlyName},</if>
<if test="shortName != null">#{shortName},</if>
<if test="isUse != null">#{isUse},</if>
</trim>
</insert>
<update id="updateCustomDeclarePort" parameterType="CustomDeclarePort">
update custom_declare_port
<trim prefix="SET" suffixOverrides=",">
<if test="name != null">name = #{name},</if>
<if test="code != null">code = #{code},</if>
<if test="describe != null">describe = #{describe},</if>
<if test="directlyName != null">directly_name = #{directlyName},</if>
<if test="shortName != null">short_name = #{shortName},</if>
<if test="isUse != null">is_use = #{isUse},</if>
</trim>
where id = #{id}
</update>
<delete id="deleteCustomDeclarePortById" parameterType="Long">
delete from custom_declare_port where id = #{id}
</delete>
<delete id="deleteCustomDeclarePortByIds" parameterType="String">
delete from custom_declare_port where id in
<foreach item="id" collection="array" open="(" separator="," close=")">
#{id}
</foreach>
</delete>
</mapper>
@@ -0,0 +1,130 @@
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE mapper
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.ruoyi.custom.mapper.CustomEnterpriseRecordMapper">
<resultMap type="CustomEnterpriseRecord" id="CustomEnterpriseRecordResult">
<result property="id" column="id" />
<result property="declarePortId" column="declare_port_id" />
<result property="userId" column="user_id" />
<result property="domainName" column="domain_name" />
<result property="enterpriseName" column="enterprise_name" />
<result property="platformShort" column="platform_short" />
<result property="businessShort" column="business_short" />
<result property="creditCode" column="credit_code" />
<result property="customsCode" column="customs_code" />
<result property="nationalCode" column="national_code" />
<result property="encryptUrl" column="encrypt_url" />
<result property="geCode" column="ge_code" />
<result property="messageCode" column="message_code" />
<result property="kjdsKey" column="kjds_key" />
<result property="ftpServerIp" column="ftp_server_ip" />
<result property="ftpPassword" column="ftp_password" />
<result property="remark" column="remark" />
</resultMap>
<sql id="selectCustomEnterpriseRecordVo">
select id, declare_port_id, user_id, domain_name, enterprise_name, platform_short, business_short, credit_code, customs_code, national_code, encrypt_url, ge_code, message_code, kjds_key, ftp_server_ip, ftp_password, remark from custom_enterprise_record
</sql>
<select id="selectCustomEnterpriseRecordList" parameterType="CustomEnterpriseRecord" resultMap="CustomEnterpriseRecordResult">
<include refid="selectCustomEnterpriseRecordVo"/>
<where>
<if test="declarePortId != null "> and declare_port_id = #{declarePortId}</if>
<if test="userId != null "> and user_id = #{userId}</if>
<if test="domainName != null and domainName != ''"> and domain_name like concat('%', #{domainName}, '%')</if>
<if test="enterpriseName != null and enterpriseName != ''"> and enterprise_name like concat('%', #{enterpriseName}, '%')</if>
<if test="platformShort != null and platformShort != ''"> and platform_short = #{platformShort}</if>
<if test="businessShort != null and businessShort != ''"> and business_short = #{businessShort}</if>
<if test="creditCode != null and creditCode != ''"> and credit_code = #{creditCode}</if>
<if test="customsCode != null and customsCode != ''"> and customs_code = #{customsCode}</if>
<if test="nationalCode != null and nationalCode != ''"> and national_code = #{nationalCode}</if>
<if test="encryptUrl != null and encryptUrl != ''"> and encrypt_url = #{encryptUrl}</if>
<if test="geCode != null and geCode != ''"> and ge_code = #{geCode}</if>
<if test="messageCode != null and messageCode != ''"> and message_code = #{messageCode}</if>
<if test="kjdsKey != null and kjdsKey != ''"> and kjds_key = #{kjdsKey}</if>
<if test="ftpServerIp != null and ftpServerIp != ''"> and ftp_server_ip = #{ftpServerIp}</if>
<if test="ftpPassword != null and ftpPassword != ''"> and ftp_password = #{ftpPassword}</if>
</where>
</select>
<select id="selectCustomEnterpriseRecordById" parameterType="Long" resultMap="CustomEnterpriseRecordResult">
<include refid="selectCustomEnterpriseRecordVo"/>
where id = #{id}
</select>
<insert id="insertCustomEnterpriseRecord" parameterType="CustomEnterpriseRecord" useGeneratedKeys="true" keyProperty="id">
insert into custom_enterprise_record
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="declarePortId != null">declare_port_id,</if>
<if test="userId != null">user_id,</if>
<if test="domainName != null">domain_name,</if>
<if test="enterpriseName != null">enterprise_name,</if>
<if test="platformShort != null">platform_short,</if>
<if test="businessShort != null">business_short,</if>
<if test="creditCode != null">credit_code,</if>
<if test="customsCode != null">customs_code,</if>
<if test="nationalCode != null">national_code,</if>
<if test="encryptUrl != null">encrypt_url,</if>
<if test="geCode != null">ge_code,</if>
<if test="messageCode != null">message_code,</if>
<if test="kjdsKey != null">kjds_key,</if>
<if test="ftpServerIp != null">ftp_server_ip,</if>
<if test="ftpPassword != null">ftp_password,</if>
<if test="remark != null">remark,</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="declarePortId != null">#{declarePortId},</if>
<if test="userId != null">#{userId},</if>
<if test="domainName != null">#{domainName},</if>
<if test="enterpriseName != null">#{enterpriseName},</if>
<if test="platformShort != null">#{platformShort},</if>
<if test="businessShort != null">#{businessShort},</if>
<if test="creditCode != null">#{creditCode},</if>
<if test="customsCode != null">#{customsCode},</if>
<if test="nationalCode != null">#{nationalCode},</if>
<if test="encryptUrl != null">#{encryptUrl},</if>
<if test="geCode != null">#{geCode},</if>
<if test="messageCode != null">#{messageCode},</if>
<if test="kjdsKey != null">#{kjdsKey},</if>
<if test="ftpServerIp != null">#{ftpServerIp},</if>
<if test="ftpPassword != null">#{ftpPassword},</if>
<if test="remark != null">#{remark},</if>
</trim>
</insert>
<update id="updateCustomEnterpriseRecord" parameterType="CustomEnterpriseRecord">
update custom_enterprise_record
<trim prefix="SET" suffixOverrides=",">
<if test="declarePortId != null">declare_port_id = #{declarePortId},</if>
<if test="userId != null">user_id = #{userId},</if>
<if test="domainName != null">domain_name = #{domainName},</if>
<if test="enterpriseName != null">enterprise_name = #{enterpriseName},</if>
<if test="platformShort != null">platform_short = #{platformShort},</if>
<if test="businessShort != null">business_short = #{businessShort},</if>
<if test="creditCode != null">credit_code = #{creditCode},</if>
<if test="customsCode != null">customs_code = #{customsCode},</if>
<if test="nationalCode != null">national_code = #{nationalCode},</if>
<if test="encryptUrl != null">encrypt_url = #{encryptUrl},</if>
<if test="geCode != null">ge_code = #{geCode},</if>
<if test="messageCode != null">message_code = #{messageCode},</if>
<if test="kjdsKey != null">kjds_key = #{kjdsKey},</if>
<if test="ftpServerIp != null">ftp_server_ip = #{ftpServerIp},</if>
<if test="ftpPassword != null">ftp_password = #{ftpPassword},</if>
<if test="remark != null">remark = #{remark},</if>
</trim>
where id = #{id}
</update>
<delete id="deleteCustomEnterpriseRecordById" parameterType="Long">
delete from custom_enterprise_record where id = #{id}
</delete>
<delete id="deleteCustomEnterpriseRecordByIds" parameterType="String">
delete from custom_enterprise_record where id in
<foreach item="id" collection="array" open="(" separator="," close=")">
#{id}
</foreach>
</delete>
</mapper>
@@ -0,0 +1,185 @@
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE mapper
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.ruoyi.custom.mapper.CustomFlightInfoMapper">
<resultMap type="CustomFlightInfo" id="CustomFlightInfoResult">
<result property="id" column="id" />
<result property="userId" column="user_id" />
<result property="warehouseId" column="warehouse_id" />
<result property="declarePortId" column="declare_port_id" />
<result property="mode" column="mode" />
<result property="batchNumber" column="batch_number" />
<result property="deliveryNumber" column="delivery_number" />
<result property="trafMode" column="traf_mode" />
<result property="airline" column="airline" />
<result property="departureCountry" column="departure_country" />
<result property="departureCity" column="departure_city" />
<result property="departureAirport" column="departure_airport" />
<result property="transitAirport" column="transit_airport" />
<result property="arriveAirport" column="arrive_airport" />
<result property="flightNumber" column="flight_number" />
<result property="isDirectFlight" column="is_direct_flight" />
<result property="isOurBooking" column="is_our_booking" />
<result property="departureLocalTime" column="departure_local_time" />
<result property="departureTime" column="departure_time" />
<result property="arriveTime" column="arrive_time" />
<result property="actualArriveTime" column="actual_arrive_time" />
<result property="trayNumber" column="tray_number" />
<result property="packageNumber" column="package_number" />
<result property="weight" column="weight" />
<result property="chargeableWeight" column="chargeable_weight" />
<result property="volume" column="volume" />
<result property="remark" column="remark" />
<result property="addTime" column="add_time" />
</resultMap>
<sql id="selectCustomFlightInfoVo">
select id, user_id, warehouse_id, declare_port_id, mode, batch_number, delivery_number, traf_mode, airline, departure_country, departure_city, departure_airport, transit_airport, arrive_airport, flight_number, is_direct_flight, is_our_booking, departure_local_time, departure_time, arrive_time, actual_arrive_time, tray_number, package_number, weight, chargeable_weight, volume, remark, add_time from custom_flight_info
</sql>
<select id="selectCustomFlightInfoList" parameterType="CustomFlightInfo" resultMap="CustomFlightInfoResult">
<include refid="selectCustomFlightInfoVo"/>
<where>
<if test="userId != null "> and user_id = #{userId}</if>
<if test="warehouseId != null "> and warehouse_id = #{warehouseId}</if>
<if test="declarePortId != null "> and declare_port_id = #{declarePortId}</if>
<if test="mode != null "> and mode = #{mode}</if>
<if test="batchNumber != null and batchNumber != ''"> and batch_number = #{batchNumber}</if>
<if test="deliveryNumber != null and deliveryNumber != ''"> and delivery_number = #{deliveryNumber}</if>
<if test="trafMode != null "> and traf_mode = #{trafMode}</if>
<if test="airline != null and airline != ''"> and airline = #{airline}</if>
<if test="departureCountry != null and departureCountry != ''"> and departure_country = #{departureCountry}</if>
<if test="departureCity != null and departureCity != ''"> and departure_city = #{departureCity}</if>
<if test="departureAirport != null and departureAirport != ''"> and departure_airport = #{departureAirport}</if>
<if test="transitAirport != null and transitAirport != ''"> and transit_airport = #{transitAirport}</if>
<if test="arriveAirport != null and arriveAirport != ''"> and arrive_airport = #{arriveAirport}</if>
<if test="flightNumber != null and flightNumber != ''"> and flight_number = #{flightNumber}</if>
<if test="isDirectFlight != null "> and is_direct_flight = #{isDirectFlight}</if>
<if test="isOurBooking != null "> and is_our_booking = #{isOurBooking}</if>
<if test="departureLocalTime != null "> and departure_local_time = #{departureLocalTime}</if>
<if test="departureTime != null "> and departure_time = #{departureTime}</if>
<if test="arriveTime != null "> and arrive_time = #{arriveTime}</if>
<if test="actualArriveTime != null "> and actual_arrive_time = #{actualArriveTime}</if>
<if test="trayNumber != null "> and tray_number = #{trayNumber}</if>
<if test="packageNumber != null "> and package_number = #{packageNumber}</if>
<if test="weight != null "> and weight = #{weight}</if>
<if test="chargeableWeight != null "> and chargeable_weight = #{chargeableWeight}</if>
<if test="volume != null "> and volume = #{volume}</if>
<if test="addTime != null "> and add_time = #{addTime}</if>
</where>
</select>
<select id="selectCustomFlightInfoById" parameterType="Long" resultMap="CustomFlightInfoResult">
<include refid="selectCustomFlightInfoVo"/>
where id = #{id}
</select>
<insert id="insertCustomFlightInfo" parameterType="CustomFlightInfo" useGeneratedKeys="true" keyProperty="id">
insert into custom_flight_info
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="userId != null">user_id,</if>
<if test="warehouseId != null">warehouse_id,</if>
<if test="declarePortId != null">declare_port_id,</if>
<if test="mode != null">mode,</if>
<if test="batchNumber != null">batch_number,</if>
<if test="deliveryNumber != null">delivery_number,</if>
<if test="trafMode != null">traf_mode,</if>
<if test="airline != null">airline,</if>
<if test="departureCountry != null">departure_country,</if>
<if test="departureCity != null">departure_city,</if>
<if test="departureAirport != null">departure_airport,</if>
<if test="transitAirport != null">transit_airport,</if>
<if test="arriveAirport != null">arrive_airport,</if>
<if test="flightNumber != null">flight_number,</if>
<if test="isDirectFlight != null">is_direct_flight,</if>
<if test="isOurBooking != null">is_our_booking,</if>
<if test="departureLocalTime != null">departure_local_time,</if>
<if test="departureTime != null">departure_time,</if>
<if test="arriveTime != null">arrive_time,</if>
<if test="actualArriveTime != null">actual_arrive_time,</if>
<if test="trayNumber != null">tray_number,</if>
<if test="packageNumber != null">package_number,</if>
<if test="weight != null">weight,</if>
<if test="chargeableWeight != null">chargeable_weight,</if>
<if test="volume != null">volume,</if>
<if test="remark != null">remark,</if>
<if test="addTime != null">add_time,</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="userId != null">#{userId},</if>
<if test="warehouseId != null">#{warehouseId},</if>
<if test="declarePortId != null">#{declarePortId},</if>
<if test="mode != null">#{mode},</if>
<if test="batchNumber != null">#{batchNumber},</if>
<if test="deliveryNumber != null">#{deliveryNumber},</if>
<if test="trafMode != null">#{trafMode},</if>
<if test="airline != null">#{airline},</if>
<if test="departureCountry != null">#{departureCountry},</if>
<if test="departureCity != null">#{departureCity},</if>
<if test="departureAirport != null">#{departureAirport},</if>
<if test="transitAirport != null">#{transitAirport},</if>
<if test="arriveAirport != null">#{arriveAirport},</if>
<if test="flightNumber != null">#{flightNumber},</if>
<if test="isDirectFlight != null">#{isDirectFlight},</if>
<if test="isOurBooking != null">#{isOurBooking},</if>
<if test="departureLocalTime != null">#{departureLocalTime},</if>
<if test="departureTime != null">#{departureTime},</if>
<if test="arriveTime != null">#{arriveTime},</if>
<if test="actualArriveTime != null">#{actualArriveTime},</if>
<if test="trayNumber != null">#{trayNumber},</if>
<if test="packageNumber != null">#{packageNumber},</if>
<if test="weight != null">#{weight},</if>
<if test="chargeableWeight != null">#{chargeableWeight},</if>
<if test="volume != null">#{volume},</if>
<if test="remark != null">#{remark},</if>
<if test="addTime != null">#{addTime},</if>
</trim>
</insert>
<update id="updateCustomFlightInfo" parameterType="CustomFlightInfo">
update custom_flight_info
<trim prefix="SET" suffixOverrides=",">
<if test="userId != null">user_id = #{userId},</if>
<if test="warehouseId != null">warehouse_id = #{warehouseId},</if>
<if test="declarePortId != null">declare_port_id = #{declarePortId},</if>
<if test="mode != null">mode = #{mode},</if>
<if test="batchNumber != null">batch_number = #{batchNumber},</if>
<if test="deliveryNumber != null">delivery_number = #{deliveryNumber},</if>
<if test="trafMode != null">traf_mode = #{trafMode},</if>
<if test="airline != null">airline = #{airline},</if>
<if test="departureCountry != null">departure_country = #{departureCountry},</if>
<if test="departureCity != null">departure_city = #{departureCity},</if>
<if test="departureAirport != null">departure_airport = #{departureAirport},</if>
<if test="transitAirport != null">transit_airport = #{transitAirport},</if>
<if test="arriveAirport != null">arrive_airport = #{arriveAirport},</if>
<if test="flightNumber != null">flight_number = #{flightNumber},</if>
<if test="isDirectFlight != null">is_direct_flight = #{isDirectFlight},</if>
<if test="isOurBooking != null">is_our_booking = #{isOurBooking},</if>
<if test="departureLocalTime != null">departure_local_time = #{departureLocalTime},</if>
<if test="departureTime != null">departure_time = #{departureTime},</if>
<if test="arriveTime != null">arrive_time = #{arriveTime},</if>
<if test="actualArriveTime != null">actual_arrive_time = #{actualArriveTime},</if>
<if test="trayNumber != null">tray_number = #{trayNumber},</if>
<if test="packageNumber != null">package_number = #{packageNumber},</if>
<if test="weight != null">weight = #{weight},</if>
<if test="chargeableWeight != null">chargeable_weight = #{chargeableWeight},</if>
<if test="volume != null">volume = #{volume},</if>
<if test="remark != null">remark = #{remark},</if>
<if test="addTime != null">add_time = #{addTime},</if>
</trim>
where id = #{id}
</update>
<delete id="deleteCustomFlightInfoById" parameterType="Long">
delete from custom_flight_info where id = #{id}
</delete>
<delete id="deleteCustomFlightInfoByIds" parameterType="String">
delete from custom_flight_info where id in
<foreach item="id" collection="array" open="(" separator="," close=")">
#{id}
</foreach>
</delete>
</mapper>
@@ -0,0 +1,115 @@
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE mapper
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.ruoyi.custom.mapper.CustomHsCodeMapper">
<resultMap type="CustomHsCode" id="CustomHsCodeResult">
<result property="id" column="id" />
<result property="code" column="code" />
<result property="name" column="name" />
<result property="licenseCode" column="license_code" />
<result property="generalTaxRate" column="general_tax_rate" />
<result property="preferentialTaxRate" column="preferential_tax_rate" />
<result property="remark" column="remark" />
<result property="exportTaxRate" column="export_tax_rate" />
<result property="consumptionTaxRate" column="consumption_tax_rate" />
<result property="vatRate" column="vat_rate" />
<result property="firstLegalUnit" column="first_legal_unit" />
<result property="secondLegalUnit" column="second_legal_unit" />
<result property="declareReason" column="declare_reason" />
<result property="isExistInventory" column="is_exist_inventory" />
</resultMap>
<sql id="selectCustomHsCodeVo">
select id, code, name, license_code, general_tax_rate, preferential_tax_rate, remark, export_tax_rate, consumption_tax_rate, vat_rate, first_legal_unit, second_legal_unit, declare_reason, is_exist_inventory from custom_hs_code
</sql>
<select id="selectCustomHsCodeList" parameterType="CustomHsCode" resultMap="CustomHsCodeResult">
<include refid="selectCustomHsCodeVo"/>
<where>
<if test="code != null and code != ''"> and code = #{code}</if>
<if test="name != null and name != ''"> and name like concat('%', #{name}, '%')</if>
<if test="licenseCode != null and licenseCode != ''"> and license_code = #{licenseCode}</if>
<if test="generalTaxRate != null "> and general_tax_rate = #{generalTaxRate}</if>
<if test="preferentialTaxRate != null "> and preferential_tax_rate = #{preferentialTaxRate}</if>
<if test="exportTaxRate != null "> and export_tax_rate = #{exportTaxRate}</if>
<if test="consumptionTaxRate != null "> and consumption_tax_rate = #{consumptionTaxRate}</if>
<if test="vatRate != null "> and vat_rate = #{vatRate}</if>
<if test="firstLegalUnit != null and firstLegalUnit != ''"> and first_legal_unit = #{firstLegalUnit}</if>
<if test="secondLegalUnit != null and secondLegalUnit != ''"> and second_legal_unit = #{secondLegalUnit}</if>
<if test="declareReason != null and declareReason != ''"> and declare_reason = #{declareReason}</if>
<if test="isExistInventory != null "> and is_exist_inventory = #{isExistInventory}</if>
</where>
</select>
<select id="selectCustomHsCodeById" parameterType="Long" resultMap="CustomHsCodeResult">
<include refid="selectCustomHsCodeVo"/>
where id = #{id}
</select>
<insert id="insertCustomHsCode" parameterType="CustomHsCode" useGeneratedKeys="true" keyProperty="id">
insert into custom_hs_code
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="code != null">code,</if>
<if test="name != null">name,</if>
<if test="licenseCode != null">license_code,</if>
<if test="generalTaxRate != null">general_tax_rate,</if>
<if test="preferentialTaxRate != null">preferential_tax_rate,</if>
<if test="remark != null">remark,</if>
<if test="exportTaxRate != null">export_tax_rate,</if>
<if test="consumptionTaxRate != null">consumption_tax_rate,</if>
<if test="vatRate != null">vat_rate,</if>
<if test="firstLegalUnit != null">first_legal_unit,</if>
<if test="secondLegalUnit != null">second_legal_unit,</if>
<if test="declareReason != null">declare_reason,</if>
<if test="isExistInventory != null">is_exist_inventory,</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="code != null">#{code},</if>
<if test="name != null">#{name},</if>
<if test="licenseCode != null">#{licenseCode},</if>
<if test="generalTaxRate != null">#{generalTaxRate},</if>
<if test="preferentialTaxRate != null">#{preferentialTaxRate},</if>
<if test="remark != null">#{remark},</if>
<if test="exportTaxRate != null">#{exportTaxRate},</if>
<if test="consumptionTaxRate != null">#{consumptionTaxRate},</if>
<if test="vatRate != null">#{vatRate},</if>
<if test="firstLegalUnit != null">#{firstLegalUnit},</if>
<if test="secondLegalUnit != null">#{secondLegalUnit},</if>
<if test="declareReason != null">#{declareReason},</if>
<if test="isExistInventory != null">#{isExistInventory},</if>
</trim>
</insert>
<update id="updateCustomHsCode" parameterType="CustomHsCode">
update custom_hs_code
<trim prefix="SET" suffixOverrides=",">
<if test="code != null">code = #{code},</if>
<if test="name != null">name = #{name},</if>
<if test="licenseCode != null">license_code = #{licenseCode},</if>
<if test="generalTaxRate != null">general_tax_rate = #{generalTaxRate},</if>
<if test="preferentialTaxRate != null">preferential_tax_rate = #{preferentialTaxRate},</if>
<if test="remark != null">remark = #{remark},</if>
<if test="exportTaxRate != null">export_tax_rate = #{exportTaxRate},</if>
<if test="consumptionTaxRate != null">consumption_tax_rate = #{consumptionTaxRate},</if>
<if test="vatRate != null">vat_rate = #{vatRate},</if>
<if test="firstLegalUnit != null">first_legal_unit = #{firstLegalUnit},</if>
<if test="secondLegalUnit != null">second_legal_unit = #{secondLegalUnit},</if>
<if test="declareReason != null">declare_reason = #{declareReason},</if>
<if test="isExistInventory != null">is_exist_inventory = #{isExistInventory},</if>
</trim>
where id = #{id}
</update>
<delete id="deleteCustomHsCodeById" parameterType="Long">
delete from custom_hs_code where id = #{id}
</delete>
<delete id="deleteCustomHsCodeByIds" parameterType="String">
delete from custom_hs_code where id in
<foreach item="id" collection="array" open="(" separator="," close=")">
#{id}
</foreach>
</delete>
</mapper>
@@ -0,0 +1,65 @@
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE mapper
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.ruoyi.custom.mapper.CustomInventoryMapper">
<resultMap type="CustomInventory" id="CustomInventoryResult">
<result property="id" column="id" />
<result property="name" column="name" />
<result property="code" column="code" />
<result property="remark" column="remark" />
</resultMap>
<sql id="selectCustomInventoryVo">
select id, name, code, remark from custom_inventory
</sql>
<select id="selectCustomInventoryList" parameterType="CustomInventory" resultMap="CustomInventoryResult">
<include refid="selectCustomInventoryVo"/>
<where>
<if test="name != null and name != ''"> and name like concat('%', #{name}, '%')</if>
<if test="code != null and code != ''"> and code = #{code}</if>
</where>
</select>
<select id="selectCustomInventoryById" parameterType="Long" resultMap="CustomInventoryResult">
<include refid="selectCustomInventoryVo"/>
where id = #{id}
</select>
<insert id="insertCustomInventory" parameterType="CustomInventory" useGeneratedKeys="true" keyProperty="id">
insert into custom_inventory
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="name != null">name,</if>
<if test="code != null">code,</if>
<if test="remark != null">remark,</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="name != null">#{name},</if>
<if test="code != null">#{code},</if>
<if test="remark != null">#{remark},</if>
</trim>
</insert>
<update id="updateCustomInventory" parameterType="CustomInventory">
update custom_inventory
<trim prefix="SET" suffixOverrides=",">
<if test="name != null">name = #{name},</if>
<if test="code != null">code = #{code},</if>
<if test="remark != null">remark = #{remark},</if>
</trim>
where id = #{id}
</update>
<delete id="deleteCustomInventoryById" parameterType="Long">
delete from custom_inventory where id = #{id}
</delete>
<delete id="deleteCustomInventoryByIds" parameterType="String">
delete from custom_inventory where id in
<foreach item="id" collection="array" open="(" separator="," close=")">
#{id}
</foreach>
</delete>
</mapper>
@@ -0,0 +1,191 @@
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE mapper
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.ruoyi.custom.mapper.CustomOrderItemMapper">
<resultMap type="CustomOrderItem" id="CustomOrderItemResult">
<result property="id" column="id" />
<result property="orderId" column="order_id" />
<result property="declarePortId" column="declare_port_id" />
<result property="warehouseId" column="warehouse_id" />
<result property="barCode" column="bar_code" />
<result property="quantity" column="quantity" />
<result property="price" column="price" />
<result property="shopPrice" column="shop_price" />
<result property="freight" column="freight" />
<result property="taxAmount" column="tax_amount" />
<result property="itemLink" column="item_link" />
<result property="bookNumber" column="book_number" />
<result property="productCode" column="product_code" />
<result property="name" column="name" />
<result property="brand" column="brand" />
<result property="specificationModel" column="specification_model" />
<result property="description" column="description" />
<result property="quantityUnit" column="quantity_unit" />
<result property="produceCountry" column="produce_country" />
<result property="inspectionAndQuarantineCode" column="inspection_and_quarantine_code" />
<result property="hsCode" column="hs_code" />
<result property="taxRate" column="tax_rate" />
<result property="declaredCount" column="declared_count" />
<result property="legalMeteringUnit" column="legal_metering_unit" />
<result property="secondDeclaredCount" column="second_declared_count" />
<result property="secondMeteringUnit" column="second_metering_unit" />
<result property="grossWeight" column="gross_weight" />
<result property="netWeight" column="net_weight" />
<result property="skuCode" column="sku_code" />
</resultMap>
<sql id="selectCustomOrderItemVo">
select id, order_id, declare_port_id, warehouse_id, bar_code, quantity, price, shop_price, freight, tax_amount, item_link, book_number, product_code, name, brand, specification_model, description, quantity_unit, produce_country, inspection_and_quarantine_code, hs_code, tax_rate, declared_count, legal_metering_unit, second_declared_count, second_metering_unit, gross_weight, net_weight from custom_order_item
</sql>
<select id="selectCustomOrderItemList" parameterType="CustomOrderItem" resultMap="CustomOrderItemResult">
<include refid="selectCustomOrderItemVo"/>
<where>
<if test="orderId != null "> and order_id = #{orderId}</if>
<if test="declarePortId != null "> and declare_port_id = #{declarePortId}</if>
<if test="warehouseId != null "> and warehouse_id = #{warehouseId}</if>
<if test="barCode != null and barCode != ''"> and bar_code = #{barCode}</if>
<if test="quantity != null "> and quantity = #{quantity}</if>
<if test="price != null "> and price = #{price}</if>
<if test="shopPrice != null "> and shop_price = #{shopPrice}</if>
<if test="freight != null "> and freight = #{freight}</if>
<if test="taxAmount != null "> and tax_amount = #{taxAmount}</if>
<if test="itemLink != null and itemLink != ''"> and item_link = #{itemLink}</if>
<if test="bookNumber != null and bookNumber != ''"> and book_number = #{bookNumber}</if>
<if test="productCode != null and productCode != ''"> and product_code = #{productCode}</if>
<if test="name != null and name != ''"> and name like concat('%', #{name}, '%')</if>
<if test="brand != null and brand != ''"> and brand = #{brand}</if>
<if test="specificationModel != null and specificationModel != ''"> and specification_model = #{specificationModel}</if>
<if test="description != null and description != ''"> and description = #{description}</if>
<if test="quantityUnit != null and quantityUnit != ''"> and quantity_unit = #{quantityUnit}</if>
<if test="produceCountry != null and produceCountry != ''"> and produce_country = #{produceCountry}</if>
<if test="inspectionAndQuarantineCode != null and inspectionAndQuarantineCode != ''"> and inspection_and_quarantine_code = #{inspectionAndQuarantineCode}</if>
<if test="hsCode != null and hsCode != ''"> and hs_code = #{hsCode}</if>
<if test="taxRate != null "> and tax_rate = #{taxRate}</if>
<if test="declaredCount != null "> and declared_count = #{declaredCount}</if>
<if test="legalMeteringUnit != null and legalMeteringUnit != ''"> and legal_metering_unit = #{legalMeteringUnit}</if>
<if test="secondDeclaredCount != null "> and second_declared_count = #{secondDeclaredCount}</if>
<if test="secondMeteringUnit != null and secondMeteringUnit != ''"> and second_metering_unit = #{secondMeteringUnit}</if>
<if test="grossWeight != null "> and gross_weight = #{grossWeight}</if>
<if test="netWeight != null "> and net_weight = #{netWeight}</if>
<if test="skuCode != null "> and sku_code = #{skuCode}</if>
</where>
</select>
<select id="selectCustomOrderItemById" parameterType="Long" resultMap="CustomOrderItemResult">
<include refid="selectCustomOrderItemVo"/>
where id = #{id}
</select>
<insert id="insertCustomOrderItem" parameterType="CustomOrderItem" useGeneratedKeys="true" keyProperty="id">
insert into custom_order_item
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="orderId != null">order_id,</if>
<if test="declarePortId != null">declare_port_id,</if>
<if test="warehouseId != null">warehouse_id,</if>
<if test="barCode != null">bar_code,</if>
<if test="quantity != null">quantity,</if>
<if test="price != null">price,</if>
<if test="shopPrice != null">shop_price,</if>
<if test="freight != null">freight,</if>
<if test="taxAmount != null">tax_amount,</if>
<if test="itemLink != null">item_link,</if>
<if test="bookNumber != null">book_number,</if>
<if test="productCode != null">product_code,</if>
<if test="name != null">name,</if>
<if test="brand != null">brand,</if>
<if test="specificationModel != null">specification_model,</if>
<if test="description != null">description,</if>
<if test="quantityUnit != null">quantity_unit,</if>
<if test="produceCountry != null">produce_country,</if>
<if test="inspectionAndQuarantineCode != null">inspection_and_quarantine_code,</if>
<if test="hsCode != null">hs_code,</if>
<if test="taxRate != null">tax_rate,</if>
<if test="declaredCount != null">declared_count,</if>
<if test="legalMeteringUnit != null">legal_metering_unit,</if>
<if test="secondDeclaredCount != null">second_declared_count,</if>
<if test="secondMeteringUnit != null">second_metering_unit,</if>
<if test="grossWeight != null">gross_weight,</if>
<if test="netWeight != null">net_weight,</if>
<if test="skuCode != null">sku_code,</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="orderId != null">#{orderId},</if>
<if test="declarePortId != null">#{declarePortId},</if>
<if test="warehouseId != null">#{warehouseId},</if>
<if test="barCode != null">#{barCode},</if>
<if test="quantity != null">#{quantity},</if>
<if test="price != null">#{price},</if>
<if test="shopPrice != null">#{shopPrice},</if>
<if test="freight != null">#{freight},</if>
<if test="taxAmount != null">#{taxAmount},</if>
<if test="itemLink != null">#{itemLink},</if>
<if test="bookNumber != null">#{bookNumber},</if>
<if test="productCode != null">#{productCode},</if>
<if test="name != null">#{name},</if>
<if test="brand != null">#{brand},</if>
<if test="specificationModel != null">#{specificationModel},</if>
<if test="description != null">#{description},</if>
<if test="quantityUnit != null">#{quantityUnit},</if>
<if test="produceCountry != null">#{produceCountry},</if>
<if test="inspectionAndQuarantineCode != null">#{inspectionAndQuarantineCode},</if>
<if test="hsCode != null">#{hsCode},</if>
<if test="taxRate != null">#{taxRate},</if>
<if test="declaredCount != null">#{declaredCount},</if>
<if test="legalMeteringUnit != null">#{legalMeteringUnit},</if>
<if test="secondDeclaredCount != null">#{secondDeclaredCount},</if>
<if test="secondMeteringUnit != null">#{secondMeteringUnit},</if>
<if test="grossWeight != null">#{grossWeight},</if>
<if test="netWeight != null">#{netWeight},</if>
<if test="skuCode != null">#{skuCode},</if>
</trim>
</insert>
<update id="updateCustomOrderItem" parameterType="CustomOrderItem">
update custom_order_item
<trim prefix="SET" suffixOverrides=",">
<if test="orderId != null">order_id = #{orderId},</if>
<if test="declarePortId != null">declare_port_id = #{declarePortId},</if>
<if test="warehouseId != null">warehouse_id = #{warehouseId},</if>
<if test="barCode != null">bar_code = #{barCode},</if>
<if test="quantity != null">quantity = #{quantity},</if>
<if test="price != null">price = #{price},</if>
<if test="shopPrice != null">shop_price = #{shopPrice},</if>
<if test="freight != null">freight = #{freight},</if>
<if test="taxAmount != null">tax_amount = #{taxAmount},</if>
<if test="itemLink != null">item_link = #{itemLink},</if>
<if test="bookNumber != null">book_number = #{bookNumber},</if>
<if test="productCode != null">product_code = #{productCode},</if>
<if test="name != null">name = #{name},</if>
<if test="brand != null">brand = #{brand},</if>
<if test="specificationModel != null">specification_model = #{specificationModel},</if>
<if test="description != null">description = #{description},</if>
<if test="quantityUnit != null">quantity_unit = #{quantityUnit},</if>
<if test="produceCountry != null">produce_country = #{produceCountry},</if>
<if test="inspectionAndQuarantineCode != null">inspection_and_quarantine_code = #{inspectionAndQuarantineCode},</if>
<if test="hsCode != null">hs_code = #{hsCode},</if>
<if test="taxRate != null">tax_rate = #{taxRate},</if>
<if test="declaredCount != null">declared_count = #{declaredCount},</if>
<if test="legalMeteringUnit != null">legal_metering_unit = #{legalMeteringUnit},</if>
<if test="secondDeclaredCount != null">second_declared_count = #{secondDeclaredCount},</if>
<if test="secondMeteringUnit != null">second_metering_unit = #{secondMeteringUnit},</if>
<if test="grossWeight != null">gross_weight = #{grossWeight},</if>
<if test="netWeight != null">net_weight = #{netWeight},</if>
<if test="skuCode != null">sku_code = #{skuCode},</if>
</trim>
where id = #{id}
</update>
<delete id="deleteCustomOrderItemById" parameterType="Long">
delete from custom_order_item where id = #{id}
</delete>
<delete id="deleteCustomOrderItemByIds" parameterType="String">
delete from custom_order_item where id in
<foreach item="id" collection="array" open="(" separator="," close=")">
#{id}
</foreach>
</delete>
</mapper>
@@ -0,0 +1,361 @@
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE mapper
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.ruoyi.custom.mapper.CustomOrderMapper">
<resultMap type="CustomOrder" id="CustomOrderResult">
<result property="id" column="id" />
<result property="declarePortId" column="declare_port_id" />
<result property="warehouseId" column="warehouse_id" />
<result property="mode" column="mode" />
<result property="userId" column="user_id" />
<result property="sOrderNo" column="s_order_no" />
<result property="declareOrderNo" column="declare_order_no" />
<result property="status" column="status" />
<result property="expressName" column="express_name" />
<result property="shipOrderNumber" column="ship_order_number" />
<result property="buyerRegNo" column="buyer_reg_no" />
<result property="buyerName" column="buyer_name" />
<result property="buyerTelephone" column="buyer_telephone" />
<result property="buyerIdType" column="buyer_id_type" />
<result property="buyerIdNumber" column="buyer_id_number" />
<result property="consignee" column="consignee" />
<result property="consigneeTelephone" column="consignee_telephone" />
<result property="consigneeAddress" column="consignee_address" />
<result property="consigneeProvince" column="consignee_province" />
<result property="consigneeCity" column="consignee_city" />
<result property="consigneeDistrict" column="consignee_district" />
<result property="totalAmount" column="total_amount" />
<result property="discountAmount" column="discount_amount" />
<result property="payTotalAmount" column="pay_total_amount" />
<result property="taxTotalAmount" column="tax_total_amount" />
<result property="shopTaxTotalAmount" column="shop_tax_total_amount" />
<result property="freightAmount" column="freight_amount" />
<result property="totalGrossWeight" column="total_gross_weight" />
<result property="totalNetWeight" column="total_net_weight" />
<result property="totalQuantity" column="total_quantity" />
<result property="payName" column="pay_name" />
<result property="payCode" column="pay_code" />
<result property="payTime" column="pay_time" />
<result property="gatewayOrderId" column="gateway_order_id" />
<result property="consignor" column="consignor" />
<result property="consignorAddress" column="consignor_address" />
<result property="consignorTelephone" column="consignor_telephone" />
<result property="consignorCountry" column="consignor_country" />
<result property="consignorProvince" column="consignor_province" />
<result property="consignorCity" column="consignor_city" />
<result property="consignorDistrict" column="consignor_district" />
<result property="receiptAccount" column="receipt_account" />
<result property="verDept" column="ver_dept" />
<result property="payType" column="pay_type" />
<result property="initalRequest" column="inital_request" />
<result property="initalResponse" column="inital_response" />
<result property="remark" column="remark" />
<result property="expressReturn" column="express_return" />
<result property="process" column="process" />
<result property="addTime" column="add_time" />
<result property="inventoryNo" column="inventory_no" />
<result property="batchNumber" column="batch_number" />
</resultMap>
<resultMap id="CustomOrderCustomOrderItemResult" type="CustomOrder" extends="CustomOrderResult">
<collection property="customOrderItemList" notNullColumn="id" javaType="java.util.List" resultMap="CustomOrderItemResult" />
</resultMap>
<resultMap type="CustomOrderItem" id="CustomOrderItemResult">
<result property="id" column="id" />
<result property="orderId" column="order_id" />
<result property="declarePortId" column="declare_port_id" />
<result property="warehouseId" column="warehouse_id" />
<result property="barCode" column="bar_code" />
<result property="quantity" column="quantity" />
<result property="price" column="price" />
<result property="shopPrice" column="shop_price" />
<result property="freight" column="freight" />
<result property="taxAmount" column="tax_amount" />
<result property="itemLink" column="item_link" />
<result property="bookNumber" column="book_number" />
<result property="productCode" column="product_code" />
<result property="name" column="name" />
<result property="brand" column="brand" />
<result property="specificationModel" column="specification_model" />
<result property="description" column="description" />
<result property="quantityUnit" column="quantity_unit" />
<result property="produceCountry" column="produce_country" />
<result property="inspectionAndQuarantineCode" column="inspection_and_quarantine_code" />
<result property="hsCode" column="hs_code" />
<result property="taxRate" column="tax_rate" />
<result property="declaredCount" column="declared_count" />
<result property="legalMeteringUnit" column="legal_metering_unit" />
<result property="secondDeclaredCount" column="second_declared_count" />
<result property="secondMeteringUnit" column="second_metering_unit" />
<result property="grossWeight" column="gross_weight" />
<result property="netWeight" column="net_weight" />
</resultMap>
<sql id="selectCustomOrderVo">
select id, declare_port_id, warehouse_id, mode, user_id, s_order_no, declare_order_no, status, express_name, ship_order_number, buyer_reg_no, buyer_name, buyer_telephone, buyer_id_type, buyer_id_number, consignee, consignee_telephone, consignee_address, consignee_province, consignee_city, consignee_district, total_amount, discount_amount, pay_total_amount, tax_total_amount, shop_tax_total_amount, freight_amount, total_gross_weight, total_net_weight, total_quantity, pay_name, pay_code, pay_time, gateway_order_id, consignor, consignor_address, consignor_telephone, consignor_country, consignor_province, consignor_city, consignor_district, receipt_account, ver_dept, pay_type, inital_request, inital_response, remark, express_return, process, add_time, inventory_no, batch_number from custom_order
</sql>
<select id="selectCustomOrderList" parameterType="CustomOrder" resultMap="CustomOrderResult">
<include refid="selectCustomOrderVo"/>
<where>
<if test="declarePortId != null "> and declare_port_id = #{declarePortId}</if>
<if test="warehouseId != null "> and warehouse_id = #{warehouseId}</if>
<if test="mode != null "> and mode = #{mode}</if>
<if test="userId != null "> and user_id = #{userId}</if>
<if test="sOrderNo != null and sOrderNo != ''"> and s_order_no = #{sOrderNo}</if>
<if test="declareOrderNo != null and declareOrderNo != ''"> and declare_order_no = #{declareOrderNo}</if>
<if test="status != null "> and status = #{status}</if>
<if test="expressName != null and expressName != ''"> and express_name like concat('%', #{expressName}, '%')</if>
<if test="shipOrderNumber != null and shipOrderNumber != ''"> and ship_order_number = #{shipOrderNumber}</if>
<if test="buyerRegNo != null and buyerRegNo != ''"> and buyer_reg_no = #{buyerRegNo}</if>
<if test="buyerName != null and buyerName != ''"> and buyer_name like concat('%', #{buyerName}, '%')</if>
<if test="buyerTelephone != null and buyerTelephone != ''"> and buyer_telephone = #{buyerTelephone}</if>
<if test="buyerIdType != null "> and buyer_id_type = #{buyerIdType}</if>
<if test="buyerIdNumber != null and buyerIdNumber != ''"> and buyer_id_number = #{buyerIdNumber}</if>
<if test="consignee != null and consignee != ''"> and consignee = #{consignee}</if>
<if test="consigneeTelephone != null and consigneeTelephone != ''"> and consignee_telephone = #{consigneeTelephone}</if>
<if test="consigneeAddress != null and consigneeAddress != ''"> and consignee_address = #{consigneeAddress}</if>
<if test="consigneeProvince != null and consigneeProvince != ''"> and consignee_province = #{consigneeProvince}</if>
<if test="consigneeCity != null and consigneeCity != ''"> and consignee_city = #{consigneeCity}</if>
<if test="consigneeDistrict != null and consigneeDistrict != ''"> and consignee_district = #{consigneeDistrict}</if>
<if test="totalAmount != null "> and total_amount = #{totalAmount}</if>
<if test="discountAmount != null "> and discount_amount = #{discountAmount}</if>
<if test="payTotalAmount != null "> and pay_total_amount = #{payTotalAmount}</if>
<if test="taxTotalAmount != null "> and tax_total_amount = #{taxTotalAmount}</if>
<if test="shopTaxTotalAmount != null "> and shop_tax_total_amount = #{shopTaxTotalAmount}</if>
<if test="freightAmount != null "> and freight_amount = #{freightAmount}</if>
<if test="totalGrossWeight != null "> and total_gross_weight = #{totalGrossWeight}</if>
<if test="totalNetWeight != null "> and total_net_weight = #{totalNetWeight}</if>
<if test="totalQuantity != null "> and total_quantity = #{totalQuantity}</if>
<if test="payName != null and payName != ''"> and pay_name like concat('%', #{payName}, '%')</if>
<if test="payCode != null and payCode != ''"> and pay_code = #{payCode}</if>
<if test="payTime != null "> and pay_time = #{payTime}</if>
<if test="gatewayOrderId != null and gatewayOrderId != ''"> and gateway_order_id = #{gatewayOrderId}</if>
<if test="consignor != null and consignor != ''"> and consignor = #{consignor}</if>
<if test="consignorAddress != null and consignorAddress != ''"> and consignor_address = #{consignorAddress}</if>
<if test="consignorTelephone != null and consignorTelephone != ''"> and consignor_telephone = #{consignorTelephone}</if>
<if test="consignorCountry != null and consignorCountry != ''"> and consignor_country = #{consignorCountry}</if>
<if test="consignorProvince != null and consignorProvince != ''"> and consignor_province = #{consignorProvince}</if>
<if test="consignorCity != null and consignorCity != ''"> and consignor_city = #{consignorCity}</if>
<if test="consignorDistrict != null and consignorDistrict != ''"> and consignor_district = #{consignorDistrict}</if>
<if test="receiptAccount != null and receiptAccount != ''"> and receipt_account = #{receiptAccount}</if>
<if test="verDept != null "> and ver_dept = #{verDept}</if>
<if test="payType != null "> and pay_type = #{payType}</if>
<if test="initalRequest != null and initalRequest != ''"> and inital_request = #{initalRequest}</if>
<if test="initalResponse != null and initalResponse != ''"> and inital_response = #{initalResponse}</if>
<if test="expressReturn != null and expressReturn != ''"> and express_return = #{expressReturn}</if>
<if test="process != null and process != ''"> and process = #{process}</if>
<if test="addTime != null "> and add_time = #{addTime}</if>
<if test="inventoryNo != null and inventoryNo != ''"> and inventory_no = #{inventoryNo}</if>
<if test="batchNumber != null and batchNumber != ''"> and batch_number = #{batchNumber}</if>
</where>
</select>
<select id="selectCustomOrderById" parameterType="Long" resultMap="CustomOrderCustomOrderItemResult">
select a.id, a.declare_port_id, a.warehouse_id, a.mode, a.user_id, a.s_order_no, a.declare_order_no, a.status, a.express_name, a.ship_order_number, a.buyer_reg_no, a.buyer_name, a.buyer_telephone, a.buyer_id_type, a.buyer_id_number, a.consignee, a.consignee_telephone, a.consignee_address, a.consignee_province, a.consignee_city, a.consignee_district, a.total_amount, a.discount_amount, a.pay_total_amount, a.tax_total_amount, a.shop_tax_total_amount, a.freight_amount, a.total_gross_weight, a.total_net_weight, a.total_quantity, a.pay_name, a.pay_code, a.pay_time, a.gateway_order_id, a.consignor, a.consignor_address, a.consignor_telephone, a.consignor_country, a.consignor_province, a.consignor_city, a.consignor_district, a.receipt_account, a.ver_dept, a.pay_type, a.inital_request, a.inital_response, a.remark, a.express_return, a.process, a.add_time, a.inventory_no, a.batch_number,
b.id, b.order_id, b.declare_port_id, b.warehouse_id, b.bar_code, b.quantity, b.price, b.shop_price, b.freight, b.tax_amount, b.item_link, b.book_number, b.product_code, b.name, b.brand, b.specification_model, b.description, b.quantity_unit, b.produce_country, b.inspection_and_quarantine_code, b.hs_code, b.tax_rate, b.declared_count, b.legal_metering_unit, b.second_declared_count, b.second_metering_unit, b.gross_weight, b.net_weight
from custom_order a
left join custom_order_item b on b.order_id = a.id
where a.id = #{id}
</select>
<insert id="insertCustomOrder" parameterType="CustomOrder" useGeneratedKeys="true" keyProperty="id">
insert into custom_order
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="declarePortId != null">declare_port_id,</if>
<if test="warehouseId != null">warehouse_id,</if>
<if test="mode != null">mode,</if>
<if test="userId != null">user_id,</if>
<if test="sOrderNo != null">s_order_no,</if>
<if test="declareOrderNo != null">declare_order_no,</if>
<if test="status != null">status,</if>
<if test="expressName != null">express_name,</if>
<if test="shipOrderNumber != null">ship_order_number,</if>
<if test="buyerRegNo != null">buyer_reg_no,</if>
<if test="buyerName != null">buyer_name,</if>
<if test="buyerTelephone != null">buyer_telephone,</if>
<if test="buyerIdType != null">buyer_id_type,</if>
<if test="buyerIdNumber != null">buyer_id_number,</if>
<if test="consignee != null">consignee,</if>
<if test="consigneeTelephone != null">consignee_telephone,</if>
<if test="consigneeAddress != null">consignee_address,</if>
<if test="consigneeProvince != null">consignee_province,</if>
<if test="consigneeCity != null">consignee_city,</if>
<if test="consigneeDistrict != null">consignee_district,</if>
<if test="totalAmount != null">total_amount,</if>
<if test="discountAmount != null">discount_amount,</if>
<if test="payTotalAmount != null">pay_total_amount,</if>
<if test="taxTotalAmount != null">tax_total_amount,</if>
<if test="shopTaxTotalAmount != null">shop_tax_total_amount,</if>
<if test="freightAmount != null">freight_amount,</if>
<if test="totalGrossWeight != null">total_gross_weight,</if>
<if test="totalNetWeight != null">total_net_weight,</if>
<if test="totalQuantity != null">total_quantity,</if>
<if test="payName != null">pay_name,</if>
<if test="payCode != null">pay_code,</if>
<if test="payTime != null">pay_time,</if>
<if test="gatewayOrderId != null">gateway_order_id,</if>
<if test="consignor != null">consignor,</if>
<if test="consignorAddress != null">consignor_address,</if>
<if test="consignorTelephone != null">consignor_telephone,</if>
<if test="consignorCountry != null">consignor_country,</if>
<if test="consignorProvince != null">consignor_province,</if>
<if test="consignorCity != null">consignor_city,</if>
<if test="consignorDistrict != null">consignor_district,</if>
<if test="receiptAccount != null">receipt_account,</if>
<if test="verDept != null">ver_dept,</if>
<if test="payType != null">pay_type,</if>
<if test="initalRequest != null">inital_request,</if>
<if test="initalResponse != null">inital_response,</if>
<if test="remark != null">remark,</if>
<if test="expressReturn != null">express_return,</if>
<if test="process != null">process,</if>
<if test="addTime != null">add_time,</if>
<if test="inventoryNo != null">inventory_no,</if>
<if test="batchNumber != null">batch_number,</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="declarePortId != null">#{declarePortId},</if>
<if test="warehouseId != null">#{warehouseId},</if>
<if test="mode != null">#{mode},</if>
<if test="userId != null">#{userId},</if>
<if test="sOrderNo != null">#{sOrderNo},</if>
<if test="declareOrderNo != null">#{declareOrderNo},</if>
<if test="status != null">#{status},</if>
<if test="expressName != null">#{expressName},</if>
<if test="shipOrderNumber != null">#{shipOrderNumber},</if>
<if test="buyerRegNo != null">#{buyerRegNo},</if>
<if test="buyerName != null">#{buyerName},</if>
<if test="buyerTelephone != null">#{buyerTelephone},</if>
<if test="buyerIdType != null">#{buyerIdType},</if>
<if test="buyerIdNumber != null">#{buyerIdNumber},</if>
<if test="consignee != null">#{consignee},</if>
<if test="consigneeTelephone != null">#{consigneeTelephone},</if>
<if test="consigneeAddress != null">#{consigneeAddress},</if>
<if test="consigneeProvince != null">#{consigneeProvince},</if>
<if test="consigneeCity != null">#{consigneeCity},</if>
<if test="consigneeDistrict != null">#{consigneeDistrict},</if>
<if test="totalAmount != null">#{totalAmount},</if>
<if test="discountAmount != null">#{discountAmount},</if>
<if test="payTotalAmount != null">#{payTotalAmount},</if>
<if test="taxTotalAmount != null">#{taxTotalAmount},</if>
<if test="shopTaxTotalAmount != null">#{shopTaxTotalAmount},</if>
<if test="freightAmount != null">#{freightAmount},</if>
<if test="totalGrossWeight != null">#{totalGrossWeight},</if>
<if test="totalNetWeight != null">#{totalNetWeight},</if>
<if test="totalQuantity != null">#{totalQuantity},</if>
<if test="payName != null">#{payName},</if>
<if test="payCode != null">#{payCode},</if>
<if test="payTime != null">#{payTime},</if>
<if test="gatewayOrderId != null">#{gatewayOrderId},</if>
<if test="consignor != null">#{consignor},</if>
<if test="consignorAddress != null">#{consignorAddress},</if>
<if test="consignorTelephone != null">#{consignorTelephone},</if>
<if test="consignorCountry != null">#{consignorCountry},</if>
<if test="consignorProvince != null">#{consignorProvince},</if>
<if test="consignorCity != null">#{consignorCity},</if>
<if test="consignorDistrict != null">#{consignorDistrict},</if>
<if test="receiptAccount != null">#{receiptAccount},</if>
<if test="verDept != null">#{verDept},</if>
<if test="payType != null">#{payType},</if>
<if test="initalRequest != null">#{initalRequest},</if>
<if test="initalResponse != null">#{initalResponse},</if>
<if test="remark != null">#{remark},</if>
<if test="expressReturn != null">#{expressReturn},</if>
<if test="process != null">#{process},</if>
<if test="addTime != null">#{addTime},</if>
<if test="inventoryNo != null">#{inventoryNo},</if>
<if test="batchNumber != null">#{batchNumber},</if>
</trim>
</insert>
<update id="updateCustomOrder" parameterType="CustomOrder">
update custom_order
<trim prefix="SET" suffixOverrides=",">
<if test="declarePortId != null">declare_port_id = #{declarePortId},</if>
<if test="warehouseId != null">warehouse_id = #{warehouseId},</if>
<if test="mode != null">mode = #{mode},</if>
<if test="userId != null">user_id = #{userId},</if>
<if test="sOrderNo != null">s_order_no = #{sOrderNo},</if>
<if test="declareOrderNo != null">declare_order_no = #{declareOrderNo},</if>
<if test="status != null">status = #{status},</if>
<if test="expressName != null">express_name = #{expressName},</if>
<if test="shipOrderNumber != null">ship_order_number = #{shipOrderNumber},</if>
<if test="buyerRegNo != null">buyer_reg_no = #{buyerRegNo},</if>
<if test="buyerName != null">buyer_name = #{buyerName},</if>
<if test="buyerTelephone != null">buyer_telephone = #{buyerTelephone},</if>
<if test="buyerIdType != null">buyer_id_type = #{buyerIdType},</if>
<if test="buyerIdNumber != null">buyer_id_number = #{buyerIdNumber},</if>
<if test="consignee != null">consignee = #{consignee},</if>
<if test="consigneeTelephone != null">consignee_telephone = #{consigneeTelephone},</if>
<if test="consigneeAddress != null">consignee_address = #{consigneeAddress},</if>
<if test="consigneeProvince != null">consignee_province = #{consigneeProvince},</if>
<if test="consigneeCity != null">consignee_city = #{consigneeCity},</if>
<if test="consigneeDistrict != null">consignee_district = #{consigneeDistrict},</if>
<if test="totalAmount != null">total_amount = #{totalAmount},</if>
<if test="discountAmount != null">discount_amount = #{discountAmount},</if>
<if test="payTotalAmount != null">pay_total_amount = #{payTotalAmount},</if>
<if test="taxTotalAmount != null">tax_total_amount = #{taxTotalAmount},</if>
<if test="shopTaxTotalAmount != null">shop_tax_total_amount = #{shopTaxTotalAmount},</if>
<if test="freightAmount != null">freight_amount = #{freightAmount},</if>
<if test="totalGrossWeight != null">total_gross_weight = #{totalGrossWeight},</if>
<if test="totalNetWeight != null">total_net_weight = #{totalNetWeight},</if>
<if test="totalQuantity != null">total_quantity = #{totalQuantity},</if>
<if test="payName != null">pay_name = #{payName},</if>
<if test="payCode != null">pay_code = #{payCode},</if>
<if test="payTime != null">pay_time = #{payTime},</if>
<if test="gatewayOrderId != null">gateway_order_id = #{gatewayOrderId},</if>
<if test="consignor != null">consignor = #{consignor},</if>
<if test="consignorAddress != null">consignor_address = #{consignorAddress},</if>
<if test="consignorTelephone != null">consignor_telephone = #{consignorTelephone},</if>
<if test="consignorCountry != null">consignor_country = #{consignorCountry},</if>
<if test="consignorProvince != null">consignor_province = #{consignorProvince},</if>
<if test="consignorCity != null">consignor_city = #{consignorCity},</if>
<if test="consignorDistrict != null">consignor_district = #{consignorDistrict},</if>
<if test="receiptAccount != null">receipt_account = #{receiptAccount},</if>
<if test="verDept != null">ver_dept = #{verDept},</if>
<if test="payType != null">pay_type = #{payType},</if>
<if test="initalRequest != null">inital_request = #{initalRequest},</if>
<if test="initalResponse != null">inital_response = #{initalResponse},</if>
<if test="remark != null">remark = #{remark},</if>
<if test="expressReturn != null">express_return = #{expressReturn},</if>
<if test="process != null">process = #{process},</if>
<if test="addTime != null">add_time = #{addTime},</if>
<if test="inventoryNo != null">inventory_no = #{inventoryNo},</if>
<if test="batchNumber != null">batch_number = #{batchNumber},</if>
</trim>
where id = #{id}
</update>
<delete id="deleteCustomOrderById" parameterType="Long">
delete from custom_order where id = #{id}
</delete>
<delete id="deleteCustomOrderByIds" parameterType="String">
delete from custom_order where id in
<foreach item="id" collection="array" open="(" separator="," close=")">
#{id}
</foreach>
</delete>
<delete id="deleteCustomOrderItemByOrderIds" parameterType="String">
delete from custom_order_item where order_id in
<foreach item="orderId" collection="array" open="(" separator="," close=")">
#{orderId}
</foreach>
</delete>
<delete id="deleteCustomOrderItemByOrderId" parameterType="Long">
delete from custom_order_item where order_id = #{orderId}
</delete>
<insert id="batchCustomOrderItem">
insert into custom_order_item( id, order_id, declare_port_id, warehouse_id, bar_code, quantity, price, shop_price, freight, tax_amount, item_link, book_number, product_code, name, brand, specification_model, description, quantity_unit, produce_country, inspection_and_quarantine_code, hs_code, tax_rate, declared_count, legal_metering_unit, second_declared_count, second_metering_unit, gross_weight, net_weight) values
<foreach item="item" index="index" collection="list" separator=",">
( #{item.id}, #{item.orderId}, #{item.declarePortId}, #{item.warehouseId}, #{item.barCode}, #{item.quantity}, #{item.price}, #{item.shopPrice}, #{item.freight}, #{item.taxAmount}, #{item.itemLink}, #{item.bookNumber}, #{item.productCode}, #{item.name}, #{item.brand}, #{item.specificationModel}, #{item.description}, #{item.quantityUnit}, #{item.produceCountry}, #{item.inspectionAndQuarantineCode}, #{item.hsCode}, #{item.taxRate}, #{item.declaredCount}, #{item.legalMeteringUnit}, #{item.secondDeclaredCount}, #{item.secondMeteringUnit}, #{item.grossWeight}, #{item.netWeight})
</foreach>
</insert>
</mapper>
@@ -0,0 +1,94 @@
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE mapper
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.ruoyi.custom.mapper.CustomParcelNumberMapper">
<resultMap type="CustomParcelNumber" id="CustomParcelNumberResult">
<result property="id" column="id" />
<result property="parcelNumber" column="parcel_number" />
<result property="name" column="name" />
<result property="unit" column="unit" />
<result property="price" column="price" />
<result property="taxRate" column="tax_rate" />
<result property="taxAmount" column="tax_amount" />
<result property="remark" column="remark" />
<result property="addTime" column="add_time" />
<result property="updateTime" column="update_time" />
</resultMap>
<sql id="selectCustomParcelNumberVo">
select id, parcel_number, name, unit, price, tax_rate, tax_amount, remark, add_time, update_time from custom_parcel_number
</sql>
<select id="selectCustomParcelNumberList" parameterType="CustomParcelNumber" resultMap="CustomParcelNumberResult">
<include refid="selectCustomParcelNumberVo"/>
<where>
<if test="parcelNumber != null and parcelNumber != ''"> and parcel_number = #{parcelNumber}</if>
<if test="name != null and name != ''"> and name like concat('%', #{name}, '%')</if>
<if test="unit != null and unit != ''"> and unit = #{unit}</if>
<if test="price != null "> and price = #{price}</if>
<if test="taxRate != null "> and tax_rate = #{taxRate}</if>
<if test="taxAmount != null "> and tax_amount = #{taxAmount}</if>
<if test="addTime != null "> and add_time = #{addTime}</if>
</where>
</select>
<select id="selectCustomParcelNumberById" parameterType="Long" resultMap="CustomParcelNumberResult">
<include refid="selectCustomParcelNumberVo"/>
where id = #{id}
</select>
<insert id="insertCustomParcelNumber" parameterType="CustomParcelNumber" useGeneratedKeys="true" keyProperty="id">
insert into custom_parcel_number
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="parcelNumber != null">parcel_number,</if>
<if test="name != null">name,</if>
<if test="unit != null">unit,</if>
<if test="price != null">price,</if>
<if test="taxRate != null">tax_rate,</if>
<if test="taxAmount != null">tax_amount,</if>
<if test="remark != null">remark,</if>
<if test="addTime != null">add_time,</if>
<if test="updateTime != null">update_time,</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="parcelNumber != null">#{parcelNumber},</if>
<if test="name != null">#{name},</if>
<if test="unit != null">#{unit},</if>
<if test="price != null">#{price},</if>
<if test="taxRate != null">#{taxRate},</if>
<if test="taxAmount != null">#{taxAmount},</if>
<if test="remark != null">#{remark},</if>
<if test="addTime != null">#{addTime},</if>
<if test="updateTime != null">#{updateTime},</if>
</trim>
</insert>
<update id="updateCustomParcelNumber" parameterType="CustomParcelNumber">
update custom_parcel_number
<trim prefix="SET" suffixOverrides=",">
<if test="parcelNumber != null">parcel_number = #{parcelNumber},</if>
<if test="name != null">name = #{name},</if>
<if test="unit != null">unit = #{unit},</if>
<if test="price != null">price = #{price},</if>
<if test="taxRate != null">tax_rate = #{taxRate},</if>
<if test="taxAmount != null">tax_amount = #{taxAmount},</if>
<if test="remark != null">remark = #{remark},</if>
<if test="addTime != null">add_time = #{addTime},</if>
<if test="updateTime != null">update_time = #{updateTime},</if>
</trim>
where id = #{id}
</update>
<delete id="deleteCustomParcelNumberById" parameterType="Long">
delete from custom_parcel_number where id = #{id}
</delete>
<delete id="deleteCustomParcelNumberByIds" parameterType="String">
delete from custom_parcel_number where id in
<foreach item="id" collection="array" open="(" separator="," close=")">
#{id}
</foreach>
</delete>
</mapper>
@@ -0,0 +1,234 @@
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE mapper
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.ruoyi.custom.mapper.CustomProductRecordMapper">
<resultMap type="CustomProductRecord" id="CustomProductRecordResult">
<result property="id" column="id" />
<result property="skuCode" column="sku_code" />
<result property="barCode" column="bar_code" />
<result property="productCode" column="product_code" />
<result property="hsCode" column="hs_code" />
<result property="name" column="name" />
<result property="brand" column="brand" />
<result property="description" column="description" />
<result property="specificationModel" column="specification_model" />
<result property="produceCountry" column="produce_country" />
<result property="produceCountryCode" column="produce_country_code" />
<result property="quantityUnit" column="quantity_unit" />
<result property="quantityUnitCode" column="quantity_unit_code" />
<result property="declaredCount" column="declared_count" />
<result property="legalMeteringUnit" column="legal_metering_unit" />
<result property="legalMeteringUnitCode" column="legal_metering_unit_code" />
<result property="secondDeclaredCount" column="second_declared_count" />
<result property="secondMeteringUnit" column="second_metering_unit" />
<result property="secondMeteringUnitCode" column="second_metering_unit_code" />
<result property="price" column="price" />
<result property="grossWeight" column="gross_weight" />
<result property="netWeight" column="net_weight" />
<result property="remark" column="remark" />
<result property="inspectionAndQuarantineCode" column="inspection_and_quarantine_code" />
<result property="userId" column="user_id" />
<result property="warehouseId" column="warehouse_id" />
<result property="declarePortId" column="declare_port_id" />
<result property="taxRate" column="tax_rate" />
<result property="ingredient" column="ingredient" />
<result property="bookNumber" column="book_number" />
<result property="type" column="type" />
<result property="addTime" column="add_time" />
<result property="parcelNumber" column="parcel_number" />
<result property="parcelNumberTaxRate" column="parcel_number_tax_rate" />
<result property="englishName" column="english_name" />
<result property="dutyPrice" column="duty_price" />
<result property="taxAmount" column="tax_amount" />
<result property="updateTime" column="update_time" />
</resultMap>
<sql id="selectCustomProductRecordVo">
select id, sku_code, bar_code, product_code, hs_code, name, brand, description, specification_model, produce_country, produce_country_code, quantity_unit, quantity_unit_code, declared_count, legal_metering_unit, legal_metering_unit_code, second_declared_count, second_metering_unit, second_metering_unit_code, price, gross_weight, net_weight, remark, inspection_and_quarantine_code, user_id, warehouse_id, declare_port_id, tax_rate, ingredient, book_number, type, add_time, parcel_number, parcel_number_tax_rate, english_name, duty_price, tax_amount, update_time from custom_product_record
</sql>
<select id="selectCustomProductRecordList" parameterType="CustomProductRecord" resultMap="CustomProductRecordResult">
<include refid="selectCustomProductRecordVo"/>
<where>
<if test="skuCode != null and skuCode != ''"> and sku_code = #{skuCode}</if>
<if test="barCode != null and barCode != ''"> and bar_code = #{barCode}</if>
<if test="productCode != null and productCode != ''"> and product_code = #{productCode}</if>
<if test="hsCode != null and hsCode != ''"> and hs_code = #{hsCode}</if>
<if test="name != null and name != ''"> and name like concat('%', #{name}, '%')</if>
<if test="brand != null and brand != ''"> and brand = #{brand}</if>
<if test="description != null and description != ''"> and description = #{description}</if>
<if test="specificationModel != null and specificationModel != ''"> and specification_model = #{specificationModel}</if>
<if test="produceCountry != null and produceCountry != ''"> and produce_country = #{produceCountry}</if>
<if test="produceCountryCode != null and produceCountryCode != ''"> and produce_country_code = #{produceCountryCode}</if>
<if test="quantityUnit != null and quantityUnit != ''"> and quantity_unit = #{quantityUnit}</if>
<if test="quantityUnitCode != null and quantityUnitCode != ''"> and quantity_unit_code = #{quantityUnitCode}</if>
<if test="declaredCount != null "> and declared_count = #{declaredCount}</if>
<if test="legalMeteringUnit != null and legalMeteringUnit != ''"> and legal_metering_unit = #{legalMeteringUnit}</if>
<if test="legalMeteringUnitCode != null and legalMeteringUnitCode != ''"> and legal_metering_unit_code = #{legalMeteringUnitCode}</if>
<if test="secondDeclaredCount != null "> and second_declared_count = #{secondDeclaredCount}</if>
<if test="secondMeteringUnit != null and secondMeteringUnit != ''"> and second_metering_unit = #{secondMeteringUnit}</if>
<if test="secondMeteringUnitCode != null and secondMeteringUnitCode != ''"> and second_metering_unit_code = #{secondMeteringUnitCode}</if>
<if test="price != null "> and price = #{price}</if>
<if test="grossWeight != null "> and gross_weight = #{grossWeight}</if>
<if test="netWeight != null "> and net_weight = #{netWeight}</if>
<if test="inspectionAndQuarantineCode != null and inspectionAndQuarantineCode != ''"> and inspection_and_quarantine_code = #{inspectionAndQuarantineCode}</if>
<if test="userId != null "> and user_id = #{userId}</if>
<if test="warehouseId != null "> and warehouse_id = #{warehouseId}</if>
<if test="declarePortId != null "> and declare_port_id = #{declarePortId}</if>
<if test="taxRate != null "> and tax_rate = #{taxRate}</if>
<if test="ingredient != null and ingredient != ''"> and ingredient = #{ingredient}</if>
<if test="bookNumber != null and bookNumber != ''"> and book_number = #{bookNumber}</if>
<if test="type != null "> and type = #{type}</if>
<if test="addTime != null "> and add_time = #{addTime}</if>
<if test="parcelNumber != null and parcelNumber != ''"> and parcel_number = #{parcelNumber}</if>
<if test="parcelNumberTaxRate != null "> and parcel_number_tax_rate = #{parcelNumberTaxRate}</if>
<if test="englishName != null and englishName != ''"> and english_name like concat('%', #{englishName}, '%')</if>
<if test="dutyPrice != null "> and duty_price = #{dutyPrice}</if>
<if test="taxAmount != null "> and tax_amount = #{taxAmount}</if>
</where>
</select>
<select id="selectCustomProductRecordById" parameterType="Long" resultMap="CustomProductRecordResult">
<include refid="selectCustomProductRecordVo"/>
where id = #{id}
</select>
<insert id="insertCustomProductRecord" parameterType="CustomProductRecord" useGeneratedKeys="true" keyProperty="id">
insert into custom_product_record
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="skuCode != null and skuCode != ''">sku_code,</if>
<if test="barCode != null and barCode != ''">bar_code,</if>
<if test="productCode != null">product_code,</if>
<if test="hsCode != null and hsCode != ''">hs_code,</if>
<if test="name != null and name != ''">name,</if>
<if test="brand != null and brand != ''">brand,</if>
<if test="description != null and description != ''">description,</if>
<if test="specificationModel != null and specificationModel != ''">specification_model,</if>
<if test="produceCountry != null and produceCountry != ''">produce_country,</if>
<if test="produceCountryCode != null and produceCountryCode != ''">produce_country_code,</if>
<if test="quantityUnit != null and quantityUnit != ''">quantity_unit,</if>
<if test="quantityUnitCode != null and quantityUnitCode != ''">quantity_unit_code,</if>
<if test="declaredCount != null">declared_count,</if>
<if test="legalMeteringUnit != null and legalMeteringUnit != ''">legal_metering_unit,</if>
<if test="legalMeteringUnitCode != null and legalMeteringUnitCode != ''">legal_metering_unit_code,</if>
<if test="secondDeclaredCount != null">second_declared_count,</if>
<if test="secondMeteringUnit != null">second_metering_unit,</if>
<if test="secondMeteringUnitCode != null">second_metering_unit_code,</if>
<if test="price != null">price,</if>
<if test="grossWeight != null">gross_weight,</if>
<if test="netWeight != null">net_weight,</if>
<if test="remark != null">remark,</if>
<if test="inspectionAndQuarantineCode != null">inspection_and_quarantine_code,</if>
<if test="userId != null">user_id,</if>
<if test="warehouseId != null">warehouse_id,</if>
<if test="declarePortId != null">declare_port_id,</if>
<if test="taxRate != null">tax_rate,</if>
<if test="ingredient != null">ingredient,</if>
<if test="bookNumber != null">book_number,</if>
<if test="type != null">type,</if>
<if test="addTime != null">add_time,</if>
<if test="parcelNumber != null">parcel_number,</if>
<if test="parcelNumberTaxRate != null">parcel_number_tax_rate,</if>
<if test="englishName != null">english_name,</if>
<if test="dutyPrice != null">duty_price,</if>
<if test="taxAmount != null">tax_amount,</if>
<if test="updateTime != null">update_time,</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="skuCode != null and skuCode != ''">#{skuCode},</if>
<if test="barCode != null and barCode != ''">#{barCode},</if>
<if test="productCode != null">#{productCode},</if>
<if test="hsCode != null and hsCode != ''">#{hsCode},</if>
<if test="name != null and name != ''">#{name},</if>
<if test="brand != null and brand != ''">#{brand},</if>
<if test="description != null and description != ''">#{description},</if>
<if test="specificationModel != null and specificationModel != ''">#{specificationModel},</if>
<if test="produceCountry != null and produceCountry != ''">#{produceCountry},</if>
<if test="produceCountryCode != null and produceCountryCode != ''">#{produceCountryCode},</if>
<if test="quantityUnit != null and quantityUnit != ''">#{quantityUnit},</if>
<if test="quantityUnitCode != null and quantityUnitCode != ''">#{quantityUnitCode},</if>
<if test="declaredCount != null">#{declaredCount},</if>
<if test="legalMeteringUnit != null and legalMeteringUnit != ''">#{legalMeteringUnit},</if>
<if test="legalMeteringUnitCode != null and legalMeteringUnitCode != ''">#{legalMeteringUnitCode},</if>
<if test="secondDeclaredCount != null">#{secondDeclaredCount},</if>
<if test="secondMeteringUnit != null">#{secondMeteringUnit},</if>
<if test="secondMeteringUnitCode != null">#{secondMeteringUnitCode},</if>
<if test="price != null">#{price},</if>
<if test="grossWeight != null">#{grossWeight},</if>
<if test="netWeight != null">#{netWeight},</if>
<if test="remark != null">#{remark},</if>
<if test="inspectionAndQuarantineCode != null">#{inspectionAndQuarantineCode},</if>
<if test="userId != null">#{userId},</if>
<if test="warehouseId != null">#{warehouseId},</if>
<if test="declarePortId != null">#{declarePortId},</if>
<if test="taxRate != null">#{taxRate},</if>
<if test="ingredient != null">#{ingredient},</if>
<if test="bookNumber != null">#{bookNumber},</if>
<if test="type != null">#{type},</if>
<if test="addTime != null">#{addTime},</if>
<if test="parcelNumber != null">#{parcelNumber},</if>
<if test="parcelNumberTaxRate != null">#{parcelNumberTaxRate},</if>
<if test="englishName != null">#{englishName},</if>
<if test="dutyPrice != null">#{dutyPrice},</if>
<if test="taxAmount != null">#{taxAmount},</if>
<if test="updateTime != null">#{updateTime},</if>
</trim>
</insert>
<update id="updateCustomProductRecord" parameterType="CustomProductRecord">
update custom_product_record
<trim prefix="SET" suffixOverrides=",">
<if test="skuCode != null and skuCode != ''">sku_code = #{skuCode},</if>
<if test="barCode != null and barCode != ''">bar_code = #{barCode},</if>
<if test="productCode != null">product_code = #{productCode},</if>
<if test="hsCode != null and hsCode != ''">hs_code = #{hsCode},</if>
<if test="name != null and name != ''">name = #{name},</if>
<if test="brand != null and brand != ''">brand = #{brand},</if>
<if test="description != null and description != ''">description = #{description},</if>
<if test="specificationModel != null and specificationModel != ''">specification_model = #{specificationModel},</if>
<if test="produceCountry != null and produceCountry != ''">produce_country = #{produceCountry},</if>
<if test="produceCountryCode != null and produceCountryCode != ''">produce_country_code = #{produceCountryCode},</if>
<if test="quantityUnit != null and quantityUnit != ''">quantity_unit = #{quantityUnit},</if>
<if test="quantityUnitCode != null and quantityUnitCode != ''">quantity_unit_code = #{quantityUnitCode},</if>
<if test="declaredCount != null">declared_count = #{declaredCount},</if>
<if test="legalMeteringUnit != null and legalMeteringUnit != ''">legal_metering_unit = #{legalMeteringUnit},</if>
<if test="legalMeteringUnitCode != null and legalMeteringUnitCode != ''">legal_metering_unit_code = #{legalMeteringUnitCode},</if>
<if test="secondDeclaredCount != null">second_declared_count = #{secondDeclaredCount},</if>
<if test="secondMeteringUnit != null">second_metering_unit = #{secondMeteringUnit},</if>
<if test="secondMeteringUnitCode != null">second_metering_unit_code = #{secondMeteringUnitCode},</if>
<if test="price != null">price = #{price},</if>
<if test="grossWeight != null">gross_weight = #{grossWeight},</if>
<if test="netWeight != null">net_weight = #{netWeight},</if>
<if test="remark != null">remark = #{remark},</if>
<if test="inspectionAndQuarantineCode != null">inspection_and_quarantine_code = #{inspectionAndQuarantineCode},</if>
<if test="userId != null">user_id = #{userId},</if>
<if test="warehouseId != null">warehouse_id = #{warehouseId},</if>
<if test="declarePortId != null">declare_port_id = #{declarePortId},</if>
<if test="taxRate != null">tax_rate = #{taxRate},</if>
<if test="ingredient != null">ingredient = #{ingredient},</if>
<if test="bookNumber != null">book_number = #{bookNumber},</if>
<if test="type != null">type = #{type},</if>
<if test="addTime != null">add_time = #{addTime},</if>
<if test="parcelNumber != null">parcel_number = #{parcelNumber},</if>
<if test="parcelNumberTaxRate != null">parcel_number_tax_rate = #{parcelNumberTaxRate},</if>
<if test="englishName != null">english_name = #{englishName},</if>
<if test="dutyPrice != null">duty_price = #{dutyPrice},</if>
<if test="taxAmount != null">tax_amount = #{taxAmount},</if>
<if test="updateTime != null">update_time = #{updateTime},</if>
</trim>
where id = #{id}
</update>
<delete id="deleteCustomProductRecordById" parameterType="Long">
delete from custom_product_record where id = #{id}
</delete>
<delete id="deleteCustomProductRecordByIds" parameterType="String">
delete from custom_product_record where id in
<foreach item="id" collection="array" open="(" separator="," close=")">
#{id}
</foreach>
</delete>
</mapper>
@@ -0,0 +1,75 @@
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE mapper
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.ruoyi.custom.mapper.CustomRegionCodeMapper">
<resultMap type="CustomRegionCode" id="CustomRegionCodeResult">
<result property="id" column="id" />
<result property="parentId" column="parent_id" />
<result property="code" column="code" />
<result property="name" column="name" />
<result property="remark" column="remark" />
<result property="grade" column="grade" />
</resultMap>
<sql id="selectCustomRegionCodeVo">
select id, parent_id, code, name, remark, grade from custom_region_code
</sql>
<select id="selectCustomRegionCodeList" parameterType="CustomRegionCode" resultMap="CustomRegionCodeResult">
<include refid="selectCustomRegionCodeVo"/>
<where>
<if test="parentId != null "> and parent_id = #{parentId}</if>
<if test="code != null and code != ''"> and code = #{code}</if>
<if test="name != null and name != ''"> and name like concat('%', #{name}, '%')</if>
<if test="grade != null "> and grade = #{grade}</if>
</where>
</select>
<select id="selectCustomRegionCodeById" parameterType="Long" resultMap="CustomRegionCodeResult">
<include refid="selectCustomRegionCodeVo"/>
where id = #{id}
</select>
<insert id="insertCustomRegionCode" parameterType="CustomRegionCode" useGeneratedKeys="true" keyProperty="id">
insert into custom_region_code
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="parentId != null">parent_id,</if>
<if test="code != null">code,</if>
<if test="name != null">name,</if>
<if test="remark != null">remark,</if>
<if test="grade != null">grade,</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="parentId != null">#{parentId},</if>
<if test="code != null">#{code},</if>
<if test="name != null">#{name},</if>
<if test="remark != null">#{remark},</if>
<if test="grade != null">#{grade},</if>
</trim>
</insert>
<update id="updateCustomRegionCode" parameterType="CustomRegionCode">
update custom_region_code
<trim prefix="SET" suffixOverrides=",">
<if test="parentId != null">parent_id = #{parentId},</if>
<if test="code != null">code = #{code},</if>
<if test="name != null">name = #{name},</if>
<if test="remark != null">remark = #{remark},</if>
<if test="grade != null">grade = #{grade},</if>
</trim>
where id = #{id}
</update>
<delete id="deleteCustomRegionCodeById" parameterType="Long">
delete from custom_region_code where id = #{id}
</delete>
<delete id="deleteCustomRegionCodeByIds" parameterType="String">
delete from custom_region_code where id in
<foreach item="id" collection="array" open="(" separator="," close=")">
#{id}
</foreach>
</delete>
</mapper>
@@ -0,0 +1,65 @@
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE mapper
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.ruoyi.custom.mapper.CustomUnitCodeMapper">
<resultMap type="CustomUnitCode" id="CustomUnitCodeResult">
<result property="id" column="id" />
<result property="code" column="code" />
<result property="name" column="name" />
<result property="remark" column="remark" />
</resultMap>
<sql id="selectCustomUnitCodeVo">
select id, code, name, remark from custom_unit_code
</sql>
<select id="selectCustomUnitCodeList" parameterType="CustomUnitCode" resultMap="CustomUnitCodeResult">
<include refid="selectCustomUnitCodeVo"/>
<where>
<if test="code != null and code != ''"> and code = #{code}</if>
<if test="name != null and name != ''"> and name like concat('%', #{name}, '%')</if>
</where>
</select>
<select id="selectCustomUnitCodeById" parameterType="Long" resultMap="CustomUnitCodeResult">
<include refid="selectCustomUnitCodeVo"/>
where id = #{id}
</select>
<insert id="insertCustomUnitCode" parameterType="CustomUnitCode" useGeneratedKeys="true" keyProperty="id">
insert into custom_unit_code
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="code != null and code != ''">code,</if>
<if test="name != null and name != ''">name,</if>
<if test="remark != null">remark,</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="code != null and code != ''">#{code},</if>
<if test="name != null and name != ''">#{name},</if>
<if test="remark != null">#{remark},</if>
</trim>
</insert>
<update id="updateCustomUnitCode" parameterType="CustomUnitCode">
update custom_unit_code
<trim prefix="SET" suffixOverrides=",">
<if test="code != null and code != ''">code = #{code},</if>
<if test="name != null and name != ''">name = #{name},</if>
<if test="remark != null">remark = #{remark},</if>
</trim>
where id = #{id}
</update>
<delete id="deleteCustomUnitCodeById" parameterType="Long">
delete from custom_unit_code where id = #{id}
</delete>
<delete id="deleteCustomUnitCodeByIds" parameterType="String">
delete from custom_unit_code where id in
<foreach item="id" collection="array" open="(" separator="," close=")">
#{id}
</foreach>
</delete>
</mapper>
@@ -0,0 +1,111 @@
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE mapper
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.ruoyi.custom.mapper.CustomWarehouseMapper">
<resultMap type="CustomWarehouse" id="CustomWarehouseResult">
<result property="id" column="id" />
<result property="declarePortId" column="declare_port_id" />
<result property="name" column="name" />
<result property="code" column="code" />
<result property="describe" column="describe" />
<result property="consignor" column="consignor" />
<result property="consignorAddress" column="consignor_address" />
<result property="consignorTelephone" column="consignor_telephone" />
<result property="consignorCountry" column="consignor_country" />
<result property="consignorProvince" column="consignor_province" />
<result property="consignorCity" column="consignor_city" />
<result property="consignorDistrict" column="consignor_district" />
<result property="type" column="type" />
</resultMap>
<sql id="selectCustomWarehouseVo">
select id, declare_port_id, name, code, describe, consignor, consignor_address, consignor_telephone, consignor_country, consignor_province, consignor_city, consignor_district, type from custom_warehouse
</sql>
<select id="selectCustomWarehouseList" parameterType="CustomWarehouse" resultMap="CustomWarehouseResult">
<include refid="selectCustomWarehouseVo"/>
<where>
<if test="declarePortId != null "> and declare_port_id = #{declarePortId}</if>
<if test="name != null and name != ''"> and name like concat('%', #{name}, '%')</if>
<if test="code != null and code != ''"> and code = #{code}</if>
<if test="describe != null and describe != ''"> and describe = #{describe}</if>
<if test="consignor != null and consignor != ''"> and consignor = #{consignor}</if>
<if test="consignorAddress != null and consignorAddress != ''"> and consignor_address = #{consignorAddress}</if>
<if test="consignorTelephone != null and consignorTelephone != ''"> and consignor_telephone = #{consignorTelephone}</if>
<if test="consignorCountry != null and consignorCountry != ''"> and consignor_country = #{consignorCountry}</if>
<if test="consignorProvince != null and consignorProvince != ''"> and consignor_province = #{consignorProvince}</if>
<if test="consignorCity != null and consignorCity != ''"> and consignor_city = #{consignorCity}</if>
<if test="consignorDistrict != null and consignorDistrict != ''"> and consignor_district = #{consignorDistrict}</if>
<if test="type != null "> and type = #{type}</if>
</where>
</select>
<select id="selectCustomWarehouseById" parameterType="Long" resultMap="CustomWarehouseResult">
<include refid="selectCustomWarehouseVo"/>
where id = #{id}
</select>
<insert id="insertCustomWarehouse" parameterType="CustomWarehouse" useGeneratedKeys="true" keyProperty="id">
insert into custom_warehouse
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="declarePortId != null">declare_port_id,</if>
<if test="name != null">name,</if>
<if test="code != null">code,</if>
<if test="describe != null">describe,</if>
<if test="consignor != null">consignor,</if>
<if test="consignorAddress != null">consignor_address,</if>
<if test="consignorTelephone != null">consignor_telephone,</if>
<if test="consignorCountry != null">consignor_country,</if>
<if test="consignorProvince != null">consignor_province,</if>
<if test="consignorCity != null">consignor_city,</if>
<if test="consignorDistrict != null">consignor_district,</if>
<if test="type != null">type,</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="declarePortId != null">#{declarePortId},</if>
<if test="name != null">#{name},</if>
<if test="code != null">#{code},</if>
<if test="describe != null">#{describe},</if>
<if test="consignor != null">#{consignor},</if>
<if test="consignorAddress != null">#{consignorAddress},</if>
<if test="consignorTelephone != null">#{consignorTelephone},</if>
<if test="consignorCountry != null">#{consignorCountry},</if>
<if test="consignorProvince != null">#{consignorProvince},</if>
<if test="consignorCity != null">#{consignorCity},</if>
<if test="consignorDistrict != null">#{consignorDistrict},</if>
<if test="type != null">#{type},</if>
</trim>
</insert>
<update id="updateCustomWarehouse" parameterType="CustomWarehouse">
update custom_warehouse
<trim prefix="SET" suffixOverrides=",">
<if test="declarePortId != null">declare_port_id = #{declarePortId},</if>
<if test="name != null">name = #{name},</if>
<if test="code != null">code = #{code},</if>
<if test="describe != null">describe = #{describe},</if>
<if test="consignor != null">consignor = #{consignor},</if>
<if test="consignorAddress != null">consignor_address = #{consignorAddress},</if>
<if test="consignorTelephone != null">consignor_telephone = #{consignorTelephone},</if>
<if test="consignorCountry != null">consignor_country = #{consignorCountry},</if>
<if test="consignorProvince != null">consignor_province = #{consignorProvince},</if>
<if test="consignorCity != null">consignor_city = #{consignorCity},</if>
<if test="consignorDistrict != null">consignor_district = #{consignorDistrict},</if>
<if test="type != null">type = #{type},</if>
</trim>
where id = #{id}
</update>
<delete id="deleteCustomWarehouseById" parameterType="Long">
delete from custom_warehouse where id = #{id}
</delete>
<delete id="deleteCustomWarehouseByIds" parameterType="String">
delete from custom_warehouse where id in
<foreach item="id" collection="array" open="(" separator="," close=")">
#{id}
</foreach>
</delete>
</mapper>