Merge remote-tracking branch 'remotes/origin/dev' into test
commit
4eb1391834
@ -0,0 +1,22 @@
|
||||
package cn.estsh.i3plus.core.api.iservice.busi;
|
||||
|
||||
import cn.estsh.i3plus.pojo.platform.bean.SysSoftUpdateRecord;
|
||||
import cn.estsh.impp.framework.base.service.ICrudService;
|
||||
|
||||
/**
|
||||
* @Description :
|
||||
* @Reference :
|
||||
* @Author : yunhao
|
||||
* @CreateDate : 2020-09-14 13:15
|
||||
* @Modify:
|
||||
**/
|
||||
public interface ISysSoftUpdateRecordService extends ICrudService<SysSoftUpdateRecord> {
|
||||
|
||||
/**
|
||||
* 软件更新记录是否唯一
|
||||
* @param sysSoftUpdateRecord
|
||||
* @return
|
||||
*/
|
||||
boolean checkSysSoftUpdateRecordOnly(SysSoftUpdateRecord sysSoftUpdateRecord);
|
||||
|
||||
}
|
@ -0,0 +1,22 @@
|
||||
package cn.estsh.i3plus.core.apiservice.controller.busi;
|
||||
|
||||
import cn.estsh.i3plus.platform.common.util.PlatformConstWords;
|
||||
import cn.estsh.i3plus.pojo.platform.bean.SysSoftUpdateRecord;
|
||||
import cn.estsh.impp.framework.base.controller.CrudBaseController;
|
||||
import io.swagger.annotations.Api;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.bind.annotation.RestController;
|
||||
|
||||
/**
|
||||
* @Description :
|
||||
* @Reference :
|
||||
* @Author : yunhao
|
||||
* @CreateDate : 2020-09-14 13:19
|
||||
* @Modify:
|
||||
**/
|
||||
@RestController
|
||||
@Api(tags = "软件更新记录")
|
||||
@RequestMapping(PlatformConstWords.BASE_URL + "/sys-soft-update-record")
|
||||
public class SysSoftUpdateRecordController extends CrudBaseController<SysSoftUpdateRecord> {
|
||||
|
||||
}
|
@ -0,0 +1,35 @@
|
||||
package cn.estsh.i3plus.core.apiservice.serviceimpl.busi;
|
||||
|
||||
import cn.estsh.i3plus.core.api.iservice.busi.ISysSoftUpdateRecordService;
|
||||
import cn.estsh.i3plus.pojo.base.bean.DdlPackBean;
|
||||
import cn.estsh.i3plus.pojo.platform.bean.SysSoftUpdateRecord;
|
||||
import cn.estsh.i3plus.pojo.platform.sqlpack.CoreHqlPack;
|
||||
import cn.estsh.impp.framework.base.service.CrudService;
|
||||
import org.springframework.stereotype.Service;
|
||||
|
||||
/**
|
||||
* @Description :
|
||||
* @Reference :
|
||||
* @Author : yunhao
|
||||
* @CreateDate : 2020-09-14 13:18
|
||||
* @Modify:
|
||||
**/
|
||||
@Service
|
||||
public class SysSoftUpdateRecordService extends CrudService<SysSoftUpdateRecord> implements ISysSoftUpdateRecordService {
|
||||
|
||||
@Override
|
||||
public DdlPackBean getFindPagerPackBean(SysSoftUpdateRecord bean) {
|
||||
return CoreHqlPack.packHqlQuerySysSoftUpdateRecord(bean);
|
||||
}
|
||||
|
||||
/**
|
||||
* 软件更新记录是否唯一
|
||||
*
|
||||
* @param sysSoftUpdateRecord
|
||||
* @return
|
||||
*/
|
||||
@Override
|
||||
public boolean checkSysSoftUpdateRecordOnly(SysSoftUpdateRecord sysSoftUpdateRecord) {
|
||||
return !baseRepository.isExitByHql(CoreHqlPack.packHqlCheckSysSoftUpdateRecordOnly(sysSoftUpdateRecord));
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue