From 986de1ea52ea40a848a8e8ffe478122850bb03a2 Mon Sep 17 00:00:00 2001 From: 刘小明 <liuxm_a@163.com> Date: 星期二, 13 八月 2024 09:36:34 +0800 Subject: [PATCH] Merge remote-tracking branch 'origin/master' --- pms-parent/pms-web-platform/src/main/java/com/dy/pmsPlatform/proTestItems/ProTestItemsSv.java | 21 ++++++++++----------- 1 files changed, 10 insertions(+), 11 deletions(-) diff --git a/pms-parent/pms-web-platform/src/main/java/com/dy/pmsPlatform/proTestItems/ProTestItemsSv.java b/pms-parent/pms-web-platform/src/main/java/com/dy/pmsPlatform/proTestItems/ProTestItemsSv.java index 3efca47..633ed98 100644 --- a/pms-parent/pms-web-platform/src/main/java/com/dy/pmsPlatform/proTestItems/ProTestItemsSv.java +++ b/pms-parent/pms-web-platform/src/main/java/com/dy/pmsPlatform/proTestItems/ProTestItemsSv.java @@ -1,9 +1,8 @@ package com.dy.pmsPlatform.proTestItems; import com.dy.common.webUtil.QueryResultVo; -import com.dy.pmsGlobal.daoPlt.PltProductTestItemsMapper; -import com.dy.pmsGlobal.pojoPlt.PltProductTestItems; -import com.dy.pmsPlatform.proTestItems.QueryVo; +import com.dy.pmsGlobal.daoPlt.PltProductTestInspectionItemsMapper; +import com.dy.pmsGlobal.pojoPlt.PltProductTestInspectionItems; import lombok.extern.slf4j.Slf4j; import org.apache.dubbo.common.utils.PojoUtils; import org.springframework.stereotype.Service; @@ -14,14 +13,14 @@ @Slf4j @Service public class ProTestItemsSv { - private final PltProductTestItemsMapper dao; + private final PltProductTestInspectionItemsMapper dao; - public ProTestItemsSv(PltProductTestItemsMapper dao) { + public ProTestItemsSv(PltProductTestInspectionItemsMapper dao) { this.dao = dao; } @Transactional - public int save(PltProductTestItems item) { + public int save(PltProductTestInspectionItems item) { int count = dao.insertSelective(item); return count; } @@ -39,26 +38,26 @@ @Transactional - public int update(PltProductTestItems item) { + public int update(PltProductTestInspectionItems item) { int count = dao.updateByPrimaryKeySelective(item); return count; } - public PltProductTestItems selectById(String paramId) { + public PltProductTestInspectionItems selectById(String paramId) { return dao.selectByPrimaryKey(Long.valueOf(paramId)); } /** * 鑾峰彇鍒楄〃 */ - public QueryResultVo<List<PltProductTestItems>> selectSome(QueryVo queryVo) { + public QueryResultVo<List<PltProductTestInspectionItems>> selectSome(QueryVo queryVo) { Map<String, Object> params = (Map<String, Object>) PojoUtils.generalize(queryVo); //鏌ヨ绗﹀悎鏉′欢鐨勮褰曟�绘暟 Long itemTotal = this.dao.selectSomeCount(params); - QueryResultVo<List<PltProductTestItems>> rsVo = new QueryResultVo<>(queryVo.pageSize, queryVo.pageCurr) ; + QueryResultVo<List<PltProductTestInspectionItems>> rsVo = new QueryResultVo<>(queryVo.pageSize, queryVo.pageCurr) ; //璁$畻鍒嗛〉绛変俊鎭� rsVo.calculateAndSet(itemTotal, params); @@ -69,7 +68,7 @@ @Transactional public int disabled(Long id, Boolean disabled) { - PltProductTestItems item = new PltProductTestItems(); + PltProductTestInspectionItems item = new PltProductTestInspectionItems(); item.setId(id); item.setDisabled(disabled); return dao.updateByPrimaryKeySelective(item); -- Gitblit v1.8.0