修改namespace
This commit is contained in:
parent
e19c941b44
commit
2dabaf6403
|
@ -1,6 +1,6 @@
|
||||||
<?xml version="1.0" encoding="UTF-8" ?>
|
<?xml version="1.0" encoding="UTF-8" ?>
|
||||||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||||
<mapper namespace="com.hzya.frame.u8.base.identity.entity.UAIdentityEntity">
|
<mapper namespace="com.hzya.frame.u8.base.identity.dao.impl.UAIdentityDaoImpl">
|
||||||
<resultMap id="get-UAIdentityEntity-result" type="com.hzya.frame.u8.base.identity.entity.UAIdentityEntity">
|
<resultMap id="get-UAIdentityEntity-result" type="com.hzya.frame.u8.base.identity.entity.UAIdentityEntity">
|
||||||
<!--无备注 -->
|
<!--无备注 -->
|
||||||
<result property="cVouchType" column="cVouchType" />
|
<result property="cVouchType" column="cVouchType" />
|
||||||
|
@ -17,14 +17,14 @@
|
||||||
</sql>
|
</sql>
|
||||||
|
|
||||||
<!--通过ID获取数据 -->
|
<!--通过ID获取数据 -->
|
||||||
<select id="UAIdentityEntity_get" resultMap="get-UAIdentityEntity-result">
|
<select id="entity_get" resultMap="get-UAIdentityEntity-result">
|
||||||
select
|
select
|
||||||
<include refid="UAIdentityEntity_Base_Column_List" />
|
<include refid="UAIdentityEntity_Base_Column_List" />
|
||||||
from UFSystem.UA_Identity where id = #{ id }
|
from UFSystem.UA_Identity where id = #{ id }
|
||||||
</select>
|
</select>
|
||||||
|
|
||||||
<!-- 单据编号生成控制表 -->
|
<!-- 单据编号生成控制表 -->
|
||||||
<select id="UAIdentityEntity_list_base_cvouchtype" resultMap="get-UAIdentityEntity-result" parameterType="com.hzya.frame.u8.base.identity.entity.UAIdentityEntity">
|
<select id="entity_list_base_cvouchtype" resultMap="get-UAIdentityEntity-result" parameterType="com.hzya.frame.u8.base.identity.entity.UAIdentityEntity">
|
||||||
select
|
select
|
||||||
<include refid="UAIdentityEntity_Base_Column_List" />
|
<include refid="UAIdentityEntity_Base_Column_List" />
|
||||||
from UFSystem.dbo.UA_Identity
|
from UFSystem.dbo.UA_Identity
|
||||||
|
@ -32,7 +32,7 @@
|
||||||
</select>
|
</select>
|
||||||
|
|
||||||
<!-- 修改 -->
|
<!-- 修改 -->
|
||||||
<update id="UAIdentityEntity_update_iFatherId" parameterType="com.hzya.frame.u8.base.identity.entity.UAIdentityEntity">
|
<update id="entity_update_iFatherId" parameterType="com.hzya.frame.u8.base.identity.entity.UAIdentityEntity">
|
||||||
update UFSystem.dbo.UA_Identity set
|
update UFSystem.dbo.UA_Identity set
|
||||||
<trim suffix="" suffixOverrides=",">
|
<trim suffix="" suffixOverrides=",">
|
||||||
<if test="cVouchType != null and cVouchType !='' "> cVouchType = #{cVouchType},</if>
|
<if test="cVouchType != null and cVouchType !='' "> cVouchType = #{cVouchType},</if>
|
||||||
|
@ -42,7 +42,7 @@
|
||||||
where cacc_id = #{cacc_id} AND cvouchtype = #{cVouchType}
|
where cacc_id = #{cacc_id} AND cvouchtype = #{cVouchType}
|
||||||
</update>
|
</update>
|
||||||
<!-- 查询 采用==查询 -->
|
<!-- 查询 采用==查询 -->
|
||||||
<select id="UAIdentityEntity_list_base" resultMap="get-UAIdentityEntity-result" parameterType="com.hzya.frame.u8.base.identity.entity.UAIdentityEntity">
|
<select id="entity_list_base" resultMap="get-UAIdentityEntity-result" parameterType="com.hzya.frame.u8.base.identity.entity.UAIdentityEntity">
|
||||||
select
|
select
|
||||||
<include refid="UAIdentityEntity_Base_Column_List" />
|
<include refid="UAIdentityEntity_Base_Column_List" />
|
||||||
from UFSystem.dbo.UA_Identity
|
from UFSystem.dbo.UA_Identity
|
||||||
|
@ -58,7 +58,7 @@
|
||||||
</select>
|
</select>
|
||||||
|
|
||||||
<!-- 查询符合条件的数量 -->
|
<!-- 查询符合条件的数量 -->
|
||||||
<select id="UAIdentityEntity_count" resultType="Integer" parameterType="com.hzya.frame.u8.base.identity.entity.UAIdentityEntity">
|
<select id="entity_count" resultType="Integer" parameterType="com.hzya.frame.u8.base.identity.entity.UAIdentityEntity">
|
||||||
select count(1) from UA_Identity
|
select count(1) from UA_Identity
|
||||||
<trim prefix="where" prefixOverrides="and">
|
<trim prefix="where" prefixOverrides="and">
|
||||||
<if test="cVouchType != null and cVouchType !='' ">cVouchType = #{cVouchType} </if>
|
<if test="cVouchType != null and cVouchType !='' ">cVouchType = #{cVouchType} </if>
|
||||||
|
@ -86,7 +86,7 @@
|
||||||
</select>
|
</select>
|
||||||
|
|
||||||
<!-- 查询列表 字段采用or格式 -->
|
<!-- 查询列表 字段采用or格式 -->
|
||||||
<select id="UAIdentityEntity_list_or" resultMap="get-UAIdentityEntity-result" parameterType="com.hzya.frame.u8.base.identity.entity.UAIdentityEntity">
|
<select id="entity_list_or" resultMap="get-UAIdentityEntity-result" parameterType="com.hzya.frame.u8.base.identity.entity.UAIdentityEntity">
|
||||||
select
|
select
|
||||||
<include refid="UAIdentityEntity_Base_Column_List" />
|
<include refid="UAIdentityEntity_Base_Column_List" />
|
||||||
from UA_Identity
|
from UA_Identity
|
||||||
|
@ -100,7 +100,7 @@
|
||||||
<if test=" sort !='' and sort!=null and order !='' and order!=null ">order by ${sort} ${order}</if>
|
<if test=" sort !='' and sort!=null and order !='' and order!=null ">order by ${sort} ${order}</if>
|
||||||
</select>
|
</select>
|
||||||
<!-- 新增 -->
|
<!-- 新增 -->
|
||||||
<insert id="UAIdentityEntity_insert" parameterType="com.hzya.frame.u8.base.identity.entity.UAIdentityEntity">
|
<insert id="entity_insert" parameterType="com.hzya.frame.u8.base.identity.entity.UAIdentityEntity">
|
||||||
insert into UA_Identity(
|
insert into UA_Identity(
|
||||||
<trim suffix="" suffixOverrides=",">
|
<trim suffix="" suffixOverrides=",">
|
||||||
<if test="cVouchType != null and cVouchType !='' "> cVouchType, </if>
|
<if test="cVouchType != null and cVouchType !='' "> cVouchType, </if>
|
||||||
|
@ -122,7 +122,7 @@
|
||||||
</insert>
|
</insert>
|
||||||
|
|
||||||
<!-- 修改 -->
|
<!-- 修改 -->
|
||||||
<update id="UAIdentityEntity_update" parameterType="com.hzya.frame.u8.base.identity.entity.UAIdentityEntity">
|
<update id="entity_update" parameterType="com.hzya.frame.u8.base.identity.entity.UAIdentityEntity">
|
||||||
update UFSystem.dbo.UA_Identity set
|
update UFSystem.dbo.UA_Identity set
|
||||||
<trim suffix="" suffixOverrides=",">
|
<trim suffix="" suffixOverrides=",">
|
||||||
<if test="cVouchType != null and cVouchType !='' "> cVouchType = #{cVouchType},</if>
|
<if test="cVouchType != null and cVouchType !='' "> cVouchType = #{cVouchType},</if>
|
||||||
|
@ -142,7 +142,7 @@
|
||||||
</update>
|
</update>
|
||||||
|
|
||||||
<!-- 逻辑删除多条件 -->
|
<!-- 逻辑删除多条件 -->
|
||||||
<update id="UAIdentityEntity_logicDelete_Multi_Condition" parameterType="com.hzya.frame.u8.base.identity.entity.UAIdentityEntity">
|
<update id="entity_logicDelete_Multi_Condition" parameterType="com.hzya.frame.u8.base.identity.entity.UAIdentityEntity">
|
||||||
update UA_Identity set
|
update UA_Identity set
|
||||||
sts='N',modify_time = now(),modify_user_id = #{modify_user_id}
|
sts='N',modify_time = now(),modify_user_id = #{modify_user_id}
|
||||||
<trim prefix="where" prefixOverrides="and">
|
<trim prefix="where" prefixOverrides="and">
|
||||||
|
@ -153,7 +153,7 @@
|
||||||
</update>
|
</update>
|
||||||
|
|
||||||
<!-- 物理删除 -->
|
<!-- 物理删除 -->
|
||||||
<delete id="UAIdentityEntity_delete" parameterType="com.hzya.frame.u8.base.identity.entity.UAIdentityEntity">
|
<delete id="entity_delete" parameterType="com.hzya.frame.u8.base.identity.entity.UAIdentityEntity">
|
||||||
delete from UA_Identity where id =#{id}
|
delete from UA_Identity where id =#{id}
|
||||||
</delete>
|
</delete>
|
||||||
</mapper>
|
</mapper>
|
||||||
|
|
|
@ -44,7 +44,7 @@ public class UAIdentityServiceImpl extends BaseService<UAIdentityEntity,String>
|
||||||
UAIdentityEntity uaIdentityEntity = new UAIdentityEntity();
|
UAIdentityEntity uaIdentityEntity = new UAIdentityEntity();
|
||||||
uaIdentityEntity.setCacc_id(acc_id);
|
uaIdentityEntity.setCacc_id(acc_id);
|
||||||
uaIdentityEntity.setcVouchType(type);
|
uaIdentityEntity.setcVouchType(type);
|
||||||
List<UAIdentityEntity> list = (List<UAIdentityEntity>) uaIdentityDao.query(uaIdentityEntity,"com.hzya.frame.u8.base.identity.entity.UAIdentityEntity.UAIdentityEntity_list_base_cvouchtype");
|
List<UAIdentityEntity> list = (List<UAIdentityEntity>) uaIdentityDao.query(uaIdentityEntity,"com.hzya.frame.u8.base.identity.dao.impl.UAIdentityDaoImpl.entity_list_base_cvouchtype");
|
||||||
if (CollectionUtils.isNotEmpty(list)){
|
if (CollectionUtils.isNotEmpty(list)){
|
||||||
return list.get(0);
|
return list.get(0);
|
||||||
}
|
}
|
||||||
|
@ -72,7 +72,7 @@ public class UAIdentityServiceImpl extends BaseService<UAIdentityEntity,String>
|
||||||
uaIdentityEntity.setiFatherId(entity.getiFatherId()+1);
|
uaIdentityEntity.setiFatherId(entity.getiFatherId()+1);
|
||||||
uaIdentityEntity.setiChildId(entity.getiChildId()+1);
|
uaIdentityEntity.setiChildId(entity.getiChildId()+1);
|
||||||
uaIdentityEntity.setAcc_name(entity.getAcc_name());
|
uaIdentityEntity.setAcc_name(entity.getAcc_name());
|
||||||
uaIdentityDao.update("com.hzya.frame.u8.base.identity.entity.UAIdentityEntity.UAIdentityEntity_update_iFatherId",uaIdentityEntity);
|
uaIdentityDao.update("com.hzya.frame.u8.base.identity.dao.impl.UAIdentityDaoImpl.entity_update_iFatherId",uaIdentityEntity);
|
||||||
//sqlSession.update("com.hzya.frame.u8cinterface.identity.entity.UAIdentityEntity.UAIdentityEntity_update_iFatherId",uaIdentityEntity);
|
//sqlSession.update("com.hzya.frame.u8cinterface.identity.entity.UAIdentityEntity.UAIdentityEntity_update_iFatherId",uaIdentityEntity);
|
||||||
return uaIdentityEntity;
|
return uaIdentityEntity;
|
||||||
}catch (Exception e){
|
}catch (Exception e){
|
||||||
|
|
Loading…
Reference in New Issue