This commit is contained in:
parent
a54faadbd5
commit
c79e8312bf
|
@ -0,0 +1,18 @@
|
|||
package com.hzya.frame.Jackyun.goodsdocin.dao;
|
||||
|
||||
import com.hzya.frame.Jackyun.goodsdocin.entity.GoodsdocInEntity;
|
||||
import com.hzya.frame.basedao.dao.IBaseDao;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
*
|
||||
* @content 吉客云入库单
|
||||
* @className: Administrator
|
||||
* @author laborer
|
||||
* @date 2025-03-27 15:33
|
||||
*
|
||||
*/
|
||||
public interface IGoodsdocInDao extends IBaseDao<GoodsdocInEntity,String> {
|
||||
|
||||
}
|
|
@ -0,0 +1,16 @@
|
|||
package com.hzya.frame.Jackyun.goodsdocin.dao;
|
||||
|
||||
import com.hzya.frame.Jackyun.goodsdocin.entity.GoodsdocInDetailEntity;
|
||||
import com.hzya.frame.basedao.dao.IBaseDao;
|
||||
|
||||
|
||||
/**
|
||||
*
|
||||
* @content 吉客云入库单
|
||||
* @className: Administrator
|
||||
* @author laborer
|
||||
* @date 2025-03-27 15:33
|
||||
*
|
||||
*/
|
||||
public interface IGoodsdocInDetailDao extends IBaseDao<GoodsdocInDetailEntity,String> {
|
||||
}
|
|
@ -0,0 +1,17 @@
|
|||
package com.hzya.frame.Jackyun.goodsdocin.dao;
|
||||
|
||||
import com.hzya.frame.Jackyun.goodsdocin.entity.GoodsdocInEntity;
|
||||
import com.hzya.frame.Jackyun.goodsdocin.entity.GoodsdocInLogisticEntity;
|
||||
import com.hzya.frame.basedao.dao.IBaseDao;
|
||||
|
||||
/**
|
||||
*
|
||||
* @content 吉客云入库单
|
||||
* @className: Administrator
|
||||
* @author laborer
|
||||
* @date 2025-03-27 15:33
|
||||
*
|
||||
*/
|
||||
public interface IGoodsdocInLogisticDao extends IBaseDao<GoodsdocInLogisticEntity,String> {
|
||||
|
||||
}
|
|
@ -0,0 +1,22 @@
|
|||
package com.hzya.frame.Jackyun.goodsdocin.dao.impl;
|
||||
|
||||
import com.baomidou.dynamic.datasource.annotation.DS;
|
||||
import com.hzya.frame.Jackyun.goodsdocin.dao.IGoodsdocInDao;
|
||||
import com.hzya.frame.Jackyun.goodsdocin.entity.GoodsdocInEntity;
|
||||
import com.hzya.frame.basedao.dao.MybatisGenericDao;
|
||||
import org.springframework.stereotype.Repository;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
*
|
||||
* @content 吉客云入库单
|
||||
* @className: Administrator
|
||||
* @author laborer
|
||||
* @date 2025-03-27 15:33
|
||||
*
|
||||
*/
|
||||
@Repository(value = "GoodsdocInDaoImpl")
|
||||
public class GoodsdocInDaoImpl extends MybatisGenericDao<GoodsdocInEntity,String> implements IGoodsdocInDao {
|
||||
|
||||
}
|
|
@ -0,0 +1,18 @@
|
|||
package com.hzya.frame.Jackyun.goodsdocin.dao.impl;
|
||||
|
||||
import com.hzya.frame.Jackyun.goodsdocin.dao.IGoodsdocInDetailDao;
|
||||
import com.hzya.frame.Jackyun.goodsdocin.entity.GoodsdocInDetailEntity;
|
||||
import com.hzya.frame.basedao.dao.MybatisGenericDao;
|
||||
import org.springframework.stereotype.Repository;
|
||||
|
||||
/**
|
||||
*
|
||||
* @content 吉客云入库单
|
||||
* @className: Administrator
|
||||
* @author laborer
|
||||
* @date 2025-03-27 15:33
|
||||
*
|
||||
*/
|
||||
@Repository(value = "GoodsdocInDetailDaoImpl")
|
||||
public class GoodsdocInDetailDaoImpl extends MybatisGenericDao<GoodsdocInDetailEntity,String> implements IGoodsdocInDetailDao {
|
||||
}
|
|
@ -0,0 +1,21 @@
|
|||
package com.hzya.frame.Jackyun.goodsdocin.dao.impl;
|
||||
|
||||
import com.hzya.frame.Jackyun.goodsdocin.dao.IGoodsdocInDao;
|
||||
import com.hzya.frame.Jackyun.goodsdocin.dao.IGoodsdocInLogisticDao;
|
||||
import com.hzya.frame.Jackyun.goodsdocin.entity.GoodsdocInEntity;
|
||||
import com.hzya.frame.Jackyun.goodsdocin.entity.GoodsdocInLogisticEntity;
|
||||
import com.hzya.frame.basedao.dao.MybatisGenericDao;
|
||||
import org.springframework.stereotype.Repository;
|
||||
|
||||
/**
|
||||
*
|
||||
* @content 吉客云入库单
|
||||
* @className: Administrator
|
||||
* @author laborer
|
||||
* @date 2025-03-27 15:33
|
||||
*
|
||||
*/
|
||||
@Repository(value = "GoodsdocInLogisticDaoImpl")
|
||||
public class GoodsdocInLogisticDaoImpl extends MybatisGenericDao<GoodsdocInLogisticEntity,String> implements IGoodsdocInLogisticDao {
|
||||
|
||||
}
|
|
@ -0,0 +1,14 @@
|
|||
package com.hzya.frame.Jackyun.goodsdocin.entity;
|
||||
|
||||
import com.hzya.frame.web.entity.BaseEntity;
|
||||
/**
|
||||
*
|
||||
* @content 吉客云入库单
|
||||
* @className: Administrator
|
||||
* @author laborer
|
||||
* @date 2025-03-27 15:33
|
||||
*
|
||||
*/
|
||||
public class GoodsdocInDetailEntity extends BaseEntity {
|
||||
|
||||
}
|
|
@ -0,0 +1,11 @@
|
|||
<?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">
|
||||
<mapper namespace="com.hzya.frame.Jackyun.goodsdocin.dao.impl.GoodsdocInDetailDaoImpl">
|
||||
<resultMap id="get-entity-result" type="com.hzya.frame.Jackyun.goodsdocin.entity.GoodsdocInDetailEntity">
|
||||
<result property="dlid" column="dlid" />
|
||||
</resultMap>
|
||||
<sql id="GoodsdocInDetailEntity_Base_Column_List">
|
||||
|
||||
</sql>
|
||||
|
||||
</mapper>
|
|
@ -0,0 +1,17 @@
|
|||
package com.hzya.frame.Jackyun.goodsdocin.entity;
|
||||
|
||||
import com.hzya.frame.web.entity.BaseEntity;
|
||||
|
||||
/**
|
||||
*
|
||||
* @content 吉客云入库单
|
||||
* @className: Administrator
|
||||
* @author laborer
|
||||
* @date 2025-03-27 15:33
|
||||
*
|
||||
*/
|
||||
|
||||
|
||||
public class GoodsdocInEntity extends BaseEntity {
|
||||
|
||||
}
|
|
@ -0,0 +1,25 @@
|
|||
<?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">
|
||||
<mapper namespace="com.hzya.frame.Jackyun.goodsdocin.dao.impl.GoodsdocInDaoImpl">
|
||||
<resultMap id="get-entity-result" type="com.hzya.frame.Jackyun.goodsdocin.entity.GoodsdocInEntity">
|
||||
<result property="iID" column="iID" />
|
||||
|
||||
|
||||
</resultMap>
|
||||
<sql id="ReceiptEntity_Base_Column_List">
|
||||
|
||||
</sql>
|
||||
|
||||
<select id="entity_list_base" resultMap="get-entity-result" parameterType="com.hzya.frame.Jackyun.goodsdocin.entity.GoodsdocInEntity">
|
||||
select * from kjs_external.dbo.v_hzya_receipt
|
||||
<if test="ids == null or ids == ''"> where sync_flag is null</if>
|
||||
<if test="ids != null and ids != ''">where ids = #{ids} </if>
|
||||
|
||||
</select>
|
||||
|
||||
<!--通过主键修改方法-->
|
||||
<update id="entity_update" parameterType="com.hzya.frame.Jackyun.goodsdocin.entity.GoodsdocInEntity">
|
||||
update ${AccCode}.dbo.Ap_CloseBill set sync_flag = #{state}
|
||||
where iID = #{iID}
|
||||
</update>
|
||||
</mapper>
|
|
@ -0,0 +1,17 @@
|
|||
package com.hzya.frame.Jackyun.goodsdocin.entity;
|
||||
|
||||
import com.hzya.frame.web.entity.BaseEntity;
|
||||
|
||||
/**
|
||||
*
|
||||
* @content 吉客云入库单
|
||||
* @className: Administrator
|
||||
* @author laborer
|
||||
* @date 2025-03-27 15:33
|
||||
*
|
||||
*/
|
||||
|
||||
|
||||
public class GoodsdocInLogisticEntity extends BaseEntity {
|
||||
|
||||
}
|
|
@ -0,0 +1,25 @@
|
|||
<?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">
|
||||
<mapper namespace="com.hzya.frame.Jackyun.goodsdocin.dao.impl.GoodsdocInLogisticDaoImpl">
|
||||
<resultMap id="get-entity-result" type="com.hzya.frame.Jackyun.goodsdocin.entity.GoodsdocInLogisticEntity">
|
||||
<result property="iID" column="iID" />
|
||||
|
||||
|
||||
</resultMap>
|
||||
<sql id="ReceiptEntity_Base_Column_List">
|
||||
|
||||
</sql>
|
||||
|
||||
<select id="entity_list_base" resultMap="get-entity-result" parameterType="com.hzya.frame.Jackyun.goodsdocin.entity.GoodsdocInLogisticEntity">
|
||||
select * from kjs_external.dbo.v_hzya_receipt
|
||||
<if test="ids == null or ids == ''"> where sync_flag is null</if>
|
||||
<if test="ids != null and ids != ''">where ids = #{ids} </if>
|
||||
|
||||
</select>
|
||||
|
||||
<!--通过主键修改方法-->
|
||||
<update id="entity_update" parameterType="com.hzya.frame.Jackyun.goodsdocin.entity.GoodsdocInLogisticEntity">
|
||||
update ${AccCode}.dbo.Ap_CloseBill set sync_flag = #{state}
|
||||
where iID = #{iID}
|
||||
</update>
|
||||
</mapper>
|
|
@ -0,0 +1,15 @@
|
|||
package com.hzya.frame.Jackyun.goodsdocin.service;
|
||||
|
||||
import com.hzya.frame.Jackyun.goodsdocin.entity.GoodsdocInDetailEntity;
|
||||
import com.hzya.frame.basedao.service.IBaseService;
|
||||
|
||||
/**
|
||||
*
|
||||
* @content 吉客云入库单
|
||||
* @className: Administrator
|
||||
* @author laborer
|
||||
* @date 2025-03-27 15:33
|
||||
*
|
||||
*/
|
||||
public interface IGoodsdocInDetaiService extends IBaseService<GoodsdocInDetailEntity,String> {
|
||||
}
|
|
@ -0,0 +1,17 @@
|
|||
package com.hzya.frame.Jackyun.goodsdocin.service;
|
||||
|
||||
import com.hzya.frame.Jackyun.goodsdocin.entity.GoodsdocInEntity;
|
||||
import com.hzya.frame.Jackyun.goodsdocin.entity.GoodsdocInLogisticEntity;
|
||||
import com.hzya.frame.basedao.service.IBaseService;
|
||||
|
||||
/**
|
||||
*
|
||||
* @content 吉客云入库单
|
||||
* @className: Administrator
|
||||
* @author laborer
|
||||
* @date 2025-03-27 15:33
|
||||
*
|
||||
*/
|
||||
public interface IGoodsdocInLogisticService extends IBaseService<GoodsdocInLogisticEntity,String> {
|
||||
|
||||
}
|
|
@ -0,0 +1,24 @@
|
|||
package com.hzya.frame.Jackyun.goodsdocin.service;
|
||||
|
||||
import com.alibaba.fastjson.JSONObject;
|
||||
import com.hzya.frame.Jackyun.goodsdocin.entity.GoodsdocInEntity;
|
||||
import com.hzya.frame.basedao.service.IBaseService;
|
||||
|
||||
/**
|
||||
*
|
||||
* @content 吉客云入库单
|
||||
* @className: Administrator
|
||||
* @author laborer
|
||||
* @date 2025-03-27 15:33
|
||||
*
|
||||
*/
|
||||
public interface IGoodsdocInService extends IBaseService<GoodsdocInEntity,String> {
|
||||
/**
|
||||
* @Content:获取吉客云入库单数据
|
||||
* @Author 👻👻👻👻yqh👻👻👻👻
|
||||
* @Date
|
||||
* @Param
|
||||
* @return
|
||||
**/
|
||||
void getJeckGoodsdocIn();
|
||||
}
|
|
@ -0,0 +1,23 @@
|
|||
package com.hzya.frame.Jackyun.goodsdocin.service.impl;
|
||||
|
||||
import com.hzya.frame.Jackyun.goodsdocin.entity.GoodsdocInDetailEntity;
|
||||
import com.hzya.frame.Jackyun.goodsdocin.service.IGoodsdocInDetaiService;
|
||||
import com.hzya.frame.basedao.service.impl.BaseService;
|
||||
import org.apache.logging.log4j.LogManager;
|
||||
import org.apache.logging.log4j.Logger;
|
||||
import org.springframework.stereotype.Service;
|
||||
|
||||
/**
|
||||
*
|
||||
* @content 吉客云入库单
|
||||
* @className: Administrator
|
||||
* @author laborer
|
||||
* @date 2025-03-27 15:33
|
||||
*
|
||||
*/
|
||||
@Service(value = "GoodsdocInDetaiServiceImpl")
|
||||
public class GoodsdocInDetaiServiceImpl extends BaseService<GoodsdocInDetailEntity,String> implements IGoodsdocInDetaiService {
|
||||
Logger logger = LogManager.getLogger(getClass());
|
||||
|
||||
|
||||
}
|
|
@ -0,0 +1,21 @@
|
|||
package com.hzya.frame.Jackyun.goodsdocin.service.impl;
|
||||
|
||||
import com.hzya.frame.Jackyun.goodsdocin.entity.GoodsdocInEntity;
|
||||
import com.hzya.frame.Jackyun.goodsdocin.entity.GoodsdocInLogisticEntity;
|
||||
import com.hzya.frame.Jackyun.goodsdocin.service.IGoodsdocInLogisticService;
|
||||
import com.hzya.frame.Jackyun.goodsdocin.service.IGoodsdocInService;
|
||||
import com.hzya.frame.basedao.service.impl.BaseService;
|
||||
import org.springframework.stereotype.Service;
|
||||
|
||||
/**
|
||||
*
|
||||
* @content 吉客云入库单
|
||||
* @className: Administrator
|
||||
* @author laborer
|
||||
* @date 2025-03-27 15:33
|
||||
*
|
||||
*/
|
||||
@Service(value = "GoodsdocInLogisticServiceImpl")
|
||||
public class GoodsdocInLogisticServiceImpl extends BaseService<GoodsdocInLogisticEntity,String> implements IGoodsdocInLogisticService {
|
||||
|
||||
}
|
|
@ -0,0 +1,23 @@
|
|||
package com.hzya.frame.Jackyun.goodsdocin.service.impl;
|
||||
|
||||
import com.hzya.frame.Jackyun.goodsdocin.entity.GoodsdocInEntity;
|
||||
import com.hzya.frame.Jackyun.goodsdocin.service.IGoodsdocInService;
|
||||
import com.hzya.frame.basedao.service.impl.BaseService;
|
||||
import org.springframework.stereotype.Service;
|
||||
|
||||
/**
|
||||
*
|
||||
* @content 吉客云入库单
|
||||
* @className: Administrator
|
||||
* @author laborer
|
||||
* @date 2025-03-27 15:33
|
||||
*
|
||||
*/
|
||||
@Service(value = "GoodsdocInServiceImpl")
|
||||
public class GoodsdocInServiceImpl extends BaseService<GoodsdocInEntity,String> implements IGoodsdocInService {
|
||||
|
||||
@Override
|
||||
public void getJeckGoodsdocIn() {
|
||||
|
||||
}
|
||||
}
|
|
@ -0,0 +1,16 @@
|
|||
package com.hzya.frame.Jackyun.goodsdocout.dao;
|
||||
|
||||
import com.hzya.frame.Jackyun.goodsdocout.entity.GoodsdocOutEntity;
|
||||
import com.hzya.frame.basedao.dao.IBaseDao;
|
||||
|
||||
/**
|
||||
*
|
||||
* @content 吉客云出库单
|
||||
* @className: Administrator
|
||||
* @author laborer
|
||||
* @date 2025-03-27 15:33
|
||||
*
|
||||
*/
|
||||
public interface IGoodsdocOutDao extends IBaseDao<GoodsdocOutEntity,String> {
|
||||
|
||||
}
|
|
@ -0,0 +1,16 @@
|
|||
package com.hzya.frame.Jackyun.goodsdocout.dao;
|
||||
|
||||
import com.hzya.frame.Jackyun.goodsdocout.entity.GoodsdocOutDetailEntity;
|
||||
import com.hzya.frame.basedao.dao.IBaseDao;
|
||||
|
||||
|
||||
/**
|
||||
*
|
||||
* @content 吉客云出库单
|
||||
* @className: Administrator
|
||||
* @author laborer
|
||||
* @date 2025-03-27 15:33
|
||||
*
|
||||
*/
|
||||
public interface IGoodsdocOutDetailDao extends IBaseDao<GoodsdocOutDetailEntity,String> {
|
||||
}
|
|
@ -0,0 +1,16 @@
|
|||
package com.hzya.frame.Jackyun.goodsdocout.dao;
|
||||
|
||||
import com.hzya.frame.Jackyun.goodsdocout.entity.GoodsdocOutLogisticEntity;
|
||||
import com.hzya.frame.basedao.dao.IBaseDao;
|
||||
|
||||
/**
|
||||
*
|
||||
* @content 吉客云出库单
|
||||
* @className: Administrator
|
||||
* @author laborer
|
||||
* @date 2025-03-27 15:33
|
||||
*
|
||||
*/
|
||||
public interface IGoodsdocOutLogisticDao extends IBaseDao<GoodsdocOutLogisticEntity,String> {
|
||||
|
||||
}
|
|
@ -0,0 +1,19 @@
|
|||
package com.hzya.frame.Jackyun.goodsdocout.dao.impl;
|
||||
|
||||
import com.hzya.frame.Jackyun.goodsdocout.dao.IGoodsdocOutDao;
|
||||
import com.hzya.frame.Jackyun.goodsdocout.entity.GoodsdocOutEntity;
|
||||
import com.hzya.frame.basedao.dao.MybatisGenericDao;
|
||||
import org.springframework.stereotype.Repository;
|
||||
|
||||
/**
|
||||
*
|
||||
* @content 吉客云出库单
|
||||
* @className: Administrator
|
||||
* @author laborer
|
||||
* @date 2025-03-27 15:33
|
||||
*
|
||||
*/
|
||||
@Repository(value = "GoodsdocOutDaoImpl")
|
||||
public class GoodsdocOutDaoImpl extends MybatisGenericDao<GoodsdocOutEntity,String> implements IGoodsdocOutDao {
|
||||
|
||||
}
|
|
@ -0,0 +1,18 @@
|
|||
package com.hzya.frame.Jackyun.goodsdocout.dao.impl;
|
||||
|
||||
import com.hzya.frame.Jackyun.goodsdocout.dao.IGoodsdocOutDetailDao;
|
||||
import com.hzya.frame.Jackyun.goodsdocout.entity.GoodsdocOutDetailEntity;
|
||||
import com.hzya.frame.basedao.dao.MybatisGenericDao;
|
||||
import org.springframework.stereotype.Repository;
|
||||
|
||||
/**
|
||||
*
|
||||
* @content 吉客云出库单
|
||||
* @className: Administrator
|
||||
* @author laborer
|
||||
* @date 2025-03-27 15:33
|
||||
*
|
||||
*/
|
||||
@Repository(value = "GoodsdocOutDetailDaoImpl")
|
||||
public class GoodsdocOutDetailDaoImpl extends MybatisGenericDao<GoodsdocOutDetailEntity,String> implements IGoodsdocOutDetailDao {
|
||||
}
|
|
@ -0,0 +1,19 @@
|
|||
package com.hzya.frame.Jackyun.goodsdocout.dao.impl;
|
||||
|
||||
import com.hzya.frame.Jackyun.goodsdocout.dao.IGoodsdocOutLogisticDao;
|
||||
import com.hzya.frame.Jackyun.goodsdocout.entity.GoodsdocOutLogisticEntity;
|
||||
import com.hzya.frame.basedao.dao.MybatisGenericDao;
|
||||
import org.springframework.stereotype.Repository;
|
||||
|
||||
/**
|
||||
*
|
||||
* @content 吉客云出库单
|
||||
* @className: Administrator
|
||||
* @author laborer
|
||||
* @date 2025-03-27 15:33
|
||||
*
|
||||
*/
|
||||
@Repository(value = "GoodsdocOutLogisticDaoImpl")
|
||||
public class GoodsdocOutLogisticDaoImpl extends MybatisGenericDao<GoodsdocOutLogisticEntity,String> implements IGoodsdocOutLogisticDao {
|
||||
|
||||
}
|
|
@ -0,0 +1,14 @@
|
|||
package com.hzya.frame.Jackyun.goodsdocout.entity;
|
||||
|
||||
import com.hzya.frame.web.entity.BaseEntity;
|
||||
/**
|
||||
*
|
||||
* @content 吉客云出库单
|
||||
* @className: Administrator
|
||||
* @author laborer
|
||||
* @date 2025-03-27 15:33
|
||||
*
|
||||
*/
|
||||
public class GoodsdocOutDetailEntity extends BaseEntity {
|
||||
|
||||
}
|
|
@ -0,0 +1,11 @@
|
|||
<?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">
|
||||
<mapper namespace="com.hzya.frame.Jackyun.goodsdocout.dao.impl.GoodsdocOutDetailDaoImpl">
|
||||
<resultMap id="get-entity-result" type="com.hzya.frame.Jackyun.goodsdocout.entity.GoodsdocOutDetailEntity">
|
||||
<result property="dlid" column="dlid" />
|
||||
</resultMap>
|
||||
<sql id="GoodsdocOutDetailEntity_Base_Column_List">
|
||||
|
||||
</sql>
|
||||
|
||||
</mapper>
|
|
@ -0,0 +1,17 @@
|
|||
package com.hzya.frame.Jackyun.goodsdocout.entity;
|
||||
|
||||
import com.hzya.frame.web.entity.BaseEntity;
|
||||
|
||||
/**
|
||||
*
|
||||
* @content 吉客云出库单
|
||||
* @className: Administrator
|
||||
* @author laborer
|
||||
* @date 2025-03-27 15:33
|
||||
*
|
||||
*/
|
||||
|
||||
|
||||
public class GoodsdocOutEntity extends BaseEntity {
|
||||
|
||||
}
|
|
@ -0,0 +1,25 @@
|
|||
<?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">
|
||||
<mapper namespace="com.hzya.frame.Jackyun.goodsdocout.dao.impl.GoodsdocOutDaoImpl">
|
||||
<resultMap id="get-entity-result" type="com.hzya.frame.Jackyun.goodsdocout.entity.GoodsdocOutEntity">
|
||||
<result property="iID" column="iID" />
|
||||
|
||||
|
||||
</resultMap>
|
||||
<sql id="ReceiptEntity_Base_Column_List">
|
||||
|
||||
</sql>
|
||||
|
||||
<select id="entity_list_base" resultMap="get-entity-result" parameterType="com.hzya.frame.Jackyun.goodsdocout.entity.GoodsdocOutEntity">
|
||||
select * from kjs_external.dbo.v_hzya_receipt
|
||||
<if test="ids == null or ids == ''"> where sync_flag is null</if>
|
||||
<if test="ids != null and ids != ''">where ids = #{ids} </if>
|
||||
|
||||
</select>
|
||||
|
||||
<!--通过主键修改方法-->
|
||||
<update id="entity_update" parameterType="com.hzya.frame.Jackyun.goodsdocout.entity.GoodsdocOutEntity">
|
||||
update ${AccCode}.dbo.Ap_CloseBill set sync_flag = #{state}
|
||||
where iID = #{iID}
|
||||
</update>
|
||||
</mapper>
|
|
@ -0,0 +1,17 @@
|
|||
package com.hzya.frame.Jackyun.goodsdocout.entity;
|
||||
|
||||
import com.hzya.frame.web.entity.BaseEntity;
|
||||
|
||||
/**
|
||||
*
|
||||
* @content 吉客云出库单
|
||||
* @className: Administrator
|
||||
* @author laborer
|
||||
* @date 2025-03-27 15:33
|
||||
*
|
||||
*/
|
||||
|
||||
|
||||
public class GoodsdocOutLogisticEntity extends BaseEntity {
|
||||
|
||||
}
|
|
@ -0,0 +1,25 @@
|
|||
<?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">
|
||||
<mapper namespace="com.hzya.frame.Jackyun.goodsdocout.dao.impl.GoodsdocOutLogisticDaoImpl">
|
||||
<resultMap id="get-entity-result" type="com.hzya.frame.Jackyun.goodsdocout.entity.GoodsdocOutLogisticEntity">
|
||||
<result property="iID" column="iID" />
|
||||
|
||||
|
||||
</resultMap>
|
||||
<sql id="ReceiptEntity_Base_Column_List">
|
||||
|
||||
</sql>
|
||||
|
||||
<select id="entity_list_base" resultMap="get-entity-result" parameterType="com.hzya.frame.Jackyun.goodsdocout.entity.GoodsdocOutLogisticEntity">
|
||||
select * from kjs_external.dbo.v_hzya_receipt
|
||||
<if test="ids == null or ids == ''"> where sync_flag is null</if>
|
||||
<if test="ids != null and ids != ''">where ids = #{ids} </if>
|
||||
|
||||
</select>
|
||||
|
||||
<!--通过主键修改方法-->
|
||||
<update id="entity_update" parameterType="com.hzya.frame.Jackyun.goodsdocout.entity.GoodsdocOutLogisticEntity">
|
||||
update ${AccCode}.dbo.Ap_CloseBill set sync_flag = #{state}
|
||||
where iID = #{iID}
|
||||
</update>
|
||||
</mapper>
|
|
@ -0,0 +1,15 @@
|
|||
package com.hzya.frame.Jackyun.goodsdocout.service;
|
||||
|
||||
import com.hzya.frame.Jackyun.goodsdocout.entity.GoodsdocOutDetailEntity;
|
||||
import com.hzya.frame.basedao.service.IBaseService;
|
||||
|
||||
/**
|
||||
*
|
||||
* @content 吉客云出库单
|
||||
* @className: Administrator
|
||||
* @author laborer
|
||||
* @date 2025-03-27 15:33
|
||||
*
|
||||
*/
|
||||
public interface IGoodsdocOutDetaiService extends IBaseService<GoodsdocOutDetailEntity,String> {
|
||||
}
|
|
@ -0,0 +1,16 @@
|
|||
package com.hzya.frame.Jackyun.goodsdocout.service;
|
||||
|
||||
import com.hzya.frame.Jackyun.goodsdocout.entity.GoodsdocOutLogisticEntity;
|
||||
import com.hzya.frame.basedao.service.IBaseService;
|
||||
|
||||
/**
|
||||
*
|
||||
* @content 吉客云出库单
|
||||
* @className: Administrator
|
||||
* @author laborer
|
||||
* @date 2025-03-27 15:33
|
||||
*
|
||||
*/
|
||||
public interface IGoodsdocOutLogisticService extends IBaseService<GoodsdocOutLogisticEntity,String> {
|
||||
|
||||
}
|
|
@ -0,0 +1,16 @@
|
|||
package com.hzya.frame.Jackyun.goodsdocout.service;
|
||||
|
||||
import com.hzya.frame.Jackyun.goodsdocout.entity.GoodsdocOutEntity;
|
||||
import com.hzya.frame.basedao.service.IBaseService;
|
||||
|
||||
/**
|
||||
*
|
||||
* @content 吉客云出库单
|
||||
* @className: Administrator
|
||||
* @author laborer
|
||||
* @date 2025-03-27 15:33
|
||||
*
|
||||
*/
|
||||
public interface IGoodsdocOutService extends IBaseService<GoodsdocOutEntity,String> {
|
||||
|
||||
}
|
|
@ -0,0 +1,23 @@
|
|||
package com.hzya.frame.Jackyun.goodsdocout.service.impl;
|
||||
|
||||
import com.hzya.frame.Jackyun.goodsdocout.entity.GoodsdocOutDetailEntity;
|
||||
import com.hzya.frame.Jackyun.goodsdocout.service.IGoodsdocOutDetaiService;
|
||||
import com.hzya.frame.basedao.service.impl.BaseService;
|
||||
import org.apache.logging.log4j.LogManager;
|
||||
import org.apache.logging.log4j.Logger;
|
||||
import org.springframework.stereotype.Service;
|
||||
|
||||
/**
|
||||
*
|
||||
* @content 吉客云出库单
|
||||
* @className: Administrator
|
||||
* @author laborer
|
||||
* @date 2025-03-27 15:33
|
||||
*
|
||||
*/
|
||||
@Service(value = "GoodsdocOutDetaiServiceImpl")
|
||||
public class GoodsdocOutDetaiServiceImpl extends BaseService<GoodsdocOutDetailEntity,String> implements IGoodsdocOutDetaiService {
|
||||
Logger logger = LogManager.getLogger(getClass());
|
||||
|
||||
|
||||
}
|
|
@ -0,0 +1,19 @@
|
|||
package com.hzya.frame.Jackyun.goodsdocout.service.impl;
|
||||
|
||||
import com.hzya.frame.Jackyun.goodsdocout.entity.GoodsdocOutLogisticEntity;
|
||||
import com.hzya.frame.Jackyun.goodsdocout.service.IGoodsdocOutLogisticService;
|
||||
import com.hzya.frame.basedao.service.impl.BaseService;
|
||||
import org.springframework.stereotype.Service;
|
||||
|
||||
/**
|
||||
*
|
||||
* @content 吉客云出库单
|
||||
* @className: Administrator
|
||||
* @author laborer
|
||||
* @date 2025-03-27 15:33
|
||||
*
|
||||
*/
|
||||
@Service(value = "GoodsdocOutLogisticServiceImpl")
|
||||
public class GoodsdocOutLogisticServiceImpl extends BaseService<GoodsdocOutLogisticEntity,String> implements IGoodsdocOutLogisticService {
|
||||
|
||||
}
|
|
@ -0,0 +1,20 @@
|
|||
package com.hzya.frame.Jackyun.goodsdocout.service.impl;
|
||||
|
||||
import com.hzya.frame.Jackyun.goodsdocout.entity.GoodsdocOutEntity;
|
||||
import com.hzya.frame.Jackyun.goodsdocout.service.IGoodsdocOutService;
|
||||
import com.hzya.frame.basedao.service.impl.BaseService;
|
||||
import org.springframework.stereotype.Service;
|
||||
|
||||
/**
|
||||
*
|
||||
* @content 吉客云出库单
|
||||
* @className: Administrator
|
||||
* @author laborer
|
||||
* @date 2025-03-27 15:33
|
||||
*
|
||||
*/
|
||||
@Service(value = "GoodsdocOutServiceImpl")
|
||||
public class GoodsdocOutServiceImpl extends BaseService<GoodsdocOutEntity,String> implements IGoodsdocOutService {
|
||||
|
||||
|
||||
}
|
|
@ -0,0 +1,257 @@
|
|||
|
||||
|
||||
package com.hzya.frame.Jackyun.util;
|
||||
|
||||
|
||||
import com.alibaba.fastjson.JSON;
|
||||
import com.alibaba.fastjson.JSONObject;
|
||||
import org.junit.Test;
|
||||
|
||||
import java.io.BufferedReader;
|
||||
import java.io.IOException;
|
||||
import java.io.InputStreamReader;
|
||||
import java.io.PrintWriter;
|
||||
import java.net.URL;
|
||||
import java.net.URLConnection;
|
||||
import java.net.URLEncoder;
|
||||
import java.security.MessageDigest;
|
||||
import java.time.LocalDateTime;
|
||||
import java.time.format.DateTimeFormatter;
|
||||
import java.util.Map;
|
||||
import java.util.SortedMap;
|
||||
import java.util.TreeMap;
|
||||
|
||||
/**
|
||||
* 请求吉客云开放平台Http辅助类。
|
||||
*
|
||||
* @author HGW
|
||||
* @since 2018-08-07 10:29:52
|
||||
*/
|
||||
public class JackyunOpenHttpUtils {
|
||||
//region 变量
|
||||
/**
|
||||
* 在吉客云开放平台上申请的Appekey。
|
||||
*/
|
||||
private final static String APPKEY = "72790330";
|
||||
/**
|
||||
* 在吉客云开放平台上申请的AppeSecret。
|
||||
*/
|
||||
private final static String APPSECRET = "23b87f1606ad43beb32e9d9b78122db5";
|
||||
/**
|
||||
* 吉客云开放平台网关。
|
||||
*/
|
||||
private final static String GATEWAY = "https://open.jackyun.com/open/openapi/do";
|
||||
/**
|
||||
* 时间格式
|
||||
*/
|
||||
private final static DateTimeFormatter DEFAULT_DATETIME_FORMATTER = DateTimeFormatter.ofPattern("yyyy-MM-dd HH:mm:ss");
|
||||
/**
|
||||
* uft-8 字符集
|
||||
*/
|
||||
private final static String STR_UFT8 = "UTF-8";
|
||||
/**
|
||||
* 业务参数名
|
||||
*/
|
||||
private final static String BIZCONTENT = "bizcontent";
|
||||
|
||||
//endregion
|
||||
//出库单查询json
|
||||
@Test
|
||||
public void test02(){
|
||||
String method = "erp.storage.goodsdocout.v2";
|
||||
String str = "{\"pageIndex\":\"1\",\"redStatus\":\"\",\"pageSize\":\"50\",\"endDate\":\"\",\"startDate\":\"\",\"goodsDocNo\":\"\",\"sourceBillNo\":\"\",\"inouttype\":\"\",\"billNo\":\"\",\"vendCode\":\"\",\"outBillNo\":\"\",\"gmtModifiedStart\":\"\",\"warehouseCode\":\"\",\"selelctFields\":\"recId,goodsdocNo,billNo,inOutDate,gmtCreate,inouttype,inouttypeName,flagData,flagDataName,vendCustomerName,currencyCode,currencyRate,userName,warehouseCode,warehouseName,comment,memo,logisticName,logisticNo,companyId,companyName,logisticType,logisticCode,inOutReason,sourceBillNo,channelId,channelCode,channelName,redStatus,field1,field2,field3,field4,field5,financeBillStatus,vendCustomerId,applyDepartId,applyDepartName,outBillNo,logisticList.id,logisticList.docNo,logisticList.logisticNo,logisticList.logisticCode,logisticList.logisticName,logisticList.logisticType,logisticList.gmtModified,logisticList.departCode,logisticList.applyCompanyName,logisticList.applyCompanyCode,logisticList.applyCompanyId,logisticList.applyUserId,logisticList.applyUserName,logisticList.companyCode,goodsDocDetailList.recId,goodsDocDetailList.goodsId,goodsDocDetailList.goodsNo,goodsDocDetailList.goodsName,goodsDocDetailList.skuId,goodsDocDetailList.skuName,goodsDocDetailList.skuBarcode,goodsDocDetailList.unitName,goodsDocDetailList.cuPrice,goodsDocDetailList.cuValue,goodsDocDetailList.caseNumber,goodsDocDetailList.rowRemark,goodsDocDetailList.assistUnit,goodsDocDetailList.estCost,goodsDocDetailList.estTax,goodsDocDetailList.estPrice,goodsDocDetailList.estPriceNoTax,goodsDocDetailList.estCostNoTax,goodsDocDetailList.taxRate,goodsDocDetailList.batchNo,goodsDocDetailList.serialNo,goodsDocDetailList.productionDate,goodsDocDetailList.expirationDate,goodsDocDetailList.shelfLife,goodsDocDetailList.shelfLiftUnit,goodsDocDetailList.sourceDetailId,goodsDocDetailList.transNoTaxPrice,goodsDocDetailList.transNoTaxAmount,goodsDocDetailList.transHasTaxPrice,goodsDocDetailList.transHasTaxAmount,goodsDocDetailList.transTaxAmount,goodsDocDetailList.detailField1,goodsDocDetailList.detailField2,goodsDocDetailList.detailField3,goodsDocDetailList.detailField4,goodsDocDetailList.detailField5,goodsDocDetailList.isCertified,goodsDocDetailList.registrationNumber,goodsDocDetailList.approvalDate,goodsDocDetailList.productionDepart,goodsDocDetailList.batchNumber,goodsDocDetailList.quantity,goodsDocDetailList.cateId,goodsDocDetailList.cateName,goodsDocDetailList.serialSourceId\",\"userName\":\"\",\"gmtModifiedEnd\":\"\"}";
|
||||
JSONObject jsonObject = JSON.parseObject(str);
|
||||
try {
|
||||
String r = post(method, "v1.0", jsonObject);
|
||||
JSONObject obj = JSON.parseObject(r);
|
||||
System.out.println(r);
|
||||
} catch (Exception e) {
|
||||
throw new RuntimeException(e);
|
||||
}
|
||||
}
|
||||
|
||||
//入库单查询json
|
||||
@Test
|
||||
public void test01(){
|
||||
String method = "erp.storage.goodsdocin.v2";
|
||||
String str = "{\"pageIndex\":\"1\",\"redStatus\":\"\",\"pageSize\":\"50\",\"endDate\":\"\",\"startDate\":\"\",\"goodsDocNo\":\"\",\"sourceBillNo\":\"\",\"inouttype\":\"\",\"billNo\":\"\",\"vendCode\":\"\",\"outBillNo\":\"\",\"warehouseCode\":\"\",\"selelctFields\":\"recId,goodsdocNo,billNo,inOutDate,gmtCreate,inouttype,inouttypeName,flagData,flagDataName,vendCustomerCode,vendCustomerName,currencyCode,currencyRate,userName,warehouseCode,warehouseName,comment,memo,logisticName,logisticNo,companyId,companyName,logisticType,logisticCode,inOutReason,sourceBillNo,channelId,channelCode,channelName,redStatus,field1,field2,field3,field4,field5,financeBillStatus,applyCompanyId,applyCompanyName,applyCompanyCode,applyDepartId,applyDepartName,departCode,applyUserId,applyUserName,outBillNo,gmtModified,companyCode,vendCustomerId,logisticList.id,logisticList.docNo,logisticList.logisticNo,logisticList.logisticCode,logisticList.logisticName,logisticList.logisticType,goodsDocDetailList.recId,goodsDocDetailList.goodsId,goodsDocDetailList.goodsNo,goodsDocDetailList.goodsName,goodsDocDetailList.skuId,goodsDocDetailList.skuName,goodsDocDetailList.skuBarcode,goodsDocDetailList.unitName,goodsDocDetailList.cuPrice,goodsDocDetailList.cuValue,goodsDocDetailList.caseNumber,goodsDocDetailList.rowRemark,goodsDocDetailList.assistUnit,goodsDocDetailList.estCost,goodsDocDetailList.estTax,goodsDocDetailList.estPrice,goodsDocDetailList.estPriceNoTax,goodsDocDetailList.estCostNoTax,goodsDocDetailList.taxRate,goodsDocDetailList.batchNo,goodsDocDetailList.serialNo,goodsDocDetailList.productionDate,goodsDocDetailList.expirationDate,goodsDocDetailList.shelfLife,goodsDocDetailList.shelfLiftUnit,goodsDocDetailList.sourceDetailId,goodsDocDetailList.transNoTaxPrice,goodsDocDetailList.transNoTaxAmount,goodsDocDetailList.transHasTaxPrice,goodsDocDetailList.transHasTaxAmount,goodsDocDetailList.transTaxAmount,goodsDocDetailList.detailField1,goodsDocDetailList.detailField2,goodsDocDetailList.detailField3,goodsDocDetailList.detailField4,goodsDocDetailList.detailField5,goodsDocDetailList.isCertified,goodsDocDetailList.registrationNumber,goodsDocDetailList.approvalDate,goodsDocDetailList.productionDepart,goodsDocDetailList.batchNumber,goodsDocDetailList.quantity,goodsDocDetailList.orderNum,goodsDocDetailList.serialSourceId,deliveryNo\",\"userName\":\"\",\"purchNos\":\"\"}";
|
||||
JSONObject jsonObject = JSON.parseObject(str);
|
||||
try {
|
||||
String r = post(method, "v1.0", jsonObject);
|
||||
JSONObject obj = JSON.parseObject(r);
|
||||
System.out.println(r);
|
||||
} catch (Exception e) {
|
||||
throw new RuntimeException(e);
|
||||
}
|
||||
}
|
||||
//region 请求吉客云开放平台
|
||||
|
||||
/**
|
||||
* 请求吉客云开放平台。
|
||||
*
|
||||
* @param method 开放接口方法名
|
||||
* @param version 开放接口版本号(null表示默认)
|
||||
* @param bizData 业务请求数据
|
||||
* @return
|
||||
* @throws Exception
|
||||
*/
|
||||
public static String post(String method, String version, JSONObject bizData) throws Exception {
|
||||
// 构造请求参数(name1=value1&name2=value2格式)。
|
||||
SortedMap<String, String> sortedMap = new TreeMap<>();
|
||||
sortedMap.put("method", method);
|
||||
sortedMap.put("appkey", APPKEY);
|
||||
sortedMap.put("version", version);
|
||||
sortedMap.put("contenttype", "json");
|
||||
sortedMap.put("timestamp", DEFAULT_DATETIME_FORMATTER.format(LocalDateTime.now()));
|
||||
sortedMap.put(BIZCONTENT, JSON.toJSONString(bizData));
|
||||
|
||||
// 构建待签名的字符串。
|
||||
StringBuilder sbSignData = new StringBuilder(APPSECRET);
|
||||
for (Map.Entry<String, String> entry : sortedMap.entrySet()) {
|
||||
sbSignData.append(entry.getKey()).append(entry.getValue());
|
||||
}
|
||||
sbSignData.append(APPSECRET);
|
||||
|
||||
// 生成签名。
|
||||
sortedMap.put("sign", md5Encrypt(sbSignData.toString().toLowerCase(), STR_UFT8));
|
||||
|
||||
//构造请求参数(name1=value1&name2=value2格式)
|
||||
StringBuilder sbPostData = new StringBuilder();
|
||||
for (Map.Entry<String, String> entry : sortedMap.entrySet()) {
|
||||
//对业务参数签名后的数据urlencode一下
|
||||
if (BIZCONTENT.equalsIgnoreCase(entry.getKey())) {
|
||||
sbPostData.append("&").append(entry.getKey()).append("=").append(URLEncoder.encode(entry.getValue(), STR_UFT8));
|
||||
} else {
|
||||
sbPostData.append("&").append(entry.getKey()).append("=").append(entry.getValue());
|
||||
}
|
||||
}
|
||||
//去掉首位&
|
||||
String postDataStr = sbPostData.substring(1);
|
||||
String result = postData(GATEWAY, postDataStr);
|
||||
return result;
|
||||
}
|
||||
|
||||
//endregion
|
||||
|
||||
//region 其他方法
|
||||
|
||||
/**
|
||||
* MD5哈希加密。
|
||||
*
|
||||
* @param text 原文本
|
||||
* @param encoding 编码格式
|
||||
* @return 加密后的文本
|
||||
*/
|
||||
private static String md5Encrypt(String text, String encoding) throws Exception {
|
||||
if (encoding == null || encoding.isEmpty()) {
|
||||
encoding = "UTF-8";
|
||||
}
|
||||
MessageDigest md5 = MessageDigest.getInstance("MD5");
|
||||
byte[] resultByte = text.getBytes(encoding);
|
||||
byte[] md5Bytes = md5.digest(resultByte);
|
||||
StringBuilder hexValue = new StringBuilder();
|
||||
for (byte md5Byte : md5Bytes) {
|
||||
int val = (md5Byte) & 0xff;
|
||||
if (val < 16) {
|
||||
hexValue.append("0");
|
||||
}
|
||||
hexValue.append(Integer.toHexString(val));
|
||||
}
|
||||
return hexValue.toString();
|
||||
}
|
||||
|
||||
/**
|
||||
* Post方式请求
|
||||
*
|
||||
* @param url 路径
|
||||
* @param postData 发送的数据(name1=value1&name2=value2)格式
|
||||
* @return HTTP-Post返回结果
|
||||
*/
|
||||
public static String postData(String url, String postData) throws IOException {
|
||||
return postData(url, postData, "UTF-8", 300000);
|
||||
}
|
||||
|
||||
/**
|
||||
* Post方式请求
|
||||
*
|
||||
* @param url 路径
|
||||
* @param postData 发送的数据(name1=value1&name2=value2)格式
|
||||
* @param encoding 编码格式
|
||||
* @return HTTP-Post返回结果
|
||||
*/
|
||||
public static String postData(String url, String postData, String encoding) throws IOException {
|
||||
return postData(url, postData, encoding, 300000);
|
||||
}
|
||||
|
||||
/**
|
||||
* Post方式请求
|
||||
*
|
||||
* @param url 路径
|
||||
* @param postData 发送的数据(name1=value1&name2=value2)格式
|
||||
* @param encoding 编码格式
|
||||
* @param timeOut 超时时间
|
||||
* @return HTTP-Post返回结果
|
||||
*/
|
||||
public static String postData(String url, String postData, String encoding, int timeOut) throws IOException {
|
||||
if (encoding == null || encoding.isEmpty()) {
|
||||
encoding = "UTF-8";
|
||||
}
|
||||
if (timeOut <= 0) {
|
||||
timeOut = 300000;
|
||||
}
|
||||
PrintWriter printWriter = null;
|
||||
BufferedReader bufferedReader = null;
|
||||
StringBuffer resultBuffer = null;
|
||||
URLConnection urlConnection = null;
|
||||
|
||||
// 发送Post请求
|
||||
try {
|
||||
URL postMethodUrl = new URL(url);
|
||||
// 打开连接
|
||||
urlConnection = postMethodUrl.openConnection();
|
||||
// 设置通用的请求属性
|
||||
urlConnection.setRequestProperty("accept", "*/*");
|
||||
urlConnection.setRequestProperty("connection", "Keep-Alive");
|
||||
|
||||
urlConnection.setRequestProperty("user-agent", "Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1;SV1)");
|
||||
urlConnection.setRequestProperty("Content-Type", "application/x-www-form-urlencoded");
|
||||
urlConnection.setConnectTimeout(timeOut);
|
||||
// 设置url连接可以用于输入输出
|
||||
urlConnection.setDoOutput(true);
|
||||
urlConnection.setDoInput(true);
|
||||
// 获取URLConnection对象对应的输出流
|
||||
printWriter = new PrintWriter(urlConnection.getOutputStream());
|
||||
// 发送请求参数
|
||||
printWriter.print(postData);
|
||||
// flush输出流的缓冲
|
||||
printWriter.flush();
|
||||
// 定义BufferedReader输入流来读取URL的响应
|
||||
bufferedReader = new BufferedReader(new InputStreamReader(urlConnection.getInputStream()));
|
||||
resultBuffer = new StringBuffer();
|
||||
String temp = "";
|
||||
while ((temp = bufferedReader.readLine()) != null) {
|
||||
resultBuffer.append(temp);
|
||||
}
|
||||
} finally {
|
||||
if (bufferedReader != null) {
|
||||
try {
|
||||
bufferedReader.close();
|
||||
} catch (Exception e) {
|
||||
e.printStackTrace();
|
||||
}
|
||||
}
|
||||
|
||||
if (printWriter != null) {
|
||||
try {
|
||||
printWriter.close();
|
||||
} catch (Exception e) {
|
||||
e.printStackTrace();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
return resultBuffer.toString();
|
||||
}
|
||||
|
||||
//endregion
|
||||
}
|
Loading…
Reference in New Issue