Commit b7daf469 by 朱亚洁

feat:[1007593]冻结书刊筛选

parent 4ceac920
...@@ -888,7 +888,18 @@ public class BookDto extends BaseDto { ...@@ -888,7 +888,18 @@ public class BookDto extends BaseDto {
* 书下应用数量 * 书下应用数量
*/ */
private Integer bookAppCount; private Integer bookAppCount;
/**
* 书刊冻结状态
*/
private Integer isFreeze;
public Integer getIsFreeze() {
return isFreeze;
}
public void setIsFreeze(Integer isFreeze) {
this.isFreeze = isFreeze;
}
public Integer getBookAppCount() { public Integer getBookAppCount() {
return bookAppCount; return bookAppCount;
......
...@@ -120,4 +120,6 @@ public class BookAdviser extends BaseEntity { ...@@ -120,4 +120,6 @@ public class BookAdviser extends BaseEntity {
private Long volLabelId; private Long volLabelId;
private Integer openRaysCode; private Integer openRaysCode;
private Integer isJumpBook;
} }
...@@ -409,7 +409,8 @@ public interface BookFacade { ...@@ -409,7 +409,8 @@ public interface BookFacade {
@RequestParam(value = "isPrint", required = false) Boolean isPrint, @RequestParam(value = "isPrint", required = false) Boolean isPrint,
@RequestParam(value = "minimumSupport", required = false) Integer minimumSupport, @RequestParam(value = "minimumSupport", required = false) Integer minimumSupport,
@RequestParam(value = "startTime", required = false) String startTime, @RequestParam(value = "startTime", required = false) String startTime,
@RequestParam(value = "endTime", required = false) String endTime) @RequestParam(value = "endTime", required = false) String endTime,
@RequestParam(value = "isFreeze",required = false) Integer isFreeze)
throws BizException, PermissionException, JsonParseException; throws BizException, PermissionException, JsonParseException;
/** /**
......
...@@ -566,7 +566,8 @@ public class BookFacadeImpl implements BookFacade { ...@@ -566,7 +566,8 @@ public class BookFacadeImpl implements BookFacade {
@RequestParam(value = "isPrint", required = false) Boolean isPrint, @RequestParam(value = "isPrint", required = false) Boolean isPrint,
@RequestParam(value = "minimumSupport", required = false) Integer minimumSupport, @RequestParam(value = "minimumSupport", required = false) Integer minimumSupport,
@RequestParam(value = "startTime", required = false) String startTime, @RequestParam(value = "startTime", required = false) String startTime,
@RequestParam(value = "endTime", required = false) String endTime) @RequestParam(value = "endTime", required = false) String endTime,
@RequestParam(value = "isFreeze",required = false) Integer isFreeze)
throws BizException, PermissionException { throws BizException, PermissionException {
Long agentId = (Long) SessionUtil.getVlaue(token, SessionUtil.PARTY_ID); Long agentId = (Long) SessionUtil.getVlaue(token, SessionUtil.PARTY_ID);
if (currentPage < 0 || numPerPage < 0) { if (currentPage < 0 || numPerPage < 0) {
...@@ -593,6 +594,7 @@ public class BookFacadeImpl implements BookFacade { ...@@ -593,6 +594,7 @@ public class BookFacadeImpl implements BookFacade {
paramMap.put("minimumSupport", minimumSupport); paramMap.put("minimumSupport", minimumSupport);
paramMap.put("startTime", StringUtil.isBlank(startTime) ? null : startTime); paramMap.put("startTime", StringUtil.isBlank(startTime) ? null : startTime);
paramMap.put("endTime", StringUtil.isBlank(endTime) ? null : endTime); paramMap.put("endTime", StringUtil.isBlank(endTime) ? null : endTime);
paramMap.put("isFreeze", isFreeze);
return new ResponseDto<>( return new ResponseDto<>(
bookBiz.listPage4Agent(new PageParam(currentPage, numPerPage), paramMap, agentId)); bookBiz.listPage4Agent(new PageParam(currentPage, numPerPage), paramMap, agentId));
} }
...@@ -614,7 +616,8 @@ public class BookFacadeImpl implements BookFacade { ...@@ -614,7 +616,8 @@ public class BookFacadeImpl implements BookFacade {
@RequestParam(value = "isPrint", required = false) Boolean isPrint, @RequestParam(value = "isPrint", required = false) Boolean isPrint,
@RequestParam(value = "minimumSupport", required = false) Integer minimumSupport, @RequestParam(value = "minimumSupport", required = false) Integer minimumSupport,
@RequestParam(value = "startTime", required = false) String startTime, @RequestParam(value = "startTime", required = false) String startTime,
@RequestParam(value = "endTime", required = false) String endTime) @RequestParam(value = "endTime", required = false) String endTime,
@RequestParam(value = "isFreeze",required = false) Integer isFreeze)
throws BizException, PermissionException { throws BizException, PermissionException {
Long agentId = (Long) SessionUtil.getVlaue(token, SessionUtil.PARTY_ID); Long agentId = (Long) SessionUtil.getVlaue(token, SessionUtil.PARTY_ID);
Map<String, Object> map = SessionUtil.getToken4Redis(token); Map<String, Object> map = SessionUtil.getToken4Redis(token);
...@@ -646,6 +649,7 @@ public class BookFacadeImpl implements BookFacade { ...@@ -646,6 +649,7 @@ public class BookFacadeImpl implements BookFacade {
paramMap.put("minimumSupport", minimumSupport); paramMap.put("minimumSupport", minimumSupport);
paramMap.put("startTime", StringUtil.isBlank(startTime) ? null : startTime); paramMap.put("startTime", StringUtil.isBlank(startTime) ? null : startTime);
paramMap.put("endTime", StringUtil.isBlank(endTime) ? null : endTime); paramMap.put("endTime", StringUtil.isBlank(endTime) ? null : endTime);
paramMap.put("isFreeze", isFreeze);
bookBiz.exportListPage4Agent(paramMap, agentId,partyId,systemCode); bookBiz.exportListPage4Agent(paramMap, agentId,partyId,systemCode);
return new ResponseDto<>(); return new ResponseDto<>();
} }
......
...@@ -1552,7 +1552,7 @@ ...@@ -1552,7 +1552,7 @@
A.BOOK_ADVISER_ID, A.BOOK_ID, A.CHANNEL_ID, A.ADVISER_ID, A.IS_MAIN_EDITOR, T.TYPE_CODE, T.TYPE_NAME, B.ISBN, B.BOOK_NAME, B.REMARK, A.BOOK_ADVISER_ID, A.BOOK_ID, A.CHANNEL_ID, A.ADVISER_ID, A.IS_MAIN_EDITOR, T.TYPE_CODE, T.TYPE_NAME, B.ISBN, B.BOOK_NAME, B.REMARK,
B.AUTHOR, B.PUBLISH, B.PUBLISH_DATE, B.COVER_IMG, B.ORIGIN_NAME, B.BOOK_PRICE, B.ISSN, B.BOOK_NUM, B.SERIAL_NUMBER, B.AUTHOR, B.PUBLISH, B.PUBLISH_DATE, B.COVER_IMG, B.ORIGIN_NAME, B.BOOK_PRICE, B.ISSN, B.BOOK_NUM, B.SERIAL_NUMBER,
IF(ISNULL(BF.BOOK_FUND_ID),0,1) IS_FUND_SUPPORT, A.TEMPLET_ID, A.IS_PRINT isPrint, IF(ISNULL(s.id),0,1) minimumSupport,B.CREATED_DATE IF(ISNULL(BF.BOOK_FUND_ID),0,1) IS_FUND_SUPPORT, A.TEMPLET_ID, A.IS_PRINT isPrint, IF(ISNULL(s.id),0,1) minimumSupport,B.CREATED_DATE
,A.open_rays_code ,A.open_rays_code, IFNULL(f.IS_FREEZE,0) isFreeze
FROM FROM
BOOK_ADVISER A BOOK_ADVISER A
INNER JOIN INNER JOIN
...@@ -1574,6 +1574,7 @@ ...@@ -1574,6 +1574,7 @@
ON ON
BF.BOOK_ID = A.BOOK_ID AND BF.END_TIME <![CDATA[ > ]]> NOW() AND BF.START_TIME <![CDATA[ < ]]> NOW() BF.BOOK_ID = A.BOOK_ID AND BF.END_TIME <![CDATA[ > ]]> NOW() AND BF.START_TIME <![CDATA[ < ]]> NOW()
LEFT JOIN book_minimum_support s ON B.BOOK_ID=s.book_id AND s.end_time <![CDATA[ > ]]> NOW() AND s.start_time <![CDATA[ < ]]> NOW() LEFT JOIN book_minimum_support s ON B.BOOK_ID=s.book_id AND s.end_time <![CDATA[ > ]]> NOW() AND s.start_time <![CDATA[ < ]]> NOW()
LEFT JOIN book_freeze f ON B.BOOK_ID = f.BOOK_ID
WHERE WHERE
1=1 1=1
<if test="typeCode!=null"> <if test="typeCode!=null">
...@@ -1629,6 +1630,9 @@ ...@@ -1629,6 +1630,9 @@
AND AND
BF.BOOK_FUND_ID IS NOT NULL BF.BOOK_FUND_ID IS NOT NULL
</if> </if>
<if test="isFreeze != null">
AND f.IS_FREEZE = 1
</if>
<if test="isPrint != null"> <if test="isPrint != null">
AND AND
A.IS_PRINT = #{isPrint} A.IS_PRINT = #{isPrint}
...@@ -1672,6 +1676,9 @@ ...@@ -1672,6 +1676,9 @@
LEFT JOIN book_minimum_support s LEFT JOIN book_minimum_support s
ON B.BOOK_ID = s.book_id AND s.end_time <![CDATA[ > ]]> NOW() AND s.start_time <![CDATA[ < ]]> NOW() ON B.BOOK_ID = s.book_id AND s.end_time <![CDATA[ > ]]> NOW() AND s.start_time <![CDATA[ < ]]> NOW()
</if> </if>
<if test="isFreeze != null">
LEFT JOIN book_freeze f ON B.BOOK_ID = f.BOOK_ID
</if>
WHERE WHERE
1=1 1=1
<if test="typeCode!=null"> <if test="typeCode!=null">
...@@ -1720,6 +1727,9 @@ ...@@ -1720,6 +1727,9 @@
<if test="isFundSupport != null"> <if test="isFundSupport != null">
AND BF.BOOK_FUND_ID IS NOT NULL AND BF.BOOK_FUND_ID IS NOT NULL
</if> </if>
<if test="isFreeze != null">
AND f.IS_FREEZE = 1
</if>
<if test="isPrint != null"> <if test="isPrint != null">
AND A.IS_PRINT = #{isPrint} AND A.IS_PRINT = #{isPrint}
</if> </if>
......
...@@ -48,7 +48,7 @@ ...@@ -48,7 +48,7 @@
INSERT INTO BOOK_ADVISER ( INSERT INTO BOOK_ADVISER (
BOOK_ID, ADVISER_ID, CHANNEL_ID, CREATED_USER, CREATED_DATE,IS_MAIN_EDITOR, TEMPLET_ID, SECOND_TEMPLET_ID,third_templet_id, BOOK_ID, ADVISER_ID, CHANNEL_ID, CREATED_USER, CREATED_DATE,IS_MAIN_EDITOR, TEMPLET_ID, SECOND_TEMPLET_ID,third_templet_id,
GRA_LABEL_ID,SUB_LABEL_ID,VER_LABEL_ID,AREA_LABEL_ID,pro_label_id, dep_label_id,pur_label_id,is_open_robot_process, GRA_LABEL_ID,SUB_LABEL_ID,VER_LABEL_ID,AREA_LABEL_ID,pro_label_id, dep_label_id,pur_label_id,is_open_robot_process,
vol_label_id,LAST_MODIFIED_DATE,ip_address,open_rays_code vol_label_id,LAST_MODIFIED_DATE,ip_address,open_rays_code, is_jump_book
) )
VALUES ( VALUES (
#{bookId, jdbcType=VARCHAR}, #{adviserId, jdbcType=VARCHAR}, #{channelId, jdbcType=VARCHAR}, #{bookId, jdbcType=VARCHAR}, #{adviserId, jdbcType=VARCHAR}, #{channelId, jdbcType=VARCHAR},
...@@ -56,7 +56,7 @@ ...@@ -56,7 +56,7 @@
#{secondTempletId, jdbcType=BIGINT},#{thirdTempletId},#{graLabelId, jdbcType=BIGINT},#{subLabelId, jdbcType=BIGINT}, #{secondTempletId, jdbcType=BIGINT},#{thirdTempletId},#{graLabelId, jdbcType=BIGINT},#{subLabelId, jdbcType=BIGINT},
#{verLabelId, jdbcType=BIGINT},#{areaLabelId, jdbcType=BIGINT},#{proLabelId,jdbcType=BIGINT}, #{verLabelId, jdbcType=BIGINT},#{areaLabelId, jdbcType=BIGINT},#{proLabelId,jdbcType=BIGINT},
#{depLabelId,jdbcType=BIGINT},#{purLabelId,jdbcType=BIGINT},#{isOpenRobotProcess,jdbcType=BIT}, #{depLabelId,jdbcType=BIGINT},#{purLabelId,jdbcType=BIGINT},#{isOpenRobotProcess,jdbcType=BIT},
#{volLabelId},now(),#{ipAddress},IFNULL(#{openRaysCode},1) #{volLabelId},now(),#{ipAddress},IFNULL(#{openRaysCode},1), IFNULL(#{isJumpBook},0)
) )
ON ON
DUPLICATE KEY UPDATE IS_DELETE = 0,LAST_MODIFIED_DATE=now(), IS_MAIN_EDITOR = #{isMainEditor, jdbcType=BIT} DUPLICATE KEY UPDATE IS_DELETE = 0,LAST_MODIFIED_DATE=now(), IS_MAIN_EDITOR = #{isMainEditor, jdbcType=BIT}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment