增加 入库 台账
parent
506145742b
commit
7c6699418e
@ -0,0 +1,66 @@
|
|||||||
|
package com.ruoyi.api.domain;
|
||||||
|
|
||||||
|
|
||||||
|
import java.util.ArrayList;
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @author wanghao
|
||||||
|
* @date 2024/1/11 16:21
|
||||||
|
*/
|
||||||
|
public class InStoreDto {
|
||||||
|
|
||||||
|
private String binchCode;
|
||||||
|
private String selectManuText;
|
||||||
|
private String selectLocationText;
|
||||||
|
private List<String> epcList;
|
||||||
|
private String submitUser;
|
||||||
|
private Long manufacturerId;
|
||||||
|
public String getBinchCode() {
|
||||||
|
return binchCode;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setBinchCode(String binchCode) {
|
||||||
|
this.binchCode = binchCode;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getSelectManuText() {
|
||||||
|
return selectManuText;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setSelectManuText(String selectManuText) {
|
||||||
|
this.selectManuText = selectManuText;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getSelectLocationText() {
|
||||||
|
return selectLocationText;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setSelectLocationText(String selectLocationText) {
|
||||||
|
this.selectLocationText = selectLocationText;
|
||||||
|
}
|
||||||
|
|
||||||
|
public List<String> getEpcList() {
|
||||||
|
return epcList;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setEpcList(List<String> epcList) {
|
||||||
|
this.epcList = epcList;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getSubmitUser() {
|
||||||
|
return submitUser;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setSubmitUser(String submitUser) {
|
||||||
|
this.submitUser = submitUser;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Long getManufacturerId() {
|
||||||
|
return manufacturerId;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setManufacturerId(Long manufacturerId) {
|
||||||
|
this.manufacturerId = manufacturerId;
|
||||||
|
}
|
||||||
|
}
|
@ -0,0 +1,17 @@
|
|||||||
|
package com.ruoyi.api.mapper;
|
||||||
|
|
||||||
|
import com.ruoyi.api.domain.InStoreDto;
|
||||||
|
import org.apache.ibatis.annotations.Param;
|
||||||
|
import org.springframework.stereotype.Repository;
|
||||||
|
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @author wanghao
|
||||||
|
* @date 2024/1/17 14:28
|
||||||
|
*/
|
||||||
|
@Repository
|
||||||
|
public interface ApiMapper {
|
||||||
|
int submintInsertRecordIn(@Param("inStore") InStoreDto inStore);
|
||||||
|
int submintInsertLedger(@Param("inStore") InStoreDto inStore);
|
||||||
|
}
|
@ -0,0 +1,24 @@
|
|||||||
|
package com.ruoyi.api.service.impl;
|
||||||
|
|
||||||
|
import com.ruoyi.api.domain.InStoreDto;
|
||||||
|
import com.ruoyi.api.mapper.ApiMapper;
|
||||||
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
|
import org.springframework.stereotype.Service;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @author wanghao
|
||||||
|
* @date 2024/1/17 14:26
|
||||||
|
*/
|
||||||
|
@Service
|
||||||
|
public class ApiService {
|
||||||
|
@Autowired
|
||||||
|
private ApiMapper mapper;
|
||||||
|
|
||||||
|
public int submintInsertRecordIn(InStoreDto inStore) {
|
||||||
|
return mapper.submintInsertRecordIn(inStore);
|
||||||
|
}
|
||||||
|
|
||||||
|
public int submintInsertLedger(InStoreDto inStore) {
|
||||||
|
return mapper.submintInsertLedger(inStore);
|
||||||
|
}
|
||||||
|
}
|
@ -0,0 +1,22 @@
|
|||||||
|
<?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.api.mapper.ApiMapper">
|
||||||
|
|
||||||
|
<insert id="submintInsertRecordIn">
|
||||||
|
INSERT INTO bg_wheel_chocks.record_in (epc_code, batch_code, location_code,manufacturer_id, manufacturer_Name,
|
||||||
|
create_by,create_time)
|
||||||
|
VALUES
|
||||||
|
<foreach collection="inStore.epclist" item="item" separator=",">
|
||||||
|
(#{item},#{inStore.binchCode},#{inStore.selectLocationText},#{inStore.manufacturerId},#{inStore.selectManuText},#{inStore.submitUser},now())
|
||||||
|
</foreach>
|
||||||
|
</insert>
|
||||||
|
<insert id="submintInsertLedger">
|
||||||
|
INSERT INTO bg_wheel_chocks.ledger_rfid (manufacturer_id, rifd_code, batch_code, location_code)
|
||||||
|
VALUES
|
||||||
|
<foreach collection="inStore.epclist" item="item" separator=",">
|
||||||
|
(#{inStore.manufacturerId},#{item},#{inStore.binchCode},#{inStore.selectLocationText})
|
||||||
|
</foreach>
|
||||||
|
</insert>
|
||||||
|
|
||||||
|
<!-- -->
|
||||||
|
</mapper>
|
@ -1,125 +0,0 @@
|
|||||||
<!DOCTYPE html>
|
|
||||||
<html lang="zh" xmlns:th="http://www.thymeleaf.org" >
|
|
||||||
<head>
|
|
||||||
<th:block th:include="include :: header('新增手持版本升级')" />
|
|
||||||
<th:block th:include="include :: bootstrap-fileinput-css"/>
|
|
||||||
<th:block th:include="include :: summernote-css" />
|
|
||||||
</head>
|
|
||||||
<body class="white-bg">
|
|
||||||
<div class="wrapper wrapper-content animated fadeInRight ibox-content">
|
|
||||||
<form class="form-horizontal m" id="form-pda_version-add">
|
|
||||||
<div class="form-group">
|
|
||||||
<label class="col-sm-3 control-label">版本号:</label>
|
|
||||||
<div class="col-sm-8">
|
|
||||||
<input name="versionCode" class="form-control" type="text">
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<div class="form-group">
|
|
||||||
<label class="col-sm-3 control-label">版本名:</label>
|
|
||||||
<div class="col-sm-8">
|
|
||||||
<input name="versionName" class="form-control" type="text">
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<div class="form-group">
|
|
||||||
<label class="col-sm-3 control-label">信息:</label>
|
|
||||||
<div class="col-sm-8">
|
|
||||||
<input type="hidden" class="form-control" name="modifyContent">
|
|
||||||
<div class="summernote" id="modifyContent"></div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<div class="form-group">
|
|
||||||
<label class="col-sm-3 control-label">位置:</label>
|
|
||||||
<div class="col-sm-8">
|
|
||||||
<!-- <input type="hidden" name="downloadUrl">-->
|
|
||||||
<!-- <div class="file-loading">-->
|
|
||||||
<!-- <input class="form-control file-upload" id="downloadUrl" name="file" type="file">-->
|
|
||||||
<input id="filePath" name="filePath" class="form-control" type="file">
|
|
||||||
<!-- </div>-->
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</form>
|
|
||||||
</div>
|
|
||||||
<th:block th:include="include :: footer" />
|
|
||||||
<th:block th:include="include :: bootstrap-fileinput-js"/>
|
|
||||||
<th:block th:include="include :: summernote-js" />
|
|
||||||
<script th:inline="javascript">
|
|
||||||
var prefix = ctx + "pda/pda_version"
|
|
||||||
$("#form-pda_version-add").validate({
|
|
||||||
focusCleanup: true
|
|
||||||
});
|
|
||||||
|
|
||||||
function submitHandler() {
|
|
||||||
// if ($.validate.form()) {
|
|
||||||
// $.operate.save(prefix + "/add", $('#form-pda_version-add').serialize());
|
|
||||||
// }
|
|
||||||
var formData = new FormData();
|
|
||||||
if ($('#filePath')[0].files[0] == null) {
|
|
||||||
$.modal.alertWarning("请先选择文件路径");
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
formData.append('versionCode', $("input[name='versionCode']").val());
|
|
||||||
formData.append('versionName', $("input[name='versionName']").val());
|
|
||||||
formData.append('modifyContent', $("input[name='modifyContent']").val());
|
|
||||||
formData.append('file', $('#filePath')[0].files[0]);
|
|
||||||
$.ajax({
|
|
||||||
url: prefix + "/add",
|
|
||||||
type: 'post',
|
|
||||||
cache: false,
|
|
||||||
data: formData,
|
|
||||||
processData: false,
|
|
||||||
contentType: false,
|
|
||||||
dataType: "json",
|
|
||||||
success: function(result) {
|
|
||||||
$.operate.successCallback(result);
|
|
||||||
}
|
|
||||||
});
|
|
||||||
}
|
|
||||||
|
|
||||||
// $(".file-upload").fileinput({
|
|
||||||
// uploadUrl: ctx + 'common/upload',
|
|
||||||
// maxFileCount: 1,
|
|
||||||
// autoReplace: true
|
|
||||||
// }).on('fileuploaded', function (event, data, previewId, index) {
|
|
||||||
// $("input[name='" + event.currentTarget.id + "']").val(data.response.url)
|
|
||||||
// }).on('fileremoved', function (event, id, index) {
|
|
||||||
// $("input[name='" + event.currentTarget.id + "']").val('')
|
|
||||||
// })
|
|
||||||
|
|
||||||
$(function() {
|
|
||||||
$('.summernote').summernote({
|
|
||||||
lang: 'zh-CN',
|
|
||||||
dialogsInBody: true,
|
|
||||||
callbacks: {
|
|
||||||
onChange: function(contents, $edittable) {
|
|
||||||
$("input[name='" + this.id + "']").val(contents);
|
|
||||||
},
|
|
||||||
onImageUpload: function(files) {
|
|
||||||
var obj = this;
|
|
||||||
var data = new FormData();
|
|
||||||
data.append("file", files[0]);
|
|
||||||
$.ajax({
|
|
||||||
type: "post",
|
|
||||||
url: ctx + "common/upload",
|
|
||||||
data: data,
|
|
||||||
cache: false,
|
|
||||||
contentType: false,
|
|
||||||
processData: false,
|
|
||||||
dataType: 'json',
|
|
||||||
success: function(result) {
|
|
||||||
if (result.code == web_status.SUCCESS) {
|
|
||||||
$('#' + obj.id).summernote('insertImage', result.url);
|
|
||||||
} else {
|
|
||||||
$.modal.alertError(result.msg);
|
|
||||||
}
|
|
||||||
},
|
|
||||||
error: function(error) {
|
|
||||||
$.modal.alertWarning("图片上传失败。");
|
|
||||||
}
|
|
||||||
});
|
|
||||||
}
|
|
||||||
}
|
|
||||||
});
|
|
||||||
});
|
|
||||||
</script>
|
|
||||||
</body>
|
|
||||||
</html>
|
|
@ -1,114 +0,0 @@
|
|||||||
<!DOCTYPE html>
|
|
||||||
<html lang="zh" xmlns:th="http://www.thymeleaf.org" >
|
|
||||||
<head>
|
|
||||||
<th:block th:include="include :: header('修改手持版本升级')" />
|
|
||||||
<th:block th:include="include :: bootstrap-fileinput-css"/>
|
|
||||||
<th:block th:include="include :: summernote-css" />
|
|
||||||
</head>
|
|
||||||
<body class="white-bg">
|
|
||||||
<div class="wrapper wrapper-content animated fadeInRight ibox-content">
|
|
||||||
<form class="form-horizontal m" id="form-pda_version-edit" th:object="${pdaApkVersion}">
|
|
||||||
<input name="objid" th:field="*{objid}" type="hidden">
|
|
||||||
<div class="form-group">
|
|
||||||
<label class="col-sm-3 control-label">版本号:</label>
|
|
||||||
<div class="col-sm-8">
|
|
||||||
<input name="versionCode" th:field="*{versionCode}" class="form-control" type="text">
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<div class="form-group">
|
|
||||||
<label class="col-sm-3 control-label">版本名:</label>
|
|
||||||
<div class="col-sm-8">
|
|
||||||
<input name="versionName" th:field="*{versionName}" class="form-control" type="text">
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<div class="form-group">
|
|
||||||
<label class="col-sm-3 control-label">信息:</label>
|
|
||||||
<div class="col-sm-8">
|
|
||||||
<input type="hidden" class="form-control" th:field="*{modifyContent}">
|
|
||||||
<div class="summernote" id="modifyContent"></div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<div class="form-group">
|
|
||||||
<label class="col-sm-3 control-label">位置:</label>
|
|
||||||
<div class="col-sm-8">
|
|
||||||
<input type="hidden" name="downloadUrl" th:field="*{downloadUrl}">
|
|
||||||
<div class="file-loading">
|
|
||||||
<input class="form-control file-upload" id="downloadUrl" name="file" type="file">
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</form>
|
|
||||||
</div>
|
|
||||||
<th:block th:include="include :: footer" />
|
|
||||||
<th:block th:include="include :: bootstrap-fileinput-js"/>
|
|
||||||
<th:block th:include="include :: summernote-js" />
|
|
||||||
<script th:inline="javascript">
|
|
||||||
var prefix = ctx + "pda/pda_version";
|
|
||||||
$("#form-pda_version-edit").validate({
|
|
||||||
focusCleanup: true
|
|
||||||
});
|
|
||||||
|
|
||||||
function submitHandler() {
|
|
||||||
if ($.validate.form()) {
|
|
||||||
$.operate.save(prefix + "/edit", $('#form-pda_version-edit').serialize());
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
$(".file-upload").each(function (i) {
|
|
||||||
var val = $("input[name='" + this.id + "']").val()
|
|
||||||
$(this).fileinput({
|
|
||||||
'uploadUrl': ctx + 'common/upload',
|
|
||||||
initialPreviewAsData: true,
|
|
||||||
initialPreview: [val],
|
|
||||||
maxFileCount: 1,
|
|
||||||
autoReplace: true
|
|
||||||
}).on('fileuploaded', function (event, data, previewId, index) {
|
|
||||||
$("input[name='" + event.currentTarget.id + "']").val(data.response.url)
|
|
||||||
}).on('fileremoved', function (event, id, index) {
|
|
||||||
$("input[name='" + event.currentTarget.id + "']").val('')
|
|
||||||
})
|
|
||||||
$(this).fileinput('_initFileActions');
|
|
||||||
});
|
|
||||||
|
|
||||||
$(function() {
|
|
||||||
$('.summernote').each(function(i) {
|
|
||||||
$('#' + this.id).summernote({
|
|
||||||
lang: 'zh-CN',
|
|
||||||
dialogsInBody: true,
|
|
||||||
callbacks: {
|
|
||||||
onChange: function(contents, $edittable) {
|
|
||||||
$("input[name='" + this.id + "']").val(contents);
|
|
||||||
},
|
|
||||||
onImageUpload: function(files) {
|
|
||||||
var obj = this;
|
|
||||||
var data = new FormData();
|
|
||||||
data.append("file", files[0]);
|
|
||||||
$.ajax({
|
|
||||||
type: "post",
|
|
||||||
url: ctx + "common/upload",
|
|
||||||
data: data,
|
|
||||||
cache: false,
|
|
||||||
contentType: false,
|
|
||||||
processData: false,
|
|
||||||
dataType: 'json',
|
|
||||||
success: function(result) {
|
|
||||||
if (result.code == web_status.SUCCESS) {
|
|
||||||
$('#' + obj.id).summernote('insertImage', result.url);
|
|
||||||
} else {
|
|
||||||
$.modal.alertError(result.msg);
|
|
||||||
}
|
|
||||||
},
|
|
||||||
error: function(error) {
|
|
||||||
$.modal.alertWarning("图片上传失败。");
|
|
||||||
}
|
|
||||||
});
|
|
||||||
}
|
|
||||||
}
|
|
||||||
});
|
|
||||||
var content = $("input[name='" + this.id + "']").val();
|
|
||||||
$('#' + this.id).summernote('code', content);
|
|
||||||
})
|
|
||||||
});
|
|
||||||
</script>
|
|
||||||
</body>
|
|
||||||
</html>
|
|
@ -0,0 +1,127 @@
|
|||||||
|
package com.ruoyi.manage.controller;
|
||||||
|
|
||||||
|
import java.util.List;
|
||||||
|
import org.apache.shiro.authz.annotation.RequiresPermissions;
|
||||||
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
|
import org.springframework.stereotype.Controller;
|
||||||
|
import org.springframework.ui.ModelMap;
|
||||||
|
import org.springframework.web.bind.annotation.GetMapping;
|
||||||
|
import org.springframework.web.bind.annotation.PathVariable;
|
||||||
|
import org.springframework.web.bind.annotation.PostMapping;
|
||||||
|
import org.springframework.web.bind.annotation.RequestMapping;
|
||||||
|
import org.springframework.web.bind.annotation.ResponseBody;
|
||||||
|
import com.ruoyi.common.annotation.Log;
|
||||||
|
import com.ruoyi.common.enums.BusinessType;
|
||||||
|
import com.ruoyi.manage.domain.LedgerRfid;
|
||||||
|
import com.ruoyi.manage.service.ILedgerRfidService;
|
||||||
|
import com.ruoyi.common.core.controller.BaseController;
|
||||||
|
import com.ruoyi.common.core.domain.AjaxResult;
|
||||||
|
import com.ruoyi.common.utils.poi.ExcelUtil;
|
||||||
|
import com.ruoyi.common.core.page.TableDataInfo;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 轮挡台账Controller
|
||||||
|
*
|
||||||
|
* @author wangh
|
||||||
|
* @date 2024-01-17
|
||||||
|
*/
|
||||||
|
@Controller
|
||||||
|
@RequestMapping("/manage/ledger_rfid")
|
||||||
|
public class LedgerRfidController extends BaseController
|
||||||
|
{
|
||||||
|
private String prefix = "manage/ledger_rfid";
|
||||||
|
|
||||||
|
@Autowired
|
||||||
|
private ILedgerRfidService ledgerRfidService;
|
||||||
|
|
||||||
|
@RequiresPermissions("manage:ledger_rfid:view")
|
||||||
|
@GetMapping()
|
||||||
|
public String ledger_rfid()
|
||||||
|
{
|
||||||
|
return prefix + "/ledger_rfid";
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 查询轮挡台账列表
|
||||||
|
*/
|
||||||
|
@RequiresPermissions("manage:ledger_rfid:list")
|
||||||
|
@PostMapping("/list")
|
||||||
|
@ResponseBody
|
||||||
|
public TableDataInfo list(LedgerRfid ledgerRfid)
|
||||||
|
{
|
||||||
|
startPage();
|
||||||
|
List<LedgerRfid> list = ledgerRfidService.selectLedgerRfidList(ledgerRfid);
|
||||||
|
return getDataTable(list);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 导出轮挡台账列表
|
||||||
|
*/
|
||||||
|
@RequiresPermissions("manage:ledger_rfid:export")
|
||||||
|
@Log(title = "轮挡台账", businessType = BusinessType.EXPORT)
|
||||||
|
@PostMapping("/export")
|
||||||
|
@ResponseBody
|
||||||
|
public AjaxResult export(LedgerRfid ledgerRfid)
|
||||||
|
{
|
||||||
|
List<LedgerRfid> list = ledgerRfidService.selectLedgerRfidList(ledgerRfid);
|
||||||
|
ExcelUtil<LedgerRfid> util = new ExcelUtil<LedgerRfid>(LedgerRfid.class);
|
||||||
|
return util.exportExcel(list, "轮挡台账数据");
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 新增轮挡台账
|
||||||
|
*/
|
||||||
|
@GetMapping("/add")
|
||||||
|
public String add()
|
||||||
|
{
|
||||||
|
return prefix + "/add";
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 新增保存轮挡台账
|
||||||
|
*/
|
||||||
|
@RequiresPermissions("manage:ledger_rfid:add")
|
||||||
|
@Log(title = "轮挡台账", businessType = BusinessType.INSERT)
|
||||||
|
@PostMapping("/add")
|
||||||
|
@ResponseBody
|
||||||
|
public AjaxResult addSave(LedgerRfid ledgerRfid)
|
||||||
|
{
|
||||||
|
return toAjax(ledgerRfidService.insertLedgerRfid(ledgerRfid));
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 修改轮挡台账
|
||||||
|
*/
|
||||||
|
@RequiresPermissions("manage:ledger_rfid:edit")
|
||||||
|
@GetMapping("/edit/{objid}")
|
||||||
|
public String edit(@PathVariable("objid") Long objid, ModelMap mmap)
|
||||||
|
{
|
||||||
|
LedgerRfid ledgerRfid = ledgerRfidService.selectLedgerRfidByObjid(objid);
|
||||||
|
mmap.put("ledgerRfid", ledgerRfid);
|
||||||
|
return prefix + "/edit";
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 修改保存轮挡台账
|
||||||
|
*/
|
||||||
|
@RequiresPermissions("manage:ledger_rfid:edit")
|
||||||
|
@Log(title = "轮挡台账", businessType = BusinessType.UPDATE)
|
||||||
|
@PostMapping("/edit")
|
||||||
|
@ResponseBody
|
||||||
|
public AjaxResult editSave(LedgerRfid ledgerRfid)
|
||||||
|
{
|
||||||
|
return toAjax(ledgerRfidService.updateLedgerRfid(ledgerRfid));
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 删除轮挡台账
|
||||||
|
*/
|
||||||
|
@RequiresPermissions("manage:ledger_rfid:remove")
|
||||||
|
@Log(title = "轮挡台账", businessType = BusinessType.DELETE)
|
||||||
|
@PostMapping( "/remove")
|
||||||
|
@ResponseBody
|
||||||
|
public AjaxResult remove(String ids)
|
||||||
|
{
|
||||||
|
return toAjax(ledgerRfidService.deleteLedgerRfidByObjids(ids));
|
||||||
|
}
|
||||||
|
}
|
@ -0,0 +1,127 @@
|
|||||||
|
package com.ruoyi.manage.controller;
|
||||||
|
|
||||||
|
import java.util.List;
|
||||||
|
import org.apache.shiro.authz.annotation.RequiresPermissions;
|
||||||
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
|
import org.springframework.stereotype.Controller;
|
||||||
|
import org.springframework.ui.ModelMap;
|
||||||
|
import org.springframework.web.bind.annotation.GetMapping;
|
||||||
|
import org.springframework.web.bind.annotation.PathVariable;
|
||||||
|
import org.springframework.web.bind.annotation.PostMapping;
|
||||||
|
import org.springframework.web.bind.annotation.RequestMapping;
|
||||||
|
import org.springframework.web.bind.annotation.ResponseBody;
|
||||||
|
import com.ruoyi.common.annotation.Log;
|
||||||
|
import com.ruoyi.common.enums.BusinessType;
|
||||||
|
import com.ruoyi.manage.domain.RecordIn;
|
||||||
|
import com.ruoyi.manage.service.IRecordInService;
|
||||||
|
import com.ruoyi.common.core.controller.BaseController;
|
||||||
|
import com.ruoyi.common.core.domain.AjaxResult;
|
||||||
|
import com.ruoyi.common.utils.poi.ExcelUtil;
|
||||||
|
import com.ruoyi.common.core.page.TableDataInfo;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 轮挡入库记录Controller
|
||||||
|
*
|
||||||
|
* @author wangh
|
||||||
|
* @date 2024-01-17
|
||||||
|
*/
|
||||||
|
@Controller
|
||||||
|
@RequestMapping("/manage/record_in")
|
||||||
|
public class RecordInController extends BaseController
|
||||||
|
{
|
||||||
|
private String prefix = "manage/record_in";
|
||||||
|
|
||||||
|
@Autowired
|
||||||
|
private IRecordInService recordInService;
|
||||||
|
|
||||||
|
@RequiresPermissions("manage:record_in:view")
|
||||||
|
@GetMapping()
|
||||||
|
public String record_in()
|
||||||
|
{
|
||||||
|
return prefix + "/record_in";
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 查询轮挡入库记录列表
|
||||||
|
*/
|
||||||
|
@RequiresPermissions("manage:record_in:list")
|
||||||
|
@PostMapping("/list")
|
||||||
|
@ResponseBody
|
||||||
|
public TableDataInfo list(RecordIn recordIn)
|
||||||
|
{
|
||||||
|
startPage();
|
||||||
|
List<RecordIn> list = recordInService.selectRecordInList(recordIn);
|
||||||
|
return getDataTable(list);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 导出轮挡入库记录列表
|
||||||
|
*/
|
||||||
|
@RequiresPermissions("manage:record_in:export")
|
||||||
|
@Log(title = "轮挡入库记录", businessType = BusinessType.EXPORT)
|
||||||
|
@PostMapping("/export")
|
||||||
|
@ResponseBody
|
||||||
|
public AjaxResult export(RecordIn recordIn)
|
||||||
|
{
|
||||||
|
List<RecordIn> list = recordInService.selectRecordInList(recordIn);
|
||||||
|
ExcelUtil<RecordIn> util = new ExcelUtil<RecordIn>(RecordIn.class);
|
||||||
|
return util.exportExcel(list, "轮挡入库记录数据");
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 新增轮挡入库记录
|
||||||
|
*/
|
||||||
|
@GetMapping("/add")
|
||||||
|
public String add()
|
||||||
|
{
|
||||||
|
return prefix + "/add";
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 新增保存轮挡入库记录
|
||||||
|
*/
|
||||||
|
@RequiresPermissions("manage:record_in:add")
|
||||||
|
@Log(title = "轮挡入库记录", businessType = BusinessType.INSERT)
|
||||||
|
@PostMapping("/add")
|
||||||
|
@ResponseBody
|
||||||
|
public AjaxResult addSave(RecordIn recordIn)
|
||||||
|
{
|
||||||
|
return toAjax(recordInService.insertRecordIn(recordIn));
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 修改轮挡入库记录
|
||||||
|
*/
|
||||||
|
@RequiresPermissions("manage:record_in:edit")
|
||||||
|
@GetMapping("/edit/{objid}")
|
||||||
|
public String edit(@PathVariable("objid") Long objid, ModelMap mmap)
|
||||||
|
{
|
||||||
|
RecordIn recordIn = recordInService.selectRecordInByObjid(objid);
|
||||||
|
mmap.put("recordIn", recordIn);
|
||||||
|
return prefix + "/edit";
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 修改保存轮挡入库记录
|
||||||
|
*/
|
||||||
|
@RequiresPermissions("manage:record_in:edit")
|
||||||
|
@Log(title = "轮挡入库记录", businessType = BusinessType.UPDATE)
|
||||||
|
@PostMapping("/edit")
|
||||||
|
@ResponseBody
|
||||||
|
public AjaxResult editSave(RecordIn recordIn)
|
||||||
|
{
|
||||||
|
return toAjax(recordInService.updateRecordIn(recordIn));
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 删除轮挡入库记录
|
||||||
|
*/
|
||||||
|
@RequiresPermissions("manage:record_in:remove")
|
||||||
|
@Log(title = "轮挡入库记录", businessType = BusinessType.DELETE)
|
||||||
|
@PostMapping( "/remove")
|
||||||
|
@ResponseBody
|
||||||
|
public AjaxResult remove(String ids)
|
||||||
|
{
|
||||||
|
return toAjax(recordInService.deleteRecordInByObjids(ids));
|
||||||
|
}
|
||||||
|
}
|
@ -0,0 +1,130 @@
|
|||||||
|
package com.ruoyi.manage.domain;
|
||||||
|
|
||||||
|
import com.ruoyi.common.annotation.Excels;
|
||||||
|
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;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 轮挡台账对象 ledger_rfid
|
||||||
|
*
|
||||||
|
* @author wangh
|
||||||
|
* @date 2024-01-17
|
||||||
|
*/
|
||||||
|
public class LedgerRfid extends BaseEntity {
|
||||||
|
private static final long serialVersionUID = 1L;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 主键
|
||||||
|
*/
|
||||||
|
private Long objid;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 厂家id
|
||||||
|
*/
|
||||||
|
// @Excel(name = "厂家id")
|
||||||
|
private Long manufacturerId;
|
||||||
|
@Excels({@Excel(name = "厂家代码", targetAttr = "manufacturerCode", type = Excel.Type.EXPORT),
|
||||||
|
@Excel(name = "厂家名称", targetAttr = "manufacturerName", type = Excel.Type.EXPORT)})
|
||||||
|
private BaseManufacturer baseManufacturer;
|
||||||
|
/**
|
||||||
|
* RFID编码
|
||||||
|
*/
|
||||||
|
@Excel(name = "RFID编码")
|
||||||
|
private String rifdCode;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 生产批次
|
||||||
|
*/
|
||||||
|
@Excel(name = "生产批次")
|
||||||
|
private String batchCode;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 所在位置
|
||||||
|
*/
|
||||||
|
@Excel(name = "所在位置")
|
||||||
|
private String locationType;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 位置编码
|
||||||
|
*/
|
||||||
|
@Excel(name = "位置编码")
|
||||||
|
private String locationCode;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 是否报废
|
||||||
|
*/
|
||||||
|
@Excel(name = "轮挡状态", readConverterExp = "1=正常,2=报废,3=报废处理")
|
||||||
|
private String isScrap;
|
||||||
|
|
||||||
|
public void setObjid(Long objid) {
|
||||||
|
this.objid = objid;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Long getObjid() {
|
||||||
|
return objid;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setManufacturerId(Long manufacturerId) {
|
||||||
|
this.manufacturerId = manufacturerId;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Long getManufacturerId() {
|
||||||
|
return manufacturerId;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setRifdCode(String rifdCode) {
|
||||||
|
this.rifdCode = rifdCode;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getRifdCode() {
|
||||||
|
return rifdCode;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setBatchCode(String batchCode) {
|
||||||
|
this.batchCode = batchCode;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getBatchCode() {
|
||||||
|
return batchCode;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setLocationType(String locationType) {
|
||||||
|
this.locationType = locationType;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getLocationType() {
|
||||||
|
return locationType;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setLocationCode(String locationCode) {
|
||||||
|
this.locationCode = locationCode;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getLocationCode() {
|
||||||
|
return locationCode;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setIsScrap(String isScrap) {
|
||||||
|
this.isScrap = isScrap;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getIsScrap() {
|
||||||
|
return isScrap;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public String toString() {
|
||||||
|
return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE).append("objid", getObjid()).append("manufacturerId", getManufacturerId()).append("rifdCode", getRifdCode()).append("batchCode", getBatchCode()).append("locationType", getLocationType()).append("locationCode", getLocationCode()).append("isScrap", getIsScrap()).append("updateTime", getUpdateTime()).toString();
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
public BaseManufacturer getBaseManufacturer() {
|
||||||
|
return baseManufacturer;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setBaseManufacturer(BaseManufacturer baseManufacturer) {
|
||||||
|
this.baseManufacturer = baseManufacturer;
|
||||||
|
}
|
||||||
|
}
|
@ -0,0 +1,96 @@
|
|||||||
|
package com.ruoyi.manage.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;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 轮挡入库记录对象 record_in
|
||||||
|
*
|
||||||
|
* @author wangh
|
||||||
|
* @date 2024-01-17
|
||||||
|
*/
|
||||||
|
public class RecordIn extends BaseEntity
|
||||||
|
{
|
||||||
|
private static final long serialVersionUID = 1L;
|
||||||
|
|
||||||
|
/** 主键 */
|
||||||
|
private Long objid;
|
||||||
|
|
||||||
|
/** RFID编码 */
|
||||||
|
@Excel(name = "RFID编码")
|
||||||
|
private String epcCode;
|
||||||
|
|
||||||
|
/** 批次码 */
|
||||||
|
@Excel(name = "批次码")
|
||||||
|
private String batchCode;
|
||||||
|
|
||||||
|
/** 库位码 */
|
||||||
|
@Excel(name = "库位码")
|
||||||
|
private String locationCode;
|
||||||
|
|
||||||
|
/** 厂家 */
|
||||||
|
@Excel(name = "厂家")
|
||||||
|
private String manufacturerName;
|
||||||
|
|
||||||
|
public void setObjid(Long objid)
|
||||||
|
{
|
||||||
|
this.objid = objid;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Long getObjid()
|
||||||
|
{
|
||||||
|
return objid;
|
||||||
|
}
|
||||||
|
public void setEpcCode(String epcCode)
|
||||||
|
{
|
||||||
|
this.epcCode = epcCode;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getEpcCode()
|
||||||
|
{
|
||||||
|
return epcCode;
|
||||||
|
}
|
||||||
|
public void setBatchCode(String batchCode)
|
||||||
|
{
|
||||||
|
this.batchCode = batchCode;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getBatchCode()
|
||||||
|
{
|
||||||
|
return batchCode;
|
||||||
|
}
|
||||||
|
public void setLocationCode(String locationCode)
|
||||||
|
{
|
||||||
|
this.locationCode = locationCode;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getLocationCode()
|
||||||
|
{
|
||||||
|
return locationCode;
|
||||||
|
}
|
||||||
|
public void setManufacturerName(String manufacturerName)
|
||||||
|
{
|
||||||
|
this.manufacturerName = manufacturerName;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getManufacturerName()
|
||||||
|
{
|
||||||
|
return manufacturerName;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public String toString() {
|
||||||
|
return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
|
||||||
|
.append("objid", getObjid())
|
||||||
|
.append("epcCode", getEpcCode())
|
||||||
|
.append("batchCode", getBatchCode())
|
||||||
|
.append("locationCode", getLocationCode())
|
||||||
|
.append("manufacturerName", getManufacturerName())
|
||||||
|
.append("remark", getRemark())
|
||||||
|
.append("createBy", getCreateBy())
|
||||||
|
.append("createTime", getCreateTime())
|
||||||
|
.toString();
|
||||||
|
}
|
||||||
|
}
|
@ -0,0 +1,62 @@
|
|||||||
|
package com.ruoyi.manage.mapper;
|
||||||
|
|
||||||
|
import java.util.List;
|
||||||
|
import com.ruoyi.manage.domain.LedgerRfid;
|
||||||
|
import org.springframework.stereotype.Repository;
|
||||||
|
/**
|
||||||
|
* 轮挡台账Mapper接口
|
||||||
|
*
|
||||||
|
* @author wangh
|
||||||
|
* @date 2024-01-17
|
||||||
|
*/
|
||||||
|
@Repository
|
||||||
|
public interface LedgerRfidMapper
|
||||||
|
{
|
||||||
|
/**
|
||||||
|
* 查询轮挡台账
|
||||||
|
*
|
||||||
|
* @param objid 轮挡台账主键
|
||||||
|
* @return 轮挡台账
|
||||||
|
*/
|
||||||
|
public LedgerRfid selectLedgerRfidByObjid(Long objid);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 查询轮挡台账列表
|
||||||
|
*
|
||||||
|
* @param ledgerRfid 轮挡台账
|
||||||
|
* @return 轮挡台账集合
|
||||||
|
*/
|
||||||
|
public List<LedgerRfid> selectLedgerRfidList(LedgerRfid ledgerRfid);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 新增轮挡台账
|
||||||
|
*
|
||||||
|
* @param ledgerRfid 轮挡台账
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
public int insertLedgerRfid(LedgerRfid ledgerRfid);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 修改轮挡台账
|
||||||
|
*
|
||||||
|
* @param ledgerRfid 轮挡台账
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
public int updateLedgerRfid(LedgerRfid ledgerRfid);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 删除轮挡台账
|
||||||
|
*
|
||||||
|
* @param objid 轮挡台账主键
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
public int deleteLedgerRfidByObjid(Long objid);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 批量删除轮挡台账
|
||||||
|
*
|
||||||
|
* @param objids 需要删除的数据主键集合
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
public int deleteLedgerRfidByObjids(String[] objids);
|
||||||
|
}
|
@ -0,0 +1,62 @@
|
|||||||
|
package com.ruoyi.manage.mapper;
|
||||||
|
|
||||||
|
import java.util.List;
|
||||||
|
import com.ruoyi.manage.domain.RecordIn;
|
||||||
|
import org.springframework.stereotype.Repository;
|
||||||
|
/**
|
||||||
|
* 轮挡入库记录Mapper接口
|
||||||
|
*
|
||||||
|
* @author wangh
|
||||||
|
* @date 2024-01-17
|
||||||
|
*/
|
||||||
|
@Repository
|
||||||
|
public interface RecordInMapper
|
||||||
|
{
|
||||||
|
/**
|
||||||
|
* 查询轮挡入库记录
|
||||||
|
*
|
||||||
|
* @param objid 轮挡入库记录主键
|
||||||
|
* @return 轮挡入库记录
|
||||||
|
*/
|
||||||
|
public RecordIn selectRecordInByObjid(Long objid);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 查询轮挡入库记录列表
|
||||||
|
*
|
||||||
|
* @param recordIn 轮挡入库记录
|
||||||
|
* @return 轮挡入库记录集合
|
||||||
|
*/
|
||||||
|
public List<RecordIn> selectRecordInList(RecordIn recordIn);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 新增轮挡入库记录
|
||||||
|
*
|
||||||
|
* @param recordIn 轮挡入库记录
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
public int insertRecordIn(RecordIn recordIn);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 修改轮挡入库记录
|
||||||
|
*
|
||||||
|
* @param recordIn 轮挡入库记录
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
public int updateRecordIn(RecordIn recordIn);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 删除轮挡入库记录
|
||||||
|
*
|
||||||
|
* @param objid 轮挡入库记录主键
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
public int deleteRecordInByObjid(Long objid);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 批量删除轮挡入库记录
|
||||||
|
*
|
||||||
|
* @param objids 需要删除的数据主键集合
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
public int deleteRecordInByObjids(String[] objids);
|
||||||
|
}
|
@ -0,0 +1,61 @@
|
|||||||
|
package com.ruoyi.manage.service;
|
||||||
|
|
||||||
|
import java.util.List;
|
||||||
|
import com.ruoyi.manage.domain.LedgerRfid;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 轮挡台账Service接口
|
||||||
|
*
|
||||||
|
* @author wangh
|
||||||
|
* @date 2024-01-17
|
||||||
|
*/
|
||||||
|
public interface ILedgerRfidService
|
||||||
|
{
|
||||||
|
/**
|
||||||
|
* 查询轮挡台账
|
||||||
|
*
|
||||||
|
* @param objid 轮挡台账主键
|
||||||
|
* @return 轮挡台账
|
||||||
|
*/
|
||||||
|
public LedgerRfid selectLedgerRfidByObjid(Long objid);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 查询轮挡台账列表
|
||||||
|
*
|
||||||
|
* @param ledgerRfid 轮挡台账
|
||||||
|
* @return 轮挡台账集合
|
||||||
|
*/
|
||||||
|
public List<LedgerRfid> selectLedgerRfidList(LedgerRfid ledgerRfid);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 新增轮挡台账
|
||||||
|
*
|
||||||
|
* @param ledgerRfid 轮挡台账
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
public int insertLedgerRfid(LedgerRfid ledgerRfid);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 修改轮挡台账
|
||||||
|
*
|
||||||
|
* @param ledgerRfid 轮挡台账
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
public int updateLedgerRfid(LedgerRfid ledgerRfid);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 批量删除轮挡台账
|
||||||
|
*
|
||||||
|
* @param objids 需要删除的轮挡台账主键集合
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
public int deleteLedgerRfidByObjids(String objids);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 删除轮挡台账信息
|
||||||
|
*
|
||||||
|
* @param objid 轮挡台账主键
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
public int deleteLedgerRfidByObjid(Long objid);
|
||||||
|
}
|
@ -0,0 +1,61 @@
|
|||||||
|
package com.ruoyi.manage.service;
|
||||||
|
|
||||||
|
import java.util.List;
|
||||||
|
import com.ruoyi.manage.domain.RecordIn;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 轮挡入库记录Service接口
|
||||||
|
*
|
||||||
|
* @author wangh
|
||||||
|
* @date 2024-01-17
|
||||||
|
*/
|
||||||
|
public interface IRecordInService
|
||||||
|
{
|
||||||
|
/**
|
||||||
|
* 查询轮挡入库记录
|
||||||
|
*
|
||||||
|
* @param objid 轮挡入库记录主键
|
||||||
|
* @return 轮挡入库记录
|
||||||
|
*/
|
||||||
|
public RecordIn selectRecordInByObjid(Long objid);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 查询轮挡入库记录列表
|
||||||
|
*
|
||||||
|
* @param recordIn 轮挡入库记录
|
||||||
|
* @return 轮挡入库记录集合
|
||||||
|
*/
|
||||||
|
public List<RecordIn> selectRecordInList(RecordIn recordIn);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 新增轮挡入库记录
|
||||||
|
*
|
||||||
|
* @param recordIn 轮挡入库记录
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
public int insertRecordIn(RecordIn recordIn);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 修改轮挡入库记录
|
||||||
|
*
|
||||||
|
* @param recordIn 轮挡入库记录
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
public int updateRecordIn(RecordIn recordIn);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 批量删除轮挡入库记录
|
||||||
|
*
|
||||||
|
* @param objids 需要删除的轮挡入库记录主键集合
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
public int deleteRecordInByObjids(String objids);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 删除轮挡入库记录信息
|
||||||
|
*
|
||||||
|
* @param objid 轮挡入库记录主键
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
public int deleteRecordInByObjid(Long objid);
|
||||||
|
}
|
@ -0,0 +1,91 @@
|
|||||||
|
package com.ruoyi.manage.service.impl;
|
||||||
|
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
|
|
||||||
|
import com.ruoyi.common.utils.DateUtils;
|
||||||
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
|
import org.springframework.stereotype.Service;
|
||||||
|
import com.ruoyi.manage.mapper.LedgerRfidMapper;
|
||||||
|
import com.ruoyi.manage.domain.LedgerRfid;
|
||||||
|
import com.ruoyi.manage.service.ILedgerRfidService;
|
||||||
|
import com.ruoyi.common.core.text.Convert;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 轮挡台账Service业务层处理
|
||||||
|
*
|
||||||
|
* @author wangh
|
||||||
|
* @date 2024-01-17
|
||||||
|
*/
|
||||||
|
@Service
|
||||||
|
public class LedgerRfidServiceImpl implements ILedgerRfidService {
|
||||||
|
@Autowired
|
||||||
|
private LedgerRfidMapper ledgerRfidMapper;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 查询轮挡台账
|
||||||
|
*
|
||||||
|
* @param objid 轮挡台账主键
|
||||||
|
* @return 轮挡台账
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public LedgerRfid selectLedgerRfidByObjid(Long objid) {
|
||||||
|
return ledgerRfidMapper.selectLedgerRfidByObjid(objid);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 查询轮挡台账列表
|
||||||
|
*
|
||||||
|
* @param ledgerRfid 轮挡台账
|
||||||
|
* @return 轮挡台账
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public List<LedgerRfid> selectLedgerRfidList(LedgerRfid ledgerRfid) {
|
||||||
|
return ledgerRfidMapper.selectLedgerRfidList(ledgerRfid);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 新增轮挡台账
|
||||||
|
*
|
||||||
|
* @param ledgerRfid 轮挡台账
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public int insertLedgerRfid(LedgerRfid ledgerRfid) {
|
||||||
|
return ledgerRfidMapper.insertLedgerRfid(ledgerRfid);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 修改轮挡台账
|
||||||
|
*
|
||||||
|
* @param ledgerRfid 轮挡台账
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public int updateLedgerRfid(LedgerRfid ledgerRfid) {
|
||||||
|
ledgerRfid.setUpdateTime(DateUtils.getNowDate());
|
||||||
|
return ledgerRfidMapper.updateLedgerRfid(ledgerRfid);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 批量删除轮挡台账
|
||||||
|
*
|
||||||
|
* @param objids 需要删除的轮挡台账主键
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public int deleteLedgerRfidByObjids(String objids) {
|
||||||
|
return ledgerRfidMapper.deleteLedgerRfidByObjids(Convert.toStrArray(objids));
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 删除轮挡台账信息
|
||||||
|
*
|
||||||
|
* @param objid 轮挡台账主键
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public int deleteLedgerRfidByObjid(Long objid) {
|
||||||
|
return ledgerRfidMapper.deleteLedgerRfidByObjid(objid);
|
||||||
|
}
|
||||||
|
}
|
@ -0,0 +1,93 @@
|
|||||||
|
package com.ruoyi.manage.service.impl;
|
||||||
|
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
|
|
||||||
|
import com.ruoyi.common.utils.DateUtils;
|
||||||
|
import com.ruoyi.common.utils.ShiroUtils;
|
||||||
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
|
import org.springframework.stereotype.Service;
|
||||||
|
import com.ruoyi.manage.mapper.RecordInMapper;
|
||||||
|
import com.ruoyi.manage.domain.RecordIn;
|
||||||
|
import com.ruoyi.manage.service.IRecordInService;
|
||||||
|
import com.ruoyi.common.core.text.Convert;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 轮挡入库记录Service业务层处理
|
||||||
|
*
|
||||||
|
* @author wangh
|
||||||
|
* @date 2024-01-17
|
||||||
|
*/
|
||||||
|
@Service
|
||||||
|
public class RecordInServiceImpl implements IRecordInService {
|
||||||
|
@Autowired
|
||||||
|
private RecordInMapper recordInMapper;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 查询轮挡入库记录
|
||||||
|
*
|
||||||
|
* @param objid 轮挡入库记录主键
|
||||||
|
* @return 轮挡入库记录
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public RecordIn selectRecordInByObjid(Long objid) {
|
||||||
|
return recordInMapper.selectRecordInByObjid(objid);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 查询轮挡入库记录列表
|
||||||
|
*
|
||||||
|
* @param recordIn 轮挡入库记录
|
||||||
|
* @return 轮挡入库记录
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public List<RecordIn> selectRecordInList(RecordIn recordIn) {
|
||||||
|
return recordInMapper.selectRecordInList(recordIn);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 新增轮挡入库记录
|
||||||
|
*
|
||||||
|
* @param recordIn 轮挡入库记录
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public int insertRecordIn(RecordIn recordIn) {
|
||||||
|
recordIn.setCreateBy(ShiroUtils.getLoginName());
|
||||||
|
recordIn.setCreateTime(DateUtils.getNowDate());
|
||||||
|
return recordInMapper.insertRecordIn(recordIn);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 修改轮挡入库记录
|
||||||
|
*
|
||||||
|
* @param recordIn 轮挡入库记录
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public int updateRecordIn(RecordIn recordIn) {
|
||||||
|
return recordInMapper.updateRecordIn(recordIn);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 批量删除轮挡入库记录
|
||||||
|
*
|
||||||
|
* @param objids 需要删除的轮挡入库记录主键
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public int deleteRecordInByObjids(String objids) {
|
||||||
|
return recordInMapper.deleteRecordInByObjids(Convert.toStrArray(objids));
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 删除轮挡入库记录信息
|
||||||
|
*
|
||||||
|
* @param objid 轮挡入库记录主键
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public int deleteRecordInByObjid(Long objid) {
|
||||||
|
return recordInMapper.deleteRecordInByObjid(objid);
|
||||||
|
}
|
||||||
|
}
|
@ -0,0 +1,22 @@
|
|||||||
|
-- 菜单 SQL
|
||||||
|
insert into sys_menu (menu_name, parent_id, order_num, url, menu_type, visible, perms, icon, create_by, create_time, update_by, update_time, remark)
|
||||||
|
values('轮挡台账', '2026', '1', '/manage/ledger_rfid', 'C', '0', 'manage:ledger_rfid:view', '#', 'admin', sysdate(), '', null, '轮挡台账菜单');
|
||||||
|
|
||||||
|
-- 按钮父菜单ID
|
||||||
|
SELECT @parentId := LAST_INSERT_ID();
|
||||||
|
|
||||||
|
-- 按钮 SQL
|
||||||
|
insert into sys_menu (menu_name, parent_id, order_num, url, menu_type, visible, perms, icon, create_by, create_time, update_by, update_time, remark)
|
||||||
|
values('轮挡台账查询', @parentId, '1', '#', 'F', '0', 'manage:ledger_rfid:list', '#', 'admin', sysdate(), '', null, '');
|
||||||
|
|
||||||
|
insert into sys_menu (menu_name, parent_id, order_num, url, menu_type, visible, perms, icon, create_by, create_time, update_by, update_time, remark)
|
||||||
|
values('轮挡台账新增', @parentId, '2', '#', 'F', '0', 'manage:ledger_rfid:add', '#', 'admin', sysdate(), '', null, '');
|
||||||
|
|
||||||
|
insert into sys_menu (menu_name, parent_id, order_num, url, menu_type, visible, perms, icon, create_by, create_time, update_by, update_time, remark)
|
||||||
|
values('轮挡台账修改', @parentId, '3', '#', 'F', '0', 'manage:ledger_rfid:edit', '#', 'admin', sysdate(), '', null, '');
|
||||||
|
|
||||||
|
insert into sys_menu (menu_name, parent_id, order_num, url, menu_type, visible, perms, icon, create_by, create_time, update_by, update_time, remark)
|
||||||
|
values('轮挡台账删除', @parentId, '4', '#', 'F', '0', 'manage:ledger_rfid:remove', '#', 'admin', sysdate(), '', null, '');
|
||||||
|
|
||||||
|
insert into sys_menu (menu_name, parent_id, order_num, url, menu_type, visible, perms, icon, create_by, create_time, update_by, update_time, remark)
|
||||||
|
values('轮挡台账导出', @parentId, '5', '#', 'F', '0', 'manage:ledger_rfid:export', '#', 'admin', sysdate(), '', null, '');
|
@ -0,0 +1,22 @@
|
|||||||
|
-- 菜单 SQL
|
||||||
|
insert into sys_menu (menu_name, parent_id, order_num, url, menu_type, visible, perms, icon, create_by, create_time, update_by, update_time, remark)
|
||||||
|
values('轮挡入库记录', '2026', '1', '/manage/record_in', 'C', '0', 'manage:record_in:view', '#', 'admin', sysdate(), '', null, '轮挡入库记录菜单');
|
||||||
|
|
||||||
|
-- 按钮父菜单ID
|
||||||
|
SELECT @parentId := LAST_INSERT_ID();
|
||||||
|
|
||||||
|
-- 按钮 SQL
|
||||||
|
insert into sys_menu (menu_name, parent_id, order_num, url, menu_type, visible, perms, icon, create_by, create_time, update_by, update_time, remark)
|
||||||
|
values('轮挡入库记录查询', @parentId, '1', '#', 'F', '0', 'manage:record_in:list', '#', 'admin', sysdate(), '', null, '');
|
||||||
|
|
||||||
|
insert into sys_menu (menu_name, parent_id, order_num, url, menu_type, visible, perms, icon, create_by, create_time, update_by, update_time, remark)
|
||||||
|
values('轮挡入库记录新增', @parentId, '2', '#', 'F', '0', 'manage:record_in:add', '#', 'admin', sysdate(), '', null, '');
|
||||||
|
|
||||||
|
insert into sys_menu (menu_name, parent_id, order_num, url, menu_type, visible, perms, icon, create_by, create_time, update_by, update_time, remark)
|
||||||
|
values('轮挡入库记录修改', @parentId, '3', '#', 'F', '0', 'manage:record_in:edit', '#', 'admin', sysdate(), '', null, '');
|
||||||
|
|
||||||
|
insert into sys_menu (menu_name, parent_id, order_num, url, menu_type, visible, perms, icon, create_by, create_time, update_by, update_time, remark)
|
||||||
|
values('轮挡入库记录删除', @parentId, '4', '#', 'F', '0', 'manage:record_in:remove', '#', 'admin', sysdate(), '', null, '');
|
||||||
|
|
||||||
|
insert into sys_menu (menu_name, parent_id, order_num, url, menu_type, visible, perms, icon, create_by, create_time, update_by, update_time, remark)
|
||||||
|
values('轮挡入库记录导出', @parentId, '5', '#', 'F', '0', 'manage:record_in:export', '#', 'admin', sysdate(), '', null, '');
|
@ -0,0 +1,98 @@
|
|||||||
|
<?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.manage.mapper.LedgerRfidMapper">
|
||||||
|
|
||||||
|
<resultMap type="LedgerRfid" id="LedgerRfidResult">
|
||||||
|
<result property="objid" column="objid" />
|
||||||
|
<result property="manufacturerId" column="manufacturer_id" />
|
||||||
|
<result property="rifdCode" column="rifd_code" />
|
||||||
|
<result property="batchCode" column="batch_code" />
|
||||||
|
<result property="locationType" column="location_type" />
|
||||||
|
<result property="locationCode" column="location_code" />
|
||||||
|
<result property="isScrap" column="is_scrap" />
|
||||||
|
<result property="updateTime" column="update_time" />
|
||||||
|
<association property="baseManufacturer" javaType="BaseManufacturer" resultMap="com.ruoyi.manage.mapper.BaseManufacturerMapper.BaseManufacturerResult"/>
|
||||||
|
</resultMap>
|
||||||
|
|
||||||
|
<sql id="selectLedgerRfidVo">
|
||||||
|
select objid,
|
||||||
|
lr.manufacturer_id,
|
||||||
|
rifd_code,
|
||||||
|
batch_code,
|
||||||
|
location_type,
|
||||||
|
location_code,
|
||||||
|
is_scrap,
|
||||||
|
lr.update_time,
|
||||||
|
bm.manufacturer_code,
|
||||||
|
bm.manufacturer_name
|
||||||
|
from ledger_rfid lr
|
||||||
|
left join base_manufacturer bm on lr.manufacturer_id = bm.manufacturer_id
|
||||||
|
</sql>
|
||||||
|
|
||||||
|
<select id="selectLedgerRfidList" parameterType="LedgerRfid" resultMap="LedgerRfidResult">
|
||||||
|
<include refid="selectLedgerRfidVo"/>
|
||||||
|
<where>
|
||||||
|
<if test="manufacturerId != null "> and lr.manufacturer_id = #{manufacturerId}</if>
|
||||||
|
<if test="rifdCode != null and rifdCode != ''"> and rifd_code = #{rifdCode}</if>
|
||||||
|
<if test="batchCode != null and batchCode != ''"> and batch_code = #{batchCode}</if>
|
||||||
|
<if test="locationType != null and locationType != ''"> and location_type = #{locationType}</if>
|
||||||
|
<if test="locationCode != null and locationCode != ''"> and location_code = #{locationCode}</if>
|
||||||
|
<if test="isScrap != null and isScrap != ''"> and is_scrap = #{isScrap}</if>
|
||||||
|
</where>
|
||||||
|
</select>
|
||||||
|
|
||||||
|
<select id="selectLedgerRfidByObjid" parameterType="Long" resultMap="LedgerRfidResult">
|
||||||
|
<include refid="selectLedgerRfidVo"/>
|
||||||
|
where objid = #{objid}
|
||||||
|
</select>
|
||||||
|
|
||||||
|
<insert id="insertLedgerRfid" parameterType="LedgerRfid" useGeneratedKeys="true" keyProperty="objid">
|
||||||
|
insert into ledger_rfid
|
||||||
|
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||||
|
<if test="manufacturerId != null">manufacturer_id,</if>
|
||||||
|
<if test="rifdCode != null">rifd_code,</if>
|
||||||
|
<if test="batchCode != null">batch_code,</if>
|
||||||
|
<if test="locationType != null">location_type,</if>
|
||||||
|
<if test="locationCode != null">location_code,</if>
|
||||||
|
<if test="isScrap != null">is_scrap,</if>
|
||||||
|
<if test="updateTime != null">update_time,</if>
|
||||||
|
</trim>
|
||||||
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
||||||
|
<if test="manufacturerId != null">#{manufacturerId},</if>
|
||||||
|
<if test="rifdCode != null">#{rifdCode},</if>
|
||||||
|
<if test="batchCode != null">#{batchCode},</if>
|
||||||
|
<if test="locationType != null">#{locationType},</if>
|
||||||
|
<if test="locationCode != null">#{locationCode},</if>
|
||||||
|
<if test="isScrap != null">#{isScrap},</if>
|
||||||
|
<if test="updateTime != null">#{updateTime},</if>
|
||||||
|
</trim>
|
||||||
|
</insert>
|
||||||
|
|
||||||
|
<update id="updateLedgerRfid" parameterType="LedgerRfid">
|
||||||
|
update ledger_rfid
|
||||||
|
<trim prefix="SET" suffixOverrides=",">
|
||||||
|
<if test="manufacturerId != null">manufacturer_id = #{manufacturerId},</if>
|
||||||
|
<if test="rifdCode != null">rifd_code = #{rifdCode},</if>
|
||||||
|
<if test="batchCode != null">batch_code = #{batchCode},</if>
|
||||||
|
<if test="locationType != null">location_type = #{locationType},</if>
|
||||||
|
<if test="locationCode != null">location_code = #{locationCode},</if>
|
||||||
|
<if test="isScrap != null">is_scrap = #{isScrap},</if>
|
||||||
|
<if test="updateTime != null">update_time = #{updateTime},</if>
|
||||||
|
</trim>
|
||||||
|
where objid = #{objid}
|
||||||
|
</update>
|
||||||
|
|
||||||
|
<delete id="deleteLedgerRfidByObjid" parameterType="Long">
|
||||||
|
delete from ledger_rfid where objid = #{objid}
|
||||||
|
</delete>
|
||||||
|
|
||||||
|
<delete id="deleteLedgerRfidByObjids" parameterType="String">
|
||||||
|
delete from ledger_rfid where objid in
|
||||||
|
<foreach item="objid" collection="array" open="(" separator="," close=")">
|
||||||
|
#{objid}
|
||||||
|
</foreach>
|
||||||
|
</delete>
|
||||||
|
|
||||||
|
</mapper>
|
@ -0,0 +1,84 @@
|
|||||||
|
<?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.manage.mapper.RecordInMapper">
|
||||||
|
|
||||||
|
<resultMap type="RecordIn" id="RecordInResult">
|
||||||
|
<result property="objid" column="objid" />
|
||||||
|
<result property="epcCode" column="epc_code" />
|
||||||
|
<result property="batchCode" column="batch_code" />
|
||||||
|
<result property="locationCode" column="location_code" />
|
||||||
|
<result property="manufacturerName" column="manufacturer_Name" />
|
||||||
|
<result property="remark" column="remark" />
|
||||||
|
<result property="createBy" column="create_by" />
|
||||||
|
<result property="createTime" column="create_time" />
|
||||||
|
</resultMap>
|
||||||
|
|
||||||
|
<sql id="selectRecordInVo">
|
||||||
|
select objid, epc_code, batch_code, location_code, manufacturer_Name, remark, create_by, create_time from record_in
|
||||||
|
</sql>
|
||||||
|
|
||||||
|
<select id="selectRecordInList" parameterType="RecordIn" resultMap="RecordInResult">
|
||||||
|
<include refid="selectRecordInVo"/>
|
||||||
|
<where>
|
||||||
|
<if test="epcCode != null and epcCode != ''"> and epc_code = #{epcCode}</if>
|
||||||
|
<if test="batchCode != null and batchCode != ''"> and batch_code like concat('%', #{batchCode}, '%')</if>
|
||||||
|
<if test="locationCode != null and locationCode != ''"> and location_code = #{locationCode}</if>
|
||||||
|
<if test="manufacturerName != null and manufacturerName != ''"> and manufacturer_Name = #{manufacturerName}</if>
|
||||||
|
</where>
|
||||||
|
</select>
|
||||||
|
|
||||||
|
<select id="selectRecordInByObjid" parameterType="Long" resultMap="RecordInResult">
|
||||||
|
<include refid="selectRecordInVo"/>
|
||||||
|
where objid = #{objid}
|
||||||
|
</select>
|
||||||
|
|
||||||
|
<insert id="insertRecordIn" parameterType="RecordIn" useGeneratedKeys="true" keyProperty="objid">
|
||||||
|
insert into record_in
|
||||||
|
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||||
|
<if test="epcCode != null">epc_code,</if>
|
||||||
|
<if test="batchCode != null">batch_code,</if>
|
||||||
|
<if test="locationCode != null">location_code,</if>
|
||||||
|
<if test="manufacturerName != null">manufacturer_Name,</if>
|
||||||
|
<if test="remark != null">remark,</if>
|
||||||
|
<if test="createBy != null">create_by,</if>
|
||||||
|
<if test="createTime != null">create_time,</if>
|
||||||
|
</trim>
|
||||||
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
||||||
|
<if test="epcCode != null">#{epcCode},</if>
|
||||||
|
<if test="batchCode != null">#{batchCode},</if>
|
||||||
|
<if test="locationCode != null">#{locationCode},</if>
|
||||||
|
<if test="manufacturerName != null">#{manufacturerName},</if>
|
||||||
|
<if test="remark != null">#{remark},</if>
|
||||||
|
<if test="createBy != null">#{createBy},</if>
|
||||||
|
<if test="createTime != null">#{createTime},</if>
|
||||||
|
</trim>
|
||||||
|
</insert>
|
||||||
|
|
||||||
|
<update id="updateRecordIn" parameterType="RecordIn">
|
||||||
|
update record_in
|
||||||
|
<trim prefix="SET" suffixOverrides=",">
|
||||||
|
<if test="epcCode != null">epc_code = #{epcCode},</if>
|
||||||
|
<if test="batchCode != null">batch_code = #{batchCode},</if>
|
||||||
|
<if test="locationCode != null">location_code = #{locationCode},</if>
|
||||||
|
<if test="manufacturerName != null">manufacturer_Name = #{manufacturerName},</if>
|
||||||
|
<if test="remark != null">remark = #{remark},</if>
|
||||||
|
<if test="createBy != null">create_by = #{createBy},</if>
|
||||||
|
<if test="createTime != null">create_time = #{createTime},</if>
|
||||||
|
</trim>
|
||||||
|
where objid = #{objid}
|
||||||
|
</update>
|
||||||
|
|
||||||
|
<delete id="deleteRecordInByObjid" parameterType="Long">
|
||||||
|
delete from record_in where objid = #{objid}
|
||||||
|
</delete>
|
||||||
|
|
||||||
|
<delete id="deleteRecordInByObjids" parameterType="String">
|
||||||
|
delete from record_in where objid in
|
||||||
|
<foreach item="objid" collection="array" open="(" separator="," close=")">
|
||||||
|
#{objid}
|
||||||
|
</foreach>
|
||||||
|
</delete>
|
||||||
|
|
||||||
|
</mapper>
|
Loading…
Reference in New Issue