预算编制生成
This commit is contained in:
parent
a7e8e5e4cb
commit
b5270cb219
|
@ -2,6 +2,8 @@ package com.hzya.frame.plugin.c4project.dao;
|
|||
|
||||
import com.hzya.frame.basedao.dao.IBaseDao;
|
||||
import com.hzya.frame.plugin.c4project.entity.C4ProjectEntity;
|
||||
import com.hzya.frame.plugin.c4project.entity.C4ProjectXmDetailEntity;
|
||||
import com.hzya.frame.plugin.c4project.entity.C4ProjectXmEntity;
|
||||
import com.hzya.frame.plugin.c4project.entity.LexmisC4ProjectEntity;
|
||||
|
||||
import java.util.List;
|
||||
|
@ -33,4 +35,12 @@ public interface IC4ProjectDao extends IBaseDao<C4ProjectEntity,String> {
|
|||
List<C4ProjectEntity> queryBm(C4ProjectEntity bm);
|
||||
|
||||
List<C4ProjectEntity> queryBmBypath(C4ProjectEntity bm);
|
||||
|
||||
int queryXmCount(C4ProjectXmEntity c4ProjectXmEntity);
|
||||
|
||||
int saveXm(C4ProjectXmEntity c4ProjectXmEntity);
|
||||
|
||||
int saveXmDetail(C4ProjectXmDetailEntity c4ProjectXmDetailEntity);
|
||||
|
||||
List<C4ProjectXmEntity> queryUser(C4ProjectXmEntity c4ProjectXmEntity);
|
||||
}
|
||||
|
|
|
@ -4,6 +4,8 @@ import com.baomidou.dynamic.datasource.annotation.DS;
|
|||
import com.hzya.frame.basedao.dao.MybatisGenericDao;
|
||||
import com.hzya.frame.plugin.c4project.dao.IC4ProjectDao;
|
||||
import com.hzya.frame.plugin.c4project.entity.C4ProjectEntity;
|
||||
import com.hzya.frame.plugin.c4project.entity.C4ProjectXmDetailEntity;
|
||||
import com.hzya.frame.plugin.c4project.entity.C4ProjectXmEntity;
|
||||
import com.hzya.frame.plugin.c4project.entity.LexmisC4ProjectEntity;
|
||||
import com.hzya.frame.plugin.nuonuo.entity.NuoNuoEntity;
|
||||
|
||||
|
@ -38,4 +40,26 @@ public class C4ProjectDaoImpl extends MybatisGenericDao<C4ProjectEntity,String>
|
|||
public List<C4ProjectEntity> queryBmBypath(C4ProjectEntity entity) {
|
||||
return (List<C4ProjectEntity>) super.selectList(getSqlIdPrifx()+"queryBmBypath",entity);
|
||||
}
|
||||
@DS("#entity.dataSourceCode")
|
||||
@Override
|
||||
public int queryXmCount(C4ProjectXmEntity entity) {
|
||||
return super.getCount(getSqlIdPrifx()+"queryXmCount",entity);
|
||||
}
|
||||
@DS("#entity.dataSourceCode")
|
||||
@Override
|
||||
public int saveXm(C4ProjectXmEntity entity) {
|
||||
return super.insert(getSqlIdPrifx()+"saveXm",entity);
|
||||
}
|
||||
|
||||
@DS("#entity.dataSourceCode")
|
||||
@Override
|
||||
public int saveXmDetail(C4ProjectXmDetailEntity entity) {
|
||||
return super.insert(getSqlIdPrifx()+"saveXmDetail",entity);
|
||||
}
|
||||
@DS("#entity.dataSourceCode")
|
||||
@Override
|
||||
public List<C4ProjectXmEntity> queryUser(C4ProjectXmEntity entity) {
|
||||
return (List<C4ProjectXmEntity>) super.selectList(getSqlIdPrifx()+"queryUser",entity);
|
||||
|
||||
}
|
||||
}
|
||||
|
|
|
@ -42,7 +42,8 @@
|
|||
</sql>
|
||||
|
||||
<!--查询研发项目立项,推送BC4项目档案-->
|
||||
<select id="queryProjectToC4" resultMap="get-C4ProjectEntity-result" parameterType = "com.hzya.frame.plugin.c4project.entity.C4ProjectEntity">
|
||||
<select id="queryProjectToC4" resultMap="get-C4ProjectEntity-result"
|
||||
parameterType="com.hzya.frame.plugin.c4project.entity.C4ProjectEntity">
|
||||
select
|
||||
<include refid="C4ProjectEntity_Base_Column_List"/>
|
||||
from formmain_9555 main
|
||||
|
@ -89,8 +90,12 @@ and field0052 in (
|
|||
<if test="caName != null and caName != ''">#{caName} ,</if>
|
||||
<if test="caTypenm != null and caTypenm != ''">#{caTypenm} ,</if>
|
||||
<if test="caManagernm != null and caManagernm != ''">#{caManagernm} ,</if>
|
||||
<if test="caBegindate != null and caBegindate != ''">TO_TIMESTAMP(#{caBegindate}, 'SYYYY-MM-DD HH24:MI:SS:FF6') ,</if>
|
||||
<if test="caEnddate != null and caEnddate != ''">TO_TIMESTAMP(#{caEnddate}, 'SYYYY-MM-DD HH24:MI:SS:FF6') ,</if>
|
||||
<if test="caBegindate != null and caBegindate != ''">TO_TIMESTAMP(#{caBegindate}, 'SYYYY-MM-DD
|
||||
HH24:MI:SS:FF6') ,
|
||||
</if>
|
||||
<if test="caEnddate != null and caEnddate != ''">TO_TIMESTAMP(#{caEnddate}, 'SYYYY-MM-DD HH24:MI:SS:FF6')
|
||||
,
|
||||
</if>
|
||||
<if test="caFathernm != null and caFathernm != ''">#{caFathernm} ,</if>
|
||||
<if test="caBudgetamt != null and caBudgetamt != ''">#{caBudgetamt} ,</if>
|
||||
<if test="caFactmat != null and caFactmat != ''">#{caFactmat} ,</if>
|
||||
|
@ -103,7 +108,8 @@ and field0052 in (
|
|||
</insert>
|
||||
|
||||
|
||||
<select id="queryAffair" resultType="com.hzya.frame.plugin.c4project.entity.LexmisC4ProjectEntity" parameterType="com.hzya.frame.plugin.c4project.entity.LexmisC4ProjectEntity">
|
||||
<select id="queryAffair" resultType="com.hzya.frame.plugin.c4project.entity.LexmisC4ProjectEntity"
|
||||
parameterType="com.hzya.frame.plugin.c4project.entity.LexmisC4ProjectEntity">
|
||||
select NODE_NAME as noname,NODE_POLICY as nodename from ctp_affair
|
||||
<trim prefix="where" prefixOverrides="and">
|
||||
<if test="affairId != null and affairId !='' ">id = #{affairId}</if>
|
||||
|
@ -112,19 +118,379 @@ and field0052 in (
|
|||
|
||||
|
||||
<!--查询研发项目立项,推送BC4项目档案-->
|
||||
<select id="queryBm" resultType="com.hzya.frame.plugin.c4project.entity.C4ProjectEntity" parameterType = "com.hzya.frame.plugin.c4project.entity.C4ProjectEntity">
|
||||
<select id="queryBm" resultType="com.hzya.frame.plugin.c4project.entity.C4ProjectEntity"
|
||||
parameterType="com.hzya.frame.plugin.c4project.entity.C4ProjectEntity">
|
||||
SELECT path as path from ORG_UNIT
|
||||
<trim prefix="where" prefixOverrides="and">
|
||||
<if test="bm != null and bm !='' ">id = #{bm}</if>
|
||||
</trim>
|
||||
</select>
|
||||
<!--查询研发项目立项,推送BC4项目档案-->
|
||||
<select id="queryBmBypath" resultType="com.hzya.frame.plugin.c4project.entity.C4ProjectEntity" parameterType = "com.hzya.frame.plugin.c4project.entity.C4ProjectEntity">
|
||||
<select id="queryBmBypath" resultType="com.hzya.frame.plugin.c4project.entity.C4ProjectEntity"
|
||||
parameterType="com.hzya.frame.plugin.c4project.entity.C4ProjectEntity">
|
||||
SELECT path as path,name as bmmc from ORG_UNIT
|
||||
WHERE PATH in
|
||||
<foreach collection="pathList" item="item" index="index" open="(" close=")" separator=",">
|
||||
#{item}
|
||||
</foreach>
|
||||
</select>
|
||||
|
||||
|
||||
<select id="queryXmCount" parameterType="com.hzya.frame.plugin.c4project.entity.C4ProjectXmEntity" resultType="int">
|
||||
SELECT
|
||||
count(*)
|
||||
FROM LexmisC4_Case
|
||||
<trim prefix="where" prefixOverrides="and">
|
||||
<if test="CA_NO != null and CA_NO != ''">
|
||||
AND CA_NO = #{CA_NO}
|
||||
</if>
|
||||
<if test="CA_NAME != null and CA_NAME != ''">
|
||||
AND CA_NAME = #{CA_NAME}
|
||||
</if>
|
||||
</trim>
|
||||
</select>
|
||||
|
||||
|
||||
<!--新增所有列-->
|
||||
<insert id="saveXm" parameterType="com.hzya.frame.plugin.c4project.entity.C4ProjectXmEntity">
|
||||
INSERT INTO LexmisC4_Case
|
||||
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||
<if test="CA_BUDGETORG != null and CA_BUDGETORG != ''">
|
||||
CA_BUDGETORG,
|
||||
</if>
|
||||
<if test="CA_BUDGETORGNM != null and CA_BUDGETORGNM != ''">
|
||||
CA_BUDGETORGNM,
|
||||
</if>
|
||||
<if test="CA_ACCOUNT != null and CA_ACCOUNT != ''">
|
||||
CA_ACCOUNT,
|
||||
</if>
|
||||
<if test="CA_ACCOUNTNM != null and CA_ACCOUNTNM != ''">
|
||||
CA_ACCOUNTNM,
|
||||
</if>
|
||||
<if test="CA_SORT != null and CA_SORT != ''">
|
||||
CA_SORT,
|
||||
</if>
|
||||
<if test="CA_NO != null and CA_NO != ''">
|
||||
CA_NO,
|
||||
</if>
|
||||
<if test="CA_NAME != null and CA_NAME != ''">
|
||||
CA_NAME,
|
||||
</if>
|
||||
<if test="CA_REM != null and CA_REM != ''">
|
||||
CA_REM,
|
||||
</if>
|
||||
<if test="CA_MANAGER != null and CA_MANAGER != ''">
|
||||
CA_MANAGER,
|
||||
</if>
|
||||
<if test="CA_MANAGERNM != null and CA_MANAGERNM != ''">
|
||||
CA_MANAGERNM,
|
||||
</if>
|
||||
<if test="CA_MEMBER != null and CA_MEMBER != ''">
|
||||
CA_MEMBER,
|
||||
</if>
|
||||
<if test="CA_MEMBERNM != null and CA_MEMBERNM != ''">
|
||||
CA_MEMBERNM,
|
||||
</if>
|
||||
<if test="CA_BEGINDATE != null and CA_BEGINDATE != ''">
|
||||
CA_BEGINDATE,
|
||||
</if>
|
||||
<if test="CA_ENDDATE != null and CA_ENDDATE != ''">
|
||||
CA_ENDDATE,
|
||||
</if>
|
||||
<if test="CA_TYPENO != null and CA_TYPENO != ''">
|
||||
CA_TYPENO,
|
||||
</if>
|
||||
<if test="CA_TYPENM != null and CA_TYPENM != ''">
|
||||
CA_TYPENM,
|
||||
</if>
|
||||
<if test="CA_STOP != null and CA_STOP != ''">
|
||||
CA_STOP,
|
||||
</if>
|
||||
<if test="CA_BUDGETAMT != null and CA_BUDGETAMT != ''">
|
||||
CA_BUDGETAMT,
|
||||
</if>
|
||||
<if test="CA_FACTAMT != null and CA_FACTAMT != ''">
|
||||
CA_FACTAMT,
|
||||
</if>
|
||||
<if test="CA_COVERAMT != null and CA_COVERAMT != ''">
|
||||
CA_COVERAMT,
|
||||
</if>
|
||||
<if test="CA_CTRLFACTAMT != null and CA_CTRLFACTAMT != ''">
|
||||
CA_CTRLFACTAMT,
|
||||
</if>
|
||||
<if test="CA_PERIOD != null and CA_PERIOD != ''">
|
||||
CA_PERIOD,
|
||||
</if>
|
||||
<if test="CA_SOURCE != null and CA_SOURCE != ''">
|
||||
CA_SOURCE,
|
||||
</if>
|
||||
<if test="CA_ADJUSTAMT != null and CA_ADJUSTAMT != ''">
|
||||
CA_ADJUSTAMT,
|
||||
</if>
|
||||
<if test="CA_CTRLYEAR != null and CA_CTRLYEAR != ''">
|
||||
CA_CTRLYEAR,
|
||||
</if>
|
||||
<if test="CA_CTRLFACTMODE != null and CA_CTRLFACTMODE != ''">
|
||||
CA_CTRLFACTMODE,
|
||||
</if>
|
||||
<if test="CA_INCUNCHECK != null and CA_INCUNCHECK != ''">
|
||||
CA_INCUNCHECK,
|
||||
</if>
|
||||
<if test="CA_FATHERNO != null and CA_FATHERNO != ''">
|
||||
CA_FATHERNO,
|
||||
</if>
|
||||
<if test="CA_FATHERNM != null and CA_FATHERNM != ''">
|
||||
CA_FATHERNM,
|
||||
</if>
|
||||
<if test="CA_FULLLEVELNO != null and CA_FULLLEVELNO != ''">
|
||||
CA_FULLLEVELNO,
|
||||
</if>
|
||||
<if test="CA_LEVEL != null and CA_LEVEL != ''">
|
||||
CA_LEVEL,
|
||||
</if>
|
||||
<if test="CA_LASTLEVEL != null and CA_LASTLEVEL != ''">
|
||||
CA_LASTLEVEL,
|
||||
</if>
|
||||
<if test="CA_OANO != null and CA_OANO != ''">
|
||||
CA_OANO,
|
||||
</if>
|
||||
<if test="CA_CTRLFATHERNO != null and CA_CTRLFATHERNO != ''">
|
||||
CA_CTRLFATHERNO,
|
||||
</if>
|
||||
<if test="CA_CTRLFATHERNM != null and CA_CTRLFATHERNM != ''">
|
||||
CA_CTRLFATHERNM,
|
||||
</if>
|
||||
</trim>
|
||||
VALUES
|
||||
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||
<if test="CA_BUDGETORG != null and CA_BUDGETORG != ''">
|
||||
#{CA_BUDGETORG},
|
||||
</if>
|
||||
<if test="CA_BUDGETORGNM != null and CA_BUDGETORGNM != ''">
|
||||
#{CA_BUDGETORGNM},
|
||||
</if>
|
||||
<if test="CA_ACCOUNT != null and CA_ACCOUNT != ''">
|
||||
#{CA_ACCOUNT},
|
||||
</if>
|
||||
<if test="CA_ACCOUNTNM != null and CA_ACCOUNTNM != ''">
|
||||
#{CA_ACCOUNTNM},
|
||||
</if>
|
||||
<if test="CA_SORT != null and CA_SORT != ''">
|
||||
#{CA_SORT},
|
||||
</if>
|
||||
<if test="CA_NO != null and CA_NO != ''">
|
||||
#{CA_NO},
|
||||
</if>
|
||||
<if test="CA_NAME != null and CA_NAME != ''">
|
||||
#{CA_NAME},
|
||||
</if>
|
||||
<if test="CA_REM != null and CA_REM != ''">
|
||||
#{CA_REM},
|
||||
</if>
|
||||
<if test="CA_MANAGER != null and CA_MANAGER != ''">
|
||||
#{CA_MANAGER},
|
||||
</if>
|
||||
<if test="CA_MANAGERNM != null and CA_MANAGERNM != ''">
|
||||
#{CA_MANAGERNM},
|
||||
</if>
|
||||
<if test="CA_MEMBER != null and CA_MEMBER != ''">
|
||||
#{CA_MEMBER},
|
||||
</if>
|
||||
<if test="CA_MEMBERNM != null and CA_MEMBERNM != ''">
|
||||
#{CA_MEMBERNM},
|
||||
</if>
|
||||
<if test="CA_BEGINDATE != null and CA_BEGINDATE != ''">
|
||||
TO_DATE(#{CA_BEGINDATE}, 'YYYY-MM-DD HH24:MI:SS'),
|
||||
</if>
|
||||
<if test="CA_ENDDATE != null and CA_ENDDATE != ''">
|
||||
TO_DATE(#{CA_ENDDATE}, 'YYYY-MM-DD HH24:MI:SS'),
|
||||
</if>
|
||||
<if test="CA_TYPENO != null and CA_TYPENO != ''">
|
||||
#{CA_TYPENO},
|
||||
</if>
|
||||
<if test="CA_TYPENM != null and CA_TYPENM != ''">
|
||||
#{CA_TYPENM},
|
||||
</if>
|
||||
<if test="CA_STOP != null and CA_STOP != ''">
|
||||
#{CA_STOP},
|
||||
</if>
|
||||
<if test="CA_BUDGETAMT != null and CA_BUDGETAMT != ''">
|
||||
#{CA_BUDGETAMT},
|
||||
</if>
|
||||
<if test="CA_FACTAMT != null and CA_FACTAMT != ''">
|
||||
#{CA_FACTAMT},
|
||||
</if>
|
||||
<if test="CA_COVERAMT != null and CA_COVERAMT != ''">
|
||||
#{CA_COVERAMT},
|
||||
</if>
|
||||
<if test="CA_CTRLFACTAMT != null and CA_CTRLFACTAMT != ''">
|
||||
#{CA_CTRLFACTAMT},
|
||||
</if>
|
||||
<if test="CA_PERIOD != null and CA_PERIOD != ''">
|
||||
#{CA_PERIOD},
|
||||
</if>
|
||||
<if test="CA_SOURCE != null and CA_SOURCE != ''">
|
||||
#{CA_SOURCE},
|
||||
</if>
|
||||
<if test="CA_ADJUSTAMT != null and CA_ADJUSTAMT != ''">
|
||||
#{CA_ADJUSTAMT},
|
||||
</if>
|
||||
<if test="CA_CTRLYEAR != null and CA_CTRLYEAR != ''">
|
||||
#{CA_CTRLYEAR},
|
||||
</if>
|
||||
<if test="CA_CTRLFACTMODE != null and CA_CTRLFACTMODE != ''">
|
||||
#{CA_CTRLFACTMODE},
|
||||
</if>
|
||||
<if test="CA_INCUNCHECK != null and CA_INCUNCHECK != ''">
|
||||
#{CA_INCUNCHECK},
|
||||
</if>
|
||||
<if test="CA_FATHERNO != null and CA_FATHERNO != ''">
|
||||
#{CA_FATHERNO},
|
||||
</if>
|
||||
<if test="CA_FATHERNM != null and CA_FATHERNM != ''">
|
||||
#{CA_FATHERNM},
|
||||
</if>
|
||||
<if test="CA_FULLLEVELNO != null and CA_FULLLEVELNO != ''">
|
||||
#{CA_FULLLEVELNO},
|
||||
</if>
|
||||
<if test="CA_LEVEL != null and CA_LEVEL != ''">
|
||||
#{CA_LEVEL},
|
||||
</if>
|
||||
<if test="CA_LASTLEVEL != null and CA_LASTLEVEL != ''">
|
||||
#{CA_LASTLEVEL},
|
||||
</if>
|
||||
<if test="CA_OANO != null and CA_OANO != ''">
|
||||
#{CA_OANO},
|
||||
</if>
|
||||
<if test="CA_CTRLFATHERNO != null and CA_CTRLFATHERNO != ''">
|
||||
#{CA_CTRLFATHERNO},
|
||||
</if>
|
||||
<if test="CA_CTRLFATHERNM != null and CA_CTRLFATHERNM != ''">
|
||||
#{CA_CTRLFATHERNM},
|
||||
</if>
|
||||
</trim>
|
||||
</insert>
|
||||
|
||||
|
||||
<!--新增所有列-->
|
||||
<insert id="saveXmDetail" parameterType="com.hzya.frame.plugin.c4project.entity.C4ProjectXmDetailEntity">
|
||||
INSERT INTO LexmisC4_ItemDetail
|
||||
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||
<if test="ID_BUDGETORG != null and ID_BUDGETORG != ''">
|
||||
ID_BUDGETORG,
|
||||
</if>
|
||||
<if test="ID_BUDGETORGNM != null and ID_BUDGETORGNM != ''">
|
||||
ID_BUDGETORGNM,
|
||||
</if>
|
||||
<if test="ID_ACCOUNT != null and ID_ACCOUNT != ''">
|
||||
ID_ACCOUNT,
|
||||
</if>
|
||||
<if test="ID_ACCOUNTNM != null and ID_ACCOUNTNM != ''">
|
||||
ID_ACCOUNTNM,
|
||||
</if>
|
||||
<if test="ID_SORT != null and ID_SORT != ''">
|
||||
ID_SORT,
|
||||
</if>
|
||||
<if test="ID_KIND != null and ID_KIND != ''">
|
||||
ID_KIND,
|
||||
</if>
|
||||
<if test="ID_NO != null and ID_NO != ''">
|
||||
ID_NO,
|
||||
</if>
|
||||
<if test="ID_NAME != null and ID_NAME != ''">
|
||||
ID_NAME,
|
||||
</if>
|
||||
<if test="ID_FATHERNO != null and ID_FATHERNO != ''">
|
||||
ID_FATHERNO,
|
||||
</if>
|
||||
<if test="ID_FATHERNM != null and ID_FATHERNM != ''">
|
||||
ID_FATHERNM,
|
||||
</if>
|
||||
<if test="ID_LEVEL != null and ID_LEVEL != ''">
|
||||
ID_LEVEL,
|
||||
</if>
|
||||
<if test="ID_LASTLEVEL != null and ID_LASTLEVEL != ''">
|
||||
ID_LASTLEVEL,
|
||||
</if>
|
||||
<if test="ID_STOP != null and ID_STOP != ''">
|
||||
ID_STOP,
|
||||
</if>
|
||||
<if test="ID_REM != null and ID_REM != ''">
|
||||
ID_REM,
|
||||
</if>
|
||||
<if test="ID_FULLLEVELNO != null and ID_FULLLEVELNO != ''">
|
||||
ID_FULLLEVELNO,
|
||||
</if>
|
||||
<if test="ID_CODE != null and ID_CODE != ''">
|
||||
ID_CODE,
|
||||
</if>
|
||||
<if test="ID_PK != null and ID_PK != ''">
|
||||
ID_PK,
|
||||
</if>
|
||||
</trim>
|
||||
VALUES
|
||||
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||
<if test="ID_BUDGETORG != null and ID_BUDGETORG != ''">
|
||||
#{ID_BUDGETORG},
|
||||
</if>
|
||||
<if test="ID_BUDGETORGNM != null and ID_BUDGETORGNM != ''">
|
||||
#{ID_BUDGETORGNM},
|
||||
</if>
|
||||
<if test="ID_ACCOUNT != null and ID_ACCOUNT != ''">
|
||||
#{ID_ACCOUNT},
|
||||
</if>
|
||||
<if test="ID_ACCOUNTNM != null and ID_ACCOUNTNM != ''">
|
||||
#{ID_ACCOUNTNM},
|
||||
</if>
|
||||
<if test="ID_SORT != null and ID_SORT != ''">
|
||||
#{ID_SORT},
|
||||
</if>
|
||||
<if test="ID_KIND != null and ID_KIND != ''">
|
||||
#{ID_KIND},
|
||||
</if>
|
||||
<if test="ID_NO != null and ID_NO != ''">
|
||||
#{ID_NO},
|
||||
</if>
|
||||
<if test="ID_NAME != null and ID_NAME != ''">
|
||||
#{ID_NAME},
|
||||
</if>
|
||||
<if test="ID_FATHERNO != null and ID_FATHERNO != ''">
|
||||
#{ID_FATHERNO},
|
||||
</if>
|
||||
<if test="ID_FATHERNM != null and ID_FATHERNM != ''">
|
||||
#{ID_FATHERNM},
|
||||
</if>
|
||||
<if test="ID_LEVEL != null and ID_LEVEL != ''">
|
||||
#{ID_LEVEL},
|
||||
</if>
|
||||
<if test="ID_LASTLEVEL != null and ID_LASTLEVEL != ''">
|
||||
#{ID_LASTLEVEL},
|
||||
</if>
|
||||
<if test="ID_STOP != null and ID_STOP != ''">
|
||||
#{ID_STOP},
|
||||
</if>
|
||||
<if test="ID_REM != null and ID_REM != ''">
|
||||
#{ID_REM},
|
||||
</if>
|
||||
<if test="ID_FULLLEVELNO != null and ID_FULLLEVELNO != ''">
|
||||
#{ID_FULLLEVELNO},
|
||||
</if>
|
||||
<if test="ID_CODE != null and ID_CODE != ''">
|
||||
#{ID_CODE},
|
||||
</if>
|
||||
<if test="ID_PK != null and ID_PK != ''">
|
||||
#{ID_PK},
|
||||
</if>
|
||||
</trim>
|
||||
</insert>
|
||||
|
||||
<select id="queryUser" resultType="com.hzya.frame.plugin.c4project.entity.C4ProjectXmEntity"
|
||||
parameterType="com.hzya.frame.plugin.c4project.entity.C4ProjectXmEntity">
|
||||
select name from ORG_MEMBER
|
||||
<trim prefix="where" prefixOverrides="and">
|
||||
<if test="CA_MANAGER != null and CA_MANAGER !='' ">id = #{CA_MANAGER}</if>
|
||||
</trim>
|
||||
</select>
|
||||
|
||||
</mapper>
|
||||
|
||||
|
|
|
@ -0,0 +1,160 @@
|
|||
package com.hzya.frame.plugin.c4project.entity;
|
||||
|
||||
import com.hzya.frame.web.entity.BaseEntity;
|
||||
|
||||
public class C4ProjectXmDetailEntity extends BaseEntity {
|
||||
private String ID_BUDGETORG;//预算单位代号 670869647114347
|
||||
private String ID_BUDGETORGNM;//预算单位名称 三维通信股份有限公司
|
||||
private String ID_ACCOUNT;//帐套编号 NULL
|
||||
private String ID_ACCOUNTNM;//帐套名称 NULL
|
||||
private String ID_SORT;//排序号 NULL
|
||||
private String ID_KIND;//口径类型 998
|
||||
private String ID_NO;//口径编号 csxm20250722001
|
||||
private String ID_NAME;//口径名称 测试项目csxm20250722001
|
||||
private String ID_FATHERNO;//上级编号 670869647114347
|
||||
private String ID_FATHERNM;//上级名称 项目档案
|
||||
private String ID_LEVEL;//所属层级 1
|
||||
private String ID_LASTLEVEL;//是否末级 1
|
||||
private String ID_STOP;//是否停用 0
|
||||
private String ID_REM;//备注 NULL
|
||||
private String ID_FULLLEVELNO;//完整层级编码 @csxm20250722001@
|
||||
private String ID_CODE; //NULL
|
||||
private String ID_PK; //NULL
|
||||
|
||||
public String getID_BUDGETORG() {
|
||||
return ID_BUDGETORG;
|
||||
}
|
||||
|
||||
public void setID_BUDGETORG(String ID_BUDGETORG) {
|
||||
this.ID_BUDGETORG = ID_BUDGETORG;
|
||||
}
|
||||
|
||||
public String getID_BUDGETORGNM() {
|
||||
return ID_BUDGETORGNM;
|
||||
}
|
||||
|
||||
public void setID_BUDGETORGNM(String ID_BUDGETORGNM) {
|
||||
this.ID_BUDGETORGNM = ID_BUDGETORGNM;
|
||||
}
|
||||
|
||||
public String getID_ACCOUNT() {
|
||||
return ID_ACCOUNT;
|
||||
}
|
||||
|
||||
public void setID_ACCOUNT(String ID_ACCOUNT) {
|
||||
this.ID_ACCOUNT = ID_ACCOUNT;
|
||||
}
|
||||
|
||||
public String getID_ACCOUNTNM() {
|
||||
return ID_ACCOUNTNM;
|
||||
}
|
||||
|
||||
public void setID_ACCOUNTNM(String ID_ACCOUNTNM) {
|
||||
this.ID_ACCOUNTNM = ID_ACCOUNTNM;
|
||||
}
|
||||
|
||||
public String getID_SORT() {
|
||||
return ID_SORT;
|
||||
}
|
||||
|
||||
public void setID_SORT(String ID_SORT) {
|
||||
this.ID_SORT = ID_SORT;
|
||||
}
|
||||
|
||||
public String getID_KIND() {
|
||||
return ID_KIND;
|
||||
}
|
||||
|
||||
public void setID_KIND(String ID_KIND) {
|
||||
this.ID_KIND = ID_KIND;
|
||||
}
|
||||
|
||||
public String getID_NO() {
|
||||
return ID_NO;
|
||||
}
|
||||
|
||||
public void setID_NO(String ID_NO) {
|
||||
this.ID_NO = ID_NO;
|
||||
}
|
||||
|
||||
public String getID_NAME() {
|
||||
return ID_NAME;
|
||||
}
|
||||
|
||||
public void setID_NAME(String ID_NAME) {
|
||||
this.ID_NAME = ID_NAME;
|
||||
}
|
||||
|
||||
public String getID_FATHERNO() {
|
||||
return ID_FATHERNO;
|
||||
}
|
||||
|
||||
public void setID_FATHERNO(String ID_FATHERNO) {
|
||||
this.ID_FATHERNO = ID_FATHERNO;
|
||||
}
|
||||
|
||||
public String getID_FATHERNM() {
|
||||
return ID_FATHERNM;
|
||||
}
|
||||
|
||||
public void setID_FATHERNM(String ID_FATHERNM) {
|
||||
this.ID_FATHERNM = ID_FATHERNM;
|
||||
}
|
||||
|
||||
public String getID_LEVEL() {
|
||||
return ID_LEVEL;
|
||||
}
|
||||
|
||||
public void setID_LEVEL(String ID_LEVEL) {
|
||||
this.ID_LEVEL = ID_LEVEL;
|
||||
}
|
||||
|
||||
public String getID_LASTLEVEL() {
|
||||
return ID_LASTLEVEL;
|
||||
}
|
||||
|
||||
public void setID_LASTLEVEL(String ID_LASTLEVEL) {
|
||||
this.ID_LASTLEVEL = ID_LASTLEVEL;
|
||||
}
|
||||
|
||||
public String getID_STOP() {
|
||||
return ID_STOP;
|
||||
}
|
||||
|
||||
public void setID_STOP(String ID_STOP) {
|
||||
this.ID_STOP = ID_STOP;
|
||||
}
|
||||
|
||||
public String getID_REM() {
|
||||
return ID_REM;
|
||||
}
|
||||
|
||||
public void setID_REM(String ID_REM) {
|
||||
this.ID_REM = ID_REM;
|
||||
}
|
||||
|
||||
public String getID_FULLLEVELNO() {
|
||||
return ID_FULLLEVELNO;
|
||||
}
|
||||
|
||||
public void setID_FULLLEVELNO(String ID_FULLLEVELNO) {
|
||||
this.ID_FULLLEVELNO = ID_FULLLEVELNO;
|
||||
}
|
||||
|
||||
public String getID_CODE() {
|
||||
return ID_CODE;
|
||||
}
|
||||
|
||||
public void setID_CODE(String ID_CODE) {
|
||||
this.ID_CODE = ID_CODE;
|
||||
}
|
||||
|
||||
public String getID_PK() {
|
||||
return ID_PK;
|
||||
}
|
||||
|
||||
public void setID_PK(String ID_PK) {
|
||||
this.ID_PK = ID_PK;
|
||||
}
|
||||
|
||||
}
|
|
@ -0,0 +1,374 @@
|
|||
package com.hzya.frame.plugin.c4project.entity;
|
||||
|
||||
import com.hzya.frame.web.entity.BaseEntity;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
public class C4ProjectXmEntity extends BaseEntity {
|
||||
private String CA_BUDGETORG;//预算单位代号 670869647114347
|
||||
private String CA_BUDGETORGNM;//预算单位名称 三维通信股份有限公司
|
||||
private String CA_ACCOUNT;//帐套编号 NULL
|
||||
private String CA_ACCOUNTNM;//帐套名称 NULL
|
||||
private String CA_SORT;//排序号 0
|
||||
private String CA_NO;//项目编号 csxm20250722001
|
||||
private String CA_NAME;//项目名称 测试项目csxm20250722001
|
||||
private String CA_REM;//项目简介 NULL
|
||||
private String CA_MANAGER;//项目负责人 NULL
|
||||
private String CA_MANAGERNM;//负责人名称 胡晓飞
|
||||
private String CA_MEMBER;//项目组成员 NULL
|
||||
private String CA_MEMBERNM;//组成员名称 NULL
|
||||
private String CA_BEGINDATE;//项目开始日 2025-07-22 00:00:00:000000
|
||||
private String CA_ENDDATE;//项目结束日 2025-07-22 00:00:00:000000
|
||||
private String CA_TYPENO;//项目类型编号 1004
|
||||
private String CA_TYPENM;//项目类型名称 专项项目类型
|
||||
private String CA_STOP;//是否停用 0
|
||||
private String CA_BUDGETAMT;//项目总预算 910000
|
||||
private String CA_FACTAMT;//实际到帐额 0
|
||||
private String CA_COVERAMT;//实际报销额 0
|
||||
private String CA_CTRLFACTAMT;//控制实际到帐额强度 0
|
||||
private String CA_PERIOD;//周期类型 0
|
||||
private String CA_SOURCE;//数据来源 0
|
||||
private String CA_ADJUSTAMT;//调整预算 0
|
||||
private String CA_CTRLYEAR;//项目独立预算受控公司总预算方式 0
|
||||
private String CA_CTRLFACTMODE;//报销控制实际到帐额方式 0
|
||||
private String CA_INCUNCHECK;//报销控制实际到帐额考虑未审批单据 0
|
||||
private String CA_FATHERNO;//上级项目 670869647114347
|
||||
private String CA_FATHERNM;//上级项目名称 项目档案
|
||||
private String CA_FULLLEVELNO;//完整层级编码 @csxm20250722001@
|
||||
private String CA_LEVEL;//所属层级 1
|
||||
private String CA_LASTLEVEL;//是否末级 1
|
||||
private String CA_OANO;//协同关联号 null
|
||||
private String CA_CTRLFATHERNO; //null
|
||||
private String CA_CTRLFATHERNM; //null
|
||||
private String name; //null
|
||||
|
||||
public String getCA_BUDGETORG() {
|
||||
return CA_BUDGETORG;
|
||||
}
|
||||
|
||||
public void setCA_BUDGETORG(String CA_BUDGETORG) {
|
||||
this.CA_BUDGETORG = CA_BUDGETORG;
|
||||
}
|
||||
|
||||
public String getCA_BUDGETORGNM() {
|
||||
return CA_BUDGETORGNM;
|
||||
}
|
||||
|
||||
public void setCA_BUDGETORGNM(String CA_BUDGETORGNM) {
|
||||
this.CA_BUDGETORGNM = CA_BUDGETORGNM;
|
||||
}
|
||||
|
||||
public String getCA_ACCOUNT() {
|
||||
return CA_ACCOUNT;
|
||||
}
|
||||
|
||||
public void setCA_ACCOUNT(String CA_ACCOUNT) {
|
||||
this.CA_ACCOUNT = CA_ACCOUNT;
|
||||
}
|
||||
|
||||
public String getCA_ACCOUNTNM() {
|
||||
return CA_ACCOUNTNM;
|
||||
}
|
||||
|
||||
public void setCA_ACCOUNTNM(String CA_ACCOUNTNM) {
|
||||
this.CA_ACCOUNTNM = CA_ACCOUNTNM;
|
||||
}
|
||||
|
||||
public String getCA_SORT() {
|
||||
return CA_SORT;
|
||||
}
|
||||
|
||||
public void setCA_SORT(String CA_SORT) {
|
||||
this.CA_SORT = CA_SORT;
|
||||
}
|
||||
|
||||
public String getCA_NO() {
|
||||
return CA_NO;
|
||||
}
|
||||
|
||||
public void setCA_NO(String CA_NO) {
|
||||
this.CA_NO = CA_NO;
|
||||
}
|
||||
|
||||
public String getCA_NAME() {
|
||||
return CA_NAME;
|
||||
}
|
||||
|
||||
public void setCA_NAME(String CA_NAME) {
|
||||
this.CA_NAME = CA_NAME;
|
||||
}
|
||||
|
||||
public String getCA_REM() {
|
||||
return CA_REM;
|
||||
}
|
||||
|
||||
public void setCA_REM(String CA_REM) {
|
||||
this.CA_REM = CA_REM;
|
||||
}
|
||||
|
||||
public String getCA_MANAGER() {
|
||||
return CA_MANAGER;
|
||||
}
|
||||
|
||||
public void setCA_MANAGER(String CA_MANAGER) {
|
||||
this.CA_MANAGER = CA_MANAGER;
|
||||
}
|
||||
|
||||
public String getCA_MANAGERNM() {
|
||||
return CA_MANAGERNM;
|
||||
}
|
||||
|
||||
public void setCA_MANAGERNM(String CA_MANAGERNM) {
|
||||
this.CA_MANAGERNM = CA_MANAGERNM;
|
||||
}
|
||||
|
||||
public String getCA_MEMBER() {
|
||||
return CA_MEMBER;
|
||||
}
|
||||
|
||||
public void setCA_MEMBER(String CA_MEMBER) {
|
||||
this.CA_MEMBER = CA_MEMBER;
|
||||
}
|
||||
|
||||
public String getCA_MEMBERNM() {
|
||||
return CA_MEMBERNM;
|
||||
}
|
||||
|
||||
public void setCA_MEMBERNM(String CA_MEMBERNM) {
|
||||
this.CA_MEMBERNM = CA_MEMBERNM;
|
||||
}
|
||||
|
||||
public String getCA_BEGINDATE() {
|
||||
return CA_BEGINDATE;
|
||||
}
|
||||
|
||||
public void setCA_BEGINDATE(String CA_BEGINDATE) {
|
||||
this.CA_BEGINDATE = CA_BEGINDATE;
|
||||
}
|
||||
|
||||
public String getCA_ENDDATE() {
|
||||
return CA_ENDDATE;
|
||||
}
|
||||
|
||||
public void setCA_ENDDATE(String CA_ENDDATE) {
|
||||
this.CA_ENDDATE = CA_ENDDATE;
|
||||
}
|
||||
|
||||
public String getCA_TYPENO() {
|
||||
return CA_TYPENO;
|
||||
}
|
||||
|
||||
public void setCA_TYPENO(String CA_TYPENO) {
|
||||
this.CA_TYPENO = CA_TYPENO;
|
||||
}
|
||||
|
||||
public String getCA_TYPENM() {
|
||||
return CA_TYPENM;
|
||||
}
|
||||
|
||||
public void setCA_TYPENM(String CA_TYPENM) {
|
||||
this.CA_TYPENM = CA_TYPENM;
|
||||
}
|
||||
|
||||
public String getCA_STOP() {
|
||||
return CA_STOP;
|
||||
}
|
||||
|
||||
public void setCA_STOP(String CA_STOP) {
|
||||
this.CA_STOP = CA_STOP;
|
||||
}
|
||||
|
||||
public String getCA_BUDGETAMT() {
|
||||
return CA_BUDGETAMT;
|
||||
}
|
||||
|
||||
public void setCA_BUDGETAMT(String CA_BUDGETAMT) {
|
||||
this.CA_BUDGETAMT = CA_BUDGETAMT;
|
||||
}
|
||||
|
||||
public String getCA_FACTAMT() {
|
||||
return CA_FACTAMT;
|
||||
}
|
||||
|
||||
public void setCA_FACTAMT(String CA_FACTAMT) {
|
||||
this.CA_FACTAMT = CA_FACTAMT;
|
||||
}
|
||||
|
||||
public String getCA_COVERAMT() {
|
||||
return CA_COVERAMT;
|
||||
}
|
||||
|
||||
public void setCA_COVERAMT(String CA_COVERAMT) {
|
||||
this.CA_COVERAMT = CA_COVERAMT;
|
||||
}
|
||||
|
||||
public String getCA_CTRLFACTAMT() {
|
||||
return CA_CTRLFACTAMT;
|
||||
}
|
||||
|
||||
public void setCA_CTRLFACTAMT(String CA_CTRLFACTAMT) {
|
||||
this.CA_CTRLFACTAMT = CA_CTRLFACTAMT;
|
||||
}
|
||||
|
||||
public String getCA_PERIOD() {
|
||||
return CA_PERIOD;
|
||||
}
|
||||
|
||||
public void setCA_PERIOD(String CA_PERIOD) {
|
||||
this.CA_PERIOD = CA_PERIOD;
|
||||
}
|
||||
|
||||
public String getCA_SOURCE() {
|
||||
return CA_SOURCE;
|
||||
}
|
||||
|
||||
public void setCA_SOURCE(String CA_SOURCE) {
|
||||
this.CA_SOURCE = CA_SOURCE;
|
||||
}
|
||||
|
||||
public String getCA_ADJUSTAMT() {
|
||||
return CA_ADJUSTAMT;
|
||||
}
|
||||
|
||||
public void setCA_ADJUSTAMT(String CA_ADJUSTAMT) {
|
||||
this.CA_ADJUSTAMT = CA_ADJUSTAMT;
|
||||
}
|
||||
|
||||
public String getCA_CTRLYEAR() {
|
||||
return CA_CTRLYEAR;
|
||||
}
|
||||
|
||||
public void setCA_CTRLYEAR(String CA_CTRLYEAR) {
|
||||
this.CA_CTRLYEAR = CA_CTRLYEAR;
|
||||
}
|
||||
|
||||
public String getCA_CTRLFACTMODE() {
|
||||
return CA_CTRLFACTMODE;
|
||||
}
|
||||
|
||||
public void setCA_CTRLFACTMODE(String CA_CTRLFACTMODE) {
|
||||
this.CA_CTRLFACTMODE = CA_CTRLFACTMODE;
|
||||
}
|
||||
|
||||
public String getCA_INCUNCHECK() {
|
||||
return CA_INCUNCHECK;
|
||||
}
|
||||
|
||||
public void setCA_INCUNCHECK(String CA_INCUNCHECK) {
|
||||
this.CA_INCUNCHECK = CA_INCUNCHECK;
|
||||
}
|
||||
|
||||
public String getCA_FATHERNO() {
|
||||
return CA_FATHERNO;
|
||||
}
|
||||
|
||||
public void setCA_FATHERNO(String CA_FATHERNO) {
|
||||
this.CA_FATHERNO = CA_FATHERNO;
|
||||
}
|
||||
|
||||
public String getCA_FATHERNM() {
|
||||
return CA_FATHERNM;
|
||||
}
|
||||
|
||||
public void setCA_FATHERNM(String CA_FATHERNM) {
|
||||
this.CA_FATHERNM = CA_FATHERNM;
|
||||
}
|
||||
|
||||
public String getCA_FULLLEVELNO() {
|
||||
return CA_FULLLEVELNO;
|
||||
}
|
||||
|
||||
public void setCA_FULLLEVELNO(String CA_FULLLEVELNO) {
|
||||
this.CA_FULLLEVELNO = CA_FULLLEVELNO;
|
||||
}
|
||||
|
||||
public String getCA_LEVEL() {
|
||||
return CA_LEVEL;
|
||||
}
|
||||
|
||||
public void setCA_LEVEL(String CA_LEVEL) {
|
||||
this.CA_LEVEL = CA_LEVEL;
|
||||
}
|
||||
|
||||
public String getCA_LASTLEVEL() {
|
||||
return CA_LASTLEVEL;
|
||||
}
|
||||
|
||||
public void setCA_LASTLEVEL(String CA_LASTLEVEL) {
|
||||
this.CA_LASTLEVEL = CA_LASTLEVEL;
|
||||
}
|
||||
|
||||
public String getCA_OANO() {
|
||||
return CA_OANO;
|
||||
}
|
||||
|
||||
public void setCA_OANO(String CA_OANO) {
|
||||
this.CA_OANO = CA_OANO;
|
||||
}
|
||||
|
||||
public String getCA_CTRLFATHERNO() {
|
||||
return CA_CTRLFATHERNO;
|
||||
}
|
||||
|
||||
public void setCA_CTRLFATHERNO(String CA_CTRLFATHERNO) {
|
||||
this.CA_CTRLFATHERNO = CA_CTRLFATHERNO;
|
||||
}
|
||||
|
||||
public String getCA_CTRLFATHERNM() {
|
||||
return CA_CTRLFATHERNM;
|
||||
}
|
||||
|
||||
public void setCA_CTRLFATHERNM(String CA_CTRLFATHERNM) {
|
||||
this.CA_CTRLFATHERNM = CA_CTRLFATHERNM;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return "C4ProjectXmEntity{" +
|
||||
"CA_BUDGETORG='" + CA_BUDGETORG + '\'' +
|
||||
", CA_BUDGETORGNM='" + CA_BUDGETORGNM + '\'' +
|
||||
", CA_ACCOUNT='" + CA_ACCOUNT + '\'' +
|
||||
", CA_ACCOUNTNM='" + CA_ACCOUNTNM + '\'' +
|
||||
", CA_SORT='" + CA_SORT + '\'' +
|
||||
", CA_NO='" + CA_NO + '\'' +
|
||||
", CA_NAME='" + CA_NAME + '\'' +
|
||||
", CA_REM='" + CA_REM + '\'' +
|
||||
", CA_MANAGER='" + CA_MANAGER + '\'' +
|
||||
", CA_MANAGERNM='" + CA_MANAGERNM + '\'' +
|
||||
", CA_MEMBER='" + CA_MEMBER + '\'' +
|
||||
", CA_MEMBERNM='" + CA_MEMBERNM + '\'' +
|
||||
", CA_BEGINDATE='" + CA_BEGINDATE + '\'' +
|
||||
", CA_ENDDATE='" + CA_ENDDATE + '\'' +
|
||||
", CA_TYPENO='" + CA_TYPENO + '\'' +
|
||||
", CA_TYPENM='" + CA_TYPENM + '\'' +
|
||||
", CA_STOP='" + CA_STOP + '\'' +
|
||||
", CA_BUDGETAMT='" + CA_BUDGETAMT + '\'' +
|
||||
", CA_FACTAMT='" + CA_FACTAMT + '\'' +
|
||||
", CA_COVERAMT='" + CA_COVERAMT + '\'' +
|
||||
", CA_CTRLFACTAMT='" + CA_CTRLFACTAMT + '\'' +
|
||||
", CA_PERIOD='" + CA_PERIOD + '\'' +
|
||||
", CA_SOURCE='" + CA_SOURCE + '\'' +
|
||||
", CA_ADJUSTAMT='" + CA_ADJUSTAMT + '\'' +
|
||||
", CA_CTRLYEAR='" + CA_CTRLYEAR + '\'' +
|
||||
", CA_CTRLFACTMODE='" + CA_CTRLFACTMODE + '\'' +
|
||||
", CA_INCUNCHECK='" + CA_INCUNCHECK + '\'' +
|
||||
", CA_FATHERNO='" + CA_FATHERNO + '\'' +
|
||||
", CA_FATHERNM='" + CA_FATHERNM + '\'' +
|
||||
", CA_FULLLEVELNO='" + CA_FULLLEVELNO + '\'' +
|
||||
", CA_LEVEL='" + CA_LEVEL + '\'' +
|
||||
", CA_LASTLEVEL='" + CA_LASTLEVEL + '\'' +
|
||||
", CA_OANO='" + CA_OANO + '\'' +
|
||||
", CA_CTRLFATHERNO='" + CA_CTRLFATHERNO + '\'' +
|
||||
", CA_CTRLFATHERNM='" + CA_CTRLFATHERNM + '\'' +
|
||||
", name='" + name + '\'' +
|
||||
"} " + super.toString();
|
||||
}
|
||||
|
||||
public String getName() {
|
||||
return name;
|
||||
}
|
||||
|
||||
public void setName(String name) {
|
||||
this.name = name;
|
||||
}
|
||||
}
|
|
@ -5,6 +5,8 @@ import com.alibaba.fastjson.JSONArray;
|
|||
import com.alibaba.fastjson.JSONObject;
|
||||
import com.hzya.frame.base.PluginBaseEntity;
|
||||
import com.hzya.frame.plugin.c4project.dao.IC4ProjectDao;
|
||||
import com.hzya.frame.plugin.c4project.entity.C4ProjectXmDetailEntity;
|
||||
import com.hzya.frame.plugin.c4project.entity.C4ProjectXmEntity;
|
||||
import com.hzya.frame.plugin.c4project.entity.LexmisC4ProjectEntity;
|
||||
import com.hzya.frame.web.entity.BaseResult;
|
||||
import com.hzya.frame.web.entity.JsonResultEntity;
|
||||
|
@ -83,7 +85,7 @@ public class LexmisC4ProjectPluginInitializer extends PluginBaseEntity{
|
|||
return sendLexmis(requestJson,"预算编制","1");
|
||||
}else if("ERP审批".equals(lexmisC4ProjectEntities.get(0).getNoname()) || "ERP审批".equals(lexmisC4ProjectEntities.get(0).getNodename())
|
||||
|| "生成C4项目档案".equals(lexmisC4ProjectEntities.get(0).getNoname()) || "生成C4项目档案".equals(lexmisC4ProjectEntities.get(0).getNodename())) {
|
||||
return sendLexmis(requestJson,"项目档案","2");
|
||||
return sendXm(requestJson,"项目档案","2");
|
||||
} else {
|
||||
return BaseResult.getFailureMessageEntity("节点查找失败");
|
||||
}
|
||||
|
@ -102,6 +104,119 @@ public class LexmisC4ProjectPluginInitializer extends PluginBaseEntity{
|
|||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* @Author lvleigang
|
||||
* @Description 生成项目档案
|
||||
* @Date 10:07 上午 2025/7/23
|
||||
* @param requestJson
|
||||
* @param jdmz
|
||||
* @param type
|
||||
* @return com.hzya.frame.web.entity.JsonResultEntity
|
||||
**/
|
||||
private JsonResultEntity sendXm(JSONObject requestJson, String jdmz,String type) {
|
||||
logger.error("同步"+jdmz+":" + requestJson.toJSONString());
|
||||
JSONObject jsonStr = requestJson.getJSONObject("jsonStr");
|
||||
if (jsonStr == null) {
|
||||
return BaseResult.getFailureMessageEntity("系统错误");
|
||||
}
|
||||
JSONObject businessDataStr = jsonStr.getJSONObject("businessDataStr");
|
||||
if (businessDataStr == null) {
|
||||
return BaseResult.getFailureMessageEntity("系统错误");
|
||||
}
|
||||
JSONObject mainData = businessDataStr.getJSONObject("formmain_9555");
|
||||
if (mainData == null) {
|
||||
return BaseResult.getFailureMessageEntity("系统错误");
|
||||
}
|
||||
JSONArray detailArray = businessDataStr.getJSONArray("formson_11993");
|
||||
if(detailArray == null || detailArray.size() == 0){
|
||||
return BaseResult.getFailureMessageEntity("费用明细为空,请检查");
|
||||
}
|
||||
//组装数据
|
||||
C4ProjectXmEntity c4ProjectXmEntity = new C4ProjectXmEntity();
|
||||
C4ProjectXmDetailEntity c4ProjectXmDetailEntity = new C4ProjectXmDetailEntity();
|
||||
c4ProjectXmEntity.setDataSourceCode("SW-OA");
|
||||
c4ProjectXmDetailEntity.setDataSourceCode("SW-OA");
|
||||
if(mainData.getString("field0052") != null && "7045878877534307194".equals(mainData.getString("field0052"))){//三维通信股份有限公司
|
||||
c4ProjectXmEntity.setCA_BUDGETORG("670869647114347");
|
||||
c4ProjectXmEntity.setCA_BUDGETORGNM("三维通信股份有限公司");
|
||||
c4ProjectXmDetailEntity.setID_BUDGETORG("670869647114347");
|
||||
c4ProjectXmDetailEntity.setID_BUDGETORGNM("三维通信股份有限公司");
|
||||
|
||||
|
||||
}else if(mainData.getString("field0052") != null && "-5302246194420562875".equals(mainData.getString("field0052"))){//浙江三维通信科技有限公司
|
||||
c4ProjectXmEntity.setCA_BUDGETORG("-3530937844003287164");
|
||||
c4ProjectXmEntity.setCA_BUDGETORGNM("浙江三维通信科技有限公司");
|
||||
c4ProjectXmDetailEntity.setID_BUDGETORG("-3530937844003287164");
|
||||
c4ProjectXmDetailEntity.setID_BUDGETORGNM("浙江三维通信科技有限公司");
|
||||
}else if(mainData.getString("field0052") != null && "-6504696439968085996".equals(mainData.getString("field0052"))){//浙江三维利普维网络有限公司
|
||||
c4ProjectXmEntity.setCA_BUDGETORG("-978677123947674601");
|
||||
c4ProjectXmEntity.setCA_BUDGETORGNM("浙江三维利普维网络有限公司");
|
||||
|
||||
c4ProjectXmDetailEntity.setID_BUDGETORG("-978677123947674601");
|
||||
c4ProjectXmDetailEntity.setID_BUDGETORGNM("浙江三维利普维网络有限公司");
|
||||
}else if(mainData.getString("field0052") != null && "-8106884040682618016".equals(mainData.getString("field0052"))){//浙江三维通信研究院有限公司
|
||||
c4ProjectXmEntity.setCA_BUDGETORG("-3759985945848298333");
|
||||
c4ProjectXmEntity.setCA_BUDGETORGNM("浙江三维通信研究院有限公司");
|
||||
|
||||
c4ProjectXmDetailEntity.setID_BUDGETORG("-3759985945848298333");
|
||||
c4ProjectXmDetailEntity.setID_BUDGETORGNM("浙江三维通信研究院有限公司");
|
||||
}else {
|
||||
return BaseResult.getSuccessMessageEntity("该公司不需要生成"+jdmz);
|
||||
}
|
||||
c4ProjectXmEntity.setCA_NO(mainData.getString("field0047"));
|
||||
c4ProjectXmEntity.setCA_NAME(mainData.getString("field0012"));
|
||||
if(mainData.getString("field0020") != null){
|
||||
c4ProjectXmEntity.setCA_MANAGER(mainData.getString("field0020"));
|
||||
List<C4ProjectXmEntity> c4ProjectXmEntitys = ic4ProjectDao.queryUser(c4ProjectXmEntity);
|
||||
if(c4ProjectXmEntitys != null && c4ProjectXmEntitys.size() > 0){
|
||||
c4ProjectXmEntity.setCA_MANAGERNM(c4ProjectXmEntitys.get(0).getName());
|
||||
}
|
||||
}
|
||||
c4ProjectXmEntity.setCA_BEGINDATE(mainData.getString("field0044"));
|
||||
c4ProjectXmEntity.setCA_ENDDATE(mainData.getString("field0045"));
|
||||
c4ProjectXmEntity.setCA_TYPENO("1004");
|
||||
c4ProjectXmEntity.setCA_TYPENM("专项项目");
|
||||
c4ProjectXmEntity.setCA_STOP("0");
|
||||
c4ProjectXmEntity.setCA_BUDGETAMT(mainData.getString("field0077"));
|
||||
c4ProjectXmEntity.setCA_FACTAMT("0");
|
||||
c4ProjectXmEntity.setCA_COVERAMT("0");
|
||||
c4ProjectXmEntity.setCA_CTRLFACTAMT("0");
|
||||
c4ProjectXmEntity.setCA_PERIOD("0");
|
||||
c4ProjectXmEntity.setCA_SOURCE("0");
|
||||
c4ProjectXmEntity.setCA_ADJUSTAMT("0");
|
||||
c4ProjectXmEntity.setCA_CTRLYEAR("0");
|
||||
c4ProjectXmEntity.setCA_CTRLFACTMODE("0");
|
||||
c4ProjectXmEntity.setCA_INCUNCHECK("0");
|
||||
c4ProjectXmEntity.setCA_FATHERNO("670869647114347");
|
||||
c4ProjectXmEntity.setCA_FATHERNM("项目档案");
|
||||
c4ProjectXmEntity.setCA_FULLLEVELNO("@"+mainData.getString("field0047")+"@");
|
||||
c4ProjectXmEntity.setCA_LEVEL("1");
|
||||
c4ProjectXmEntity.setCA_LASTLEVEL("1");
|
||||
|
||||
c4ProjectXmDetailEntity.setID_KIND("998");
|
||||
c4ProjectXmDetailEntity.setID_NO(mainData.getString("field0047"));
|
||||
c4ProjectXmDetailEntity.setID_NAME(mainData.getString("field0012"));
|
||||
c4ProjectXmDetailEntity.setID_FATHERNO("670869647114347");
|
||||
c4ProjectXmDetailEntity.setID_FATHERNM("项目档案");
|
||||
c4ProjectXmDetailEntity.setID_LEVEL("1");
|
||||
c4ProjectXmDetailEntity.setID_LASTLEVEL("1");
|
||||
c4ProjectXmDetailEntity.setID_STOP("0");
|
||||
c4ProjectXmDetailEntity.setID_FULLLEVELNO("@"+mainData.getString("field0047")+"@");
|
||||
|
||||
|
||||
int num = ic4ProjectDao.queryXmCount(c4ProjectXmEntity);
|
||||
if(num > 0){
|
||||
return BaseResult.getSuccessMessageEntity("项目已存在,不需要同步");
|
||||
|
||||
}
|
||||
logger.error("同步"+mainData.getString("field0047")+"项目表");
|
||||
ic4ProjectDao.saveXm(c4ProjectXmEntity);
|
||||
logger.error("同步"+mainData.getString("field0047")+"口径表");
|
||||
ic4ProjectDao.saveXmDetail(c4ProjectXmDetailEntity);
|
||||
logger.error("同步"+mainData.getString("field0047")+"返回");
|
||||
return BaseResult.getSuccessMessageEntity("同步"+jdmz+"成功");
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @Author lvleigang
|
||||
|
@ -192,23 +307,24 @@ public class LexmisC4ProjectPluginInitializer extends PluginBaseEntity{
|
|||
comment_deal.put("content","同意");
|
||||
da.put("comment_deal",comment_deal);
|
||||
tjData.put("data",da);
|
||||
|
||||
String tjResult = HttpRequest.post(url).
|
||||
header("appId", "800051").
|
||||
header("apiCode", "8000510018").
|
||||
header("token", token).
|
||||
header("publicKey", "ZJYAM2YFEIsIaI1e4wMagkS2Q7SFgGk0RvsPhEES45m/OVFCe7eDIk+3zDUT+v578prj").
|
||||
header("secretKey", "lR6+uf94mvNMclAB43oIwmhJSMDzQaViTkfXLeNvmGdpLfbFiUvbgbU+p43zO25Zj3JzOP8MtA1LSGvL+2BWG8c/o7DKi92S4mr3zcGearA=").
|
||||
body(tjData.toJSONString()).
|
||||
execute().
|
||||
body();
|
||||
logger.error("同步"+jdmz+"单据提交返回:" + tjResult);
|
||||
JSONObject tjJson = JSONObject.parseObject(tjResult);
|
||||
if (tjJson.getBoolean("flag")) {
|
||||
return BaseResult.getSuccessMessageEntity("同步"+jdmz+"发送成功");
|
||||
} else {
|
||||
return BaseResult.getFailureMessageEntity("同步"+jdmz+"提交错误:"+tjJson.getString("msg"));
|
||||
}
|
||||
|
||||
//String tjResult = HttpRequest.post(url).
|
||||
// header("appId", "800051").
|
||||
// header("apiCode", "8000510018").
|
||||
// header("token", token).
|
||||
// header("publicKey", "ZJYAM2YFEIsIaI1e4wMagkS2Q7SFgGk0RvsPhEES45m/OVFCe7eDIk+3zDUT+v578prj").
|
||||
// header("secretKey", "lR6+uf94mvNMclAB43oIwmhJSMDzQaViTkfXLeNvmGdpLfbFiUvbgbU+p43zO25Zj3JzOP8MtA1LSGvL+2BWG8c/o7DKi92S4mr3zcGearA=").
|
||||
// body(tjData.toJSONString()).
|
||||
// execute().
|
||||
// body();
|
||||
//logger.error("同步"+jdmz+"单据提交返回:" + tjResult);
|
||||
//JSONObject tjJson = JSONObject.parseObject(tjResult);
|
||||
//if (tjJson.getBoolean("flag")) {
|
||||
// return BaseResult.getSuccessMessageEntity("同步"+jdmz+"发送成功");
|
||||
//} else {
|
||||
// return BaseResult.getFailureMessageEntity("同步"+jdmz+"提交错误:"+tjJson.getString("msg"));
|
||||
//}
|
||||
} else {
|
||||
return BaseResult.getFailureMessageEntity("同步"+jdmz+"发送错误:"+sendJson.getString("msg"));
|
||||
}
|
||||
|
@ -233,6 +349,8 @@ public class LexmisC4ProjectPluginInitializer extends PluginBaseEntity{
|
|||
zb.put("C4周期类型",mainData.getString("field0092"));
|
||||
zb.put("C4预算方案",mainData.getString("field0093"));
|
||||
zb.put("发起部门",mainData.getString("field0069"));
|
||||
zb.put("C4年度",mainData.getString("field0099"));
|
||||
|
||||
JSONArray mxList = new JSONArray();
|
||||
for (int i = 0; i < detailArray.size(); i++) {
|
||||
JSONObject mx = new JSONObject();
|
||||
|
@ -299,6 +417,8 @@ public class LexmisC4ProjectPluginInitializer extends PluginBaseEntity{
|
|||
zb.put("C4周期类型",mainData.getString("field0092"));
|
||||
zb.put("C4预算方案",mainData.getString("field0093"));
|
||||
zb.put("发起部门",mainData.getString("field0069"));
|
||||
zb.put("C4年度",mainData.getString("field0099"));
|
||||
|
||||
JSONArray mxList = new JSONArray();
|
||||
for (int i = 0; i < detailArray.size(); i++) {
|
||||
JSONObject mx = new JSONObject();
|
||||
|
@ -365,6 +485,8 @@ public class LexmisC4ProjectPluginInitializer extends PluginBaseEntity{
|
|||
zb.put("C4周期类型",mainData.getString("field0092"));
|
||||
zb.put("C4预算方案",mainData.getString("field0093"));
|
||||
zb.put("发起部门",mainData.getString("field0069"));
|
||||
zb.put("C4年度",mainData.getString("field0099"));
|
||||
|
||||
JSONArray mxList = new JSONArray();
|
||||
for (int i = 0; i < detailArray.size(); i++) {
|
||||
JSONObject mx = new JSONObject();
|
||||
|
@ -430,6 +552,7 @@ public class LexmisC4ProjectPluginInitializer extends PluginBaseEntity{
|
|||
zb.put("C4周期类型",mainData.getString("field0092"));
|
||||
zb.put("C4预算方案",mainData.getString("field0093"));
|
||||
zb.put("发起部门",mainData.getString("field0069"));
|
||||
zb.put("C4年度",mainData.getString("field0099"));
|
||||
JSONArray mxList = new JSONArray();
|
||||
for (int i = 0; i < detailArray.size(); i++) {
|
||||
JSONObject mx = new JSONObject();
|
||||
|
|
Loading…
Reference in New Issue