|
|
@@ -46,7 +46,7 @@ public class MesProductService extends CrudService<MesProductDao, MesProduct> {
|
|
|
public List<MesProduct> findByCount(MesProduct mesProduct) {
|
|
|
return dao.findByCount(mesProduct);
|
|
|
}
|
|
|
-
|
|
|
+
|
|
|
/**
|
|
|
* 查询分页数据
|
|
|
* @param mesProduct 查询条件
|
|
|
@@ -57,7 +57,7 @@ public class MesProductService extends CrudService<MesProductDao, MesProduct> {
|
|
|
public Page<MesProduct> findPage(MesProduct mesProduct) {
|
|
|
return super.findPage(mesProduct);
|
|
|
}
|
|
|
-
|
|
|
+
|
|
|
/**
|
|
|
* 查询列表数据
|
|
|
* @param mesProduct
|
|
|
@@ -67,7 +67,7 @@ public class MesProductService extends CrudService<MesProductDao, MesProduct> {
|
|
|
public List<MesProduct> findList(MesProduct mesProduct) {
|
|
|
return super.findList(mesProduct);
|
|
|
}
|
|
|
-
|
|
|
+
|
|
|
/**
|
|
|
* 保存数据(插入或更新)
|
|
|
* @param mesProduct
|
|
|
@@ -77,7 +77,7 @@ public class MesProductService extends CrudService<MesProductDao, MesProduct> {
|
|
|
public void save(MesProduct mesProduct) {
|
|
|
super.save(mesProduct);
|
|
|
}
|
|
|
-
|
|
|
+
|
|
|
/**
|
|
|
* 更新状态
|
|
|
* @param mesProduct
|
|
|
@@ -87,7 +87,7 @@ public class MesProductService extends CrudService<MesProductDao, MesProduct> {
|
|
|
public void updateStatus(MesProduct mesProduct) {
|
|
|
super.updateStatus(mesProduct);
|
|
|
}
|
|
|
-
|
|
|
+
|
|
|
/**
|
|
|
* 删除数据
|
|
|
* @param mesProduct
|
|
|
@@ -99,6 +99,11 @@ public class MesProductService extends CrudService<MesProductDao, MesProduct> {
|
|
|
}
|
|
|
|
|
|
|
|
|
+ // 根据sn查询
|
|
|
+ public MesProduct findBySn(String sn){
|
|
|
+ MesProduct m1 = new MesProduct();
|
|
|
+ m1.setSn(sn);
|
|
|
+ return dao.findInfo(m1);
|
|
|
+ }
|
|
|
|
|
|
-
|
|
|
-}
|
|
|
+}
|