@@ -825,5 +825,11 @@ public class WbsTreeContractController extends BladeController {
wbsTreeContractServiceImpl.resetTableDate(projectId);
return R.success("成功");
}
+ @GetMapping("/checkAllNodeDate")
+ @ApiOperationSupport(order = 43)
+ @ApiOperation(value = "检查所有表单是否填写完毕日期")
+ public R checkAllNodeDate(Long projectId,Long contractId){
+ return R.status(wbsTreeContractServiceImpl.checkAllNodeDate(projectId,contractId));
+ }
@@ -155,4 +155,6 @@ public interface WbsTreeContractMapper extends EasyBaseMapper<WbsTreeContract> {
* @param resourceData
*/
void updateSortBatchByPKeyId(List<WbsTreeContract> resourceData);
+
+ List<WbsTreeContract> selectListForcheckAllNodeDate(@Param("projectId") Long projectId, @Param("contractId") Long contractId);
@@ -973,5 +973,16 @@
AND wtc.wbs_id = #{wbsId}
AND wtc.is_deleted = 0;
</select>
+ <select id="selectListForcheckAllNodeDate" resultType="org.springblade.manager.entity.WbsTreeContract">
+ select * from m_wbs_tree_contract where
+ <if test="projectId!=null and projectId!=''">
+ project_id=#{projectId}
+ </if>
+ <if test="contractId!=null and contractId!=''">
+ and contract_id=#{contractId}
+ and is_deleted=0 and is_buss_show !=2 and init_table_name !=null and html_url !=null and LENGTH(init_table_name) > 10 and LENGTH(html_url) > 10
+ and p_id !=null
+ </select>
</mapper>
@@ -90,4 +90,6 @@ public interface IWbsTreeContractService extends BaseService<WbsTreeContract> {
EKeyDto getEKey(String contractId, Long pKeyId, String wbsId);
boolean checkNodeAllDate(WbsTreeContract contract);
+ boolean checkAllNodeDate(Long projectId, Long contractId);