| | |
| | | } |
| | | |
| | | protected Long getDeptId() { |
| | | // todo:luxiaotao |
| | | return 1L; |
| | | return getUser().getDeptId(); |
| | | } |
| | | |
| | | |
| | | protected String getComment(Class<?> cls, String fieldName){ |
| | | Field[] fields = Cools.getAllFields(cls); |
| | |
| | | @Repository |
| | | public interface CstmrMapper extends BaseMapper<Cstmr> { |
| | | |
| | | Cstmr selectCstmrByNewestUuid(); |
| | | |
| | | } |
| | |
| | | |
| | | @Override |
| | | public String getNextUuid() { |
| | | // todo:luxiaotao |
| | | return null; |
| | | Cstmr cstmr = this.baseMapper.selectCstmrByNewestUuid(); |
| | | if (cstmr == null) { |
| | | return "0001"; |
| | | } |
| | | return String.valueOf(Integer.parseInt(cstmr.getUuid()) + 1); |
| | | } |
| | | } |
| | |
| | | |
| | | </resultMap> |
| | | |
| | | <select id="selectCstmrByNewestUuid" resultMap="BaseResultMap"> |
| | | select * from man_cstmr where 1=1 order by uuid + 0 desc |
| | | </select> |
| | | |
| | | </mapper> |