From d848e50e8f17c3947aa5abbb91cb1b6dcb7ceda8 Mon Sep 17 00:00:00 2001 From: megagao Date: Sun, 8 Jan 2017 17:05:25 +0800 Subject: [PATCH] =?UTF-8?q?=E5=88=A0=E9=99=A4=E4=BA=86=E6=B3=A8=E9=87=8A?= =?UTF-8?q?=E6=8E=89=E7=9A=84=E4=BB=A3=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../service/impl/TechnologyServiceImpl.java | 44 ++----------------- 1 file changed, 3 insertions(+), 41 deletions(-) diff --git a/src/main/java/org/hqu/production_ms/service/impl/TechnologyServiceImpl.java b/src/main/java/org/hqu/production_ms/service/impl/TechnologyServiceImpl.java index 5ef23a3..c216021 100644 --- a/src/main/java/org/hqu/production_ms/service/impl/TechnologyServiceImpl.java +++ b/src/main/java/org/hqu/production_ms/service/impl/TechnologyServiceImpl.java @@ -22,7 +22,7 @@ public class TechnologyServiceImpl implements TechnologyService{ @Override public EUDataGridResult getList(int page, int rows, Technology technology) throws Exception{ - //查询商品列表 + //查询工艺列表 TechnologyExample example = new TechnologyExample(); //分页处理 PageHelper.startPage(page, rows); @@ -40,17 +40,6 @@ public class TechnologyServiceImpl implements TechnologyService{ public Technology get(String string) throws Exception{ return technologyMapper.selectByPrimaryKey(string); } - /* - @Override - public CustomResult delete(String string) throws Exception{ - int i = customMapper.deleteByPrimaryKey(string); - if(i>0){ - return CustomResult.ok(); - }else{ - return null; - } - } - */ @Override public CustomResult deleteBatch(String[] ids) throws Exception{ @@ -71,17 +60,7 @@ public class TechnologyServiceImpl implements TechnologyService{ return CustomResult.build(101, "新增工艺信息失败"); } } -/* - @Override - public CustomResult update(Custom custom) throws Exception{ - int i = customMapper.updateByPrimaryKeySelective(custom); - if(i>0){ - return CustomResult.ok(); - }else{ - return null; - } - } - */ + @Override public CustomResult updateAll(Technology technology) throws Exception{ int i = technologyMapper.updateByPrimaryKey(technology); @@ -91,23 +70,7 @@ public class TechnologyServiceImpl implements TechnologyService{ return CustomResult.build(101, "修改工艺信息失败"); } } -/* - @Override - public CustomResult updateNote(Custom custom) throws Exception{ - int i = customMapper.updateNote(custom); - if(i>0){ - return CustomResult.ok(); - }else{ - return null; - } - } - - @Override - public CustomResult changeStatus(String[] ids) throws Exception{ - customMapper.changeStatus(ids); - return CustomResult.ok(); - } -*/ + @Override public List find() throws Exception{ TechnologyExample example = new TechnologyExample(); @@ -143,5 +106,4 @@ public class TechnologyServiceImpl implements TechnologyService{ result.setTotal(pageInfo.getTotal()); return result; } - } -- GitLab