1、新增查询凭证类别
This commit is contained in:
parent
67ab11cddc
commit
36f00eac70
|
@ -287,6 +287,21 @@ public class BdController extends DefaultController {
|
|||
}
|
||||
|
||||
|
||||
/**
|
||||
* 查询凭证类别
|
||||
*/
|
||||
@RequestMapping(value = "/queryVoucherType", method = RequestMethod.POST)
|
||||
public JsonResultEntity queryVoucherType(@RequestBody BdVoucherTypeVO entity) {
|
||||
try {
|
||||
List<BdVoucherTypeVO> list = mdmDBQueryVODAO.queryVoucherType(entity);
|
||||
return getSuccessMessageEntity("请求成功", list);
|
||||
} catch (Exception e) {
|
||||
e.printStackTrace();
|
||||
return getFailureMessageEntity(e.getMessage());
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
// /**
|
||||
// *
|
||||
// */
|
||||
|
|
|
@ -15,4 +15,5 @@ public interface IMdmDBQueryVODAO extends IBaseDao<MdmDBQueryVO, String> {
|
|||
List<GlSubrelationVO> queryGlsubrelationVO(GlSubrelationVO glSubrelationVO);
|
||||
List<BdBdinfoEntity> queryBdBdinfoList(BdBdinfoEntity entity);
|
||||
List<BdAccassitemVO> queryBdInfoBySubjass(BdAccassitemVO entity);
|
||||
List<BdVoucherTypeVO> queryVoucherType(BdVoucherTypeVO entity);
|
||||
}
|
||||
|
|
|
@ -47,4 +47,11 @@ public class MdmDBQueryVODAOImpl extends MybatisGenericDao<MdmDBQueryVO, String>
|
|||
List<BdAccassitemVO> list =(List<BdAccassitemVO>) selectList("com.hzya.frame.voucher.ae.comf.bd.dao.impl.MdmDBQueryVODAOImpl.queryBdInfoBySubjass", entity);
|
||||
return list;
|
||||
}
|
||||
|
||||
@Override
|
||||
public List<BdVoucherTypeVO> queryVoucherType(BdVoucherTypeVO entity) {
|
||||
List<BdVoucherTypeVO> list =(List<BdVoucherTypeVO>) selectList("com.hzya.frame.voucher.ae.comf.bd.dao.impl.MdmDBQueryVODAOImpl.queryVoucherType", entity);
|
||||
|
||||
return list;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -0,0 +1,21 @@
|
|||
package com.hzya.frame.voucher.ae.comf.bd.entity.vo;
|
||||
|
||||
import com.hzya.frame.web.entity.BaseEntity;
|
||||
import lombok.Data;
|
||||
|
||||
/**
|
||||
* Created by zydd on 2025-06-25 14:01
|
||||
* 凭证类别
|
||||
*/
|
||||
@Data
|
||||
public class BdVoucherTypeVO extends BaseEntity {
|
||||
private String pkVouchertype;
|
||||
private String code;
|
||||
private String name;
|
||||
private String pkGlorgbook;
|
||||
private String shortname;
|
||||
private String enablestate;
|
||||
private String sealflag;
|
||||
private String dr;
|
||||
private String ts;
|
||||
}
|
|
@ -136,5 +136,19 @@
|
|||
SELECT pk_accassitem,code,name,pk_defdef,classid,tablename,tablepkname,dr,ts FROM mdm_bd_accassitem
|
||||
</select>
|
||||
|
||||
<select id="queryVoucherType" parameterType="com.hzya.frame.voucher.ae.comf.bd.entity.vo.BdVoucherTypeVO" resultType="com.hzya.frame.voucher.ae.comf.bd.entity.vo.BdVoucherTypeVO">
|
||||
SELECT
|
||||
pk_vouchertype as pkVouchertype,
|
||||
code,
|
||||
name,
|
||||
pk_glorgbook as pkGlorgbook,
|
||||
shortname,
|
||||
enablestate,
|
||||
sealflag,
|
||||
dr,
|
||||
ts
|
||||
FROM mdm_bd_vouchertype
|
||||
</select>
|
||||
|
||||
</mapper>
|
||||
|
||||
|
|
Loading…
Reference in New Issue