Commit 27592cb5 by xiaoyj

物流编码列表查询

git-svn-id: svn://192.168.3.233/frms/code/car-service/trunk/car-service@21678 aeb6102e-e053-11e5-9fec-f9ebc45caf4b
1 parent f9bbef52
...@@ -28,4 +28,6 @@ public interface SysLogisticsMapper { ...@@ -28,4 +28,6 @@ public interface SysLogisticsMapper {
int updateByPrimaryKeySelective(SysLogistics record); int updateByPrimaryKeySelective(SysLogistics record);
int updateByPrimaryKey(SysLogistics record); int updateByPrimaryKey(SysLogistics record);
List<SysLogistics> listSysLogistics();
} }
\ No newline at end of file \ No newline at end of file
package com.glsx.ordercenter.service;
import com.glsx.ordercenter.pojo.SysLogistics;
import java.util.List;
public interface LogisticsService {
List<SysLogistics> listSysLogistics();
}
package com.glsx.ordercenter.service.impl;
import com.glsx.ordercenter.mapper.SysLogisticsMapper;
import com.glsx.ordercenter.pojo.SysLogistics;
import com.glsx.ordercenter.pojo.SysLogisticsExample;
import com.glsx.ordercenter.service.LogisticsService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import java.util.List;
@Service
public class LogisticsServiceImpl implements LogisticsService{
@Autowired
private SysLogisticsMapper sysLogisticsMapper;
@Override
public List<SysLogistics> listSysLogistics() {
return sysLogisticsMapper.listSysLogistics();
}
}
...@@ -193,4 +193,14 @@ ...@@ -193,4 +193,14 @@
charact_type = #{charactType,jdbcType=CHAR} charact_type = #{charactType,jdbcType=CHAR}
where id = #{id,jdbcType=INTEGER} where id = #{id,jdbcType=INTEGER}
</update> </update>
<select id="listSysLogistics" resultMap="BaseResultMap">
SELECT
*
FROM
sys_logistics
ORDER BY
BINARY charact_type,
uniCODE ASC;
</select>
</mapper> </mapper>
\ No newline at end of file \ No newline at end of file
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!