Commit 8b565358 authored by 李苏's avatar 李苏 💬

Merge branch 'master' of gitlab.gavelinfo.com:gavelinfo/kwell-mes

parents 93cce0ad 58f55965
...@@ -16,7 +16,7 @@ import java.util.List; ...@@ -16,7 +16,7 @@ import java.util.List;
@Repository("upointDao") @Repository("upointDao")
public class UpointDaoImpl extends BaseDaoImpl implements UpointDao { public class UpointDaoImpl extends BaseDaoImpl implements UpointDao {
public RecordSet<UpointVO> query(UpointCondition condition){ public RecordSet<UpointVO> query(UpointCondition condition){
SqlMap sqlMap = new SqlMap(); SqlMap sqlMap = new SqlMap();
sqlMap.setPageNo(condition.getPageNo()); sqlMap.setPageNo(condition.getPageNo());
...@@ -29,7 +29,7 @@ public class UpointDaoImpl extends BaseDaoImpl implements UpointDao { ...@@ -29,7 +29,7 @@ public class UpointDaoImpl extends BaseDaoImpl implements UpointDao {
if (StringUtils.isNotEmpty(condition.getId())){ if (StringUtils.isNotEmpty(condition.getId())){
sqlMap.append(" and " + SqlUtil.getWhereSql("U_PLCPOINT_ID", condition.getId())); sqlMap.append(" and " + SqlUtil.getWhereSql("U_PLCPOINT_ID", condition.getId()));
sqlMap.setParamValue("U_PLCPOINT_ID", condition.getId()); sqlMap.setParamValue("U_PLCPOINT_ID", condition.getId());
} }
if (StringUtils.isNotEmpty(condition.getType())){ if (StringUtils.isNotEmpty(condition.getType())){
...@@ -82,7 +82,7 @@ public class UpointDaoImpl extends BaseDaoImpl implements UpointDao { ...@@ -82,7 +82,7 @@ public class UpointDaoImpl extends BaseDaoImpl implements UpointDao {
sqlMap.append("from U_PLCPOINT "); sqlMap.append("from U_PLCPOINT ");
sqlMap.append("where U_PLCPOINT_TYPE = :U_PLCPOINT_TYPE "); sqlMap.append("where U_PLCPOINT_TYPE = :U_PLCPOINT_TYPE ");
sqlMap.setParamValue("U_PLCPOINT_TYPE", type); sqlMap.setParamValue("U_PLCPOINT_TYPE", type);
sqlMap.append("order by U_PLCPOINT_CODE "); sqlMap.append("order by U_PLCPOINT_NAME ");
return sqlMap.query(Upoint.class); return sqlMap.query(Upoint.class);
} }
} }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment