parent
50bdaf9e32
commit
bc62a800ca
|
@ -6,6 +6,8 @@ import com.github.pagehelper.PageInfo;
|
||||||
import com.hzya.frame.mdm.mdmModule.dao.IMdmModuleDao;
|
import com.hzya.frame.mdm.mdmModule.dao.IMdmModuleDao;
|
||||||
import com.hzya.frame.mdm.mdmModule.entity.MdmModuleEntity;
|
import com.hzya.frame.mdm.mdmModule.entity.MdmModuleEntity;
|
||||||
import com.hzya.frame.mdm.mdmModule.service.IMdmModuleService;
|
import com.hzya.frame.mdm.mdmModule.service.IMdmModuleService;
|
||||||
|
import com.hzya.frame.mdm.mdmModuleDb.dao.IMdmModuleDbDao;
|
||||||
|
import com.hzya.frame.mdm.mdmModuleDb.entity.MdmModuleDbEntity;
|
||||||
import com.hzya.frame.voucher.ae.comf.bd.dao.*;
|
import com.hzya.frame.voucher.ae.comf.bd.dao.*;
|
||||||
import com.hzya.frame.voucher.ae.comf.bd.entity.*;
|
import com.hzya.frame.voucher.ae.comf.bd.entity.*;
|
||||||
import com.hzya.frame.voucher.ae.comf.bd.entity.vo.*;
|
import com.hzya.frame.voucher.ae.comf.bd.entity.vo.*;
|
||||||
|
@ -41,6 +43,8 @@ public class BdController extends DefaultController {
|
||||||
private IMdmModuleService mdmModuleService;
|
private IMdmModuleService mdmModuleService;
|
||||||
@Autowired
|
@Autowired
|
||||||
private IMdmModuleDao mdmModuleDao;
|
private IMdmModuleDao mdmModuleDao;
|
||||||
|
@Autowired
|
||||||
|
private IMdmModuleDbDao mdmModuleDbDao;
|
||||||
|
|
||||||
@Autowired
|
@Autowired
|
||||||
private IMdmDbFiledVODAO mdmDbFiledVODAO;
|
private IMdmDbFiledVODAO mdmDbFiledVODAO;
|
||||||
|
@ -205,6 +209,21 @@ public class BdController extends DefaultController {
|
||||||
if (mdmDBQueryVO.getTablename() == null || "".equals(mdmDBQueryVO.getTablename())) {
|
if (mdmDBQueryVO.getTablename() == null || "".equals(mdmDBQueryVO.getTablename())) {
|
||||||
return getSuccessMessageEntity("请求成功", null);
|
return getSuccessMessageEntity("请求成功", null);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
//查询表remark,是否包含管理
|
||||||
|
MdmModuleDbEntity mdmModuleDbEntity = new MdmModuleDbEntity();
|
||||||
|
mdmModuleDbEntity.setDbName(mdmDBQueryVO.getTablename());
|
||||||
|
List<MdmModuleDbEntity> dbEntityList = mdmModuleDbDao.query(mdmModuleDbEntity);
|
||||||
|
if (dbEntityList.size() == 0) {
|
||||||
|
return getFailureMessageEntity("该表不存在");
|
||||||
|
}
|
||||||
|
String remark = dbEntityList.get(0).getRemark();
|
||||||
|
if (remark != null && !"".equals(remark)) {
|
||||||
|
if (!remark.contains("管理")) {
|
||||||
|
mdmDBQueryVO.setPkentityorg(null);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
PageHelper.startPage(mdmDBQueryVO.getPageNum(), mdmDBQueryVO.getPageSize());
|
PageHelper.startPage(mdmDBQueryVO.getPageNum(), mdmDBQueryVO.getPageSize());
|
||||||
List<Map<String, Object>> objectList = mdmDBQueryVODAO.queryMdmDb(mdmDBQueryVO);
|
List<Map<String, Object>> objectList = mdmDBQueryVODAO.queryMdmDb(mdmDBQueryVO);
|
||||||
PageInfo pageInfo = new PageInfo(objectList);
|
PageInfo pageInfo = new PageInfo(objectList);
|
||||||
|
|
|
@ -30,4 +30,6 @@ public class MdmDBQueryVO extends BaseEntity {
|
||||||
private String propValue8;
|
private String propValue8;
|
||||||
private String propValue9;
|
private String propValue9;
|
||||||
private String propValue10;
|
private String propValue10;
|
||||||
|
|
||||||
|
private String pkentityorg;
|
||||||
}
|
}
|
||||||
|
|
|
@ -24,6 +24,7 @@
|
||||||
<if test="prop8 !=null and propValue8 != null">${prop8}like concat('%', #{propValue8},'%')</if>
|
<if test="prop8 !=null and propValue8 != null">${prop8}like concat('%', #{propValue8},'%')</if>
|
||||||
<if test="prop9 !=null and propValue9 != null">${prop9}like concat('%', #{propValue9},'%')</if>
|
<if test="prop9 !=null and propValue9 != null">${prop9}like concat('%', #{propValue9},'%')</if>
|
||||||
<if test="prop10 !=null and propValue10 != null">${prop10}like concat('%', #{propValue10},'%')</if>
|
<if test="prop10 !=null and propValue10 != null">${prop10}like concat('%', #{propValue10},'%')</if>
|
||||||
|
<if test="pkentityorg !=null and pkentityorg != null">pk_corp= #{pkentityorg}</if>
|
||||||
</trim>
|
</trim>
|
||||||
</select>
|
</select>
|
||||||
|
|
||||||
|
|
|
@ -51,7 +51,8 @@ public class MdmServiceImpl implements IMdmService {
|
||||||
MdmModuleDbFiledsEntity mdmModuleDbFiledsEntity = new MdmModuleDbFiledsEntity();
|
MdmModuleDbFiledsEntity mdmModuleDbFiledsEntity = new MdmModuleDbFiledsEntity();
|
||||||
mdmModuleDbFiledsEntity.setDbId(mdmModuleDbEntity.getId());
|
mdmModuleDbFiledsEntity.setDbId(mdmModuleDbEntity.getId());
|
||||||
List<MdmModuleDbFiledsEntity> filedList = mdmModuleDbFiledsDao.query(mdmModuleDbFiledsEntity);
|
List<MdmModuleDbFiledsEntity> filedList = mdmModuleDbFiledsDao.query(mdmModuleDbFiledsEntity);
|
||||||
mdmModuleDbEntity.setSublistMdmModuleDbFileds(filedList);
|
List<MdmModuleDbFiledsEntity> collect = filedList.stream().filter(filed -> "1".equals(filed.getViewType())).collect(Collectors.toList());
|
||||||
|
mdmModuleDbEntity.setSublistMdmModuleDbFileds(collect);
|
||||||
res.add(mdmModuleDbEntity);
|
res.add(mdmModuleDbEntity);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -366,45 +366,85 @@
|
||||||
modify_user = values(modify_user),
|
modify_user = values(modify_user),
|
||||||
sts = values(sts)
|
sts = values(sts)
|
||||||
</insert>
|
</insert>
|
||||||
|
<!--通过主键修改方法-->
|
||||||
|
<!-- <update id="entity_update"-->
|
||||||
|
<!-- parameterType="com.hzya.frame.voucher.ae.comf.subject.entity.AeConfSubjectClassificationEntity">-->
|
||||||
|
<!-- update ae_conf_subject_classification set-->
|
||||||
|
<!-- <trim suffix="" suffixOverrides=",">-->
|
||||||
|
<!-- <if test="code != null and code != ''">code = #{code},</if>-->
|
||||||
|
<!-- <if test="name != null and name != ''">name = #{name},</if>-->
|
||||||
|
<!-- <if test="aeConfModuleId != null and aeConfModuleId != ''">aeConfModuleId = #{aeConfModuleId},</if>-->
|
||||||
|
<!-- <if test="pkCorp != null and pkCorp != ''">pk_corp = #{pkCorp},</if>-->
|
||||||
|
<!-- <if test="pkglorgbook != null and pkglorgbook != ''">pkglorgbook = #{pkglorgbook},</if>-->
|
||||||
|
<!-- <if test="glorgbookcode != null and glorgbookcode != ''">glorgbookcode = #{glorgbookcode},</if>-->
|
||||||
|
<!-- <if test="glorgbookname != null and glorgbookname != ''">glorgbookname = #{glorgbookname},</if>-->
|
||||||
|
<!-- <if test="factorids != null and factorids != ''">factorIds = #{factorids},</if>-->
|
||||||
|
<!-- <if test="factornames != null and factornames != ''">factorNames = #{factornames},</if>-->
|
||||||
|
<!-- <if test="contrastId != null and contrastId != ''">contrast_id = #{contrastId},</if>-->
|
||||||
|
<!-- <if test="contrastCode != null and contrastCode != ''">contrast_code = #{contrastCode},</if>-->
|
||||||
|
<!-- <if test="contrastName != null and contrastName != ''">contrast_name = #{contrastName},</if>-->
|
||||||
|
<!-- <if test="desdocvalueDefaultId != null and desdocvalueDefaultId != ''">desdocvalue_default_id = #{desdocvalueDefaultId}, </if>-->
|
||||||
|
<!-- <if test="desdocvalueDefaultName != null and desdocvalueDefaultName != ''">desdocvalue_default_name = #{desdocvalueDefaultName}, </if>-->
|
||||||
|
<!-- <if test="remark != null and remark != ''">remark = #{remark},</if>-->
|
||||||
|
<!-- <if test="def1 != null and def1 != ''">def1 = #{def1},</if>-->
|
||||||
|
<!-- <if test="def2 != null and def2 != ''">def2 = #{def2},</if>-->
|
||||||
|
<!-- <if test="def3 != null and def3 != ''">def3 = #{def3},</if>-->
|
||||||
|
<!-- <if test="def4 != null and def4 != ''">def4 = #{def4},</if>-->
|
||||||
|
<!-- <if test="def5 != null and def5 != ''">def5 = #{def5},</if>-->
|
||||||
|
<!-- <if test="def6 != null and def6 != ''">def6 = #{def6},</if>-->
|
||||||
|
<!-- <if test="def7 != null and def7 != ''">def7 = #{def7},</if>-->
|
||||||
|
<!-- <if test="def8 != null and def8 != ''">def8 = #{def8},</if>-->
|
||||||
|
<!-- <if test="def9 != null and def9 != ''">def9 = #{def9},</if>-->
|
||||||
|
<!-- <if test="def10 != null and def10 != ''">def10 = #{def10},</if>-->
|
||||||
|
<!-- <if test="create_time != null">create_time = #{create_time},</if>-->
|
||||||
|
<!-- <if test="createUser != null and createUser != ''">create_user = #{createUser},</if>-->
|
||||||
|
<!-- <if test="modify_time != null">modify_time = #{modify_time},</if>-->
|
||||||
|
<!-- <if test="modify_time == null">modify_time = now(),</if>-->
|
||||||
|
<!-- <if test="modifyUser != null and modifyUser != ''">modify_user = #{modifyUser},</if>-->
|
||||||
|
<!-- <if test="sts != null and sts != ''">sts = #{sts},</if>-->
|
||||||
|
<!-- </trim>-->
|
||||||
|
<!-- where id = #{id}-->
|
||||||
|
<!-- </update>-->
|
||||||
|
|
||||||
|
|
||||||
<!--通过主键修改方法-->
|
<!--通过主键修改方法-->
|
||||||
<update id="entity_update"
|
<update id="entity_update"
|
||||||
parameterType="com.hzya.frame.voucher.ae.comf.subject.entity.AeConfSubjectClassificationEntity">
|
parameterType="com.hzya.frame.voucher.ae.comf.subject.entity.AeConfSubjectClassificationEntity">
|
||||||
update ae_conf_subject_classification set
|
update ae_conf_subject_classification set
|
||||||
<trim suffix="" suffixOverrides=",">
|
code = #{code},
|
||||||
<if test="code != null and code != ''">code = #{code},</if>
|
name = #{name},
|
||||||
<if test="name != null and name != ''">name = #{name},</if>
|
aeConfModuleId = #{aeConfModuleId},
|
||||||
<if test="aeConfModuleId != null and aeConfModuleId != ''">aeConfModuleId = #{aeConfModuleId},</if>
|
pk_corp = #{pkCorp},
|
||||||
<if test="pkCorp != null and pkCorp != ''">pk_corp = #{pkCorp},</if>
|
pkglorgbook = #{pkglorgbook},
|
||||||
<if test="pkglorgbook != null and pkglorgbook != ''">pkglorgbook = #{pkglorgbook},</if>
|
glorgbookcode = #{glorgbookcode},
|
||||||
<if test="glorgbookcode != null and glorgbookcode != ''">glorgbookcode = #{glorgbookcode},</if>
|
glorgbookname = #{glorgbookname},
|
||||||
<if test="glorgbookname != null and glorgbookname != ''">glorgbookname = #{glorgbookname},</if>
|
factorIds = #{factorids},
|
||||||
<if test="factorids != null and factorids != ''">factorIds = #{factorids},</if>
|
factorNames = #{factornames},
|
||||||
<if test="factornames != null and factornames != ''">factorNames = #{factornames},</if>
|
contrast_id = #{contrastId},
|
||||||
<if test="contrastId != null and contrastId != ''">contrast_id = #{contrastId},</if>
|
contrast_code = #{contrastCode},
|
||||||
<if test="contrastCode != null and contrastCode != ''">contrast_code = #{contrastCode},</if>
|
contrast_name = #{contrastName},
|
||||||
<if test="contrastName != null and contrastName != ''">contrast_name = #{contrastName},</if>
|
desdocvalue_default_id = #{desdocvalueDefaultId},
|
||||||
<if test="desdocvalueDefaultId != null and desdocvalueDefaultId != ''">desdocvalue_default_id = #{desdocvalueDefaultId}, </if>
|
desdocvalue_default_name = #{desdocvalueDefaultName},
|
||||||
<if test="desdocvalueDefaultName != null and desdocvalueDefaultName != ''">desdocvalue_default_name = #{desdocvalueDefaultName}, </if>
|
remark = #{remark},
|
||||||
<if test="remark != null and remark != ''">remark = #{remark},</if>
|
def1 = #{def1},
|
||||||
<if test="def1 != null and def1 != ''">def1 = #{def1},</if>
|
def2 = #{def2},
|
||||||
<if test="def2 != null and def2 != ''">def2 = #{def2},</if>
|
def3 = #{def3},
|
||||||
<if test="def3 != null and def3 != ''">def3 = #{def3},</if>
|
def4 = #{def4},
|
||||||
<if test="def4 != null and def4 != ''">def4 = #{def4},</if>
|
def5 = #{def5},
|
||||||
<if test="def5 != null and def5 != ''">def5 = #{def5},</if>
|
def6 = #{def6},
|
||||||
<if test="def6 != null and def6 != ''">def6 = #{def6},</if>
|
def7 = #{def7},
|
||||||
<if test="def7 != null and def7 != ''">def7 = #{def7},</if>
|
def8 = #{def8},
|
||||||
<if test="def8 != null and def8 != ''">def8 = #{def8},</if>
|
def9 = #{def9},
|
||||||
<if test="def9 != null and def9 != ''">def9 = #{def9},</if>
|
def10 = #{def10},
|
||||||
<if test="def10 != null and def10 != ''">def10 = #{def10},</if>
|
create_time = #{create_time},
|
||||||
<if test="create_time != null">create_time = #{create_time},</if>
|
create_user = #{createUser},
|
||||||
<if test="createUser != null and createUser != ''">create_user = #{createUser},</if>
|
modify_time = #{modify_time},
|
||||||
<if test="modify_time != null">modify_time = #{modify_time},</if>
|
modify_time = now(),
|
||||||
<if test="modify_time == null">modify_time = now(),</if>
|
modify_user = #{modifyUser},
|
||||||
<if test="modifyUser != null and modifyUser != ''">modify_user = #{modifyUser},</if>
|
sts = #{sts}
|
||||||
<if test="sts != null and sts != ''">sts = #{sts},</if>
|
|
||||||
</trim>
|
|
||||||
where id = #{id}
|
where id = #{id}
|
||||||
</update>
|
</update>
|
||||||
|
|
||||||
<!-- 逻辑删除 -->
|
<!-- 逻辑删除 -->
|
||||||
<update id="entity_logicDelete"
|
<update id="entity_logicDelete"
|
||||||
parameterType="com.hzya.frame.voucher.ae.comf.subject.entity.AeConfSubjectClassificationEntity">
|
parameterType="com.hzya.frame.voucher.ae.comf.subject.entity.AeConfSubjectClassificationEntity">
|
||||||
|
|
|
@ -559,7 +559,7 @@ public class AeConfVoucherTemplateServiceImpl extends BaseService<AeConfVoucherT
|
||||||
// Assert.notNull(entity.getDNumField(), "事项分录模板配置新增时,贷方数量字段不能为空");
|
// Assert.notNull(entity.getDNumField(), "事项分录模板配置新增时,贷方数量字段不能为空");
|
||||||
// Assert.notNull(entity.getDYbSumField(), "事项分录模板配置新增时,贷方原币金额字段不能为空");
|
// Assert.notNull(entity.getDYbSumField(), "事项分录模板配置新增时,贷方原币金额字段不能为空");
|
||||||
// Assert.notNull(entity.getDBbSumField(), "事项分录模板配置新增时,贷方本币金额字段不能为空");
|
// Assert.notNull(entity.getDBbSumField(), "事项分录模板配置新增时,贷方本币金额字段不能为空");
|
||||||
Assert.notNull(entity.getPkCashflow(), "事项分录模板配置新增时,现金流量项目不能为空");
|
// Assert.notNull(entity.getPkCashflow(), "事项分录模板配置新增时,现金流量项目不能为空");
|
||||||
break;
|
break;
|
||||||
case "updateEntity":
|
case "updateEntity":
|
||||||
Assert.notNull(entity.getId(), "根据id更新时,id不能为空");
|
Assert.notNull(entity.getId(), "根据id更新时,id不能为空");
|
||||||
|
|
Loading…
Reference in New Issue