|
@@ -34,23 +34,24 @@ public class MuseumInfoServiceImpl implements MuseumInfoService {
|
|
* 新增标本
|
|
* 新增标本
|
|
*/
|
|
*/
|
|
@Override
|
|
@Override
|
|
- @LogRecord(type = MUSEUM_TYPE, subType = CREATE_SUB_TYPE, bizNo = "{{#sampleId.id}}",
|
|
|
|
|
|
+ @LogRecord(type = MUSEUM_TYPE, subType = CREATE_SUB_TYPE, bizNo = "{{#sample.id}}",
|
|
success = CREATE_SUB_TYPE_SUCCESS)
|
|
success = CREATE_SUB_TYPE_SUCCESS)
|
|
public Integer createMuseumInfo(MuseumInfoSaveVO saveVO) {
|
|
public Integer createMuseumInfo(MuseumInfoSaveVO saveVO) {
|
|
MuseumInfoDO sample = BeanUtils.toBean(saveVO, MuseumInfoDO.class);
|
|
MuseumInfoDO sample = BeanUtils.toBean(saveVO, MuseumInfoDO.class);
|
|
|
|
+ sample.setStore(1);
|
|
museumInfoMapper.insert(sample);
|
|
museumInfoMapper.insert(sample);
|
|
- LogRecordContext.putVariable("sample", sample );
|
|
|
|
|
|
+ LogRecordContext.putVariable("sample", sample);
|
|
return sample.getId();
|
|
return sample.getId();
|
|
|
|
+
|
|
}
|
|
}
|
|
/**
|
|
/**
|
|
* 更新标本
|
|
* 更新标本
|
|
*/
|
|
*/
|
|
- @LogRecord(type = MUSEUM_TYPE, subType = UPDATE_SUB_TYPE, bizNo = "{{#sampleId.id}}",
|
|
|
|
|
|
+ @LogRecord(type = MUSEUM_TYPE, subType = UPDATE_SUB_TYPE, bizNo = "{{#sample.id}}",
|
|
success = UPDATE_SUB_TYPE_SUCCESS)
|
|
success = UPDATE_SUB_TYPE_SUCCESS)
|
|
@Override
|
|
@Override
|
|
public void updateSampleMuseumInfo(MuseumInfoSaveVO saveVO) {
|
|
public void updateSampleMuseumInfo(MuseumInfoSaveVO saveVO) {
|
|
MuseumInfoDO sample = BeanUtils.toBean(saveVO,MuseumInfoDO.class);
|
|
MuseumInfoDO sample = BeanUtils.toBean(saveVO,MuseumInfoDO.class);
|
|
-
|
|
|
|
museumInfoMapper.updateMuseumInfo(sample);
|
|
museumInfoMapper.updateMuseumInfo(sample);
|
|
LogRecordContext.putVariable(DiffParseFunction.OLD_OBJECT, BeanUtils.toBean(sample, MuseumInfoSaveVO.class));
|
|
LogRecordContext.putVariable(DiffParseFunction.OLD_OBJECT, BeanUtils.toBean(sample, MuseumInfoSaveVO.class));
|
|
LogRecordContext.putVariable("sample", sample );
|
|
LogRecordContext.putVariable("sample", sample );
|
|
@@ -59,30 +60,32 @@ public class MuseumInfoServiceImpl implements MuseumInfoService {
|
|
/**
|
|
/**
|
|
* 标本出库
|
|
* 标本出库
|
|
*/
|
|
*/
|
|
- @LogRecord(type = MUSEUM_TYPE, subType = OUT_MUSEUM_SUB_TYPE, bizNo = "{{#sampleId.id}}",
|
|
|
|
|
|
+ @LogRecord(type = MUSEUM_TYPE, subType = OUT_MUSEUM_SUB_TYPE, bizNo = "{{#sample.id}}",
|
|
success = OUT_MUSEUM_SUB_TYPE_SUCCESS)
|
|
success = OUT_MUSEUM_SUB_TYPE_SUCCESS)
|
|
@Override
|
|
@Override
|
|
public void outSampleMuseumInfo(Integer id){
|
|
public void outSampleMuseumInfo(Integer id){
|
|
MuseumInfoDO sample = museumInfoMapper.selectMuseumInfoById(id);
|
|
MuseumInfoDO sample = museumInfoMapper.selectMuseumInfoById(id);
|
|
museumInfoMapper.outSampleMuseumInfo(id);
|
|
museumInfoMapper.outSampleMuseumInfo(id);
|
|
|
|
+ LogRecordContext.putVariable(DiffParseFunction.OLD_OBJECT, BeanUtils.toBean(sample, MuseumInfoSaveVO.class));
|
|
LogRecordContext.putVariable("sample",sample);
|
|
LogRecordContext.putVariable("sample",sample);
|
|
}
|
|
}
|
|
/**
|
|
/**
|
|
* 标本回库
|
|
* 标本回库
|
|
*/
|
|
*/
|
|
- @LogRecord(type = MUSEUM_TYPE, subType = BACK_MUSEUM_SUB_TYPE, bizNo = "{{#sampleId.id}}",
|
|
|
|
|
|
+ @LogRecord(type = MUSEUM_TYPE, subType = BACK_MUSEUM_SUB_TYPE, bizNo = "{{#sample.id}}",
|
|
success = BACK_MUSEUM_SUB_TYPE_SUCCESS)
|
|
success = BACK_MUSEUM_SUB_TYPE_SUCCESS)
|
|
@Override
|
|
@Override
|
|
public void backSampleMuseumInfo(Integer id){
|
|
public void backSampleMuseumInfo(Integer id){
|
|
MuseumInfoDO sample = museumInfoMapper.selectMuseumInfoById(id);
|
|
MuseumInfoDO sample = museumInfoMapper.selectMuseumInfoById(id);
|
|
museumInfoMapper.backSampleMuseumInfo(id);
|
|
museumInfoMapper.backSampleMuseumInfo(id);
|
|
|
|
+ LogRecordContext.putVariable(DiffParseFunction.OLD_OBJECT, BeanUtils.toBean(sample, MuseumInfoSaveVO.class));
|
|
LogRecordContext.putVariable("sample",sample);
|
|
LogRecordContext.putVariable("sample",sample);
|
|
}
|
|
}
|
|
/**
|
|
/**
|
|
* 删除标本
|
|
* 删除标本
|
|
*/
|
|
*/
|
|
@Override
|
|
@Override
|
|
- @LogRecord(type = MUSEUM_TYPE, subType = DELETE_SUB_TYPE, bizNo = "{{#sampleId.id}}",
|
|
|
|
|
|
+ @LogRecord(type = MUSEUM_TYPE, subType = DELETE_SUB_TYPE, bizNo = "{{#sample.id}}",
|
|
success = DELETE_SUB_TYPE_SUCCESS)
|
|
success = DELETE_SUB_TYPE_SUCCESS)
|
|
public void deleteMuseumInfo(Integer id,String reason) {
|
|
public void deleteMuseumInfo(Integer id,String reason) {
|
|
MuseumInfoDO sample = museumInfoMapper.selectMuseumInfoById(id);
|
|
MuseumInfoDO sample = museumInfoMapper.selectMuseumInfoById(id);
|
|
@@ -98,14 +101,14 @@ public class MuseumInfoServiceImpl implements MuseumInfoService {
|
|
}
|
|
}
|
|
|
|
|
|
/**
|
|
/**
|
|
- * 查询标本编号
|
|
|
|
|
|
+ * 查询标本编号(String)
|
|
*/
|
|
*/
|
|
@Override
|
|
@Override
|
|
public String getMuseumInfoBySampleId (String sampleId) {
|
|
public String getMuseumInfoBySampleId (String sampleId) {
|
|
return museumInfoMapper.getMuseumInfoBySampleId(sampleId);
|
|
return museumInfoMapper.getMuseumInfoBySampleId(sampleId);
|
|
}
|
|
}
|
|
/**
|
|
/**
|
|
- * 查询标本编号1
|
|
|
|
|
|
+ * 查询标本编号(DO)
|
|
*/
|
|
*/
|
|
@Override
|
|
@Override
|
|
public MuseumInfoDO selectMuseumInfoBySampleId (String sampleId) {
|
|
public MuseumInfoDO selectMuseumInfoBySampleId (String sampleId) {
|